[MAGNOLIA-846] On first start from war, page displayed is NPE instead of login Created: 15/May/06  Updated: 21/Jul/06  Resolved: 21/Jul/06

Status: Closed
Project: Magnolia
Component/s: build
Affects Version/s: 3.0 Beta 1
Fix Version/s: 3.0 RC3

Type: Bug Priority: Major
Reporter: David Smith Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows XP SP2, Sun Java 5, Tomcat 5.5.13


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 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.



 Comments   
Comment by Fabrizio Giustina [ 21/Jul/06 ]

the NPE shold not happen again

Generated at Mon Feb 12 03:21:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.