1 Reply Latest reply on Sep 1, 2011 5:42 AM by geek_nissa

    problem wiht NDC used in multiple threads

    geek_nissa

      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

        • 1. Re: problem wiht NDC used in multiple threads
          geek_nissa

          I have an important request : With org.jboss.logmanager there is'nt the remove method ?So the current context is never remove and that is why log stack integrity error with getDepht>0.

           

          How i can use the remove method to remove the current context on this thread.

           

          Thanks for yout help