Confluence error
Asked by Vladislav Mikhaylov:

hi!

when I run the confluence this error occurs:

HTTP Status 500 - {#toc-hId-1903154362}
=======================================

*** ** * ** ***

**type** Exception report

**message**

**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.web.filter.LanguageExtractionFilter.getLocaleManager(LanguageExtractionFilter.java:63)	com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:48)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:44)	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)
```

**root cause**

```
java.lang.NullPointerException	com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)	com.atlassian.confluence.util.LazyComponentReference$Accessor.get(LazyComponentReference.java:44)	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.web.filter.LanguageExtractionFilter.getLocaleManager(LanguageExtractionFilter.java:63)	com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:48)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:44)	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)
```

**note** ++The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.++

*** ** * ** ***

### Apache Tomcat/6.0.35 {#toc-hId--1042029609}

How to fix this error?


Answers:
author: Giuliano C.
body: Generally, this error displayed in Confluence is caused by Confluence not being able to connect to the database: the credentials set in your confluence.cfg.xml file are not valid. Another possibility would be that the database password had expired in the confluence.cfg.xml file, as suggested by Oliver

Try to check for the following:

1. Check if \<CONFLUENCE-HOME\> is not writable (check the permission of the directory and sub-directories)
2. Confluence database is not available - check the connection parameters in \<CONFLUENCE-HOME\>/confluence.cfg.xml and verify if the database user has access to all confluence tables and if the password is the same.

If that doesn't work or if you have already solved it, would you mind to share the resolution with us?

Cheers,

Giuliano


author: Oliver Str??er
body: Please check your database credentials in the confluence.cfg.xml, maybe they password expired.

This was the reason in this case (with the same stacktrace): [Confluence won't start: 500 error](https://answers.atlassian.com/questions/291008) please have a look to that solution.


Tags: confluence-administration