Confluence unusable after restart

Hello,

After restart Confluence it suddenly unusable.

Cause

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]

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

Unknown

2 answers

1 accepted

Hi Denys,


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

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)

William,

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

Thanks for the idea about database.

With BR,

Denys.

The first folder mentioned is named plugins-cache (not plugin-cache!)

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

62 views 3 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you