[MGNLADVCACHE-26] NotifyFlushListeningPolicy.updateLastUpdateTimestamp fails with ISE Created: 06/Oct/14  Updated: 19/Nov/14  Resolved: 10/Oct/14

Status: Closed
Project: Advanced Cache
Component/s: None
Affects Version/s: 1.5
Fix Version/s: 1.6

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
dependency
is depended upon by MGNLADVCACHE-25 The ServeUntilRecachedPolicy and Eage... Closed
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   
2014-10-06 12:57:28,402 ERROR info.magnolia.context.MgnlContext                 : MgnlContext is not initialized. This could happen if the request does not go through the Magnolia default filters.
java.lang.IllegalStateException: MgnlContext is not set for this thread
	at info.magnolia.context.MgnlContext.getInstance(MgnlContext.java:300)
	at info.magnolia.context.MgnlContext.getUser(MgnlContext.java:91)
	at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModified(MgnlPropertySettingContentDecorator.java:530)
	at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModified(MgnlPropertySettingContentDecorator.java:535)
	at info.magnolia.jcr.wrapper.MgnlPropertySettingContentDecorator.updateLastModifiedProperty(MgnlPropertySettingContentDecorator.java:546)
	at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.updateLastModifiedProperty(MgnlPropertySettingNodeWrapper.java:278)
	at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.setProperty(MgnlPropertySettingNodeWrapper.java:133)
	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:422)
	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:224)
	at info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper.setProperty(MgnlAuditLoggingContentDecoratorNodeWrapper.java:183)
	at info.magnolia.cms.core.DefaultNodeData.setValue(DefaultNodeData.java:253)
	at info.magnolia.module.advancedcache.NotifyFlushListeningPolicy.updateLastUpdateTimestamp(NotifyFlushListeningPolicy.java:62)
	at info.magnolia.module.advancedcache.EagerRecacheFlushPolicy.preHandleEvents(EagerRecacheFlushPolicy.java:77)
	at info.magnolia.module.cache.AbstractListeningFlushPolicy$CacheCleaner.onEvent(AbstractListeningFlushPolicy.java:193)
	at info.magnolia.cms.util.ObservationUtil$ObservationBasedDelayedExecutor$1.run(ObservationUtil.java:253)
	at info.magnolia.cms.util.DelayedExecutor$RunnableWrapper.run(DelayedExecutor.java:103)
	at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:695)


 Comments   
Comment by Diana Racho [ 08/Oct/14 ]

Hello, we have the same problem. Could you explain how you fix this problem. Thanks

Generated at Sun Feb 11 23:10:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.