Confluence 500 error
Asked by Eric Austin:

Have been running Confluence without any issues for months, just run the last Apple OS update to 10.9.4 and now on running Conf, I get this:

HTTP Status 500 - java.lang.NullPointerException {#toc-hId-1819177257}
======================================================================

*** ** * ** ***

**type** Exception report

**message** java.lang.NullPointerException

**description** The server encountered an internal error that prevented it from fulfilling this request.

**exception**

```
com.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 cause**

```
java.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 {#toc-hId--1126006714}


Answers:
author: Michael Diep
body: still in conclusive for me.


author: sgrotz80
body: I am sure you have resolved this already, but just in case this happens again - I had the same problem, starting up Confluence - it was caused by incorrect privileges in the confluence_home directory.

Take a look at the confluence_home_dir/logs/atlassian-confluence.log file - it mentioned which files it couldnt open. Just do a chown/chmod on those files and confluence will start up again.


author: Wayne Wong
body: Hi there,

Is that possible for you to attach your whole atlassian-conflunce.log and your catalina.out here so that we can investigate further?

<br />

Thank you.

Regards,

<br />

Wayne Wong