NULLPointer on startup

I just installed Confluence on Ubuntu 16.04.
After installation an error is reported on the browser without any specifications of the problem.
In the logfile I found the following StackTrace:
2017-11-11 22:21:15,083 ERROR [http-nio-8090-exec-4] [[Standalone].[localhost].[/].[johnson-data-servlet]] log Servlet.service() for servlet [johnson-data-servlet] in context with path [] threw exception
java.lang.NullPointerException
        at com.atlassian.confluence.health.LegacyJohnsonEventSerializer.toJson(LegacyJohnsonEventSerializer.java:29)
        at com.atlassian.confluence.health.JohnsonEventCollectionSerializer.serializeEvent(JohnsonEventCollectionSerializer.java:46)
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
[...]

1 answer

1 accepted

1 vote
Answer accepted

Hi Florian,


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-install-dir>/work/* 
* Startup Confluence

And better way is read https://confluence.atlassian.com/doc/upgrade-notes-overview-176882813.html

OR double check you config files like, init.properties, setenv.sh, server.xml, confluence.db.xml. and check owners for home and installation directories

I hope this helps.

 

Cheers,

Gonchik Tsymzhitov

Hey Gonchik,

thanks for your fast answer. It worked fine.

The main problem were insuffizient provided CPUs by the hoster, which caused that many errors.

Best wishes,
Flo

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

713 views 2 13
Read article

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