Java Error Message sprothero pamplincorp.com  2014-02-07 08:42
Status: Closed
 
I believe this is something I've seen occasionally before but now I just can't get past the error. The server is on a server with lots of other web services/servers but things were working just find and I've setup ports so that there is no confliction. Here is the error message we get and attached are all the log and config files I can think of that might help. Our LK server is DOWN.

500: Unexpected server error

A failure occurred during LabKey Server startup.

java.lang.NullPointerException
       at java.io.File.<init>(Unknown Source)
       at org.apache.log4j.RollingFileAppender.rollOver(RollingFileAppender.java:164)
       at org.labkey.api.module.ModuleLoader.rollErrorLogFile(ModuleLoader.java:535)
       at org.labkey.api.module.ModuleLoader.doInit(ModuleLoader.java:265)
       at org.labkey.api.module.ModuleLoader.doInit(ModuleLoader.java:324)
       at org.labkey.api.module.ModuleLoader.init(ModuleLoader.java:243)
       at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
       at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
       at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
       at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
       at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
       at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
       at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
 
 
Brian Connolly responded:  2014-02-07 08:50
Stan,

When I see this type of error it usually indicates a permissions problem and the Tomcat server process cannot write to the log files in your TOMCAT_INSTALL_DIR/logs directory.

Can you check the permissions on the files in the TOMCAT_INSTALL_DIR/logs and make sure that user running the Tomcat server process has read/write permissions to the files and to the directory.


-Brian
 
jeckels responded:  2014-02-07 09:13
Instead of relying on the underlying Log4J error, I just added a check to give a more informative error message in this case.

Thanks,
Josh