Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.0 Beta 1
-
None
-
Windows XP SP2, Sun Java 5, Tomcat 5.5.13
Description
When Magnolia first deploys, it bootstraps normally and the repository is successfully initialized. These warnings appear in the logs:
WARN info.magnolia.cms.beans.config.ModuleLoader 15.05.2006 07:36:45 – won't initialize the module workflow since a system restart is needed
WARN info.magnolia.cms.beans.config.ModuleLoader 15.05.2006 07:36:45 – won't initialize the module mail since a system restart is needed
WARN info.magnolia.cms.beans.config.ModuleLoader 15.05.2006 07:36:45 – stopped module initialization since a restart is needed
On subsequent request to a page, a NullPointerException is displayed instead of a login screen:
ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/magnolia3].[magnolia] 15.05.2006 07:37:42 – Servlet.service() for servlet magnolia threw exception
java.lang.NullPointerException
at info.magnolia.cms.cache.BaseCacheManager.isEnabled(BaseCacheManager.java:97)
at info.magnolia.cms.cache.ManageableCacheManager.isEnabled(ManageableCacheManager.java:78)
at info.magnolia.cms.cache.CacheFilter.doFilter(CacheFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at info.magnolia.cms.filters.UnsetContextFilter.doFilter(UnsetContextFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
.......... the stack goes on..........
Restart Tomcat and the problem goes away. If Magnolia needs a restart, notice to that effect should be displayed instead of a generic NPE stack trace.