I have an exception in confluence with postgreSQL. (again)
Asked by HeeJung Kim:

(I changed my context, especially error messages.)

I have an exception in confluence with postgreSQL.

In fact, I could connect up with login page, and I created some user's accounts then it succeeded.

However, Since then even though I tried to connect again, I couldn't.

There is some exception message.

\* Messages

2? 07, 2014 6:30:06 ?? org.apache.catalina.core.StandardHostValve custom

??: Exception Processing ErrorPage\[errorCode=500, location=/500page.jsp\]

java.lang.NullPointerException

at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)

at com.atlassian.confluence.setup.sitemesh.PluginDecoratorMapper.getPluginAccessor(PluginDecoratorMapper.java:74)

at com.atlassian.confluence.setup.sitemesh.PluginDecoratorMapper.getDecorator(PluginDecoratorMapper.java:23)

at com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper.getDecorator(AbstractDecoratorMapper.java:45)

at com.opensymphony.module.sitemesh.mapper.InlineDecoratorMapper.getDecorator(InlineDecoratorMapper.java:41)

at com.atlassian.confluence.util.profiling.ConfluenceDecoratorSelector.selectDecorator(ConfluenceDecoratorSelector.java:58)

at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:83)

at com.atlassian.confluence.util.profiling.ProfilingPageFilter.doFilter(ProfilingPageFilter.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.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:211)

at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.doFilter(ConfluenceSecurityFilter.java:27)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:150)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)

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:50)

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 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)

at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:421)

at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342)

at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:286)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)

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:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:744)

\* environment

- Linux

- confluence v5.4.2

- postgreSQL v9.3.2

And I was searching for similar issue here, but this is for mysql.

<https://answers.atlassian.com/questions/126644/error-com-atlassian-util-concurrent-lazyreference-initializationexception-java-lang-nullpointerexception>

How can I connect up with confluence again?


Answers:
author: Steve Gerstner [bridgingIT]
body: I think this message has nothing to do with your database, can you check, that your tomcat-user has read and write access to your confluence home dir?

comments: author: HeeJung Kim
body: Yes, of cource.!

Tomcat-user can access to my confluence home dir, and I registered the other accounts already. I mean, confluence also accessed to database.


author: Steve Gerstner [bridgingIT]
body: What I can see from your stacktrace is that your confluence tries to load a bean but it cannot find it. Following might be possible:

1. It's in a jar in WEB-INF/lib and can't be read
2. It should be in a jar in WEB-INF/lib but the jar is missing
3. It's in a plugin jar and in the database but you cannot acces the database.
4. It's in a plugin jar and you can access your database but you can't sore it in your homedirectory

In all that cases, there should be an exception before the one you postet.

In your case, confluence can't find the PluginAccessor wich is in atlassians-plugins-x.y.z.jar in WEB-INF/lib

If it's there, you hava a read problem, if not check your installation.


author: HeeJung Kim
body: Thank you for your answer. :)

I was resolving this issue. One of directories from confluence was root account, so I changed it.

(However I don't know why, because I hadn't change anything.)