Confluence unusable after restart
Asked by Denys Kovalenko:

### Hello, {#toc-hId-1424984460}

### After restart Confluence it suddenly unusable. {#toc-hId--1127172501}

### Cause {#toc-hId-615637834}

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException  
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)

caused by: java.lang.NullPointerException  
at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)

#### Stack Trace:\[hide\] {#toc-hId--2133032632}

```
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)	at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115)	at com.atlassian.confluence.web.filter.LanguageExtractionFilter.getLocaleManager(LanguageExtractionFilter.java:63)	at com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:48)	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:44)	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:65)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)	at java.lang.Thread.run(Thread.java:662)Caused by: java.lang.NullPointerException	at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)	at com.atlassian.confluence.util.LazyComponentReference$Accessor.get(LazyComponentReference.java:44)	at com.atlassian.util.concurrent.Lazy$Strong.create(Lazy.java:88)	at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:326)	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:146)	... 29 more        
```

### Referer URL {#toc-hId--193708792}

Unknown


Answers:
author: William Zanchet [Atlassian]
body: Hi Denys,  

<br />

Usually those NullPointers are generic, and doesn't give a full picture of the problem. May I ask you, if you can reach Confluence's database through Confluence's box?  

To rule out a problem with the plugins during the startup, can you please do the following steps to clean the plugin cache?  

\* Shutdown Confluence  
Delete the content from the following folders:  
\* \<confluence-home\>/plugin-cache  
\* \<confluence-home\>/plugins-osgi-cache  
\* \<confluence-home\>/plugins-temp  
\* \<confluence-home\>/bundled-plugins  
\* \<confluence-home\>/bundled-plugins_language  
\* Startup Confluence  

I hope this helps.

Cheers,  

WZ

comments: author: Denys Kovalenko
body: Unfortunatly, the problem still present.

tail -f /data/confluence-data/logs/atlassian-confluence.log

Request Information

--------------------------

URL: <http://localhost:8090/500page.jsp>

Scheme: http

Server: localhost

Port: 8090

URI: /500page.jsp

Context Path:

Servlet Path: /500page.jsp

Path Info: null

Query String: null

--------------------------

Attributes

--------------------------

javax.servlet.forward.request_uri: /favicon.ico

javax.servlet.forward.context_path:

javax.servlet.forward.servlet_path: /favicon.ico

javax.servlet.forward.path_info: /500page.jsp

javax.servlet.error.message:

com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true

javax.servlet.error.status_code: 500

javax.servlet.error.servlet_name: default

javax.servlet.error.exception: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException

javax.servlet.error.request_uri: /favicon.ico

--------------------------

Parameters

--------------------------

caused by: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException

at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)

caused by: java.lang.NullPointerException

at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)


author: Denys Kovalenko
body: William,

It was related with wrong DBHOSTNAME in confluence.cfg.xml

Thanks for the idea about database.

With BR,

Denys.


author: Jochen H?berle
body: The first folder mentioned is named plugins-cache (not plugin-cache!)


author: Adrien Ragot 2
body: Thank you for showing me I wasn't alone. For me it was:

* Atlassian has upgraded the web.xml file in Confluence 5.4 (that's right, that's their job ;))
* I had applied changes to this file to implement HTTPS,
* I had incorrectly overwritten their changes.

I've reset the file and restarted, it works. Hope it'll help someone.


Tags: confluence-administration