May be, you are running into the same issue in this thread:
http://forums.java.net/jive/thread.jspa?messageID=354643
jitu
glassfish_at_javadesktop.org wrote:
> Hi,
>
> I have hosted a webservice in glassfish server which in turn will call consume another secured ESB webservice using JAX-WS client code. Normally it works fine if i send 1 -2 request. When I tried sending 100 requests from desktop client to my webservice, i am getting the below error
>
> com.sun.xml.stream.xerces.xni.XNIException: Scanner State 7 not Recognized
> at com.sun.xml.stream.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1389)
> at com.sun.xml.stream.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:362)
> at com.sun.xml.stream.XMLReaderImpl.setInputSource(XMLReaderImpl.java:207)
> at com.sun.xml.stream.ZephyrParserFactory.getXMLStreamReaderImpl(ZephyrParserFactory.java:291)
> at com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(ZephyrParserFactory.java:173)
> at com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(ZephyrParserFactory.java:160)
> at com.sun.xml.ws.policy.jaxws.PolicyConfigResolver.resolveEntity(PolicyConfigResolver.java:85)
> at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseImport(RuntimeWSDLParser.java:276)
> at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseImport(RuntimeWSDLParser.java:656)
> at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:315)
> at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:227)
> at com.sun.xml.ws.api.model.wsdl.WSDLModel$WSDLParser.parse(WSDLModel.java:133)
> at com.sun.xml.ws.policy.jaxws.PolicyConfigParser.parseModel(PolicyConfigParser.java:281)
> at com.sun.xml.ws.policy.jaxws.PolicyConfigParser.parseModel(PolicyConfigParser.java:243)
> at com.sun.xml.ws.policy.jaxws.PolicyConfigParser.parse(PolicyConfigParser.java:109)
> at com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.postFinished(PolicyWSDLParserExtension.java:1248)
> at com.sun.xml.ws.wsdl.parser.DelegatingParserExtension.postFinished(DelegatingParserExtension.java:187)
> at com.sun.xml.ws.wsdl.parser.WSDLParserExtensionFacade.postFinished(WSDLParserExtensionFacade.java:334)
> at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:149)
> at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:263)
> at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:226)
> at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:174)
> at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
> at javax.xml.ws.Service.<init>(Service.java:56)
>
>
> Below are the details of the environment.
>
> Glassfish server V2UR2 (jdk 1.5)- where my application is hosted and accepts request via webservice
>
> OpenESB server V2.1 - where the secured webservices are hosted which will be consumed by the application mentioned above.
>
> OS - RedHat Linux
>
> Front End System - java application
>
> Please help me to overcome the issue.
>
> Thanks,
> Praveen
> [Message sent by forum member 'praveenk78' (praveenk78)]
>
> http://forums.java.net/jive/thread.jspa?messageID=360301
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>