Confluence 5.5.6 500 (NullPointerException) after Yosemite (Mac OS X 10.10.2) upgrade.
Asked by Chris Williams:

Our Mac OS X server just got updated to Yosemite AND was moved to a new data center where it received a new domain name and a new IP address. I'm not sure which of these changes might be related (maybe neither), but when the standalone Confluence Tomcat instance starts and I try to navigate to it, I get a 500.

The browser output looks like this:

```
HTTP Status 500 - java.lang.NullPointerExceptiontype?Exception reportmessage?java.lang.NullPointerExceptiondescription?The server encountered an internal error that prevented it from fulfilling this request.exceptioncom.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException	com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)	com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getGlobalSettings(ConfluenceEncodingFilter.java:47)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncodingInternal(ConfluenceEncodingFilter.java:37)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:29)	com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:38)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)	com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:65)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)?root causejava.lang.NullPointerException	com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)	com.atlassian.confluence.util.LazyComponentReference$Accessor.get(LazyComponentReference.java:46)	com.atlassian.util.concurrent.Lazy$Strong.create(Lazy.java:85)	com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321)	com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)	com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getGlobalSettings(ConfluenceEncodingFilter.java:47)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncodingInternal(ConfluenceEncodingFilter.java:37)	com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:29)	com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:38)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)	com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:65)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)?note?The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.Apache Tomcat/7.0.47
```

The logs look like this:

```
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0Feb 23, 2015 3:15:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.Feb 23, 2015 3:15:38 PM org.apache.catalina.startup.SetAllPropertiesRule beginWARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'debug' to '0' did not find a matching property.Feb 23, 2015 3:15:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.Feb 23, 2015 3:15:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.Feb 23, 2015 3:15:38 PM org.apache.tomcat.util.digester.SetPropertiesRule beginWARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.Feb 23, 2015 3:15:38 PM org.apache.coyote.AbstractProtocol initINFO: Initializing ProtocolHandler ["http-bio-8085"]Feb 23, 2015 3:15:38 PM org.apache.coyote.AbstractProtocol initINFO: Initializing ProtocolHandler ["http-bio-8445"]Feb 23, 2015 3:15:38 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 624 msFeb 23, 2015 3:15:38 PM org.apache.catalina.core.StandardService startInternalINFO: Starting service Tomcat-StandaloneFeb 23, 2015 3:15:38 PM org.apache.catalina.core.StandardEngine startInternalINFO: Starting Servlet Engine: Apache Tomcat/7.0.472015-02-23 15:15:47,242 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.5.6 [build 5527 based on commit hash d6c318572c182872608bdc1754f542eab16839cb]Feb 23, 2015 3:15:55 PM org.apache.coyote.AbstractProtocol startINFO: Starting ProtocolHandler ["http-bio-8085"]Feb 23, 2015 3:15:55 PM org.apache.coyote.AbstractProtocol startINFO: Starting ProtocolHandler ["http-bio-8445"]Feb 23, 2015 3:15:55 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 16316 msFeb 23, 2015 3:16:10 PM org.apache.catalina.core.StandardHostValve customSEVERE: Exception Processing ErrorPage[errorCode=500, location=/500page.jsp]java.lang.NullPointerException?at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)?at com.atlassian.confluence.setup.sitemesh.PluginDecoratorMapper.getPluginAccessor(PluginDecoratorMapper.java:76)?at com.atlassian.confluence.setup.sitemesh.PluginDecoratorMapper.getDecorator(PluginDecoratorMapper.java:24)?at com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper.getDecorator(AbstractDecoratorMapper.java:45)?at com.opensymphony.module.sitemesh.mapper.InlineDecoratorMapper.getDecorator(InlineDecoratorMapper.java:41)?at com.atlassian.confluence.util.profiling.ConfluenceDecoratorSelector.selectDecorator(ConfluenceDecoratorSelector.java:60)?at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:83)?at com.atlassian.confluence.util.profiling.ProfilingPageFilter.doFilter(ProfilingPageFilter.java:44)?at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)?at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)?at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)?at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)?at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)?at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)?at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:211)?at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.doFilter(ConfluenceSecurityFilter.java:27)?at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)?at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)?at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:150)?at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)?at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)?at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)?at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)?at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)?at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)?at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)?at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)?at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)?at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)?at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)?at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)?at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)?at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)?at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)?at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:489)?at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)?at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)?at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:467)?at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:338)?at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:428)?at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:201)?at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)?at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)?at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)?at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)?at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)?at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)?at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)?at java.lang.Thread.run(Thread.java:745)
```


Answers:
author: Rodrigo Girardi Adami
body: Hi Chris,

By the error 500, something worse might have happened. By the stack trace error, I could spot that you are using Confluence with the JAVA 1.8. If this is true, then it's probably the issue. Confluence does not work well with the 1.8 version.

<https://jira.atlassian.com/browse/CONF-33772>

I recommend to switch to 1.7 JDK if the case.

Cheers,

Rodrigo

comments: author: Chris Williams
body: Rodrigo, thanks for your response. I've switched to 1.7 and now I'm seeing a different non-working behavior. I'll post a new question about that.


Tags: confluence-administration