Hi
I still get an error if I try and use wstx
I put these in the domain.xml
-Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory
-Djavax.xml.stream.XMLOutputFactory=com.ctc.wstx.stax.WstxOutputFactory
-Dcom.sun.xml.ws.client.ContentNegotiaton=optimistic
Error:
invocation error on ejb endpoint TestConcurrentBean at
/TestConcurrentBeanService/TestConcurrentBean : XML reader error:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at
com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamRead
erUtil.java:256)
at
com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.ja
va:84)
at
com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReader
Util.java:99)
at
com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStrea
mReaderUtil.java:89)
at
com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:181)
at
com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:163)
at
com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:135)
at
com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:29
4)
at
com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:
276)
at
com.sun.xml.ws.transport.http.HttpAdapter.access$500(HttpAdapter.java:93
)
at
com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter
.java:432)
at
com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
at
com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapt
er.java:135)
at
com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Messa
geDispatcher.java:113)
at
com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDi
spatcher.java:87)
at
com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint
(EjbWebServiceServlet.java:200)
at
com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebService
Servlet.java:129)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:1
14)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:632)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:577)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
71)
at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:206)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:632)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:577)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
71)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:150)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:632)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
:577)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
71)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdap
ter(DefaultProcessorTask.java:637)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(
DefaultProcessorTask.java:568)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(De
faultProcessorTask.java:813)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcesso
rTask(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultR
eadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultR
eadTask.java:214)
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWork
erThread.java:106)
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
at
com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:
2040)
at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at
com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter
.java:92)
at
com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.ja
va:65)
... 40 more
-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: 24 June 2008 14:45
To: users_at_glassfish.dev.java.net
Subject: Re: Web Service error under load
Hi,
we have almost the same constellation and noticed the same failure. The
cause seems to be the StAX implementation in JDK. Replace it with e.g.
woodstox wstx-asl-3.2.2.jar (see
http://forums.java.net/jive/message.jspa?messageID=274654#274654) ant
the parse Exception are fixed, but after a couple of time we get a
java.net.BindException: Address already in use.
Any idea?
Thanks
Marius Capris
________________________________________________________________________
___
Exception in thread "Thread-10" javax.xml.ws.WebServiceException:
java.net.BindException: Address already in use: connect
at
com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.checkR
esponseCode(HttpClientTransport.java:223)
at
com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(
HttpTransportPipe.java:137)
at
com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processR
equest(HttpTransportPipe.java:74)
at
com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:581)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:540)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:525)
at
com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:422)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:235)
at
com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
at
com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHa
ndler.java:230)
at
com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHa
ndler.java:210)
at
com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy29.add(Unknown Source)
at de.test.TestCalculator$1.run(TestCalculator.java:24)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.BindException: Address already in use: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at
sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:760)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
tion.java:1000)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
at
com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.checkR
esponseCode(HttpClientTransport.java:186)
... 14 more
[Message sent by forum member 'mariuscapris' (mariuscapris)]
http://forums.java.net/jive/thread.jspa?messageID=282231
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net