users@glassfish.java.net

XMLStreamException setInputStram

From: <glassfish_at_javadesktop.org>
Date: Tue, 27 Nov 2007 12:44:51 PST

I have JAX WS WebServiceProvider while implements Provider<Source>. In invoke method I am trying to get XMLStreamReader by using XMLInputFactory factory = XMLInputFactory.newInstance();
            xmlReader = factory.createXMLStreamReader(source). But its throwing
javax.xml.stream.XMLStreamException
        at com.sun.xml.stream.XMLReaderImpl.setInputSource(XMLReaderImpl.java:197)
        at com.sun.xml.stream.XMLReaderImpl.<init>(XMLReaderImpl.java:180)
        at com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(ZephyrParserFactory.java:139).

Let me know what I may be doing wrong.
[Message sent by forum member 'pareshpaladiya' (pareshpaladiya)]

http://forums.java.net/jive/thread.jspa?messageID=247425