You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Br...@cognizant.com on 2007/11/17 09:51:53 UTC

Reg:Premature end of file Exception

Hi ServiceMixUsers,

 

 I am sending proper and valid xml through jms queue.

 

  I am getting the following exception  pasted below.

  

[Fatal Error] :-1:-1: Premature end of file.

org.xml.sax.SAXParseException: Premature end of file.

        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)

        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(S
ourceTransformer.java:224)

        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(SourceTrans
former.java:135)

        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransfo
rmer.java:289)

        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransfo
rmer.java:306)

        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMDocument(SourceTra
nsformer.java:375)

        at
com.dnb.png.batch.PngReceiver.onMessageExchange(PngReceiver.java:67)

        at
org.apache.servicemix.components.util.ComponentAdaptorMEListener.onMessa
geExchange(ComponentAdaptorMEListener.java:47)

        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(D
eliveryChannelImpl.java:593)

        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.j
ava:174)

        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
:176)

        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:1
34)

        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.runTask(ThreadPoolExecutor.java:665)

        at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:690)

        at java.lang.Thread.run(Thread.java:595)

 

 Could anyone solve this Issue please reply to this mail.

 

Thanks in advance.

 

Thanks&Regards,

Brahma Naidu

 



This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Re: Reg:Premature end of file Exception

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

Do you get any other exceptions in you log (preceding and/or following 
this one)?  Which component is sending the MessageExchange to your  
com.dnb.png.batch.PngReceiver?  Could you retry this with DEBUG logging 
enabled and post the relevant parts of the log?

Regards,

Gert

BramhaNaidu.Aelem@cognizant.com wrote:
> Hi ServiceMixUsers,
>
>  
>
>  I am sending proper and valid xml through jms queue.
>
>  
>
>   I am getting the following exception  pasted below.
>
>   
>
> [Fatal Error] :-1:-1: Premature end of file.
>
> org.xml.sax.SAXParseException: Premature end of file.
>
>         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>
>         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
>
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(S
> ourceTransformer.java:224)
>
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(SourceTrans
> former.java:135)
>
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransfo
> rmer.java:289)
>
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransfo
> rmer.java:306)
>
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMDocument(SourceTra
> nsformer.java:375)
>
>         at
> com.dnb.png.batch.PngReceiver.onMessageExchange(PngReceiver.java:67)
>
>         at
> org.apache.servicemix.components.util.ComponentAdaptorMEListener.onMessa
> geExchange(ComponentAdaptorMEListener.java:47)
>
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(D
> eliveryChannelImpl.java:593)
>
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.j
> ava:174)
>
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
> :176)
>
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:1
> 34)
>
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
> .runTask(ThreadPoolExecutor.java:665)
>
>         at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
> .run(ThreadPoolExecutor.java:690)
>
>         at java.lang.Thread.run(Thread.java:595)
>
>  
>
>  Could anyone solve this Issue please reply to this mail.
>
>  
>
> Thanks in advance.
>
>  
>
> Thanks&Regards,
>
> Brahma Naidu
>
>  
>
>
>
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
> If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
> Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
> prohibited and may be unlawful.
>