Error "com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException"

Hi All,

Iam trying to setup newer version of confluence in a linux machine,

When i change the confluence.cfg.xml to point the mySQL DB i get below error,

in the confluence.cfg.xml , iam changing as below,

<property name="hibernate.connection.url"> jdbc:mysql://localhost/confluence?autoReconnect=true&useUnicode=true&characterEncoding=utf8</property>

Error when i access the confluence URL.

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

at com.atlassian.util.concurrent.LazyReference.getInterruptibly(

at com.atlassian.util.concurrent.LazyReference.get(

at com.atlassian.confluence.web.filter.LanguageExtractionFilter.getLocaleManager(

at com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(

at com.atlassian.core.filters.AbstractHttpFilter.doFilter(

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

at org.apache.catalina.core.ApplicationFilterChain.doFilter(

I refereed to the below forums and deleted the cache , plugins but it did not resolve the issue,

Could any one please help in resolving this issue.



1 answer

1 accepted

Hi Aravind,

You can try creating a new confluence.home, point the at this new location, then start the application. This will drive you through the setup process. Point the setup wizard at a new, empty database. Allow the setup process to run through and create the tables for this new instance. Once the setup process has completed, shut down that instance of Confluence, then modify the confluence.cfg.xml to point at the database you originally tried to point Confluence to, mentioned up above.

Depending on what system confluence is running on, your hibernate.connection.url should look like this:

<property name="hibernate.connection.url">jdbc:mysql://localhost/confluence?sessionVariables=storage_engine%3DInnoDB&amp;useUnicode=true&amp;characterEncoding=utf8</property>

This of course is different for different systems as the special characters are represented differently.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

140 views 8 10
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