Having the same problem here.
During runtime i get some content from users request, it pulls the content from
external API. I present the content to the user, however at the same time i run
a new thread to add this content to the system so the next time user wont have
to invoke external APIs but pull the content from internal system.
I get this exception:
[code] 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.getJCRSession(MgnlContext.java:649)
at
com.flavoryt.places.services.impl.DefaultPlacesService.addGooglePlaceToJCR(DefaultPlacesService.java:67)
at
com.flavoryt.frontend.facades.impl.DefaultPlacesFacade$1.run(DefaultPlacesFacade.java:50)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[/code]
How can i initialise magnolia context ?
p.s im on magnolia 5.3.8
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=6f69a313-d761-4baf-86ea-a676106033f6
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------