Hi Malathi, I agree with the previous message that it sounds like a problem with your InputSource, so I'd take another look at that.
If you still can't get it, posting a stand-alone test case that shows how the error is being created will help users on the list understand what's going wrong. Cheers, -- Peter McCracken XML Parser Development IBM Toronto Lab Email: [EMAIL PROTECTED] "Malathi Somu" <[EMAIL PROTECTED]> wrote on 28/11/2006 11:46:19 AM: > Hi , > I am getting the following error while we try to read the document. > But the document goes through ok if we resubmit again. > There is no error in the document. There is something else going on > in the parser other then version thing. Any help appreciated. > > thanks. > > EXCEPTION! Failed to parse given InputSource. Returning NULL. > Stream contents: [(Failed to read lines after this point due to > exception: java.io.IOException: Stream closed)] > Stack Trace: org.xml.sax.SAXParseException: The value following > "version" in the XML declaration must be a quoted string. > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > at com.tpcx.xml.TPCXXmlWrapper.loadFrom(TPCXXmlWrapper.java:1254) > at com.tpcx.xml.TPCXXmlWrapper.loadFrom(TPCXXmlWrapper.java:1238) > at com.tpcx.xml.TPCXXmlWrapper.<init>(TPCXXmlWrapper.java:146) > at com.tpcx.xedi.XEDI.<init>(XEDI.java:127) > at com.tpcx.xedi.XEDIFunctAck.<init>(XEDIFunctAck.java:94) > at com.tpcx.handler.edi.EDIInHandlerBean. > processXEDI(EDIInHandlerBean.java:522) > at com.tpcx.handler.edi.EDIInHandlerBean. > processSingleMessage(EDIInHandlerBean.java:292) > at com.tpcx.handler.edi.EDIInHandlerBean. > processMessage(EDIInHandlerBean.java:127) > at com.tpcx.handler.HandlerServicesAdaptor. > processMessage(HandlerServicesAdaptor.java:30)