[jboss-user] [JBoss Messaging] - problem wiht NDC used in multiple threads

jerome maraninchi do-not-reply at jboss.com
Wed Aug 31 04:10:15 EDT 2011


jerome maraninchi [http://community.jboss.org/people/geek_nissa] created the discussion

"problem wiht NDC used in multiple threads"

To view the discussion, visit: http://community.jboss.org/message/623933#623933

--------------------------------------------------------------
Hello everybody,
I'm an issue after the migration from JBoss 3.2 to JBoss 6.0. All run expect log. I use jboss-logging.xml for each EAR deployed on JBoss to specify, the level, the pattern and the destination. After migrate on the code, to use org.jboss.logmanager and not org.apache.log4j I am problem to display the context with %x.

it can't give the context and i see this error :  Log stack integrity error (there are currently 1 contexts into it) the number of context is give whith NDC.getDepth.

I thougth I have this problem because all ear isn't isolated but no because I'm tested after isolated and i have the same problem 

You can see the log is good expect the context between the two chevron in red 
*<>* <2011-08-31 07:55:09,129> <soap> <INFO> <generated : 54561>

This is the pattern used in jboss-logging.xml

<pattern-formatter pattern="&lt;%x&gt; &lt;%d{yyyy-MM-dd HH:mm:ss,SSS}&gt; &lt;soap&gt; &lt;%p&gt; &lt;%m&gt;%n"/>

Thank you for your help and have a good day
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/623933#623933]

Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110831/50ffaf99/attachment.html 


More information about the jboss-user mailing list