Hi,

I have override Subscriber interface metod getMatchedSubscription() in my class 
and used to intialize the magncontext for getting JCR Session inside the 
method.But it is throwing the below exception.

Kindly let me the solution ASP.

EBUG  com.consumerguide.service.CustomActivationCommand 29.05.2013 19:07:12 -- 
Will activate content from { website } repository with uuid { 
a58e4f0a-edc0-4f20-8721-500d7be6670b } and path { /consumerguideauto/new-cars }
ERROR  info.magnolia.context.MgnlContext 29.05.2013 19:07:13 -- [b]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[/b]
        at info.magnolia.context.MgnlContext.getInstance(MgnlContext.java:297)
        at 
com.consunerguide.subscriber.CGAutoSubscriber.getMatchedSubscription(CGAutoSubscriber.java:116)
        at 
info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:384)
        at 
info.magnolia.module.exchangetransactional.TransactionalSyndicator$2.run(TransactionalSyndicator.java:155)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown 
Source)
        at java.lang.Thread.run(Thread.java:662)
ERROR  info.magnolia.module.exchangetransactional.TransactionalSyndicator 
29.05.2013 19:07:13 -- Failed to activate content.
java.lang.IllegalStateException: MgnlContext is not set for this thread
        at info.magnolia.context.MgnlContext.getInstance(MgnlContext.java:297)
        at 
com.consunerguide.subscriber.CGAutoSubscriber.getMatchedSubscription(CGAutoSubscriber.java:116)
        at 
info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:384)
        at 
info.magnolia.module.exchangetransactional.TransactionalSyndicator$2.run(TransactionalSyndicator.java:155)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown 
Source)
        at java.lang.Thread.run(Thread.java:662)
ERROR  info.magnolia.module.exchangetransactional.TransactionalSyndicator 
29.05.2013 19:07:13 -- MgnlContext is not set for this thread
java.lang.IllegalStateException: MgnlContext is not set for this thread
        at info.magnolia.context.MgnlContext.getInstance(MgnlContext.java:297)
        at 
com.consunerguide.subscriber.CGAutoSubscriber.getMatchedSubscription(CGAutoSubscriber.java:116)
        at 
info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:384)
        at 
info.magnolia.module.exchangetransactional.TransactionalSyndicator$2.run(TransactionalSyndicator.java:155)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown 
Source)
        at java.lang.Thread.run(Thread.java:662)
ERROR  info.magnolia.module.admininterface.commands.ActivationCommand 
29.05.2013 19:07:13 -- can't activate
info.magnolia.cms.exchange.ExchangeException: 
info.magnolia.cms.exchange.ExchangeException: 1 error detected: 
MgnlContext is not set for this thread on magnoliaPublic8080

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=3497b2b6-2b47-4e79-9893-0ad56d581aef


----------------------------------------------------------------
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]>
----------------------------------------------------------------

Reply via email to