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(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)
I refereed to the below forums and deleted the cache , plugins but it did not resolve the issue,
https://answers.atlassian.com/questions/94131/confluence-system-error-java-lang-nullpointerexception
https://answers.atlassian.com/questions/95478/oops-an-error-has-occurred
Could any one please help in resolving this issue.
Thanks,
Aravind
Hi Aravind,
You can try creating a new confluence.home, point the confluence-init.properties 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&useUnicode=true&characterEncoding=utf8</property>
This of course is different for different systems as the special characters are represented differently.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.