[MAGNOLIA-1588] Exception in AnonymousContext Created: 13/Jun/07  Updated: 23/Jan/13  Resolved: 13/Jun/07

Status: Closed
Project: Magnolia
Component/s: security
Affects Version/s: None
Fix Version/s: 3.1 M2

Type: Bug Priority: Major
Reporter: Oliver Lietz Assignee: Sameer Charles
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

There is a NPE in AnonymousContext (trunk, fresh setup) when accessing Magnolia.
/magnolia or /magnolia/.magnolia (where magnolia is the instance/context):

Servlet.service() for servlet default threw exception
java.lang.ExceptionInInitializerError
at info.magnolia.cms.filters.MgnlContextFilter.doFilter(MgnlContextFilter.java:35)
[...]
Caused by: java.lang.NullPointerException
at info.magnolia.context.AnonymousContext.createAnonymousSubject(AnonymousContext.java:121)
at info.magnolia.context.AnonymousContext.<clinit>(AnonymousContext.java:54)
... 19 more

or

Servlet.service() for servlet default threw exception
java.lang.NoClassDefFoundError
at info.magnolia.cms.filters.MgnlContextFilter.doFilter(MgnlContextFilter.java:35)
[...]
at java.lang.Thread.run(Thread.java:613)

no cause, maybe this is caused by something different

Commenting out assignment of anonymousSubject and anonymousUser and the listener lets one log in - but AdminCentral produces more exceptions.



 Comments   
Comment by Sameer Charles [ 13/Jun/07 ]

done,

1. fixed NPE on login
2. there are no more exceptions from admininterface after login

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