You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Arul Dhesiaseelan <ar...@fluxcorp.com> on 2008/11/19 02:29:54 UTC

WSDLQueryException when invoking service from the DynamicClient

Hello,

I used WSDL2Java to generate the server-side artifacts and the stubbed 
service was up and running. I need to use the dynamic client to invoke 
the web service at runtime.

Now, when I use the CXF DynamicClient to invoke a method on the service, 
I receive the below error on the server side. Does anybody help me 
figure out what could have caused this error to happen?

I am using CXF 2.1.3. I used the client-side artifacts from WSDL2Java to 
construct the input type. Appreciate any insight into this issue.

Nov 18, 2008 6:11:59 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be 
http://localhost:9090/Interpose/V64/AFMS/I0201040
2008-11-18 18:11:59.424::INFO:  Logging to STDERR via 
org.mortbay.log.StdErrLog
2008-11-18 18:11:59.439::INFO:  jetty-6.1.9
2008-11-18 18:11:59.533::INFO:  Started SelectChannelConnector@0.0.0.0:9090
Server ready...
Nov 18, 2008 6:12:04 PM 
org.apache.cxf.transport.http_jetty.JettyHTTPDestination doService
WARNING: writeResponse failed:
org.apache.cxf.transport.http.WSDLQueryException: Exception occurred 
while trying to process 
http://localhost:9090/Interpose/V64/AFMS/I0201040?wsdl
    at 
org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:214)
    at 
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:230)
    at 
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
    at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
    at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
    at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: com.ctc.wstx.exc.WstxIOException: null
    at 
com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:511)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:590)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:574)
    at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:471)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:586)
    at org.apache.cxf.staxutils.StaxUtils.writeDocument(StaxUtils.java:449)
    at org.apache.cxf.staxutils.StaxUtils.writeDocument(StaxUtils.java:437)
    at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:599)
    at 
org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:209)
    ... 13 more
Caused by: org.mortbay.jetty.EofException
    at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
    at 
org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:566)
    at 
org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:910)
    at 
org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:646)
    at 
org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:577)
    at com.ctc.wstx.io.UTF8Writer.write(UTF8Writer.java:139)
    at 
com.ctc.wstx.sw.BufferingXmlWriter.flushBuffer(BufferingXmlWriter.java:1103)
    at 
com.ctc.wstx.sw.BufferingXmlWriter.writeRaw(BufferingXmlWriter.java:229)
    at 
com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:543)
    at 
com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:509)
    ... 57 more
Caused by: java.io.IOException: An established connection was aborted by 
the software in your host machine
    at sun.nio.ch.SocketDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:60)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
    at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:166)
    at 
org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:207)
    at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:693)
    ... 66 more
2008-11-18 18:12:04.062::WARN:  Committed before 500 Exception occurred 
while trying to process 
http://localhost:9090/Interpose/V64/AFMS/I0201040?wsdl
2008-11-18 18:12:04.078::WARN:  EXCEPTION
java.lang.IllegalStateException: Committed
    at org.mortbay.jetty.Response.resetBuffer(Response.java:995)
    at org.mortbay.jetty.Response.sendError(Response.java:240)
    at 
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:234)
    at 
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
    at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
    at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
    at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Thanks!
Arul