Hi,
My Client is calling an web service API in remote machine. This API will take around 7
minutes to execute. But before completing the execution, the same API is called again
after 5 minutes. But actually, the client is not calling the same API again. It had been
called automatically.
When the first call completes execution, it is trying to return the result but throwing
the below error & the value is not returned. But the second call(which was called
automatically) completes & returns successfully.
Could anybody help me on this problem
thrown error in first call:
java.io.IOException: stream is closed
at sun.net.httpserver.Request$WriteStream.write(Request.java:378)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65
)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at sun.net.httpserver.ExchangeImpl.sendResponseHeaders(ExchangeImpl.java
:192)
at sun.net.httpserver.HttpExchangeImpl.sendResponseHeaders(HttpExchangeI
mpl.java:68)
at com.sun.xml.internal.ws.transport.http.server.ServerConnectionImpl.ge
tOutput(ServerConnectionImpl.java:116)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:106)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.sendResponse(SOAPConn
ectionUtil.java:115)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.se
ndResponse(SOAPMessageDispatcher.java:382)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.re
ceive(SOAPMessageDispatcher.java:159)
at com.sun.xml.internal.ws.server.Tie.handle(Tie.java:90)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.process(W
SHttpHandler.java:173)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExc
hange(WSHttpHandler.java:121)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WS
HttpHandler.java:97)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:556)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:528)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
javax.xml.ws.WebServiceException: java.lang.NullPointerException
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:109)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.sendResponse(SOAPConn
ectionUtil.java:115)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.se
ndResponse(SOAPMessageDispatcher.java:382)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.re
ceive(SOAPMessageDispatcher.java:159)
at com.sun.xml.internal.ws.server.Tie.handle(Tie.java:90)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.process(W
SHttpHandler.java:173)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExc
hange(WSHttpHandler.java:121)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WS
HttpHandler.java:97)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:556)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:528)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.sun.xml.internal.messaging.saaj.soap.MessageImpl.writeTo(MessageI
mpl.java:1219)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:106)
... 16 more
Mar 13, 2008 6:41:14 PM com.sun.xml.internal.ws.protocol.soap.server.SOAPMessage
Dispatcher receive
SEVERE: java.lang.NullPointerException
javax.xml.ws.WebServiceException: java.lang.NullPointerException
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:109)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.sendResponse(SOAPConn
ectionUtil.java:115)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.se
ndResponse(SOAPMessageDispatcher.java:382)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.re
ceive(SOAPMessageDispatcher.java:159)
at com.sun.xml.internal.ws.server.Tie.handle(Tie.java:90)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.process(W
SHttpHandler.java:173)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExc
hange(WSHttpHandler.java:121)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WS
HttpHandler.java:97)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:556)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:528)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.sun.xml.internal.messaging.saaj.soap.MessageImpl.writeTo(MessageI
mpl.java:1219)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:106)
... 16 more
Thanks,
Rashmi
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136604#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...