You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sandeep reddy <sa...@in2m.com> on 2008/07/28 12:59:16 UTC

Pls:Urgent:!!!! Strange behaviour with log4j.xml

Hi servicemix-guys,

       I am facing problem with log4j.xml settings.Deployed
changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml settings.

<logger name="org.apache">
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.camel">
        <level value="WARN"/>
    </logger>
    <logger name="org.springframework">
        <level value="WARN"/>
    </logger>
    <logger name="org.jencks">
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.activemq">
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.activemq.transport.discovery">
        <level value="ERROR"/>
    </logger>
    <logger name="org.apache.servicemix">
        <!-- To enable debug logging, replace the INFO by DEBUG -->
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.servicemix.jbi.config">
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.servicemix.jbi.deployment">
        <level value="WARN"/>
    </logger>

After hitting request it fails with below Errors.

ERROR - HttpComponent                  - Error processing exchange InOut[
  id: ID:127.0.0.2-11b6964777a-13:1
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/changepassword}PortalService
  endpoint: portalEndpoint
  in: Unable to display: java.io.IOException: Stream closed
]
com.ctc.wstx.exc.WstxIOException: Stream closed
        at
com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
        at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
        at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
        at
com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
        at
org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
        at
org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
        at
org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Stream closed
        at
java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:304)
        at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
        at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at
com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
        at
com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
        at
com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
        ... 19 more

Since in production i can't have debug mode i need to have the above
settings in log4j.xml file.
Please help me.....

Thanks,
Sandeep.
-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18688010.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.

And for camel component in hotdeploy I used to use
servicemix-camel-3.2.2-SNAPSHOT-installer.zip
component because using servicemix-camel-3.2.1-installer.zip i can't create
2 camel components in a single SA.

Thanks,
Sandeep.


sandeep reddy wrote:
> 
> Hi Freeman,
> 
>    Thanks for the response.Since i can't upload total zip file, just
> deleted lib folder's from respective su's may be that's giving the
> problem.
> 
> So, I am breaking into 2 parts.
> changepassword-sa-3.2.1 contains all su's except validate-su which is
> there is in changepassword-sa-3.2.1-sa-part2-zip.
> 
> You need to take validate-su.zip file from changepassword-part2 folder and
> paste in changepassword-sa-3.2.1.And deploy that zip file.
> 
>  http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
> changepassword-sa-3.2.1.zip 
>  http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
> changepassword-sa-3.2.1-part2.zip 
> 
> Thanks,
> Sandeep.
> 
> 
> Freeman Fang wrote:
>> 
>> Hi Sandeep,
>> I can't deploy the sa you append here, get error
>> javax.jbi.management.DeploymentException: <?xml version="1.0" 
>> encoding="UTF-8"?>
>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
>> version="1.0">
>> <jbi-task-result>
>> <frmwk-task-result>
>> <frmwk-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> <task-status-msg>
>> <msg-loc-info>
>> <loc-token/>
>> <loc-message>Unable to find jbi descriptor: 
>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>> </msg-loc-info>
>> </task-status-msg>
>> </task-result-details>
>> </frmwk-task-result-details>
>> </frmwk-task-result>
>> </jbi-task-result>
>> </jbi-task>
>> 
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>> 
>> Seems the package isn't correct, it's the one you used ?
>> 
>> Regards
>> Freeman
>> 
>> sandeep reddy wrote:
>>>   
>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>> level but not work at WARN level?
>>>>     
>>>  
>>>    Yes and even at INFO level also.
>>>
>>> And here I am attaching SA which you can reproduce the problem with
>>> above
>>> level's in log4j.xml file.
>>>
>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>> changepassword-sa-3.2.1.zip 
>>>
>>> Thanks,
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>   
>>>> Hi,
>>>>
>>>>
>>>>     
>>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>>> level but not work at WARN level?
>>>>>       
>>>> Is it possible that you append your sa (simplify to reproduce the 
>>>> problem and don't include your business code) which would be very 
>>>> helpful for us to investigate this problem.
>>>>
>>>> Regards
>>>> Freeman
>>>> sandeep reddy wrote:
>>>>     
>>>>> Hi servicemix-guys,
>>>>>
>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>> settings.
>>>>>
>>>>> <logger name="org.apache">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.camel">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.springframework">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.jencks">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.activemq">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>         <level value="ERROR"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix">
>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>
>>>>> After hitting request it fails with below Errors.
>>>>>
>>>>> ERROR - HttpComponent                  - Error processing exchange
>>>>> InOut[
>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>   status: Active
>>>>>   role: provider
>>>>>   service:
>>>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>>>   endpoint: portalEndpoint
>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>> ]
>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>         at
>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>         at
>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>         at
>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>         at
>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>         at
>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>         at
>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>         at
>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>         at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>         at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>> Caused by: java.io.IOException: Stream closed
>>>>>         at
>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>         at
>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>         at
>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>         at
>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>         at
>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>         at
>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>         ... 19 more
>>>>>
>>>>> Since in production i can't have debug mode i need to have the above
>>>>> settings in log4j.xml file.
>>>>> Please help me.....
>>>>>
>>>>> Thanks,
>>>>> Sandeep.
>>>>>   
>>>>>       
>>>>
>>>>     
>>>
>>>   
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18706724.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Freeman Fang <fr...@gmail.com>.
Hi Sandeep,

The exception looks for me is that your SA package isn't correct.

If unzip your changepassword-sa-3.2.1.zip, I get a folder named 
changepassword-sa-3.2.1, and in changepassword-sa-3.2.1 we get
bean-su-3.2.1
http-consumer-su-3.2.1
http-provider-su-3.2.1
META-INF
routing-su-3.2.1
validate-su-3.2.1

It's not correct, unzip SA.zip we should get META-INFO folder directly 
and some other SU package file, you can see the SA in cxf-wsdl-first 
example as we shipped in the kit. Did you use use jbi-maven-plugin to 
package your SA?

Freeman


sandeep reddy wrote:
> Hi Freeman,
>
>    Thanks for the response.Since i can't upload total zip file, just deleted
> lib folder's from respective su's may be that's giving the problem.
>
> So, I am breaking into 2 parts.
> changepassword-sa-3.2.1 contains all su's except validate-su which is there
> is in changepassword-sa-3.2.1-sa-part2-zip.
>
> You need to take validate-su.zip file from changepassword-part2 folder and
> paste in changepassword-sa-3.2.1.And deploy that zip file.
>
> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
> changepassword-sa-3.2.1.zip 
> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
> changepassword-sa-3.2.1-part2.zip 
>
> Thanks,
> Sandeep.
>
>
> Freeman Fang wrote:
>   
>> Hi Sandeep,
>> I can't deploy the sa you append here, get error
>> javax.jbi.management.DeploymentException: <?xml version="1.0" 
>> encoding="UTF-8"?>
>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
>> version="1.0">
>> <jbi-task-result>
>> <frmwk-task-result>
>> <frmwk-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> <task-status-msg>
>> <msg-loc-info>
>> <loc-token/>
>> <loc-message>Unable to find jbi descriptor: 
>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>> </msg-loc-info>
>> </task-status-msg>
>> </task-result-details>
>> </frmwk-task-result-details>
>> </frmwk-task-result>
>> </jbi-task-result>
>> </jbi-task>
>>
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>>
>> Seems the package isn't correct, it's the one you used ?
>>
>> Regards
>> Freeman
>>
>> sandeep reddy wrote:
>>     
>>>   
>>>       
>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>> level but not work at WARN level?
>>>>     
>>>>         
>>>  
>>>    Yes and even at INFO level also.
>>>
>>> And here I am attaching SA which you can reproduce the problem with above
>>> level's in log4j.xml file.
>>>
>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>> changepassword-sa-3.2.1.zip 
>>>
>>> Thanks,
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>   
>>>       
>>>> Hi,
>>>>
>>>>
>>>>     
>>>>         
>>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>>> level but not work at WARN level?
>>>>>       
>>>>>           
>>>> Is it possible that you append your sa (simplify to reproduce the 
>>>> problem and don't include your business code) which would be very 
>>>> helpful for us to investigate this problem.
>>>>
>>>> Regards
>>>> Freeman
>>>> sandeep reddy wrote:
>>>>     
>>>>         
>>>>> Hi servicemix-guys,
>>>>>
>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>> settings.
>>>>>
>>>>> <logger name="org.apache">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.camel">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.springframework">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.jencks">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.activemq">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>         <level value="ERROR"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix">
>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>
>>>>> After hitting request it fails with below Errors.
>>>>>
>>>>> ERROR - HttpComponent                  - Error processing exchange
>>>>> InOut[
>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>   status: Active
>>>>>   role: provider
>>>>>   service:
>>>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>>>   endpoint: portalEndpoint
>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>> ]
>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>         at
>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>         at
>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>         at
>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>         at
>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>         at
>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>         at
>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>         at
>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>         at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>         at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>> Caused by: java.io.IOException: Stream closed
>>>>>         at
>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>         at
>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>         at
>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>         at
>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>         at
>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>         at
>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>         ... 19 more
>>>>>
>>>>> Since in production i can't have debug mode i need to have the above
>>>>> settings in log4j.xml file.
>>>>> Please help me.....
>>>>>
>>>>> Thanks,
>>>>> Sandeep.
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>   
>>>       
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.
I downloaded the ServiceMix 3.2.2. release binary and have changed the
servicemix-camel component with the latest compiled code from 3.2 branch.
(verified that it contains your changes). But I am still getting same error
most of the times. It works some times as expected for the same use case
(same SA which I sent). 

Following is the error log:

com.ctc.wstx.exc.WstxIOException: Attempted read on closed stream.	
at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)	
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)	
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)	
at
com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)	
at
org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)	
at
org.apache.servicemix.http.endpoints.DefaultHttpConsumerMarshaler.sendOut(DefaultHttpConsumerMarshaler.java:78)	
at
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.sendOut(HttpConsumerEndpoint.java:392)	
at
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.process(HttpConsumerEndpoint.java:273)	
at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.java:71)	
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)	
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)	
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)	
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)	
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)	
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)	
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)	
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)	
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)	
at org.mortbay.jetty.Server.handle(Server.java:324)	
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)	
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:374)	
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)	
at
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(SelectChannelConnector.java:506)	
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: java.io.IOException: Attempted read on closed stream.	
at
org.apache.commons.httpclient.AutoCloseInputStream.isReadAllowed(AutoCloseInputStream.java:165)	
at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:106)	
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)	
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)	
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)	
at java.io.InputStreamReader.read(InputStreamReader.java:167)	
at
com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)	
at
com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)	
at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)	
... 23 more


-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18777765.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Freeman Fang <fr...@gmail.com>.
Hi Sandeep,

Just update code from servicemix 3.2 branch, and build 
servicemix-camel-3.2.2-installer.zip, put it into your kit hotdeploy 
folder to override the old one.

Freeman

sandeep reddy wrote:
> Hi Freeman,
>
>     Thanks a lot for putting efforts to fix.And I noticed that it has been
> fixed in 3.3 and 3.2.3 versions.
>     But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how can i
> get those changes over  
>     camel 3.2.2-SNAPSHOT?
>
> Thanks,
> Sandeep.
>
>
> Freeman Fang wrote:
>   
>> Hi Sandeep,
>>
>> After dig the code, I found that this isn't a LOG level problem. The 
>> root reason is that StreamSource can't be read multiple times. Raise 
>> issue[1] to track it and will be fixed up very soon
>>
>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>
>> Freeman
>>
>> sandeep reddy wrote:
>>     
>>> Hi Freeman,
>>>
>>>   Even for some of our another SA also getting exceptions due to having
>>> org.apache.servicemix as 
>>> WARN or INFO level.
>>>
>>>   So, how can I proceed further with not having DEBUG level for log4j.xml
>>> file.
>>>   Waiting for your response.....please help me......
>>>
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>   
>>>       
>>>> Hi Sandeep,
>>>>
>>>> I just test your SA.
>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>
>>>> I will investigate this issue.
>>>>
>>>> Regards
>>>> Freeman
>>>>
>>>>
>>>> sandeep reddy wrote:
>>>>     
>>>>         
>>>>> Hi Freeman,
>>>>>
>>>>>    Thanks for the response.Since i can't upload total zip file, just
>>>>> deleted
>>>>> lib folder's from respective su's may be that's giving the problem.
>>>>>
>>>>> So, I am breaking into 2 parts.
>>>>> changepassword-sa-3.2.1 contains all su's except validate-su which is
>>>>> there
>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>
>>>>> You need to take validate-su.zip file from changepassword-part2 folder
>>>>> and
>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>
>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>> changepassword-sa-3.2.1.zip 
>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>>> changepassword-sa-3.2.1-part2.zip 
>>>>>
>>>>> Thanks,
>>>>> Sandeep.
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>   
>>>>>       
>>>>>           
>>>>>> Hi Sandeep,
>>>>>> I can't deploy the sa you append here, get error
>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0" 
>>>>>> encoding="UTF-8"?>
>>>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
>>>>>> version="1.0">
>>>>>> <jbi-task-result>
>>>>>> <frmwk-task-result>
>>>>>> <frmwk-task-result-details>
>>>>>> <task-result-details>
>>>>>> <task-id>deploy</task-id>
>>>>>> <task-result>FAILED</task-result>
>>>>>> <message-type>ERROR</message-type>
>>>>>> <task-status-msg>
>>>>>> <msg-loc-info>
>>>>>> <loc-token/>
>>>>>> <loc-message>Unable to find jbi descriptor: 
>>>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>>> </msg-loc-info>
>>>>>> </task-status-msg>
>>>>>> </task-result-details>
>>>>>> </frmwk-task-result-details>
>>>>>> </frmwk-task-result>
>>>>>> </jbi-task-result>
>>>>>> </jbi-task>
>>>>>>
>>>>>>         at 
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>>>         at 
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>>>         at 
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>>>         at 
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>>>         at 
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>>>         at 
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>
>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>
>>>>>> Regards
>>>>>> Freeman
>>>>>>
>>>>>> sandeep reddy wrote:
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>> DEBUG 
>>>>>>>> level but not work at WARN level?
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>  
>>>>>>>    Yes and even at INFO level also.
>>>>>>>
>>>>>>> And here I am attaching SA which you can reproduce the problem with
>>>>>>> above
>>>>>>> level's in log4j.xml file.
>>>>>>>
>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>> changepassword-sa-3.2.1.zip 
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sandeep.
>>>>>>>
>>>>>>>
>>>>>>> Freeman Fang wrote:
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>>
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>> DEBUG 
>>>>>>>>> level but not work at WARN level?
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>> Is it possible that you append your sa (simplify to reproduce the 
>>>>>>>> problem and don't include your business code) which would be very 
>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Freeman
>>>>>>>> sandeep reddy wrote:
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>
>>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>>>>>> settings.
>>>>>>>>>
>>>>>>>>> <logger name="org.apache">
>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>     </logger>
>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>     </logger>
>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>     </logger>
>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>     </logger>
>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>     </logger>
>>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>     </logger>
>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>     </logger>
>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>     </logger>
>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>     </logger>
>>>>>>>>>
>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>
>>>>>>>>> ERROR - HttpComponent                  - Error processing exchange
>>>>>>>>> InOut[
>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>   status: Active
>>>>>>>>>   role: provider
>>>>>>>>>   service:
>>>>>>>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>> ]
>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>         at
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>>>>>         at
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>>>>>         at
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>>>>>         at
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>>>>>         at
>>>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>>>>>         at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>>>>>         at
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>         at
>>>>>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>>>>>         at
>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>         at
>>>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>>>>>         at
>>>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>         at
>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>         at
>>>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>>>>>         at
>>>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>>>>>         at
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>>>>>         ... 19 more
>>>>>>>>>
>>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>>> above
>>>>>>>>> settings in log4j.xml file.
>>>>>>>>> Please help me.....
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Sandeep.
>>>>>>>>>   
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>   
>>>       
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Gert Vanthienen <ge...@skynet.be>.
Manuel,

You can fix this inside ServiceMix 3.2.2 by adding stream caching to 
your camel route.  Something like from("...").streamCaching()....  You 
can also enable it at the RouteBuilder level by calling the 
streamCaching() method there.

Regards,

Gert

Manuel EVENO wrote:
> Arf, too bad ...
>
> On Thu, Jul 31, 2008 at 4:37 PM, Freeman Fang <fr...@gmail.com>wrote:
>
>   
>> No, this fix can't catch up the servicemix 3.2.2 train. :-)
>>
>> Freeman
>>
>>
>> Manuel EVENO wrote:
>>
>>     
>>> Just wait a few, 3.2.2 is being released :)
>>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>>
>>> Manuel
>>>
>>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy <sandeep.reddy@in2m.com
>>>       
>>>> wrote:
>>>>         
>>>
>>>       
>>>> Hi Freeman,
>>>>
>>>>   Thanks a lot for putting efforts to fix.And I noticed that it has been
>>>> fixed in 3.3 and 3.2.3 versions.
>>>>   But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how can
>>>> i
>>>> get those changes over
>>>>   camel 3.2.2-SNAPSHOT?
>>>>
>>>> Thanks,
>>>> Sandeep.
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>
>>>>
>>>>         
>>>>> Hi Sandeep,
>>>>>
>>>>> After dig the code, I found that this isn't a LOG level problem. The
>>>>> root reason is that StreamSource can't be read multiple times. Raise
>>>>> issue[1] to track it and will be fixed up very soon
>>>>>
>>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>>
>>>>> Freeman
>>>>>
>>>>> sandeep reddy wrote:
>>>>>
>>>>>
>>>>>           
>>>>>> Hi Freeman,
>>>>>>
>>>>>>  Even for some of our another SA also getting exceptions due to having
>>>>>> org.apache.servicemix as
>>>>>> WARN or INFO level.
>>>>>>
>>>>>>  So, how can I proceed further with not having DEBUG level for
>>>>>>
>>>>>>
>>>>>>             
>>>>> log4j.xml
>>>>>           
>>>>         
>>>>> file.
>>>>>           
>>>>>>  Waiting for your response.....please help me......
>>>>>>
>>>>>> Sandeep.
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Hi Sandeep,
>>>>>>>
>>>>>>> I just test your SA.
>>>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>>>
>>>>>>> I will investigate this issue.
>>>>>>>
>>>>>>> Regards
>>>>>>> Freeman
>>>>>>>
>>>>>>>
>>>>>>> sandeep reddy wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> Hi Freeman,
>>>>>>>>
>>>>>>>>   Thanks for the response.Since i can't upload total zip file, just
>>>>>>>> deleted
>>>>>>>> lib folder's from respective su's may be that's giving the problem.
>>>>>>>>
>>>>>>>> So, I am breaking into 2 parts.
>>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su which is
>>>>>>>> there
>>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>>
>>>>>>>> You need to take validate-su.zip file from changepassword-part2
>>>>>>>> folder
>>>>>>>> and
>>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>>
>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>>>>>               
>>>>         
>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>           
>>>>>>>> Thanks,
>>>>>>>> Sandeep.
>>>>>>>>
>>>>>>>>
>>>>>>>> Freeman Fang wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Hi Sandeep,
>>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>>> encoding="UTF-8"?>
>>>>>>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>>> version="1.0">
>>>>>>>>> <jbi-task-result>
>>>>>>>>> <frmwk-task-result>
>>>>>>>>> <frmwk-task-result-details>
>>>>>>>>> <task-result-details>
>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>>> <task-status-msg>
>>>>>>>>> <msg-loc-info>
>>>>>>>>> <loc-token/>
>>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>
>>>>
>>>>         
>>>>> </msg-loc-info>
>>>>>           
>>>>>>>>> </task-status-msg>
>>>>>>>>> </task-result-details>
>>>>>>>>> </frmwk-task-result-details>
>>>>>>>>> </frmwk-task-result>
>>>>>>>>> </jbi-task-result>
>>>>>>>>> </jbi-task>
>>>>>>>>>
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>
>>>>
>>>>         
>>>>>        at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>           
>>>>>>>>>        at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>
>>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Freeman
>>>>>>>>>
>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>>> DEBUG
>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>>   Yes and even at INFO level also.
>>>>>>>>>>
>>>>>>>>>> And here I am attaching SA which you can reproduce the problem with
>>>>>>>>>> above
>>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>>
>>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Sandeep.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>>>> DEBUG
>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>> Is it possible that you append your sa (simplify to reproduce the
>>>>>>>>>>> problem and don't include your business code) which would be very
>>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>>
>>>>>>>>>>> Regards
>>>>>>>>>>> Freeman
>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>>
>>>>>>>>>>>>       I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>>>>>>>>> settings.
>>>>>>>>>>>>
>>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>    <logger name="org.apache.camel">
>>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>    <logger name="org.springframework">
>>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>    <logger name="org.jencks">
>>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>    <logger name="org.apache.activemq">
>>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>    <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>>        <level value="ERROR"/>
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>    <logger name="org.apache.servicemix">
>>>>>>>>>>>>        <!-- To enable debug logging, replace the INFO by DEBUG
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>> -->
>>>>>>>>>>>                       
>>>>         
>>>>>        <level value="WARN"/>
>>>>>           
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>    <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>    <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>>    </logger>
>>>>>>>>>>>>
>>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>>
>>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>>> exchange
>>>>>>>>>>>> InOut[
>>>>>>>>>>>>  id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>>  status: Active
>>>>>>>>>>>>  role: provider
>>>>>>>>>>>>  service:
>>>>>>>>>>>> {
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>>>>>>>>>                       
>>>> <http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>>
>>>>
>>>>         
>>>>>  endpoint: portalEndpoint
>>>>>           
>>>>>>>>>>>>  in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>>>> ]
>>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>>        at
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>
>>>>
>>>>         
>>>>>        at java.lang.Thread.run(Thread.java:595)
>>>>>           
>>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>>        at
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>>        at
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>
>>>>
>>>>         
>>>>>        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>           
>>>>>>>>>>>>        at
>>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>>        at
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>
>>>>
>>>>         
>>>>>        at
>>>>>           
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>
>>>>
>>>>         
>>>>>        ... 19 more
>>>>>           
>>>>>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>>>>>> above
>>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>>> Please help me.....
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>                   
>>>>>>>>                 
>>>>>>>               
>>>>>>             
>>>>>
>>>>>           
>>>> --
>>>> View this message in context:
>>>>
>>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>>
>>>>         
>>>
>>>       
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Manuel EVENO <ma...@gmail.com>.
Arf, too bad ...

On Thu, Jul 31, 2008 at 4:37 PM, Freeman Fang <fr...@gmail.com>wrote:

> No, this fix can't catch up the servicemix 3.2.2 train. :-)
>
> Freeman
>
>
> Manuel EVENO wrote:
>
>> Just wait a few, 3.2.2 is being released :)
>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>
>> Manuel
>>
>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy <sandeep.reddy@in2m.com
>> >wrote:
>>
>>
>>
>>> Hi Freeman,
>>>
>>>   Thanks a lot for putting efforts to fix.And I noticed that it has been
>>> fixed in 3.3 and 3.2.3 versions.
>>>   But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how can
>>> i
>>> get those changes over
>>>   camel 3.2.2-SNAPSHOT?
>>>
>>> Thanks,
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>
>>>
>>>> Hi Sandeep,
>>>>
>>>> After dig the code, I found that this isn't a LOG level problem. The
>>>> root reason is that StreamSource can't be read multiple times. Raise
>>>> issue[1] to track it and will be fixed up very soon
>>>>
>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>
>>>> Freeman
>>>>
>>>> sandeep reddy wrote:
>>>>
>>>>
>>>>> Hi Freeman,
>>>>>
>>>>>  Even for some of our another SA also getting exceptions due to having
>>>>> org.apache.servicemix as
>>>>> WARN or INFO level.
>>>>>
>>>>>  So, how can I proceed further with not having DEBUG level for
>>>>>
>>>>>
>>>> log4j.xml
>>>
>>>
>>>> file.
>>>>>  Waiting for your response.....please help me......
>>>>>
>>>>> Sandeep.
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Hi Sandeep,
>>>>>>
>>>>>> I just test your SA.
>>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>>
>>>>>> I will investigate this issue.
>>>>>>
>>>>>> Regards
>>>>>> Freeman
>>>>>>
>>>>>>
>>>>>> sandeep reddy wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi Freeman,
>>>>>>>
>>>>>>>   Thanks for the response.Since i can't upload total zip file, just
>>>>>>> deleted
>>>>>>> lib folder's from respective su's may be that's giving the problem.
>>>>>>>
>>>>>>> So, I am breaking into 2 parts.
>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su which is
>>>>>>> there
>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>
>>>>>>> You need to take validate-su.zip file from changepassword-part2
>>>>>>> folder
>>>>>>> and
>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>
>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>
>>>
>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sandeep.
>>>>>>>
>>>>>>>
>>>>>>> Freeman Fang wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Hi Sandeep,
>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>> encoding="UTF-8"?>
>>>>>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>> version="1.0">
>>>>>>>> <jbi-task-result>
>>>>>>>> <frmwk-task-result>
>>>>>>>> <frmwk-task-result-details>
>>>>>>>> <task-result-details>
>>>>>>>> <task-id>deploy</task-id>
>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>> <task-status-msg>
>>>>>>>> <msg-loc-info>
>>>>>>>> <loc-token/>
>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>
>>>
>>>> </msg-loc-info>
>>>>>>>> </task-status-msg>
>>>>>>>> </task-result-details>
>>>>>>>> </frmwk-task-result-details>
>>>>>>>> </frmwk-task-result>
>>>>>>>> </jbi-task-result>
>>>>>>>> </jbi-task>
>>>>>>>>
>>>>>>>>        at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>
>>>
>>>>        at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>
>>>
>>>>        at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>
>>>
>>>>        at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>
>>>
>>>>        at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>
>>>
>>>>        at
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>
>>>
>>>>        at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>        at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>
>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Freeman
>>>>>>>>
>>>>>>>> sandeep reddy wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>> DEBUG
>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>   Yes and even at INFO level also.
>>>>>>>>>
>>>>>>>>> And here I am attaching SA which you can reproduce the problem with
>>>>>>>>> above
>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>
>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Sandeep.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>>> DEBUG
>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> Is it possible that you append your sa (simplify to reproduce the
>>>>>>>>>> problem and don't include your business code) which would be very
>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> Freeman
>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>
>>>>>>>>>>>       I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>>>>>>>> settings.
>>>>>>>>>>>
>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>    <logger name="org.apache.camel">
>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>    <logger name="org.springframework">
>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>    <logger name="org.jencks">
>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>    <logger name="org.apache.activemq">
>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>    <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>        <level value="ERROR"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>    <logger name="org.apache.servicemix">
>>>>>>>>>>>        <!-- To enable debug logging, replace the INFO by DEBUG
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> -->
>>>
>>>
>>>>        <level value="WARN"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>    <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>    <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>        <level value="WARN"/>
>>>>>>>>>>>    </logger>
>>>>>>>>>>>
>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>
>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>> exchange
>>>>>>>>>>> InOut[
>>>>>>>>>>>  id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>  status: Active
>>>>>>>>>>>  role: provider
>>>>>>>>>>>  service:
>>>>>>>>>>> {
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>> <http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>
>>>
>>>>  endpoint: portalEndpoint
>>>>>>>>>>>  in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>>> ]
>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>
>>>
>>>>        at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>
>>>
>>>>        at
>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>
>>>
>>>>        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>>        at
>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>
>>>
>>>>        at
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>
>>>
>>>>        ... 19 more
>>>>>>>>>>>
>>>>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>>>>> above
>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>> Please help me.....
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Sandeep.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>> --
>>> View this message in context:
>>>
>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>>
>>
>>
>>
>
>

Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.
Hi,
   I am still facing this same problem and I am not able to resolve it.
Please provide some advice on how to solve this or at least a workaround.
   This is very important so please help us.

Thanks,
Sandeep


Hi Guys,

    I am still facing the same problem. But this time it is while getting
response back (previous problem was that even request was not forwarding
from camel component. And that got resolved with having
convertToBody(DOMSource.class) after from(...) statment).

   Error log:
     com.ctc.wstx.exc.WstxIOException: Attempted read on closed stream.
    at
com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
    at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
    at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
    at
com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
    at
org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
    at
org.apache.servicemix.http.endpoints.DefaultHttpConsumerMarshaler.sendOut(DefaultHttpConsumerMarshaler.java:78)
    at
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.sendOut(HttpConsumerEndpoint.java:392)
    at
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.process(HttpConsumerEndpoint.java:273)
    at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.java:71)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

   To solve the above problem I tried same step as you suggested and added
convertToBody(DOMSource.class) after to(.......) statement. Camel
configuration with the added changes is as follows :

   
from("jbi:service:http://servicemix.in2m.com/operations/changepassword/RoutingService")
        .convertBodyTo(DOMSource.class)  //added here
        .choice()
        .when(header("userPrincipals").contains("director"))       
           
.to("jbi:service:http://servicemix.in2m.com/operations/changepassword/PortalService?mep=in-out")
            .convertBodyTo(DOMSource.class)   //added here
        .when(header("userPrincipals").contains("portal"))
           
.to("jbi:service:http://servicemix.in2m.com/operations/changepassword/DirectorService?mep=in-out")
            .convertBodyTo(DOMSource.class);   //added here

After the above changes almost all was working, but some times I am getting
following exception:

ERROR - DeadLetterChannel              - Failed delivery for exchangeId:
ID-rsandeep/34384-1218012001777/0-0. On delivery attempt: 0 caught:
org.apache.camel.RuntimeCamelException: java.io.IOException: Attempted read
on closed stream.
org.apache.camel.RuntimeCamelException: java.io.IOException: Attempted read
on closed stream.
        at
org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:411)
        at
org.apache.camel.impl.converter.InstanceMethodTypeConverter.convertTo(InstanceMethodTypeConverter.java:50)
        at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:67)
        at
org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
        at
org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
        at
org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:41)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
        at
org.apache.servicemix.camel.CamelJbiEndpoint.handleActiveProviderExchange(CamelJbiEndpoint.java:101)
        at
org.apache.servicemix.camel.CamelJbiEndpoint.process(CamelJbiEndpoint.java:74)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Attempted read on closed stream.
        at
org.apache.commons.httpclient.AutoCloseInputStream.isReadAllowed(AutoCloseInputStream.java:165)
        at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:85)
        at
org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown
Source)
        at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at
org.apache.camel.converter.jaxp.XmlConverter.toDOMSourceFromStream(XmlConverter.java:366)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:407)
        ... 26 more


-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18942096.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.
Hi Guys,

    I am still facing the same problem. But this time it is while getting
response back (previous problem was that even request was not forwarding
from camel component. And that got resolved with having
convertToBody(DOMSource.class) after from(...) statment).

   Error log:
     com.ctc.wstx.exc.WstxIOException: Attempted read on closed stream.
    at
com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
    at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
    at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
    at
com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
    at
org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
    at
org.apache.servicemix.http.endpoints.DefaultHttpConsumerMarshaler.sendOut(DefaultHttpConsumerMarshaler.java:78)
    at
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.sendOut(HttpConsumerEndpoint.java:392)
    at
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.process(HttpConsumerEndpoint.java:273)
    at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.java:71)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

   To solve the above problem I tried same step as you suggested and added
convertToBody(DOMSource.class) after to(.......) statement. Camel
configuration with the added changes is as follows :

   
from("jbi:service:http://servicemix.in2m.com/operations/changepassword/RoutingService")
        .convertBodyTo(DOMSource.class)  //added here
        .choice()
        .when(header("userPrincipals").contains("director"))       
           
.to("jbi:service:http://servicemix.in2m.com/operations/changepassword/PortalService?mep=in-out")
            .convertBodyTo(DOMSource.class)   //added here
        .when(header("userPrincipals").contains("portal"))
           
.to("jbi:service:http://servicemix.in2m.com/operations/changepassword/DirectorService?mep=in-out")
            .convertBodyTo(DOMSource.class);   //added here

After the above changes almost all was working, but some times I am getting
following exception:

ERROR - DeadLetterChannel              - Failed delivery for exchangeId:
ID-rsandeep/34384-1218012001777/0-0. On delivery attempt: 0 caught:
org.apache.camel.RuntimeCamelException: java.io.IOException: Attempted read
on closed stream.
org.apache.camel.RuntimeCamelException: java.io.IOException: Attempted read
on closed stream.
        at
org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:411)
        at
org.apache.camel.impl.converter.InstanceMethodTypeConverter.convertTo(InstanceMethodTypeConverter.java:50)
        at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:67)
        at
org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:59)
        at
org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:50)
        at
org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:41)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
        at
org.apache.servicemix.camel.CamelJbiEndpoint.handleActiveProviderExchange(CamelJbiEndpoint.java:101)
        at
org.apache.servicemix.camel.CamelJbiEndpoint.process(CamelJbiEndpoint.java:74)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Attempted read on closed stream.
        at
org.apache.commons.httpclient.AutoCloseInputStream.isReadAllowed(AutoCloseInputStream.java:165)
        at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:85)
        at
org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown
Source)
        at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at
org.apache.camel.converter.jaxp.XmlConverter.toDOMSourceFromStream(XmlConverter.java:366)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:407)
        ... 26 more

Gert Vanthienen wrote:
> 
> Sandeep,
> 
> A side effect of changing the log level to DEBUG is the conversion of 
> the message payload to a DomSource (e.g. 
> http://servicemix.apache.org/javaioioexception-stream-closed.html).  
> Without this conversion, a StreamSource is used, which is very good for 
> performance, but has the drawback of only being readable once.  With the 
> convertBodyTo() you are explicitly forcing conversion to a DOMSource in 
> your RouteBuilder (instead of relying on the DEBUG logging to do that 
> for you).
> 
> Regards,
> 
> Gert
> 
> sandeep reddy wrote:
>> Gert, Freeman
>>
>>     And finally it's working.Thanks a lot for the support.
>>     But basic question how changing log level(from DEBUG to INFO) is
>> related
>> to adding extra functionality
>>     in camel component.
>>
>> Thanks,
>> Sandeep.
>>
>>
>> Gert Vanthienen wrote:
>>   
>>> Sandeep,
>>>
>>> Could you try with a .convertBodyTo(DOMSource.class) instead of 
>>> .streamCaching() ?
>>>
>>> Gert
>>>
>>> sandeep reddy wrote:
>>>     
>>>> Hi Freeman,
>>>>
>>>>      Thanks for the reply.I tried with Gert's suggestion and there is
>>>> no
>>>> luck.It's the same error I am getting.
>>>>
>>>> Camel routing configure method:
>>>>
>>>> exception(java.lang.Throwable.class)
>>>> 		.setBody(constant("<response><status>"+ ErrorConstants.SYSTEM_ERROR
>>>> +"</status><message>System Error</message></response>"))
>>>> 	
>>>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
>>>>     	
>>>>     	exception(java.net.SocketException.class)
>>>> 		.setBody(constant("<response><status>"+ ErrorConstants.SOCKET_ERROR
>>>> +"</status><message>Connection Error</message></response>"))
>>>> 	
>>>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
>>>>     	
>>>>
>>>> from("jbi:service:http://servicemix.in2m.com/operations/changepassword/RoutingService")
>>>> .streamCaching()    // added here
>>>>    	.choice()
>>>>     	.when(header("userPrincipals").contains("xxx"))
>>>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/PortalService?mep=in-out")
>>>>
>>>> =============
>>>>
>>>> And after adding streamCaching if I deploy SA to hotdeploy
>>>> it shows WARN messages like:
>>>>
>>>> WARN  - ProcessorType                  - Interceptor
>>>> StreamCachingInterceptor currently wraps target
>>>> setBody(<response><status>3000</status><message>System
>>>> Error</message></response>) is attempting to change target
>>>> sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
>>>> new wrapping has been denied.
>>>> WARN  - ProcessorType                  - Interceptor
>>>> StreamCachingInterceptor currently wraps target
>>>> setBody(<response><status>3000</status><message>System
>>>> Error</message></response>) is attempting to change target
>>>> setBody(<response><status>4000</status><message>Connection
>>>> Error</message></response>) new wrapping has been denied.
>>>> WARN  - ProcessorType                  - Interceptor
>>>> StreamCachingInterceptor currently wraps target
>>>> setBody(<response><status>3000</status><message>System
>>>> Error</message></response>) is attempting to change target
>>>> sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
>>>> new wrapping has been denied.
>>>>
>>>> Thanks,
>>>> Sandeep.
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>   
>>>>       
>>>>> Hi Sandeep,
>>>>>
>>>>> I think you can follow Gert's suggestion,  use something like 
>>>>> from("...").streamCaching() for your camel endpoint configuration.
>>>>>
>>>>> Freeman
>>>>>
>>>>> sandeep reddy wrote:
>>>>>     
>>>>>         
>>>>>> Hi Freeman,
>>>>>>
>>>>>>    I gone through your comments(sm-1489), found that changes were
>>>>>> revert
>>>>>> back and user need to take care of source readable issue.Can you help
>>>>>> me
>>>>>> that, how can i handle or solve this issue?
>>>>>>
>>>>>> Thanks,
>>>>>> Sandeep.
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> No, this fix can't catch up the servicemix 3.2.2 train. :-)
>>>>>>>
>>>>>>> Freeman
>>>>>>>
>>>>>>>
>>>>>>> Manuel EVENO wrote:
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> Just wait a few, 3.2.2 is being released :)
>>>>>>>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>>>>>>>
>>>>>>>> Manuel
>>>>>>>>
>>>>>>>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy
>>>>>>>> <sa...@in2m.com>wrote:
>>>>>>>>
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>>> Hi Freeman,
>>>>>>>>>
>>>>>>>>>    Thanks a lot for putting efforts to fix.And I noticed that it
>>>>>>>>> has
>>>>>>>>> been
>>>>>>>>> fixed in 3.3 and 3.2.3 versions.
>>>>>>>>>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So,
>>>>>>>>> how
>>>>>>>>> can
>>>>>>>>> i
>>>>>>>>> get those changes over
>>>>>>>>>    camel 3.2.2-SNAPSHOT?
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Sandeep.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>> Hi Sandeep,
>>>>>>>>>>
>>>>>>>>>> After dig the code, I found that this isn't a LOG level problem.
>>>>>>>>>> The
>>>>>>>>>> root reason is that StreamSource can't be read multiple times.
>>>>>>>>>> Raise
>>>>>>>>>> issue[1] to track it and will be fixed up very soon
>>>>>>>>>>
>>>>>>>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>>>>>>>
>>>>>>>>>> Freeman
>>>>>>>>>>
>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>       
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>>>>>> Hi Freeman,
>>>>>>>>>>>
>>>>>>>>>>>   Even for some of our another SA also getting exceptions due to
>>>>>>>>>>> having
>>>>>>>>>>> org.apache.servicemix as
>>>>>>>>>>> WARN or INFO level.
>>>>>>>>>>>
>>>>>>>>>>>   So, how can I proceed further with not having DEBUG level for
>>>>>>>>>>>         
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>>>> log4j.xml
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>> file.
>>>>>>>>>>>   Waiting for your response.....please help me......
>>>>>>>>>>>
>>>>>>>>>>> Sandeep.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>
>>>>>>>>>>>         
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>>>>>>> Hi Sandeep,
>>>>>>>>>>>>
>>>>>>>>>>>> I just test your SA.
>>>>>>>>>>>> With LOG level INFO, I get the exception exactly as you
>>>>>>>>>>>> describe
>>>>>>>>>>>>
>>>>>>>>>>>> I will investigate this issue.
>>>>>>>>>>>>
>>>>>>>>>>>> Regards
>>>>>>>>>>>> Freeman
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>           
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>>>>>>>> Hi Freeman,
>>>>>>>>>>>>>
>>>>>>>>>>>>>    Thanks for the response.Since i can't upload total zip
>>>>>>>>>>>>> file,
>>>>>>>>>>>>> just
>>>>>>>>>>>>> deleted
>>>>>>>>>>>>> lib folder's from respective su's may be that's giving the
>>>>>>>>>>>>> problem.
>>>>>>>>>>>>>
>>>>>>>>>>>>> So, I am breaking into 2 parts.
>>>>>>>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su
>>>>>>>>>>>>> which
>>>>>>>>>>>>> is
>>>>>>>>>>>>> there
>>>>>>>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>>>>>>>
>>>>>>>>>>>>> You need to take validate-su.zip file from
>>>>>>>>>>>>> changepassword-part2
>>>>>>>>>>>>> folder
>>>>>>>>>>>>> and
>>>>>>>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>>>>>>>
>>>>>>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>>>>
>>>>>>>>>>>>>             
>>>>>>>>>>>>>                 
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>             
>>>>>>>>>>>>>                 
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>>>>>>>>>>> Hi Sandeep,
>>>>>>>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>>>>>>>> encoding="UTF-8"?>
>>>>>>>>>>>>>> <jbi-task
>>>>>>>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>>>>>>>> version="1.0">
>>>>>>>>>>>>>> <jbi-task-result>
>>>>>>>>>>>>>> <frmwk-task-result>
>>>>>>>>>>>>>> <frmwk-task-result-details>
>>>>>>>>>>>>>> <task-result-details>
>>>>>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>>>>>>>> <task-status-msg>
>>>>>>>>>>>>>> <msg-loc-info>
>>>>>>>>>>>>>> <loc-token/>
>>>>>>>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>> </msg-loc-info>
>>>>>>>>>>>>>> </task-status-msg>
>>>>>>>>>>>>>> </task-result-details>
>>>>>>>>>>>>>> </frmwk-task-result-details>
>>>>>>>>>>>>>> </frmwk-task-result>
>>>>>>>>>>>>>> </jbi-task-result>
>>>>>>>>>>>>>> </jbi-task>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>> Freeman
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>                 
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>> You mean your sa can work with logger
>>>>>>>>>>>>>>>> org.apache.servicemix"
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>>                               
>>>>>>>>>>>>>>>    Yes and even at INFO level also.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> And here I am attaching SA which you can reproduce the
>>>>>>>>>>>>>>> problem
>>>>>>>>>>>>>>> with
>>>>>>>>>>>>>>> above
>>>>>>>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                 
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>>                               
>>>>>>>>>>>>>>>>> You mean your sa can work with logger
>>>>>>>>>>>>>>>>> org.apache.servicemix"
>>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>>>>>>>>> Is it possible that you append your sa (simplify to
>>>>>>>>>>>>>>>> reproduce
>>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>>> problem and don't include your business code) which would
>>>>>>>>>>>>>>>> be
>>>>>>>>>>>>>>>> very
>>>>>>>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>>>> Freeman
>>>>>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>>                               
>>>>>>>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>        I am facing problem with log4j.xml
>>>>>>>>>>>>>>>>> settings.Deployed
>>>>>>>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this
>>>>>>>>>>>>>>>>> log4j.xml
>>>>>>>>>>>>>>>>> settings.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>     <logger
>>>>>>>>>>>>>>>>> name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>>>>>>>>>         <!-- To enable debug logging, replace the INFO by
>>>>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> -->
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>>>>>>>> exchange
>>>>>>>>>>>>>>>>> InOut[
>>>>>>>>>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>>>>>>>   status: Active
>>>>>>>>>>>>>>>>>   role: provider
>>>>>>>>>>>>>>>>>   service:
>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>>>>>>>>>   in: Unable to display: java.io.IOException: Stream
>>>>>>>>>>>>>>>>> closed
>>>>>>>>>>>>>>>>> ]
>>>>>>>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>> sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>>>>>>>>>         ... 19 more
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Since in production i can't have debug mode i need to have
>>>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>>>> above
>>>>>>>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>>>>>>>> Please help me.....
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>>                                 
>>>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>>                               
>>>>>>>>>>>>>>>                 
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>               
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>             
>>>>>>>>>>>>>                 
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>>>>>>>>>           
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>>>>>>         
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>>>>>       
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>>>> Nabble.com.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>     
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>     
>>>>>         
>>>>   
>>>>       
>>>
>>> -----
>>> ---
>>> Gert Vanthienen
>>> http://www.anova.be
>>>
>>>     
>>
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://www.anova.be
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18846693.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Gert Vanthienen <ge...@skynet.be>.
Sandeep,

A side effect of changing the log level to DEBUG is the conversion of 
the message payload to a DomSource (e.g. 
http://servicemix.apache.org/javaioioexception-stream-closed.html).  
Without this conversion, a StreamSource is used, which is very good for 
performance, but has the drawback of only being readable once.  With the 
convertBodyTo() you are explicitly forcing conversion to a DOMSource in 
your RouteBuilder (instead of relying on the DEBUG logging to do that 
for you).

Regards,

Gert

sandeep reddy wrote:
> Gert, Freeman
>
>     And finally it's working.Thanks a lot for the support.
>     But basic question how changing log level(from DEBUG to INFO) is related
> to adding extra functionality
>     in camel component.
>
> Thanks,
> Sandeep.
>
>
> Gert Vanthienen wrote:
>   
>> Sandeep,
>>
>> Could you try with a .convertBodyTo(DOMSource.class) instead of 
>> .streamCaching() ?
>>
>> Gert
>>
>> sandeep reddy wrote:
>>     
>>> Hi Freeman,
>>>
>>>      Thanks for the reply.I tried with Gert's suggestion and there is no
>>> luck.It's the same error I am getting.
>>>
>>> Camel routing configure method:
>>>
>>> exception(java.lang.Throwable.class)
>>> 		.setBody(constant("<response><status>"+ ErrorConstants.SYSTEM_ERROR
>>> +"</status><message>System Error</message></response>"))
>>> 	
>>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
>>>     	
>>>     	exception(java.net.SocketException.class)
>>> 		.setBody(constant("<response><status>"+ ErrorConstants.SOCKET_ERROR
>>> +"</status><message>Connection Error</message></response>"))
>>> 	
>>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
>>>     	
>>>
>>> from("jbi:service:http://servicemix.in2m.com/operations/changepassword/RoutingService")
>>> .streamCaching()    // added here
>>>    	.choice()
>>>     	.when(header("userPrincipals").contains("xxx"))
>>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/PortalService?mep=in-out")
>>>
>>> =============
>>>
>>> And after adding streamCaching if I deploy SA to hotdeploy
>>> it shows WARN messages like:
>>>
>>> WARN  - ProcessorType                  - Interceptor
>>> StreamCachingInterceptor currently wraps target
>>> setBody(<response><status>3000</status><message>System
>>> Error</message></response>) is attempting to change target
>>> sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
>>> new wrapping has been denied.
>>> WARN  - ProcessorType                  - Interceptor
>>> StreamCachingInterceptor currently wraps target
>>> setBody(<response><status>3000</status><message>System
>>> Error</message></response>) is attempting to change target
>>> setBody(<response><status>4000</status><message>Connection
>>> Error</message></response>) new wrapping has been denied.
>>> WARN  - ProcessorType                  - Interceptor
>>> StreamCachingInterceptor currently wraps target
>>> setBody(<response><status>3000</status><message>System
>>> Error</message></response>) is attempting to change target
>>> sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
>>> new wrapping has been denied.
>>>
>>> Thanks,
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>   
>>>       
>>>> Hi Sandeep,
>>>>
>>>> I think you can follow Gert's suggestion,  use something like 
>>>> from("...").streamCaching() for your camel endpoint configuration.
>>>>
>>>> Freeman
>>>>
>>>> sandeep reddy wrote:
>>>>     
>>>>         
>>>>> Hi Freeman,
>>>>>
>>>>>    I gone through your comments(sm-1489), found that changes were
>>>>> revert
>>>>> back and user need to take care of source readable issue.Can you help
>>>>> me
>>>>> that, how can i handle or solve this issue?
>>>>>
>>>>> Thanks,
>>>>> Sandeep.
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>   
>>>>>       
>>>>>           
>>>>>> No, this fix can't catch up the servicemix 3.2.2 train. :-)
>>>>>>
>>>>>> Freeman
>>>>>>
>>>>>>
>>>>>> Manuel EVENO wrote:
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>> Just wait a few, 3.2.2 is being released :)
>>>>>>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>>>>>>
>>>>>>> Manuel
>>>>>>>
>>>>>>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy
>>>>>>> <sa...@in2m.com>wrote:
>>>>>>>
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>>> Hi Freeman,
>>>>>>>>
>>>>>>>>    Thanks a lot for putting efforts to fix.And I noticed that it has
>>>>>>>> been
>>>>>>>> fixed in 3.3 and 3.2.3 versions.
>>>>>>>>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how
>>>>>>>> can
>>>>>>>> i
>>>>>>>> get those changes over
>>>>>>>>    camel 3.2.2-SNAPSHOT?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Sandeep.
>>>>>>>>
>>>>>>>>
>>>>>>>> Freeman Fang wrote:
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> Hi Sandeep,
>>>>>>>>>
>>>>>>>>> After dig the code, I found that this isn't a LOG level problem.
>>>>>>>>> The
>>>>>>>>> root reason is that StreamSource can't be read multiple times.
>>>>>>>>> Raise
>>>>>>>>> issue[1] to track it and will be fixed up very soon
>>>>>>>>>
>>>>>>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>>>>>>
>>>>>>>>> Freeman
>>>>>>>>>
>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>>>> Hi Freeman,
>>>>>>>>>>
>>>>>>>>>>   Even for some of our another SA also getting exceptions due to
>>>>>>>>>> having
>>>>>>>>>> org.apache.servicemix as
>>>>>>>>>> WARN or INFO level.
>>>>>>>>>>
>>>>>>>>>>   So, how can I proceed further with not having DEBUG level for
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>> log4j.xml
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>> file.
>>>>>>>>>>   Waiting for your response.....please help me......
>>>>>>>>>>
>>>>>>>>>> Sandeep.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>>> Hi Sandeep,
>>>>>>>>>>>
>>>>>>>>>>> I just test your SA.
>>>>>>>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>>>>>>>
>>>>>>>>>>> I will investigate this issue.
>>>>>>>>>>>
>>>>>>>>>>> Regards
>>>>>>>>>>> Freeman
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>>> Hi Freeman,
>>>>>>>>>>>>
>>>>>>>>>>>>    Thanks for the response.Since i can't upload total zip file,
>>>>>>>>>>>> just
>>>>>>>>>>>> deleted
>>>>>>>>>>>> lib folder's from respective su's may be that's giving the
>>>>>>>>>>>> problem.
>>>>>>>>>>>>
>>>>>>>>>>>> So, I am breaking into 2 parts.
>>>>>>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su
>>>>>>>>>>>> which
>>>>>>>>>>>> is
>>>>>>>>>>>> there
>>>>>>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>>>>>>
>>>>>>>>>>>> You need to take validate-su.zip file from changepassword-part2
>>>>>>>>>>>> folder
>>>>>>>>>>>> and
>>>>>>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>>>>>>
>>>>>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>>>
>>>>>>>>>>>>             
>>>>>>>>>>>>                 
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>             
>>>>>>>>>>>>                 
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>>>>>>> Hi Sandeep,
>>>>>>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>>>>>>> encoding="UTF-8"?>
>>>>>>>>>>>>> <jbi-task
>>>>>>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>>>>>>> version="1.0">
>>>>>>>>>>>>> <jbi-task-result>
>>>>>>>>>>>>> <frmwk-task-result>
>>>>>>>>>>>>> <frmwk-task-result-details>
>>>>>>>>>>>>> <task-result-details>
>>>>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>>>>>>> <task-status-msg>
>>>>>>>>>>>>> <msg-loc-info>
>>>>>>>>>>>>> <loc-token/>
>>>>>>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>>>>>>
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>> </msg-loc-info>
>>>>>>>>>>>>> </task-status-msg>
>>>>>>>>>>>>> </task-result-details>
>>>>>>>>>>>>> </frmwk-task-result-details>
>>>>>>>>>>>>> </frmwk-task-result>
>>>>>>>>>>>>> </jbi-task-result>
>>>>>>>>>>>>> </jbi-task>
>>>>>>>>>>>>>
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>>>>
>>>>>>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards
>>>>>>>>>>>>> Freeman
>>>>>>>>>>>>>
>>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>                 
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix"
>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>                               
>>>>>>>>>>>>>>    Yes and even at INFO level also.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> And here I am attaching SA which you can reproduce the problem
>>>>>>>>>>>>>> with
>>>>>>>>>>>>>> above
>>>>>>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                 
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>                               
>>>>>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix"
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>>>>>>>>> Is it possible that you append your sa (simplify to reproduce
>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>> problem and don't include your business code) which would be
>>>>>>>>>>>>>>> very
>>>>>>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>>> Freeman
>>>>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>                               
>>>>>>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this
>>>>>>>>>>>>>>>> log4j.xml
>>>>>>>>>>>>>>>> settings.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>>>>>>>>         <!-- To enable debug logging, replace the INFO by
>>>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> -->
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>>>>>>> exchange
>>>>>>>>>>>>>>>> InOut[
>>>>>>>>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>>>>>>   status: Active
>>>>>>>>>>>>>>>>   role: provider
>>>>>>>>>>>>>>>>   service:
>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>>>>>>>> ]
>>>>>>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>> sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>>>>>>>>>         ... 19 more
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Since in production i can't have debug mode i need to have
>>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>>> above
>>>>>>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>>>>>>> Please help me.....
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>>>                                 
>>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>>                               
>>>>>>>>>>>>>>                 
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>               
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>>>>>>             
>>>>>>>>>>>>                 
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>>>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>>>>>
>>>>>>>>
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>   
>>>       
>>
>> -----
>> ---
>> Gert Vanthienen
>> http://www.anova.be
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.
Gert, Freeman

    And finally it's working.Thanks a lot for the support.
    But basic question how changing log level(from DEBUG to INFO) is related
to adding extra functionality
    in camel component.

Thanks,
Sandeep.


Gert Vanthienen wrote:
> 
> Sandeep,
> 
> Could you try with a .convertBodyTo(DOMSource.class) instead of 
> .streamCaching() ?
> 
> Gert
> 
> sandeep reddy wrote:
>> Hi Freeman,
>>
>>      Thanks for the reply.I tried with Gert's suggestion and there is no
>> luck.It's the same error I am getting.
>>
>> Camel routing configure method:
>>
>> exception(java.lang.Throwable.class)
>> 		.setBody(constant("<response><status>"+ ErrorConstants.SYSTEM_ERROR
>> +"</status><message>System Error</message></response>"))
>> 	
>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
>>     	
>>     	exception(java.net.SocketException.class)
>> 		.setBody(constant("<response><status>"+ ErrorConstants.SOCKET_ERROR
>> +"</status><message>Connection Error</message></response>"))
>> 	
>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
>>     	
>>
>> from("jbi:service:http://servicemix.in2m.com/operations/changepassword/RoutingService")
>> .streamCaching()    // added here
>>    	.choice()
>>     	.when(header("userPrincipals").contains("xxx"))
>> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/PortalService?mep=in-out")
>>
>> =============
>>
>> And after adding streamCaching if I deploy SA to hotdeploy
>> it shows WARN messages like:
>>
>> WARN  - ProcessorType                  - Interceptor
>> StreamCachingInterceptor currently wraps target
>> setBody(<response><status>3000</status><message>System
>> Error</message></response>) is attempting to change target
>> sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
>> new wrapping has been denied.
>> WARN  - ProcessorType                  - Interceptor
>> StreamCachingInterceptor currently wraps target
>> setBody(<response><status>3000</status><message>System
>> Error</message></response>) is attempting to change target
>> setBody(<response><status>4000</status><message>Connection
>> Error</message></response>) new wrapping has been denied.
>> WARN  - ProcessorType                  - Interceptor
>> StreamCachingInterceptor currently wraps target
>> setBody(<response><status>3000</status><message>System
>> Error</message></response>) is attempting to change target
>> sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
>> new wrapping has been denied.
>>
>> Thanks,
>> Sandeep.
>>
>>
>> Freeman Fang wrote:
>>   
>>> Hi Sandeep,
>>>
>>> I think you can follow Gert's suggestion,  use something like 
>>> from("...").streamCaching() for your camel endpoint configuration.
>>>
>>> Freeman
>>>
>>> sandeep reddy wrote:
>>>     
>>>> Hi Freeman,
>>>>
>>>>    I gone through your comments(sm-1489), found that changes were
>>>> revert
>>>> back and user need to take care of source readable issue.Can you help
>>>> me
>>>> that, how can i handle or solve this issue?
>>>>
>>>> Thanks,
>>>> Sandeep.
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>   
>>>>       
>>>>> No, this fix can't catch up the servicemix 3.2.2 train. :-)
>>>>>
>>>>> Freeman
>>>>>
>>>>>
>>>>> Manuel EVENO wrote:
>>>>>     
>>>>>         
>>>>>> Just wait a few, 3.2.2 is being released :)
>>>>>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>>>>>
>>>>>> Manuel
>>>>>>
>>>>>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy
>>>>>> <sa...@in2m.com>wrote:
>>>>>>
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> Hi Freeman,
>>>>>>>
>>>>>>>    Thanks a lot for putting efforts to fix.And I noticed that it has
>>>>>>> been
>>>>>>> fixed in 3.3 and 3.2.3 versions.
>>>>>>>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how
>>>>>>> can
>>>>>>> i
>>>>>>> get those changes over
>>>>>>>    camel 3.2.2-SNAPSHOT?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sandeep.
>>>>>>>
>>>>>>>
>>>>>>> Freeman Fang wrote:
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> Hi Sandeep,
>>>>>>>>
>>>>>>>> After dig the code, I found that this isn't a LOG level problem.
>>>>>>>> The
>>>>>>>> root reason is that StreamSource can't be read multiple times.
>>>>>>>> Raise
>>>>>>>> issue[1] to track it and will be fixed up very soon
>>>>>>>>
>>>>>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>>>>>
>>>>>>>> Freeman
>>>>>>>>
>>>>>>>> sandeep reddy wrote:
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>>> Hi Freeman,
>>>>>>>>>
>>>>>>>>>   Even for some of our another SA also getting exceptions due to
>>>>>>>>> having
>>>>>>>>> org.apache.servicemix as
>>>>>>>>> WARN or INFO level.
>>>>>>>>>
>>>>>>>>>   So, how can I proceed further with not having DEBUG level for
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>> log4j.xml
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>> file.
>>>>>>>>>   Waiting for your response.....please help me......
>>>>>>>>>
>>>>>>>>> Sandeep.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>> Hi Sandeep,
>>>>>>>>>>
>>>>>>>>>> I just test your SA.
>>>>>>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>>>>>>
>>>>>>>>>> I will investigate this issue.
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> Freeman
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>>>>>> Hi Freeman,
>>>>>>>>>>>
>>>>>>>>>>>    Thanks for the response.Since i can't upload total zip file,
>>>>>>>>>>> just
>>>>>>>>>>> deleted
>>>>>>>>>>> lib folder's from respective su's may be that's giving the
>>>>>>>>>>> problem.
>>>>>>>>>>>
>>>>>>>>>>> So, I am breaking into 2 parts.
>>>>>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su
>>>>>>>>>>> which
>>>>>>>>>>> is
>>>>>>>>>>> there
>>>>>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>>>>>
>>>>>>>>>>> You need to take validate-su.zip file from changepassword-part2
>>>>>>>>>>> folder
>>>>>>>>>>> and
>>>>>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>>>>>
>>>>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>>
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Sandeep.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>>>>>>> Hi Sandeep,
>>>>>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>>>>>> encoding="UTF-8"?>
>>>>>>>>>>>> <jbi-task
>>>>>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>>>>>> version="1.0">
>>>>>>>>>>>> <jbi-task-result>
>>>>>>>>>>>> <frmwk-task-result>
>>>>>>>>>>>> <frmwk-task-result-details>
>>>>>>>>>>>> <task-result-details>
>>>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>>>>>> <task-status-msg>
>>>>>>>>>>>> <msg-loc-info>
>>>>>>>>>>>> <loc-token/>
>>>>>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>>>>>
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>> </msg-loc-info>
>>>>>>>>>>>> </task-status-msg>
>>>>>>>>>>>> </task-result-details>
>>>>>>>>>>>> </frmwk-task-result-details>
>>>>>>>>>>>> </frmwk-task-result>
>>>>>>>>>>>> </jbi-task-result>
>>>>>>>>>>>> </jbi-task>
>>>>>>>>>>>>
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>>>
>>>>>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>>>>>
>>>>>>>>>>>> Regards
>>>>>>>>>>>> Freeman
>>>>>>>>>>>>
>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>>>>>>>>                 
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix"
>>>>>>>>>>>>>> at
>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>    Yes and even at INFO level also.
>>>>>>>>>>>>>
>>>>>>>>>>>>> And here I am attaching SA which you can reproduce the problem
>>>>>>>>>>>>> with
>>>>>>>>>>>>> above
>>>>>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>>>>>
>>>>>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>                 
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix"
>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>> Is it possible that you append your sa (simplify to reproduce
>>>>>>>>>>>>>> the
>>>>>>>>>>>>>> problem and don't include your business code) which would be
>>>>>>>>>>>>>> very
>>>>>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>> Freeman
>>>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this
>>>>>>>>>>>>>>> log4j.xml
>>>>>>>>>>>>>>> settings.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>>>>>>>         <!-- To enable debug logging, replace the INFO by
>>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> -->
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>>>>>> exchange
>>>>>>>>>>>>>>> InOut[
>>>>>>>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>>>>>   status: Active
>>>>>>>>>>>>>>>   role: provider
>>>>>>>>>>>>>>>   service:
>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>>>>>>> ]
>>>>>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>> sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>>>>>>>>>         ... 19 more
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Since in production i can't have debug mode i need to have
>>>>>>>>>>>>>>> the
>>>>>>>>>>>>>>> above
>>>>>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>>>>>> Please help me.....
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>>                   
>>>>>>>>>>>>>>                       
>>>>>>>>>>>>>>                           
>>>>>>>>>>>>>                 
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>>>>>>>>>               
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>>>>>>             
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>>>>>           
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>>>>         
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>     
>>>>>         
>>>>   
>>>>       
>>>
>>>     
>>
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://www.anova.be
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18810582.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Gert Vanthienen <ge...@skynet.be>.
Sandeep,

Could you try with a .convertBodyTo(DOMSource.class) instead of 
.streamCaching() ?

Gert

sandeep reddy wrote:
> Hi Freeman,
>
>      Thanks for the reply.I tried with Gert's suggestion and there is no
> luck.It's the same error I am getting.
>
> Camel routing configure method:
>
> exception(java.lang.Throwable.class)
> 		.setBody(constant("<response><status>"+ ErrorConstants.SYSTEM_ERROR
> +"</status><message>System Error</message></response>"))
> 	
> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
>     	
>     	exception(java.net.SocketException.class)
> 		.setBody(constant("<response><status>"+ ErrorConstants.SOCKET_ERROR
> +"</status><message>Connection Error</message></response>"))
> 	
> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
>     	
>
> from("jbi:service:http://servicemix.in2m.com/operations/changepassword/RoutingService")
> .streamCaching()    // added here
>    	.choice()
>     	.when(header("userPrincipals").contains("xxx"))
> .to("jbi:service:http://servicemix.in2m.com/operations/changepassword/PortalService?mep=in-out")
>
> =============
>
> And after adding streamCaching if I deploy SA to hotdeploy
> it shows WARN messages like:
>
> WARN  - ProcessorType                  - Interceptor
> StreamCachingInterceptor currently wraps target
> setBody(<response><status>3000</status><message>System
> Error</message></response>) is attempting to change target
> sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
> new wrapping has been denied.
> WARN  - ProcessorType                  - Interceptor
> StreamCachingInterceptor currently wraps target
> setBody(<response><status>3000</status><message>System
> Error</message></response>) is attempting to change target
> setBody(<response><status>4000</status><message>Connection
> Error</message></response>) new wrapping has been denied.
> WARN  - ProcessorType                  - Interceptor
> StreamCachingInterceptor currently wraps target
> setBody(<response><status>3000</status><message>System
> Error</message></response>) is attempting to change target
> sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
> new wrapping has been denied.
>
> Thanks,
> Sandeep.
>
>
> Freeman Fang wrote:
>   
>> Hi Sandeep,
>>
>> I think you can follow Gert's suggestion,  use something like 
>> from("...").streamCaching() for your camel endpoint configuration.
>>
>> Freeman
>>
>> sandeep reddy wrote:
>>     
>>> Hi Freeman,
>>>
>>>    I gone through your comments(sm-1489), found that changes were revert
>>> back and user need to take care of source readable issue.Can you help me
>>> that, how can i handle or solve this issue?
>>>
>>> Thanks,
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>   
>>>       
>>>> No, this fix can't catch up the servicemix 3.2.2 train. :-)
>>>>
>>>> Freeman
>>>>
>>>>
>>>> Manuel EVENO wrote:
>>>>     
>>>>         
>>>>> Just wait a few, 3.2.2 is being released :)
>>>>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>>>>
>>>>> Manuel
>>>>>
>>>>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy
>>>>> <sa...@in2m.com>wrote:
>>>>>
>>>>>   
>>>>>       
>>>>>           
>>>>>> Hi Freeman,
>>>>>>
>>>>>>    Thanks a lot for putting efforts to fix.And I noticed that it has
>>>>>> been
>>>>>> fixed in 3.3 and 3.2.3 versions.
>>>>>>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how
>>>>>> can
>>>>>> i
>>>>>> get those changes over
>>>>>>    camel 3.2.2-SNAPSHOT?
>>>>>>
>>>>>> Thanks,
>>>>>> Sandeep.
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>> Hi Sandeep,
>>>>>>>
>>>>>>> After dig the code, I found that this isn't a LOG level problem. The
>>>>>>> root reason is that StreamSource can't be read multiple times. Raise
>>>>>>> issue[1] to track it and will be fixed up very soon
>>>>>>>
>>>>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>>>>
>>>>>>> Freeman
>>>>>>>
>>>>>>> sandeep reddy wrote:
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>>> Hi Freeman,
>>>>>>>>
>>>>>>>>   Even for some of our another SA also getting exceptions due to
>>>>>>>> having
>>>>>>>> org.apache.servicemix as
>>>>>>>> WARN or INFO level.
>>>>>>>>
>>>>>>>>   So, how can I proceed further with not having DEBUG level for
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>> log4j.xml
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>> file.
>>>>>>>>   Waiting for your response.....please help me......
>>>>>>>>
>>>>>>>> Sandeep.
>>>>>>>>
>>>>>>>>
>>>>>>>> Freeman Fang wrote:
>>>>>>>>
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> Hi Sandeep,
>>>>>>>>>
>>>>>>>>> I just test your SA.
>>>>>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>>>>>
>>>>>>>>> I will investigate this issue.
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Freeman
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>>>> Hi Freeman,
>>>>>>>>>>
>>>>>>>>>>    Thanks for the response.Since i can't upload total zip file,
>>>>>>>>>> just
>>>>>>>>>> deleted
>>>>>>>>>> lib folder's from respective su's may be that's giving the
>>>>>>>>>> problem.
>>>>>>>>>>
>>>>>>>>>> So, I am breaking into 2 parts.
>>>>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su which
>>>>>>>>>> is
>>>>>>>>>> there
>>>>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>>>>
>>>>>>>>>> You need to take validate-su.zip file from changepassword-part2
>>>>>>>>>> folder
>>>>>>>>>> and
>>>>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>>>>
>>>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Sandeep.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>>> Hi Sandeep,
>>>>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>>>>> encoding="UTF-8"?>
>>>>>>>>>>> <jbi-task
>>>>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>>>>> version="1.0">
>>>>>>>>>>> <jbi-task-result>
>>>>>>>>>>> <frmwk-task-result>
>>>>>>>>>>> <frmwk-task-result-details>
>>>>>>>>>>> <task-result-details>
>>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>>>>> <task-status-msg>
>>>>>>>>>>> <msg-loc-info>
>>>>>>>>>>> <loc-token/>
>>>>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>>>>
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>> </msg-loc-info>
>>>>>>>>>>> </task-status-msg>
>>>>>>>>>>> </task-result-details>
>>>>>>>>>>> </frmwk-task-result-details>
>>>>>>>>>>> </frmwk-task-result>
>>>>>>>>>>> </jbi-task-result>
>>>>>>>>>>> </jbi-task>
>>>>>>>>>>>
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>>
>>>>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>>>>
>>>>>>>>>>> Regards
>>>>>>>>>>> Freeman
>>>>>>>>>>>
>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>>>                 
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>>>>>>    Yes and even at INFO level also.
>>>>>>>>>>>>
>>>>>>>>>>>> And here I am attaching SA which you can reproduce the problem
>>>>>>>>>>>> with
>>>>>>>>>>>> above
>>>>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>>>>
>>>>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                 
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix"
>>>>>>>>>>>>>> at
>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>>>>>>>>> Is it possible that you append your sa (simplify to reproduce
>>>>>>>>>>>>> the
>>>>>>>>>>>>> problem and don't include your business code) which would be
>>>>>>>>>>>>> very
>>>>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards
>>>>>>>>>>>>> Freeman
>>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this
>>>>>>>>>>>>>> log4j.xml
>>>>>>>>>>>>>> settings.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>>>>>>         <!-- To enable debug logging, replace the INFO by
>>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> -->
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>>>>> exchange
>>>>>>>>>>>>>> InOut[
>>>>>>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>>>>   status: Active
>>>>>>>>>>>>>>   role: provider
>>>>>>>>>>>>>>   service:
>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>>>>>> ]
>>>>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>> sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         at
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>>>>>>>>>         ... 19 more
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>>>>>>>> above
>>>>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>>>>> Please help me.....
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>                     
>>>>>>>>>>>>>>                         
>>>>>>>>>>>>>>                             
>>>>>>>>>>>>>                   
>>>>>>>>>>>>>                       
>>>>>>>>>>>>>                           
>>>>>>>>>>>>                 
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>   
>>>       
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.
Hi Freeman,

     Thanks for the reply.I tried with Gert's suggestion and there is no
luck.It's the same error I am getting.

Camel routing configure method:

exception(java.lang.Throwable.class)
		.setBody(constant("<response><status>"+ ErrorConstants.SYSTEM_ERROR
+"</status><message>System Error</message></response>"))
	
.to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
    	
    	exception(java.net.SocketException.class)
		.setBody(constant("<response><status>"+ ErrorConstants.SOCKET_ERROR
+"</status><message>Connection Error</message></response>"))
	
.to("jbi:service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out");
    	

from("jbi:service:http://servicemix.in2m.com/operations/changepassword/RoutingService")
.streamCaching()    // added here
   	.choice()
    	.when(header("userPrincipals").contains("xxx"))
.to("jbi:service:http://servicemix.in2m.com/operations/changepassword/PortalService?mep=in-out")

=============

And after adding streamCaching if I deploy SA to hotdeploy
it shows WARN messages like:

WARN  - ProcessorType                  - Interceptor
StreamCachingInterceptor currently wraps target
setBody(<response><status>3000</status><message>System
Error</message></response>) is attempting to change target
sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
new wrapping has been denied.
WARN  - ProcessorType                  - Interceptor
StreamCachingInterceptor currently wraps target
setBody(<response><status>3000</status><message>System
Error</message></response>) is attempting to change target
setBody(<response><status>4000</status><message>Connection
Error</message></response>) new wrapping has been denied.
WARN  - ProcessorType                  - Interceptor
StreamCachingInterceptor currently wraps target
setBody(<response><status>3000</status><message>System
Error</message></response>) is attempting to change target
sendTo(Endpoint[service:http://servicemix.in2m.com/operations/changepassword/ResponseGeneratorService?mep=in-out])
new wrapping has been denied.

Thanks,
Sandeep.


Freeman Fang wrote:
> 
> Hi Sandeep,
> 
> I think you can follow Gert's suggestion,  use something like 
> from("...").streamCaching() for your camel endpoint configuration.
> 
> Freeman
> 
> sandeep reddy wrote:
>> Hi Freeman,
>>
>>    I gone through your comments(sm-1489), found that changes were revert
>> back and user need to take care of source readable issue.Can you help me
>> that, how can i handle or solve this issue?
>>
>> Thanks,
>> Sandeep.
>>
>>
>> Freeman Fang wrote:
>>   
>>> No, this fix can't catch up the servicemix 3.2.2 train. :-)
>>>
>>> Freeman
>>>
>>>
>>> Manuel EVENO wrote:
>>>     
>>>> Just wait a few, 3.2.2 is being released :)
>>>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>>>
>>>> Manuel
>>>>
>>>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy
>>>> <sa...@in2m.com>wrote:
>>>>
>>>>   
>>>>       
>>>>> Hi Freeman,
>>>>>
>>>>>    Thanks a lot for putting efforts to fix.And I noticed that it has
>>>>> been
>>>>> fixed in 3.3 and 3.2.3 versions.
>>>>>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how
>>>>> can
>>>>> i
>>>>> get those changes over
>>>>>    camel 3.2.2-SNAPSHOT?
>>>>>
>>>>> Thanks,
>>>>> Sandeep.
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>     
>>>>>         
>>>>>> Hi Sandeep,
>>>>>>
>>>>>> After dig the code, I found that this isn't a LOG level problem. The
>>>>>> root reason is that StreamSource can't be read multiple times. Raise
>>>>>> issue[1] to track it and will be fixed up very soon
>>>>>>
>>>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>>>
>>>>>> Freeman
>>>>>>
>>>>>> sandeep reddy wrote:
>>>>>>       
>>>>>>           
>>>>>>> Hi Freeman,
>>>>>>>
>>>>>>>   Even for some of our another SA also getting exceptions due to
>>>>>>> having
>>>>>>> org.apache.servicemix as
>>>>>>> WARN or INFO level.
>>>>>>>
>>>>>>>   So, how can I proceed further with not having DEBUG level for
>>>>>>>         
>>>>>>>             
>>>>> log4j.xml
>>>>>     
>>>>>         
>>>>>>> file.
>>>>>>>   Waiting for your response.....please help me......
>>>>>>>
>>>>>>> Sandeep.
>>>>>>>
>>>>>>>
>>>>>>> Freeman Fang wrote:
>>>>>>>
>>>>>>>         
>>>>>>>             
>>>>>>>> Hi Sandeep,
>>>>>>>>
>>>>>>>> I just test your SA.
>>>>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>>>>
>>>>>>>> I will investigate this issue.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Freeman
>>>>>>>>
>>>>>>>>
>>>>>>>> sandeep reddy wrote:
>>>>>>>>
>>>>>>>>           
>>>>>>>>               
>>>>>>>>> Hi Freeman,
>>>>>>>>>
>>>>>>>>>    Thanks for the response.Since i can't upload total zip file,
>>>>>>>>> just
>>>>>>>>> deleted
>>>>>>>>> lib folder's from respective su's may be that's giving the
>>>>>>>>> problem.
>>>>>>>>>
>>>>>>>>> So, I am breaking into 2 parts.
>>>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su which
>>>>>>>>> is
>>>>>>>>> there
>>>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>>>
>>>>>>>>> You need to take validate-su.zip file from changepassword-part2
>>>>>>>>> folder
>>>>>>>>> and
>>>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>>>
>>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>
>>>>>>>>>             
>>>>>>>>>                 
>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>>>     
>>>>>         
>>>>>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Sandeep.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>>> Hi Sandeep,
>>>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>>>> encoding="UTF-8"?>
>>>>>>>>>> <jbi-task
>>>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>>>> version="1.0">
>>>>>>>>>> <jbi-task-result>
>>>>>>>>>> <frmwk-task-result>
>>>>>>>>>> <frmwk-task-result-details>
>>>>>>>>>> <task-result-details>
>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>>>> <task-status-msg>
>>>>>>>>>> <msg-loc-info>
>>>>>>>>>> <loc-token/>
>>>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>>     
>>>>>         
>>>>>>>>>> </msg-loc-info>
>>>>>>>>>> </task-status-msg>
>>>>>>>>>> </task-result-details>
>>>>>>>>>> </frmwk-task-result-details>
>>>>>>>>>> </frmwk-task-result>
>>>>>>>>>> </jbi-task-result>
>>>>>>>>>> </jbi-task>
>>>>>>>>>>
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>>     
>>>>>         
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>>     
>>>>>         
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>>     
>>>>>         
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>>     
>>>>>         
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>>     
>>>>>         
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>>     
>>>>>         
>>>>>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>
>>>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> Freeman
>>>>>>>>>>
>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>>>> DEBUG
>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>>>>>>    Yes and even at INFO level also.
>>>>>>>>>>>
>>>>>>>>>>> And here I am attaching SA which you can reproduce the problem
>>>>>>>>>>> with
>>>>>>>>>>> above
>>>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>>>
>>>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Sandeep.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix"
>>>>>>>>>>>>> at
>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>>>>>>>>> Is it possible that you append your sa (simplify to reproduce
>>>>>>>>>>>> the
>>>>>>>>>>>> problem and don't include your business code) which would be
>>>>>>>>>>>> very
>>>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>>>
>>>>>>>>>>>> Regards
>>>>>>>>>>>> Freeman
>>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>>>
>>>>>>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this
>>>>>>>>>>>>> log4j.xml
>>>>>>>>>>>>> settings.
>>>>>>>>>>>>>
>>>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>>>>>         <!-- To enable debug logging, replace the INFO by
>>>>>>>>>>>>> DEBUG
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> -->
>>>>>     
>>>>>         
>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>>
>>>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>>>
>>>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>>>> exchange
>>>>>>>>>>>>> InOut[
>>>>>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>>>   status: Active
>>>>>>>>>>>>>   role: provider
>>>>>>>>>>>>>   service:
>>>>>>>>>>>>> {
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>>>     
>>>>>         
>>>>>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>>>>> ]
>>>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>> sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>>>>         at
>>>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         at
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>     
>>>>>         
>>>>>>>>>>>>>         ... 19 more
>>>>>>>>>>>>>
>>>>>>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>>>>>>> above
>>>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>>>> Please help me.....
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>                     
>>>>>>>>>>>>>                         
>>>>>>>>>>>>                   
>>>>>>>>>>>>                       
>>>>>>>>>>>                 
>>>>>>>>>>>                     
>>>>>>>>>>               
>>>>>>>>>>                   
>>>>>>>>>             
>>>>>>>>>                 
>>>>>>>>           
>>>>>>>>               
>>>>>>>         
>>>>>>>             
>>>>>>       
>>>>>>           
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>>   
>>>>       
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18808685.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Freeman Fang <fr...@gmail.com>.
Hi Sandeep,

I think you can follow Gert's suggestion,  use something like 
from("...").streamCaching() for your camel endpoint configuration.

Freeman

sandeep reddy wrote:
> Hi Freeman,
>
>    I gone through your comments(sm-1489), found that changes were revert
> back and user need to take care of source readable issue.Can you help me
> that, how can i handle or solve this issue?
>
> Thanks,
> Sandeep.
>
>
> Freeman Fang wrote:
>   
>> No, this fix can't catch up the servicemix 3.2.2 train. :-)
>>
>> Freeman
>>
>>
>> Manuel EVENO wrote:
>>     
>>> Just wait a few, 3.2.2 is being released :)
>>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>>
>>> Manuel
>>>
>>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy
>>> <sa...@in2m.com>wrote:
>>>
>>>   
>>>       
>>>> Hi Freeman,
>>>>
>>>>    Thanks a lot for putting efforts to fix.And I noticed that it has
>>>> been
>>>> fixed in 3.3 and 3.2.3 versions.
>>>>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how can
>>>> i
>>>> get those changes over
>>>>    camel 3.2.2-SNAPSHOT?
>>>>
>>>> Thanks,
>>>> Sandeep.
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>     
>>>>         
>>>>> Hi Sandeep,
>>>>>
>>>>> After dig the code, I found that this isn't a LOG level problem. The
>>>>> root reason is that StreamSource can't be read multiple times. Raise
>>>>> issue[1] to track it and will be fixed up very soon
>>>>>
>>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>>
>>>>> Freeman
>>>>>
>>>>> sandeep reddy wrote:
>>>>>       
>>>>>           
>>>>>> Hi Freeman,
>>>>>>
>>>>>>   Even for some of our another SA also getting exceptions due to
>>>>>> having
>>>>>> org.apache.servicemix as
>>>>>> WARN or INFO level.
>>>>>>
>>>>>>   So, how can I proceed further with not having DEBUG level for
>>>>>>         
>>>>>>             
>>>> log4j.xml
>>>>     
>>>>         
>>>>>> file.
>>>>>>   Waiting for your response.....please help me......
>>>>>>
>>>>>> Sandeep.
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>
>>>>>>         
>>>>>>             
>>>>>>> Hi Sandeep,
>>>>>>>
>>>>>>> I just test your SA.
>>>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>>>
>>>>>>> I will investigate this issue.
>>>>>>>
>>>>>>> Regards
>>>>>>> Freeman
>>>>>>>
>>>>>>>
>>>>>>> sandeep reddy wrote:
>>>>>>>
>>>>>>>           
>>>>>>>               
>>>>>>>> Hi Freeman,
>>>>>>>>
>>>>>>>>    Thanks for the response.Since i can't upload total zip file, just
>>>>>>>> deleted
>>>>>>>> lib folder's from respective su's may be that's giving the problem.
>>>>>>>>
>>>>>>>> So, I am breaking into 2 parts.
>>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su which
>>>>>>>> is
>>>>>>>> there
>>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>>
>>>>>>>> You need to take validate-su.zip file from changepassword-part2
>>>>>>>> folder
>>>>>>>> and
>>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>>
>>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>
>>>>>>>>             
>>>>>>>>                 
>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>>     
>>>>         
>>>>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Sandeep.
>>>>>>>>
>>>>>>>>
>>>>>>>> Freeman Fang wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> Hi Sandeep,
>>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>>> encoding="UTF-8"?>
>>>>>>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>>> version="1.0">
>>>>>>>>> <jbi-task-result>
>>>>>>>>> <frmwk-task-result>
>>>>>>>>> <frmwk-task-result-details>
>>>>>>>>> <task-result-details>
>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>>> <task-status-msg>
>>>>>>>>> <msg-loc-info>
>>>>>>>>> <loc-token/>
>>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>>
>>>>>>>>>               
>>>>>>>>>                   
>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>     
>>>>         
>>>>>>>>> </msg-loc-info>
>>>>>>>>> </task-status-msg>
>>>>>>>>> </task-result-details>
>>>>>>>>> </frmwk-task-result-details>
>>>>>>>>> </frmwk-task-result>
>>>>>>>>> </jbi-task-result>
>>>>>>>>> </jbi-task>
>>>>>>>>>
>>>>>>>>>         at
>>>>>>>>>
>>>>>>>>>               
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>     
>>>>         
>>>>>>>>>         at
>>>>>>>>>
>>>>>>>>>               
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>     
>>>>         
>>>>>>>>>         at
>>>>>>>>>
>>>>>>>>>               
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>     
>>>>         
>>>>>>>>>         at
>>>>>>>>>
>>>>>>>>>               
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>     
>>>>         
>>>>>>>>>         at
>>>>>>>>>
>>>>>>>>>               
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>     
>>>>         
>>>>>>>>>         at
>>>>>>>>>
>>>>>>>>>               
>>>>>>>>>                   
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>     
>>>>         
>>>>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>
>>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Freeman
>>>>>>>>>
>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>>> DEBUG
>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>    Yes and even at INFO level also.
>>>>>>>>>>
>>>>>>>>>> And here I am attaching SA which you can reproduce the problem
>>>>>>>>>> with
>>>>>>>>>> above
>>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>>
>>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Sandeep.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>>>> DEBUG
>>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>>>>> Is it possible that you append your sa (simplify to reproduce the
>>>>>>>>>>> problem and don't include your business code) which would be very
>>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>>
>>>>>>>>>>> Regards
>>>>>>>>>>> Freeman
>>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>>
>>>>>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this
>>>>>>>>>>>> log4j.xml
>>>>>>>>>>>> settings.
>>>>>>>>>>>>
>>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> -->
>>>>     
>>>>         
>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>>     </logger>
>>>>>>>>>>>>
>>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>>
>>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>>> exchange
>>>>>>>>>>>> InOut[
>>>>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>>   status: Active
>>>>>>>>>>>>   role: provider
>>>>>>>>>>>>   service:
>>>>>>>>>>>> {
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>>     
>>>>         
>>>>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>>>> ]
>>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>     
>>>>         
>>>>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>     
>>>>         
>>>>>>>>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>>>         at
>>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>     
>>>>         
>>>>>>>>>>>>         at
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>     
>>>>         
>>>>>>>>>>>>         ... 19 more
>>>>>>>>>>>>
>>>>>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>>>>>> above
>>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>>> Please help me.....
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Sandeep.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                     
>>>>>>>>>>>>                         
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>>             
>>>>>>>>                 
>>>>>>>           
>>>>>>>               
>>>>>>         
>>>>>>             
>>>>>       
>>>>>           
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.
Hi Freeman,

   I gone through your comments(sm-1489), found that changes were revert
back and user need to take care of source readable issue.Can you help me
that, how can i handle or solve this issue?

Thanks,
Sandeep.


Freeman Fang wrote:
> 
> No, this fix can't catch up the servicemix 3.2.2 train. :-)
> 
> Freeman
> 
> 
> Manuel EVENO wrote:
>> Just wait a few, 3.2.2 is being released :)
>> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>>
>> Manuel
>>
>> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy
>> <sa...@in2m.com>wrote:
>>
>>   
>>> Hi Freeman,
>>>
>>>    Thanks a lot for putting efforts to fix.And I noticed that it has
>>> been
>>> fixed in 3.3 and 3.2.3 versions.
>>>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how can
>>> i
>>> get those changes over
>>>    camel 3.2.2-SNAPSHOT?
>>>
>>> Thanks,
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>     
>>>> Hi Sandeep,
>>>>
>>>> After dig the code, I found that this isn't a LOG level problem. The
>>>> root reason is that StreamSource can't be read multiple times. Raise
>>>> issue[1] to track it and will be fixed up very soon
>>>>
>>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>>
>>>> Freeman
>>>>
>>>> sandeep reddy wrote:
>>>>       
>>>>> Hi Freeman,
>>>>>
>>>>>   Even for some of our another SA also getting exceptions due to
>>>>> having
>>>>> org.apache.servicemix as
>>>>> WARN or INFO level.
>>>>>
>>>>>   So, how can I proceed further with not having DEBUG level for
>>>>>         
>>> log4j.xml
>>>     
>>>>> file.
>>>>>   Waiting for your response.....please help me......
>>>>>
>>>>> Sandeep.
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>
>>>>>         
>>>>>> Hi Sandeep,
>>>>>>
>>>>>> I just test your SA.
>>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>>
>>>>>> I will investigate this issue.
>>>>>>
>>>>>> Regards
>>>>>> Freeman
>>>>>>
>>>>>>
>>>>>> sandeep reddy wrote:
>>>>>>
>>>>>>           
>>>>>>> Hi Freeman,
>>>>>>>
>>>>>>>    Thanks for the response.Since i can't upload total zip file, just
>>>>>>> deleted
>>>>>>> lib folder's from respective su's may be that's giving the problem.
>>>>>>>
>>>>>>> So, I am breaking into 2 parts.
>>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su which
>>>>>>> is
>>>>>>> there
>>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>>
>>>>>>> You need to take validate-su.zip file from changepassword-part2
>>>>>>> folder
>>>>>>> and
>>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>>
>>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>
>>>>>>>             
>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>     
>>>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sandeep.
>>>>>>>
>>>>>>>
>>>>>>> Freeman Fang wrote:
>>>>>>>
>>>>>>>
>>>>>>>             
>>>>>>>> Hi Sandeep,
>>>>>>>> I can't deploy the sa you append here, get error
>>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>>> encoding="UTF-8"?>
>>>>>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>>> version="1.0">
>>>>>>>> <jbi-task-result>
>>>>>>>> <frmwk-task-result>
>>>>>>>> <frmwk-task-result-details>
>>>>>>>> <task-result-details>
>>>>>>>> <task-id>deploy</task-id>
>>>>>>>> <task-result>FAILED</task-result>
>>>>>>>> <message-type>ERROR</message-type>
>>>>>>>> <task-status-msg>
>>>>>>>> <msg-loc-info>
>>>>>>>> <loc-token/>
>>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>>
>>>>>>>>               
>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>     
>>>>>>>> </msg-loc-info>
>>>>>>>> </task-status-msg>
>>>>>>>> </task-result-details>
>>>>>>>> </frmwk-task-result-details>
>>>>>>>> </frmwk-task-result>
>>>>>>>> </jbi-task-result>
>>>>>>>> </jbi-task>
>>>>>>>>
>>>>>>>>         at
>>>>>>>>
>>>>>>>>               
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>     
>>>>>>>>         at
>>>>>>>>
>>>>>>>>               
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>     
>>>>>>>>         at
>>>>>>>>
>>>>>>>>               
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>     
>>>>>>>>         at
>>>>>>>>
>>>>>>>>               
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>     
>>>>>>>>         at
>>>>>>>>
>>>>>>>>               
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>     
>>>>>>>>         at
>>>>>>>>
>>>>>>>>               
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>     
>>>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>
>>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Freeman
>>>>>>>>
>>>>>>>> sandeep reddy wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>               
>>>>>>>>>
>>>>>>>>>                 
>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>> DEBUG
>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>>>>>    Yes and even at INFO level also.
>>>>>>>>>
>>>>>>>>> And here I am attaching SA which you can reproduce the problem
>>>>>>>>> with
>>>>>>>>> above
>>>>>>>>> level's in log4j.xml file.
>>>>>>>>>
>>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Sandeep.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                 
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>>> DEBUG
>>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                     
>>>>>>>>>> Is it possible that you append your sa (simplify to reproduce the
>>>>>>>>>> problem and don't include your business code) which would be very
>>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> Freeman
>>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>>
>>>>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this
>>>>>>>>>>> log4j.xml
>>>>>>>>>>> settings.
>>>>>>>>>>>
>>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG
>>>>>>>>>>>                     
>>> -->
>>>     
>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>>     </logger>
>>>>>>>>>>>
>>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>>
>>>>>>>>>>> ERROR - HttpComponent                  - Error processing
>>>>>>>>>>> exchange
>>>>>>>>>>> InOut[
>>>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>>   status: Active
>>>>>>>>>>>   role: provider
>>>>>>>>>>>   service:
>>>>>>>>>>> {
>>>>>>>>>>>                     
>>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>>     
>>>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>>> ]
>>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>     
>>>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>     
>>>>>>>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>>         at
>>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>     
>>>>>>>>>>>         at
>>>>>>>>>>>
>>>>>>>>>>>                     
>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>     
>>>>>>>>>>>         ... 19 more
>>>>>>>>>>>
>>>>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>>>>> above
>>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>>> Please help me.....
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Sandeep.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                     
>>>>>>>>>>
>>>>>>>>>>                   
>>>>>>>>>
>>>>>>>>>                 
>>>>>>>>               
>>>>>>>             
>>>>>>           
>>>>>         
>>>>
>>>>       
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18807953.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Freeman Fang <fr...@gmail.com>.
No, this fix can't catch up the servicemix 3.2.2 train. :-)

Freeman


Manuel EVENO wrote:
> Just wait a few, 3.2.2 is being released :)
> http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244
>
> Manuel
>
> On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy <sa...@in2m.com>wrote:
>
>   
>> Hi Freeman,
>>
>>    Thanks a lot for putting efforts to fix.And I noticed that it has been
>> fixed in 3.3 and 3.2.3 versions.
>>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how can i
>> get those changes over
>>    camel 3.2.2-SNAPSHOT?
>>
>> Thanks,
>> Sandeep.
>>
>>
>> Freeman Fang wrote:
>>     
>>> Hi Sandeep,
>>>
>>> After dig the code, I found that this isn't a LOG level problem. The
>>> root reason is that StreamSource can't be read multiple times. Raise
>>> issue[1] to track it and will be fixed up very soon
>>>
>>> [1]https://issues.apache.org/activemq/browse/SM-1489
>>>
>>> Freeman
>>>
>>> sandeep reddy wrote:
>>>       
>>>> Hi Freeman,
>>>>
>>>>   Even for some of our another SA also getting exceptions due to having
>>>> org.apache.servicemix as
>>>> WARN or INFO level.
>>>>
>>>>   So, how can I proceed further with not having DEBUG level for
>>>>         
>> log4j.xml
>>     
>>>> file.
>>>>   Waiting for your response.....please help me......
>>>>
>>>> Sandeep.
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>
>>>>         
>>>>> Hi Sandeep,
>>>>>
>>>>> I just test your SA.
>>>>> With LOG level INFO, I get the exception exactly as you describe
>>>>>
>>>>> I will investigate this issue.
>>>>>
>>>>> Regards
>>>>> Freeman
>>>>>
>>>>>
>>>>> sandeep reddy wrote:
>>>>>
>>>>>           
>>>>>> Hi Freeman,
>>>>>>
>>>>>>    Thanks for the response.Since i can't upload total zip file, just
>>>>>> deleted
>>>>>> lib folder's from respective su's may be that's giving the problem.
>>>>>>
>>>>>> So, I am breaking into 2 parts.
>>>>>> changepassword-sa-3.2.1 contains all su's except validate-su which is
>>>>>> there
>>>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>>>
>>>>>> You need to take validate-su.zip file from changepassword-part2 folder
>>>>>> and
>>>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>>>
>>>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>>>> changepassword-sa-3.2.1.zip
>>>>>>
>>>>>>             
>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>     
>>>>>> changepassword-sa-3.2.1-part2.zip
>>>>>>
>>>>>> Thanks,
>>>>>> Sandeep.
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Hi Sandeep,
>>>>>>> I can't deploy the sa you append here, get error
>>>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
>>>>>>> encoding="UTF-8"?>
>>>>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>>>>>> version="1.0">
>>>>>>> <jbi-task-result>
>>>>>>> <frmwk-task-result>
>>>>>>> <frmwk-task-result-details>
>>>>>>> <task-result-details>
>>>>>>> <task-id>deploy</task-id>
>>>>>>> <task-result>FAILED</task-result>
>>>>>>> <message-type>ERROR</message-type>
>>>>>>> <task-status-msg>
>>>>>>> <msg-loc-info>
>>>>>>> <loc-token/>
>>>>>>> <loc-message>Unable to find jbi descriptor:
>>>>>>>
>>>>>>>               
>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>     
>>>>>>> </msg-loc-info>
>>>>>>> </task-status-msg>
>>>>>>> </task-result-details>
>>>>>>> </frmwk-task-result-details>
>>>>>>> </frmwk-task-result>
>>>>>>> </jbi-task-result>
>>>>>>> </jbi-task>
>>>>>>>
>>>>>>>         at
>>>>>>>
>>>>>>>               
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>     
>>>>>>>         at
>>>>>>>
>>>>>>>               
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>     
>>>>>>>         at
>>>>>>>
>>>>>>>               
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>     
>>>>>>>         at
>>>>>>>
>>>>>>>               
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>     
>>>>>>>         at
>>>>>>>
>>>>>>>               
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>     
>>>>>>>         at
>>>>>>>
>>>>>>>               
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>     
>>>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>>>
>>>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>>>
>>>>>>> Regards
>>>>>>> Freeman
>>>>>>>
>>>>>>> sandeep reddy wrote:
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>> DEBUG
>>>>>>>>> level but not work at WARN level?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>    Yes and even at INFO level also.
>>>>>>>>
>>>>>>>> And here I am attaching SA which you can reproduce the problem with
>>>>>>>> above
>>>>>>>> level's in log4j.xml file.
>>>>>>>>
>>>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>>>> changepassword-sa-3.2.1.zip
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Sandeep.
>>>>>>>>
>>>>>>>>
>>>>>>>> Freeman Fang wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>>>> DEBUG
>>>>>>>>>> level but not work at WARN level?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>> Is it possible that you append your sa (simplify to reproduce the
>>>>>>>>> problem and don't include your business code) which would be very
>>>>>>>>> helpful for us to investigate this problem.
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Freeman
>>>>>>>>> sandeep reddy wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>> Hi servicemix-guys,
>>>>>>>>>>
>>>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>>>>>>> settings.
>>>>>>>>>>
>>>>>>>>>> <logger name="org.apache">
>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>     <logger name="org.springframework">
>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>     <logger name="org.jencks">
>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>>>         <level value="ERROR"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG
>>>>>>>>>>                     
>> -->
>>     
>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>>>         <level value="WARN"/>
>>>>>>>>>>     </logger>
>>>>>>>>>>
>>>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>>>
>>>>>>>>>> ERROR - HttpComponent                  - Error processing exchange
>>>>>>>>>> InOut[
>>>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>>>   status: Active
>>>>>>>>>>   role: provider
>>>>>>>>>>   service:
>>>>>>>>>> {
>>>>>>>>>>                     
>> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
>>     
>>>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>>>> ]
>>>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>     
>>>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>     
>>>>>>>>>>         at
>>>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>     
>>>>>>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>>>         at
>>>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>     
>>>>>>>>>>         at
>>>>>>>>>>
>>>>>>>>>>                     
>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>     
>>>>>>>>>>         ... 19 more
>>>>>>>>>>
>>>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>>>> above
>>>>>>>>>> settings in log4j.xml file.
>>>>>>>>>> Please help me.....
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Sandeep.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>
>>>>>>>>                 
>>>>>>>               
>>>>>>             
>>>>>           
>>>>         
>>>
>>>       
>> --
>> View this message in context:
>> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Manuel EVENO <ma...@gmail.com>.
Just wait a few, 3.2.2 is being released :)
http://cwiki.apache.org/SM/discussion-forums.html#nabble-td18683244

Manuel

On Thu, Jul 31, 2008 at 2:42 PM, sandeep reddy <sa...@in2m.com>wrote:

>
> Hi Freeman,
>
>    Thanks a lot for putting efforts to fix.And I noticed that it has been
> fixed in 3.3 and 3.2.3 versions.
>    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how can i
> get those changes over
>    camel 3.2.2-SNAPSHOT?
>
> Thanks,
> Sandeep.
>
>
> Freeman Fang wrote:
> >
> > Hi Sandeep,
> >
> > After dig the code, I found that this isn't a LOG level problem. The
> > root reason is that StreamSource can't be read multiple times. Raise
> > issue[1] to track it and will be fixed up very soon
> >
> > [1]https://issues.apache.org/activemq/browse/SM-1489
> >
> > Freeman
> >
> > sandeep reddy wrote:
> >> Hi Freeman,
> >>
> >>   Even for some of our another SA also getting exceptions due to having
> >> org.apache.servicemix as
> >> WARN or INFO level.
> >>
> >>   So, how can I proceed further with not having DEBUG level for
> log4j.xml
> >> file.
> >>   Waiting for your response.....please help me......
> >>
> >> Sandeep.
> >>
> >>
> >> Freeman Fang wrote:
> >>
> >>> Hi Sandeep,
> >>>
> >>> I just test your SA.
> >>> With LOG level INFO, I get the exception exactly as you describe
> >>>
> >>> I will investigate this issue.
> >>>
> >>> Regards
> >>> Freeman
> >>>
> >>>
> >>> sandeep reddy wrote:
> >>>
> >>>> Hi Freeman,
> >>>>
> >>>>    Thanks for the response.Since i can't upload total zip file, just
> >>>> deleted
> >>>> lib folder's from respective su's may be that's giving the problem.
> >>>>
> >>>> So, I am breaking into 2 parts.
> >>>> changepassword-sa-3.2.1 contains all su's except validate-su which is
> >>>> there
> >>>> is in changepassword-sa-3.2.1-sa-part2-zip.
> >>>>
> >>>> You need to take validate-su.zip file from changepassword-part2 folder
> >>>> and
> >>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
> >>>>
> >>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
> >>>> changepassword-sa-3.2.1.zip
> >>>>
> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
> >>>> changepassword-sa-3.2.1-part2.zip
> >>>>
> >>>> Thanks,
> >>>> Sandeep.
> >>>>
> >>>>
> >>>> Freeman Fang wrote:
> >>>>
> >>>>
> >>>>> Hi Sandeep,
> >>>>> I can't deploy the sa you append here, get error
> >>>>> javax.jbi.management.DeploymentException: <?xml version="1.0"
> >>>>> encoding="UTF-8"?>
> >>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> >>>>> version="1.0">
> >>>>> <jbi-task-result>
> >>>>> <frmwk-task-result>
> >>>>> <frmwk-task-result-details>
> >>>>> <task-result-details>
> >>>>> <task-id>deploy</task-id>
> >>>>> <task-result>FAILED</task-result>
> >>>>> <message-type>ERROR</message-type>
> >>>>> <task-status-msg>
> >>>>> <msg-loc-info>
> >>>>> <loc-token/>
> >>>>> <loc-message>Unable to find jbi descriptor:
> >>>>>
> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
> >>>>> </msg-loc-info>
> >>>>> </task-status-msg>
> >>>>> </task-result-details>
> >>>>> </frmwk-task-result-details>
> >>>>> </frmwk-task-result>
> >>>>> </jbi-task-result>
> >>>>> </jbi-task>
> >>>>>
> >>>>>         at
> >>>>>
> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
> >>>>>         at
> >>>>>
> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
> >>>>>         at
> >>>>>
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
> >>>>>         at
> >>>>>
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
> >>>>>         at
> >>>>>
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
> >>>>>         at
> >>>>>
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
> >>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
> >>>>>         at java.util.TimerThread.run(Timer.java:462)
> >>>>>
> >>>>> Seems the package isn't correct, it's the one you used ?
> >>>>>
> >>>>> Regards
> >>>>> Freeman
> >>>>>
> >>>>> sandeep reddy wrote:
> >>>>>
> >>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> You mean your sa can work with logger org.apache.servicemix" at
> >>>>>>> DEBUG
> >>>>>>> level but not work at WARN level?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>    Yes and even at INFO level also.
> >>>>>>
> >>>>>> And here I am attaching SA which you can reproduce the problem with
> >>>>>> above
> >>>>>> level's in log4j.xml file.
> >>>>>>
> >>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
> >>>>>> changepassword-sa-3.2.1.zip
> >>>>>>
> >>>>>> Thanks,
> >>>>>> Sandeep.
> >>>>>>
> >>>>>>
> >>>>>> Freeman Fang wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
> >>>>>>>> DEBUG
> >>>>>>>> level but not work at WARN level?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> Is it possible that you append your sa (simplify to reproduce the
> >>>>>>> problem and don't include your business code) which would be very
> >>>>>>> helpful for us to investigate this problem.
> >>>>>>>
> >>>>>>> Regards
> >>>>>>> Freeman
> >>>>>>> sandeep reddy wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Hi servicemix-guys,
> >>>>>>>>
> >>>>>>>>        I am facing problem with log4j.xml settings.Deployed
> >>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
> >>>>>>>> settings.
> >>>>>>>>
> >>>>>>>> <logger name="org.apache">
> >>>>>>>>         <level value="WARN"/>
> >>>>>>>>     </logger>
> >>>>>>>>     <logger name="org.apache.camel">
> >>>>>>>>         <level value="WARN"/>
> >>>>>>>>     </logger>
> >>>>>>>>     <logger name="org.springframework">
> >>>>>>>>         <level value="WARN"/>
> >>>>>>>>     </logger>
> >>>>>>>>     <logger name="org.jencks">
> >>>>>>>>         <level value="WARN"/>
> >>>>>>>>     </logger>
> >>>>>>>>     <logger name="org.apache.activemq">
> >>>>>>>>         <level value="WARN"/>
> >>>>>>>>     </logger>
> >>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
> >>>>>>>>         <level value="ERROR"/>
> >>>>>>>>     </logger>
> >>>>>>>>     <logger name="org.apache.servicemix">
> >>>>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG
> -->
> >>>>>>>>         <level value="WARN"/>
> >>>>>>>>     </logger>
> >>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
> >>>>>>>>         <level value="WARN"/>
> >>>>>>>>     </logger>
> >>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
> >>>>>>>>         <level value="WARN"/>
> >>>>>>>>     </logger>
> >>>>>>>>
> >>>>>>>> After hitting request it fails with below Errors.
> >>>>>>>>
> >>>>>>>> ERROR - HttpComponent                  - Error processing exchange
> >>>>>>>> InOut[
> >>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
> >>>>>>>>   status: Active
> >>>>>>>>   role: provider
> >>>>>>>>   service:
> >>>>>>>> {
> http://servicemix.in2m.com/operations/changepassword}PortalService<http://servicemix.in2m.com/operations/changepassword%7DPortalService>
> >>>>>>>>   endpoint: portalEndpoint
> >>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
> >>>>>>>> ]
> >>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
> >>>>>>>>         at
> >>>>>>>>
> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
> >>>>>>>>         at
> >>>>>>>>
> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
> >>>>>>>>         at
> >>>>>>>>
> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
> >>>>>>>>         at
> >>>>>>>>
> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
> >>>>>>>>         at
> >>>>>>>>
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
> >>>>>>>>         at
> >>>>>>>>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> >>>>>>>>         at
> >>>>>>>>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> >>>>>>>>         at java.lang.Thread.run(Thread.java:595)
> >>>>>>>> Caused by: java.io.IOException: Stream closed
> >>>>>>>>         at
> >>>>>>>>
> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
> >>>>>>>>         at
> >>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
> >>>>>>>>         at
> >>>>>>>>
> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
> >>>>>>>>         at
> >>>>>>>>
> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
> >>>>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
> >>>>>>>>         at
> >>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
> >>>>>>>>         at
> >>>>>>>>
> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
> >>>>>>>>         at
> >>>>>>>>
> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
> >>>>>>>>         at
> >>>>>>>>
> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
> >>>>>>>>         ... 19 more
> >>>>>>>>
> >>>>>>>> Since in production i can't have debug mode i need to have the
> >>>>>>>> above
> >>>>>>>> settings in log4j.xml file.
> >>>>>>>> Please help me.....
> >>>>>>>>
> >>>>>>>> Thanks,
> >>>>>>>> Sandeep.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.
Hi Freeman,

    Thanks a lot for putting efforts to fix.And I noticed that it has been
fixed in 3.3 and 3.2.3 versions.
    But I am using servicemix 3.2.1 with camel 3.2.2-SNAPSHOT.So, how can i
get those changes over  
    camel 3.2.2-SNAPSHOT?

Thanks,
Sandeep.


Freeman Fang wrote:
> 
> Hi Sandeep,
> 
> After dig the code, I found that this isn't a LOG level problem. The 
> root reason is that StreamSource can't be read multiple times. Raise 
> issue[1] to track it and will be fixed up very soon
> 
> [1]https://issues.apache.org/activemq/browse/SM-1489
> 
> Freeman
> 
> sandeep reddy wrote:
>> Hi Freeman,
>>
>>   Even for some of our another SA also getting exceptions due to having
>> org.apache.servicemix as 
>> WARN or INFO level.
>>
>>   So, how can I proceed further with not having DEBUG level for log4j.xml
>> file.
>>   Waiting for your response.....please help me......
>>
>> Sandeep.
>>
>>
>> Freeman Fang wrote:
>>   
>>> Hi Sandeep,
>>>
>>> I just test your SA.
>>> With LOG level INFO, I get the exception exactly as you describe
>>>
>>> I will investigate this issue.
>>>
>>> Regards
>>> Freeman
>>>
>>>
>>> sandeep reddy wrote:
>>>     
>>>> Hi Freeman,
>>>>
>>>>    Thanks for the response.Since i can't upload total zip file, just
>>>> deleted
>>>> lib folder's from respective su's may be that's giving the problem.
>>>>
>>>> So, I am breaking into 2 parts.
>>>> changepassword-sa-3.2.1 contains all su's except validate-su which is
>>>> there
>>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>>
>>>> You need to take validate-su.zip file from changepassword-part2 folder
>>>> and
>>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>>
>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>>> changepassword-sa-3.2.1.zip 
>>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>>> changepassword-sa-3.2.1-part2.zip 
>>>>
>>>> Thanks,
>>>> Sandeep.
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>   
>>>>       
>>>>> Hi Sandeep,
>>>>> I can't deploy the sa you append here, get error
>>>>> javax.jbi.management.DeploymentException: <?xml version="1.0" 
>>>>> encoding="UTF-8"?>
>>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
>>>>> version="1.0">
>>>>> <jbi-task-result>
>>>>> <frmwk-task-result>
>>>>> <frmwk-task-result-details>
>>>>> <task-result-details>
>>>>> <task-id>deploy</task-id>
>>>>> <task-result>FAILED</task-result>
>>>>> <message-type>ERROR</message-type>
>>>>> <task-status-msg>
>>>>> <msg-loc-info>
>>>>> <loc-token/>
>>>>> <loc-message>Unable to find jbi descriptor: 
>>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>>> </msg-loc-info>
>>>>> </task-status-msg>
>>>>> </task-result-details>
>>>>> </frmwk-task-result-details>
>>>>> </frmwk-task-result>
>>>>> </jbi-task-result>
>>>>> </jbi-task>
>>>>>
>>>>>         at 
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>>         at 
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>>         at 
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>>         at 
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>>         at 
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>>         at 
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>>
>>>>> Seems the package isn't correct, it's the one you used ?
>>>>>
>>>>> Regards
>>>>> Freeman
>>>>>
>>>>> sandeep reddy wrote:
>>>>>     
>>>>>         
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>> DEBUG 
>>>>>>> level but not work at WARN level?
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>  
>>>>>>    Yes and even at INFO level also.
>>>>>>
>>>>>> And here I am attaching SA which you can reproduce the problem with
>>>>>> above
>>>>>> level's in log4j.xml file.
>>>>>>
>>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>>> changepassword-sa-3.2.1.zip 
>>>>>>
>>>>>> Thanks,
>>>>>> Sandeep.
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> Hi,
>>>>>>>
>>>>>>>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> You mean your sa can work with logger org.apache.servicemix" at
>>>>>>>> DEBUG 
>>>>>>>> level but not work at WARN level?
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>> Is it possible that you append your sa (simplify to reproduce the 
>>>>>>> problem and don't include your business code) which would be very 
>>>>>>> helpful for us to investigate this problem.
>>>>>>>
>>>>>>> Regards
>>>>>>> Freeman
>>>>>>> sandeep reddy wrote:
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> Hi servicemix-guys,
>>>>>>>>
>>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>>>>> settings.
>>>>>>>>
>>>>>>>> <logger name="org.apache">
>>>>>>>>         <level value="WARN"/>
>>>>>>>>     </logger>
>>>>>>>>     <logger name="org.apache.camel">
>>>>>>>>         <level value="WARN"/>
>>>>>>>>     </logger>
>>>>>>>>     <logger name="org.springframework">
>>>>>>>>         <level value="WARN"/>
>>>>>>>>     </logger>
>>>>>>>>     <logger name="org.jencks">
>>>>>>>>         <level value="WARN"/>
>>>>>>>>     </logger>
>>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>>         <level value="WARN"/>
>>>>>>>>     </logger>
>>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>>         <level value="ERROR"/>
>>>>>>>>     </logger>
>>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>>>>>>         <level value="WARN"/>
>>>>>>>>     </logger>
>>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>>         <level value="WARN"/>
>>>>>>>>     </logger>
>>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>>         <level value="WARN"/>
>>>>>>>>     </logger>
>>>>>>>>
>>>>>>>> After hitting request it fails with below Errors.
>>>>>>>>
>>>>>>>> ERROR - HttpComponent                  - Error processing exchange
>>>>>>>> InOut[
>>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>>   status: Active
>>>>>>>>   role: provider
>>>>>>>>   service:
>>>>>>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>>>>>>   endpoint: portalEndpoint
>>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>>> ]
>>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>>         at
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>>>>         at
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>>>>         at
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>>>>         at
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>>>>         at
>>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>>>>         at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>>>>         at
>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>>         at
>>>>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>>>>         at
>>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>>         at
>>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>>>>         at
>>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>>         at
>>>>>>>> java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>>         at
>>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>>>>         at
>>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>>>>         at
>>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>>>>         ... 19 more
>>>>>>>>
>>>>>>>> Since in production i can't have debug mode i need to have the
>>>>>>>> above
>>>>>>>> settings in log4j.xml file.
>>>>>>>> Please help me.....
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Sandeep.
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>     
>>>>>         
>>>>   
>>>>       
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18753724.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Freeman Fang <fr...@gmail.com>.
Hi Sandeep,

After dig the code, I found that this isn't a LOG level problem. The 
root reason is that StreamSource can't be read multiple times. Raise 
issue[1] to track it and will be fixed up very soon

[1]https://issues.apache.org/activemq/browse/SM-1489

Freeman

sandeep reddy wrote:
> Hi Freeman,
>
>   Even for some of our another SA also getting exceptions due to having
> org.apache.servicemix as 
> WARN or INFO level.
>
>   So, how can I proceed further with not having DEBUG level for log4j.xml
> file.
>   Waiting for your response.....please help me......
>
> Sandeep.
>
>
> Freeman Fang wrote:
>   
>> Hi Sandeep,
>>
>> I just test your SA.
>> With LOG level INFO, I get the exception exactly as you describe
>>
>> I will investigate this issue.
>>
>> Regards
>> Freeman
>>
>>
>> sandeep reddy wrote:
>>     
>>> Hi Freeman,
>>>
>>>    Thanks for the response.Since i can't upload total zip file, just
>>> deleted
>>> lib folder's from respective su's may be that's giving the problem.
>>>
>>> So, I am breaking into 2 parts.
>>> changepassword-sa-3.2.1 contains all su's except validate-su which is
>>> there
>>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>>
>>> You need to take validate-su.zip file from changepassword-part2 folder
>>> and
>>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>>
>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>>> changepassword-sa-3.2.1.zip 
>>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>>> changepassword-sa-3.2.1-part2.zip 
>>>
>>> Thanks,
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>   
>>>       
>>>> Hi Sandeep,
>>>> I can't deploy the sa you append here, get error
>>>> javax.jbi.management.DeploymentException: <?xml version="1.0" 
>>>> encoding="UTF-8"?>
>>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
>>>> version="1.0">
>>>> <jbi-task-result>
>>>> <frmwk-task-result>
>>>> <frmwk-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>FAILED</task-result>
>>>> <message-type>ERROR</message-type>
>>>> <task-status-msg>
>>>> <msg-loc-info>
>>>> <loc-token/>
>>>> <loc-message>Unable to find jbi descriptor: 
>>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>>> </msg-loc-info>
>>>> </task-status-msg>
>>>> </task-result-details>
>>>> </frmwk-task-result-details>
>>>> </frmwk-task-result>
>>>> </jbi-task-result>
>>>> </jbi-task>
>>>>
>>>>         at 
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>>         at 
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>>         at 
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>>         at 
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>>         at 
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>>         at 
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>         at java.util.TimerThread.run(Timer.java:462)
>>>>
>>>> Seems the package isn't correct, it's the one you used ?
>>>>
>>>> Regards
>>>> Freeman
>>>>
>>>> sandeep reddy wrote:
>>>>     
>>>>         
>>>>>   
>>>>>       
>>>>>           
>>>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>>>> level but not work at WARN level?
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>  
>>>>>    Yes and even at INFO level also.
>>>>>
>>>>> And here I am attaching SA which you can reproduce the problem with
>>>>> above
>>>>> level's in log4j.xml file.
>>>>>
>>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>>> changepassword-sa-3.2.1.zip 
>>>>>
>>>>> Thanks,
>>>>> Sandeep.
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>   
>>>>>       
>>>>>           
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>>>>> level but not work at WARN level?
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>> Is it possible that you append your sa (simplify to reproduce the 
>>>>>> problem and don't include your business code) which would be very 
>>>>>> helpful for us to investigate this problem.
>>>>>>
>>>>>> Regards
>>>>>> Freeman
>>>>>> sandeep reddy wrote:
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>> Hi servicemix-guys,
>>>>>>>
>>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>>>> settings.
>>>>>>>
>>>>>>> <logger name="org.apache">
>>>>>>>         <level value="WARN"/>
>>>>>>>     </logger>
>>>>>>>     <logger name="org.apache.camel">
>>>>>>>         <level value="WARN"/>
>>>>>>>     </logger>
>>>>>>>     <logger name="org.springframework">
>>>>>>>         <level value="WARN"/>
>>>>>>>     </logger>
>>>>>>>     <logger name="org.jencks">
>>>>>>>         <level value="WARN"/>
>>>>>>>     </logger>
>>>>>>>     <logger name="org.apache.activemq">
>>>>>>>         <level value="WARN"/>
>>>>>>>     </logger>
>>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>>         <level value="ERROR"/>
>>>>>>>     </logger>
>>>>>>>     <logger name="org.apache.servicemix">
>>>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>>>>>         <level value="WARN"/>
>>>>>>>     </logger>
>>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>>         <level value="WARN"/>
>>>>>>>     </logger>
>>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>>         <level value="WARN"/>
>>>>>>>     </logger>
>>>>>>>
>>>>>>> After hitting request it fails with below Errors.
>>>>>>>
>>>>>>> ERROR - HttpComponent                  - Error processing exchange
>>>>>>> InOut[
>>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>>   status: Active
>>>>>>>   role: provider
>>>>>>>   service:
>>>>>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>>>>>   endpoint: portalEndpoint
>>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>>> ]
>>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>>         at
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>>>         at
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>>>         at
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>>>         at
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>>>         at
>>>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>>>         at
>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>>>         at
>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>>>         at
>>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>>>         at
>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>>>         at
>>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>>>         at
>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>>>         at
>>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>>>         at
>>>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>>>         at
>>>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>>>         at
>>>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>>>         at
>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>>>         at
>>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>>>         at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>>>         at
>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>>         at
>>>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>>>         at
>>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>>         at
>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>>>         at
>>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>>         at
>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>>>         at
>>>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>>>         at
>>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>>>         ... 19 more
>>>>>>>
>>>>>>> Since in production i can't have debug mode i need to have the above
>>>>>>> settings in log4j.xml file.
>>>>>>> Please help me.....
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sandeep.
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>   
>>>       
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.

Hi Freeman,

  Even for some of our another SA also getting exceptions due to having
org.apache.servicemix as 
WARN or INFO level.

  So, how can I proceed further with not having DEBUG level for log4j.xml
file.
  Waiting for your response.....please help me......

Sandeep.


Freeman Fang wrote:
> 
> Hi Sandeep,
> 
> I just test your SA.
> With LOG level INFO, I get the exception exactly as you describe
> 
> I will investigate this issue.
> 
> Regards
> Freeman
> 
> 
> sandeep reddy wrote:
>> Hi Freeman,
>>
>>    Thanks for the response.Since i can't upload total zip file, just
>> deleted
>> lib folder's from respective su's may be that's giving the problem.
>>
>> So, I am breaking into 2 parts.
>> changepassword-sa-3.2.1 contains all su's except validate-su which is
>> there
>> is in changepassword-sa-3.2.1-sa-part2-zip.
>>
>> You need to take validate-su.zip file from changepassword-part2 folder
>> and
>> paste in changepassword-sa-3.2.1.And deploy that zip file.
>>
>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
>> changepassword-sa-3.2.1.zip 
>> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
>> changepassword-sa-3.2.1-part2.zip 
>>
>> Thanks,
>> Sandeep.
>>
>>
>> Freeman Fang wrote:
>>   
>>> Hi Sandeep,
>>> I can't deploy the sa you append here, get error
>>> javax.jbi.management.DeploymentException: <?xml version="1.0" 
>>> encoding="UTF-8"?>
>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
>>> version="1.0">
>>> <jbi-task-result>
>>> <frmwk-task-result>
>>> <frmwk-task-result-details>
>>> <task-result-details>
>>> <task-id>deploy</task-id>
>>> <task-result>FAILED</task-result>
>>> <message-type>ERROR</message-type>
>>> <task-status-msg>
>>> <msg-loc-info>
>>> <loc-token/>
>>> <loc-message>Unable to find jbi descriptor: 
>>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>>> </msg-loc-info>
>>> </task-status-msg>
>>> </task-result-details>
>>> </frmwk-task-result-details>
>>> </frmwk-task-result>
>>> </jbi-task-result>
>>> </jbi-task>
>>>
>>>         at 
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>>         at 
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>>         at 
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>>         at 
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>>         at 
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>>         at 
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>>         at java.util.TimerThread.run(Timer.java:462)
>>>
>>> Seems the package isn't correct, it's the one you used ?
>>>
>>> Regards
>>> Freeman
>>>
>>> sandeep reddy wrote:
>>>     
>>>>   
>>>>       
>>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>>> level but not work at WARN level?
>>>>>     
>>>>>         
>>>>  
>>>>    Yes and even at INFO level also.
>>>>
>>>> And here I am attaching SA which you can reproduce the problem with
>>>> above
>>>> level's in log4j.xml file.
>>>>
>>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>>> changepassword-sa-3.2.1.zip 
>>>>
>>>> Thanks,
>>>> Sandeep.
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>   
>>>>       
>>>>> Hi,
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>>>> level but not work at WARN level?
>>>>>>       
>>>>>>           
>>>>> Is it possible that you append your sa (simplify to reproduce the 
>>>>> problem and don't include your business code) which would be very 
>>>>> helpful for us to investigate this problem.
>>>>>
>>>>> Regards
>>>>> Freeman
>>>>> sandeep reddy wrote:
>>>>>     
>>>>>         
>>>>>> Hi servicemix-guys,
>>>>>>
>>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>>> settings.
>>>>>>
>>>>>> <logger name="org.apache">
>>>>>>         <level value="WARN"/>
>>>>>>     </logger>
>>>>>>     <logger name="org.apache.camel">
>>>>>>         <level value="WARN"/>
>>>>>>     </logger>
>>>>>>     <logger name="org.springframework">
>>>>>>         <level value="WARN"/>
>>>>>>     </logger>
>>>>>>     <logger name="org.jencks">
>>>>>>         <level value="WARN"/>
>>>>>>     </logger>
>>>>>>     <logger name="org.apache.activemq">
>>>>>>         <level value="WARN"/>
>>>>>>     </logger>
>>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>>         <level value="ERROR"/>
>>>>>>     </logger>
>>>>>>     <logger name="org.apache.servicemix">
>>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>>>>         <level value="WARN"/>
>>>>>>     </logger>
>>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>>         <level value="WARN"/>
>>>>>>     </logger>
>>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>>         <level value="WARN"/>
>>>>>>     </logger>
>>>>>>
>>>>>> After hitting request it fails with below Errors.
>>>>>>
>>>>>> ERROR - HttpComponent                  - Error processing exchange
>>>>>> InOut[
>>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>>   status: Active
>>>>>>   role: provider
>>>>>>   service:
>>>>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>>>>   endpoint: portalEndpoint
>>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>>> ]
>>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>>         at
>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>>         at
>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>>         at
>>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>>         at
>>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>>         at
>>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>>         at
>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>>         at
>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>>         at
>>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>>         at
>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>>         at
>>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>>         at
>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>>         at
>>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>>         at
>>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>>         at
>>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>>         at
>>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>>         at
>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>>         at
>>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>>         at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>>         at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>>> Caused by: java.io.IOException: Stream closed
>>>>>>         at
>>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>>         at
>>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>>         at
>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>>         at
>>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>>         at
>>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>>         at
>>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>>         at
>>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>>         ... 19 more
>>>>>>
>>>>>> Since in production i can't have debug mode i need to have the above
>>>>>> settings in log4j.xml file.
>>>>>> Please help me.....
>>>>>>
>>>>>> Thanks,
>>>>>> Sandeep.
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>     
>>>>>         
>>>>   
>>>>       
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18750542.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Freeman Fang <fr...@gmail.com>.
Hi Sandeep,

I just test your SA.
With LOG level INFO, I get the exception exactly as you describe

I will investigate this issue.

Regards
Freeman


sandeep reddy wrote:
> Hi Freeman,
>
>    Thanks for the response.Since i can't upload total zip file, just deleted
> lib folder's from respective su's may be that's giving the problem.
>
> So, I am breaking into 2 parts.
> changepassword-sa-3.2.1 contains all su's except validate-su which is there
> is in changepassword-sa-3.2.1-sa-part2-zip.
>
> You need to take validate-su.zip file from changepassword-part2 folder and
> paste in changepassword-sa-3.2.1.And deploy that zip file.
>
> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
> changepassword-sa-3.2.1.zip 
> http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
> changepassword-sa-3.2.1-part2.zip 
>
> Thanks,
> Sandeep.
>
>
> Freeman Fang wrote:
>   
>> Hi Sandeep,
>> I can't deploy the sa you append here, get error
>> javax.jbi.management.DeploymentException: <?xml version="1.0" 
>> encoding="UTF-8"?>
>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
>> version="1.0">
>> <jbi-task-result>
>> <frmwk-task-result>
>> <frmwk-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> <task-status-msg>
>> <msg-loc-info>
>> <loc-token/>
>> <loc-message>Unable to find jbi descriptor: 
>> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
>> </msg-loc-info>
>> </task-status-msg>
>> </task-result-details>
>> </frmwk-task-result-details>
>> </frmwk-task-result>
>> </jbi-task-result>
>> </jbi-task>
>>
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>>         at 
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>>
>> Seems the package isn't correct, it's the one you used ?
>>
>> Regards
>> Freeman
>>
>> sandeep reddy wrote:
>>     
>>>   
>>>       
>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>> level but not work at WARN level?
>>>>     
>>>>         
>>>  
>>>    Yes and even at INFO level also.
>>>
>>> And here I am attaching SA which you can reproduce the problem with above
>>> level's in log4j.xml file.
>>>
>>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>>> changepassword-sa-3.2.1.zip 
>>>
>>> Thanks,
>>> Sandeep.
>>>
>>>
>>> Freeman Fang wrote:
>>>   
>>>       
>>>> Hi,
>>>>
>>>>
>>>>     
>>>>         
>>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>>> level but not work at WARN level?
>>>>>       
>>>>>           
>>>> Is it possible that you append your sa (simplify to reproduce the 
>>>> problem and don't include your business code) which would be very 
>>>> helpful for us to investigate this problem.
>>>>
>>>> Regards
>>>> Freeman
>>>> sandeep reddy wrote:
>>>>     
>>>>         
>>>>> Hi servicemix-guys,
>>>>>
>>>>>        I am facing problem with log4j.xml settings.Deployed
>>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>>> settings.
>>>>>
>>>>> <logger name="org.apache">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.camel">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.springframework">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.jencks">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.activemq">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>>         <level value="ERROR"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix">
>>>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>>         <level value="WARN"/>
>>>>>     </logger>
>>>>>
>>>>> After hitting request it fails with below Errors.
>>>>>
>>>>> ERROR - HttpComponent                  - Error processing exchange
>>>>> InOut[
>>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>>   status: Active
>>>>>   role: provider
>>>>>   service:
>>>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>>>   endpoint: portalEndpoint
>>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>>> ]
>>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>>         at
>>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>>         at
>>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>>         at
>>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>>         at
>>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>>         at
>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>>         at
>>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>>         at
>>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>>         at
>>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>>         at
>>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>>         at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>>         at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>>         at java.lang.Thread.run(Thread.java:595)
>>>>> Caused by: java.io.IOException: Stream closed
>>>>>         at
>>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>>         at
>>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>>         at
>>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>>         at
>>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>>         at
>>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>>         at
>>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>>         at
>>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>>         ... 19 more
>>>>>
>>>>> Since in production i can't have debug mode i need to have the above
>>>>> settings in log4j.xml file.
>>>>> Please help me.....
>>>>>
>>>>> Thanks,
>>>>> Sandeep.
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>   
>>>       
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.
Hi Freeman,

   Thanks for the response.Since i can't upload total zip file, just deleted
lib folder's from respective su's may be that's giving the problem.

So, I am breaking into 2 parts.
changepassword-sa-3.2.1 contains all su's except validate-su which is there
is in changepassword-sa-3.2.1-sa-part2-zip.

You need to take validate-su.zip file from changepassword-part2 folder and
paste in changepassword-sa-3.2.1.And deploy that zip file.

http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
changepassword-sa-3.2.1.zip 
http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip
changepassword-sa-3.2.1-part2.zip 

Thanks,
Sandeep.


Freeman Fang wrote:
> 
> Hi Sandeep,
> I can't deploy the sa you append here, get error
> javax.jbi.management.DeploymentException: <?xml version="1.0" 
> encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>Unable to find jbi descriptor: 
> /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
> </msg-loc-info>
> </task-status-msg>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> </jbi-task-result>
> </jbi-task>
> 
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>         at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> 
> Seems the package isn't correct, it's the one you used ?
> 
> Regards
> Freeman
> 
> sandeep reddy wrote:
>>   
>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>> level but not work at WARN level?
>>>     
>>  
>>    Yes and even at INFO level also.
>>
>> And here I am attaching SA which you can reproduce the problem with above
>> level's in log4j.xml file.
>>
>> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
>> changepassword-sa-3.2.1.zip 
>>
>> Thanks,
>> Sandeep.
>>
>>
>> Freeman Fang wrote:
>>   
>>> Hi,
>>>
>>>
>>>     
>>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>>> level but not work at WARN level?
>>>>       
>>> Is it possible that you append your sa (simplify to reproduce the 
>>> problem and don't include your business code) which would be very 
>>> helpful for us to investigate this problem.
>>>
>>> Regards
>>> Freeman
>>> sandeep reddy wrote:
>>>     
>>>> Hi servicemix-guys,
>>>>
>>>>        I am facing problem with log4j.xml settings.Deployed
>>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>>> settings.
>>>>
>>>> <logger name="org.apache">
>>>>         <level value="WARN"/>
>>>>     </logger>
>>>>     <logger name="org.apache.camel">
>>>>         <level value="WARN"/>
>>>>     </logger>
>>>>     <logger name="org.springframework">
>>>>         <level value="WARN"/>
>>>>     </logger>
>>>>     <logger name="org.jencks">
>>>>         <level value="WARN"/>
>>>>     </logger>
>>>>     <logger name="org.apache.activemq">
>>>>         <level value="WARN"/>
>>>>     </logger>
>>>>     <logger name="org.apache.activemq.transport.discovery">
>>>>         <level value="ERROR"/>
>>>>     </logger>
>>>>     <logger name="org.apache.servicemix">
>>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>>         <level value="WARN"/>
>>>>     </logger>
>>>>     <logger name="org.apache.servicemix.jbi.config">
>>>>         <level value="WARN"/>
>>>>     </logger>
>>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>>         <level value="WARN"/>
>>>>     </logger>
>>>>
>>>> After hitting request it fails with below Errors.
>>>>
>>>> ERROR - HttpComponent                  - Error processing exchange
>>>> InOut[
>>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>>   status: Active
>>>>   role: provider
>>>>   service:
>>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>>   endpoint: portalEndpoint
>>>>   in: Unable to display: java.io.IOException: Stream closed
>>>> ]
>>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>>         at
>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>>         at
>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>>         at
>>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>>         at
>>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>>         at
>>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>>         at
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>>         at
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>>         at
>>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>>         at
>>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>>         at
>>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>>         at
>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>>         at
>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>>         at
>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>>         at
>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>>         at
>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>>         at
>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>>         at
>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>>         at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>>         at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>>         at java.lang.Thread.run(Thread.java:595)
>>>> Caused by: java.io.IOException: Stream closed
>>>>         at
>>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>>         at
>>>> java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>>         at
>>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>>         at
>>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>>         at
>>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>>         at
>>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>>         at
>>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>>         ... 19 more
>>>>
>>>> Since in production i can't have debug mode i need to have the above
>>>> settings in log4j.xml file.
>>>> Please help me.....
>>>>
>>>> Thanks,
>>>> Sandeep.
>>>>   
>>>>       
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18706673.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Freeman Fang <fr...@gmail.com>.
Hi Sandeep,
I can't deploy the sa you append here, get error
javax.jbi.management.DeploymentException: <?xml version="1.0" 
encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" 
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to find jbi descriptor: 
/local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
</msg-loc-info>
</task-status-msg>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
</jbi-task-result>
</jbi-task>

        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)

Seems the package isn't correct, it's the one you used ?

Regards
Freeman

sandeep reddy wrote:
>   
>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>> level but not work at WARN level?
>>     
>  
>    Yes and even at INFO level also.
>
> And here I am attaching SA which you can reproduce the problem with above
> level's in log4j.xml file.
>
> http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
> changepassword-sa-3.2.1.zip 
>
> Thanks,
> Sandeep.
>
>
> Freeman Fang wrote:
>   
>> Hi,
>>
>>
>>     
>>> You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>> level but not work at WARN level?
>>>       
>> Is it possible that you append your sa (simplify to reproduce the 
>> problem and don't include your business code) which would be very 
>> helpful for us to investigate this problem.
>>
>> Regards
>> Freeman
>> sandeep reddy wrote:
>>     
>>> Hi servicemix-guys,
>>>
>>>        I am facing problem with log4j.xml settings.Deployed
>>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>>> settings.
>>>
>>> <logger name="org.apache">
>>>         <level value="WARN"/>
>>>     </logger>
>>>     <logger name="org.apache.camel">
>>>         <level value="WARN"/>
>>>     </logger>
>>>     <logger name="org.springframework">
>>>         <level value="WARN"/>
>>>     </logger>
>>>     <logger name="org.jencks">
>>>         <level value="WARN"/>
>>>     </logger>
>>>     <logger name="org.apache.activemq">
>>>         <level value="WARN"/>
>>>     </logger>
>>>     <logger name="org.apache.activemq.transport.discovery">
>>>         <level value="ERROR"/>
>>>     </logger>
>>>     <logger name="org.apache.servicemix">
>>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>>         <level value="WARN"/>
>>>     </logger>
>>>     <logger name="org.apache.servicemix.jbi.config">
>>>         <level value="WARN"/>
>>>     </logger>
>>>     <logger name="org.apache.servicemix.jbi.deployment">
>>>         <level value="WARN"/>
>>>     </logger>
>>>
>>> After hitting request it fails with below Errors.
>>>
>>> ERROR - HttpComponent                  - Error processing exchange InOut[
>>>   id: ID:127.0.0.2-11b6964777a-13:1
>>>   status: Active
>>>   role: provider
>>>   service:
>>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>>   endpoint: portalEndpoint
>>>   in: Unable to display: java.io.IOException: Stream closed
>>> ]
>>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>>         at
>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>>         at
>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>>         at
>>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>>         at
>>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>>         at
>>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>>         at
>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>>         at
>>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>>         at
>>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>>         at
>>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>>         at
>>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>>         at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>         at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>         at
>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>         at
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>         at
>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>>         at
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>         at
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>         at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>         at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>         at java.lang.Thread.run(Thread.java:595)
>>> Caused by: java.io.IOException: Stream closed
>>>         at
>>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>>         at java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>>         at
>>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>>         at
>>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>>>         at
>>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>>         at
>>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>>         at
>>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>>         ... 19 more
>>>
>>> Since in production i can't have debug mode i need to have the above
>>> settings in log4j.xml file.
>>> Please help me.....
>>>
>>> Thanks,
>>> Sandeep.
>>>   
>>>       
>>
>>     
>
>   


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by sandeep reddy <sa...@in2m.com>.

>You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>level but not work at WARN level?
 
   Yes and even at INFO level also.

And here I am attaching SA which you can reproduce the problem with above
level's in log4j.xml file.

http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
changepassword-sa-3.2.1.zip 

Thanks,
Sandeep.


Freeman Fang wrote:
> 
> Hi,
> 
> 
>>You mean your sa can work with logger org.apache.servicemix" at DEBUG 
>>level but not work at WARN level?
> 
> Is it possible that you append your sa (simplify to reproduce the 
> problem and don't include your business code) which would be very 
> helpful for us to investigate this problem.
> 
> Regards
> Freeman
> sandeep reddy wrote:
>> Hi servicemix-guys,
>>
>>        I am facing problem with log4j.xml settings.Deployed
>> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
>> settings.
>>
>> <logger name="org.apache">
>>         <level value="WARN"/>
>>     </logger>
>>     <logger name="org.apache.camel">
>>         <level value="WARN"/>
>>     </logger>
>>     <logger name="org.springframework">
>>         <level value="WARN"/>
>>     </logger>
>>     <logger name="org.jencks">
>>         <level value="WARN"/>
>>     </logger>
>>     <logger name="org.apache.activemq">
>>         <level value="WARN"/>
>>     </logger>
>>     <logger name="org.apache.activemq.transport.discovery">
>>         <level value="ERROR"/>
>>     </logger>
>>     <logger name="org.apache.servicemix">
>>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>>         <level value="WARN"/>
>>     </logger>
>>     <logger name="org.apache.servicemix.jbi.config">
>>         <level value="WARN"/>
>>     </logger>
>>     <logger name="org.apache.servicemix.jbi.deployment">
>>         <level value="WARN"/>
>>     </logger>
>>
>> After hitting request it fails with below Errors.
>>
>> ERROR - HttpComponent                  - Error processing exchange InOut[
>>   id: ID:127.0.0.2-11b6964777a-13:1
>>   status: Active
>>   role: provider
>>   service:
>> {http://servicemix.in2m.com/operations/changepassword}PortalService
>>   endpoint: portalEndpoint
>>   in: Unable to display: java.io.IOException: Stream closed
>> ]
>> com.ctc.wstx.exc.WstxIOException: Stream closed
>>         at
>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>>         at
>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>>         at
>> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>>         at
>> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>>         at
>> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>>         at
>> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>>         at
>> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>>         at
>> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>>         at
>> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>>         at
>> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>         at java.lang.Thread.run(Thread.java:595)
>> Caused by: java.io.IOException: Stream closed
>>         at
>> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>>         at java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>>         at
>> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>>         at
>> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>>         at
>> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>>         at
>> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>>         at
>> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>>         ... 19 more
>>
>> Since in production i can't have debug mode i need to have the above
>> settings in log4j.xml file.
>> Please help me.....
>>
>> Thanks,
>> Sandeep.
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Pls%3AUrgent%3A%21%21%21%21-Strange-behaviour-with-log4j.xml-tp18688010p18705999.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Pls:Urgent:!!!! Strange behaviour with log4j.xml

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You mean your sa can work with logger org.apache.servicemix" at DEBUG 
level but not work at WARN level?

Is it possible that you append your sa (simplify to reproduce the 
problem and don't include your business code) which would be very 
helpful for us to investigate this problem.

Regards
Freeman
sandeep reddy wrote:
> Hi servicemix-guys,
>
>        I am facing problem with log4j.xml settings.Deployed
> changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml settings.
>
> <logger name="org.apache">
>         <level value="WARN"/>
>     </logger>
>     <logger name="org.apache.camel">
>         <level value="WARN"/>
>     </logger>
>     <logger name="org.springframework">
>         <level value="WARN"/>
>     </logger>
>     <logger name="org.jencks">
>         <level value="WARN"/>
>     </logger>
>     <logger name="org.apache.activemq">
>         <level value="WARN"/>
>     </logger>
>     <logger name="org.apache.activemq.transport.discovery">
>         <level value="ERROR"/>
>     </logger>
>     <logger name="org.apache.servicemix">
>         <!-- To enable debug logging, replace the INFO by DEBUG -->
>         <level value="WARN"/>
>     </logger>
>     <logger name="org.apache.servicemix.jbi.config">
>         <level value="WARN"/>
>     </logger>
>     <logger name="org.apache.servicemix.jbi.deployment">
>         <level value="WARN"/>
>     </logger>
>
> After hitting request it fails with below Errors.
>
> ERROR - HttpComponent                  - Error processing exchange InOut[
>   id: ID:127.0.0.2-11b6964777a-13:1
>   status: Active
>   role: provider
>   service:
> {http://servicemix.in2m.com/operations/changepassword}PortalService
>   endpoint: portalEndpoint
>   in: Unable to display: java.io.IOException: Stream closed
> ]
> com.ctc.wstx.exc.WstxIOException: Stream closed
>         at
> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
>         at
> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
>         at
> com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
>         at
> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
>         at
> org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
>         at
> org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
>         at
> org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
>         at
> org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
>         at
> org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
>         at
> org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.io.IOException: Stream closed
>         at
> java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:304)
>         at
> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
>         at
> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
>         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
>         at java.io.InputStreamReader.read(InputStreamReader.java:167)
>         at
> com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
>         at
> com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
>         at
> com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
>         ... 19 more
>
> Since in production i can't have debug mode i need to have the above
> settings in log4j.xml file.
> Please help me.....
>
> Thanks,
> Sandeep.
>