Hi Christian,

I got a similar error before. I was extracting the content of a Source 2 times 
and apparently you can only do that once. You should check if, one way or 
another, your variable "in" that seems to be of type Source (I don't have 
enough of your code to be sure though), is not used twice to extract its 
content.

Regards,
Vivian



-----Message d'origine-----
De : Christian Graf [mailto:[email protected]] 
Envoyé : jeudi 9 juillet 2009 16:49
À : [email protected]
Objet : Re: Missing Text in XML Message after sending it thru the jms component


Hi again,

i manually added a "\n" after the "<![CDATA[" and now it works. My message is 
complete. I do not really understand why this works....

But now i get the following exception:
[Fatal Error] :-1:-1: Premature end of file.                                    
                                                                                
              
ERROR - LcpMessageHandler              - Error writing LCP-Message              
                                                                                
              
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
Premature end of file.                                                          
                     
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
                                                                   
        at
com.knapp.bus.tcpbc.handler.lcp.LcpMessageHandler.writeLcpMessage(LcpMessageHandler.java:216)
                                                                      
        at
com.knapp.bus.tcpbc.handler.lcp.LcpMessageHandler.writeMessage(LcpMessageHandler.java:198)
                                                                         
        at
com.knapp.bus.tcpbc.marshaler.lcp.LcpTcpProviderMarshaler.createRequest(LcpTcpProviderMarshaler.java:64)
                                                           
        at
com.knapp.bus.tcpbc.TcpProviderEndpoint.processInOnly(TcpProviderEndpoint.java:136)
                                                                                
        at
org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:102)
                                                                         
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
                                                                             
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
                                                                       
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
                                                                     
        at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
                                                                  
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
                                                               
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
                                                                                
   
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)   
                                                                                
   
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)     
                                                                                
   
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                                                                                
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
                                                                                
   
        at java.lang.Thread.run(Thread.java:619)                                
                                                                                
              
Caused by: org.xml.sax.SAXParseException: Premature end of file.                
                                                                                
              
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    
                                                                                
              
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
                                                                   
        ... 16 more                                                             
                                                                                
              
---------                                                                       
                                                                                
              
org.xml.sax.SAXParseException: Premature end of file.                           
                                                                                
              
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)    
                                                                                
              
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
                                                                   
        at
com.knapp.bus.tcpbc.handler.lcp.LcpMessageHandler.writeLcpMessage(LcpMessageHandler.java:216)
                                                                      
        at
com.knapp.bus.tcpbc.handler.lcp.LcpMessageHandler.writeMessage(LcpMessageHandler.java:198)
                                                                         
        at
com.knapp.bus.tcpbc.marshaler.lcp.LcpTcpProviderMarshaler.createRequest(LcpTcpProviderMarshaler.java:64)
                                                           
        at
com.knapp.bus.tcpbc.TcpProviderEndpoint.processInOnly(TcpProviderEndpoint.java:136)
                                                                                
        at
org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:102)
                                                                         
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
                                                                             
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
                                                                       
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
                                                                     
        at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
                                                                  
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
                                                               
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
                                                                                
   
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)   
                                                                                
   
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)     
                                                                                
   
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                                                                                
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
                                                                                
   
        at java.lang.Thread.run(Thread.java:619) 

Regards,
Christian
--
View this message in context: 
http://www.nabble.com/Missing-Text-in-XML-Message-after-sending-it-thru-the-jms-component-tp24410355p24410717.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to