Can anyone help  with this issue - HTTP Status 500 - java.lang.NullPointerException

Steve Randazzo
Steve Randazzo used Ask the Experts™
on
Our wiki is run off of this platform... Which i am totally new on this so bare with me if this is a silly question. But I hope to find someone who can tell me how to fix it or something that i can run to fix it. any suggestion would be greatly appreciated

We use a wiki in our office for a knowledgebase but as of recently it has stopped working and the main person who would work on this is no longer with my company. We dont see any info about it in notes or records anywhere.

HTTP Status 500 - java.lang.NullPointerException
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Ouch... You're running Tomcat 7x.

So old...

First, upgrade to Tomcat 9x, then retest.

Running Tomcat 7x, likely you're hitting some bug that's been long fixed, so you'll update or live with the occasional Tomcat crash.
Distinguished Expert 2018

Commented:
We use a wiki in our office for a knowledgebase but as of recently it has stopped working

What happened recently and made it stop working? What changes were made to the server/os?
Steve RandazzoIT Manager

Author

Commented:
nothing on our part has changed were using it on a friday and then on monday boom this error.
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

Distinguished Expert 2018

Commented:
Things (usually) do not just crash out of the blue. If something was working on Friday and does not work today, more than likely it means that there is a change somewhere. An upgrade to the os, a patch, a network error. Something. Are you absolutely sure that nothing has changed on any level (os/vm/tomcat/network)?
Steve RandazzoIT Manager

Author

Commented:
yes.... pretty much it runs on a machine in our network that no one really logs into it aside from me and my boss. and we literally never go on that machine. It only has auto update to windows OS only but nothing else
Distinguished Expert 2018

Commented:
Maybe there was a Windows update that screwed things up. Maybe there is an expired database password. Can you search for the file atlassian-confluence.log? (it should be in your <confluence home>/logs). Can you see if there is any more info in there?
Steve RandazzoIT Manager

Author

Commented:
Distinguished Expert 2018

Commented:
This looks more and more like a system error. I would check the following

1) If the disk/partition is full
2) If there are any permission changes.
3) If there are any network changes.
4) If there are any password changes.

If none of this helps I would suggest you speak with Confluence's support.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
As girionis suggested. This problem is almost certainly due to some underlying OS change.

This is a general problem with running software which has been out dated for years.

As time goes by the only way to ensure old software continues to run is never update anything, which will likely cause your machine to be hacked eventually.

Best to keep all your software updated, all the time.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial