Skip to main content

SOAP over TCP

No replies
Anonymous

Today,I try to use SOAP over TCP with Metro.I follow
/http://metro.java.net/guide/ch09.html#soaptcpc/ Chapter 9 of Metro User
Guide step by step,but when I run the client I get a Exception,As follows:
SEVERE: WSTCP0001:Processing message failed!
javax.xml.ws.WebServiceException: WSTCP0017:Error executing webservice
at
com.sun.xml.ws.transport.tcp.client.TCPTransportPipe.process(TCPTransportPipe.java:201)
at
com.sun.xml.ws.transport.tcp.client.TCPTransportPipe.processRequest(TCPTransportPipe.java:113)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
at com.sun.xml.ws.client.Stub.process(Stub.java:319)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy38.add(Unknown Source)
at com.xxx.ws.client.Client.main(Client.java:19)
Caused by: java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:492)
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:135)
at
com.sun.xml.ws.transport.tcp.io.FramedMessageInputStream.read(FramedMessageInputStream.java:208)
at
com.sun.xml.ws.transport.tcp.io.BufferedMessageInputStream.read(BufferedMessageInputStream.java:61)
at
com.sun.xml.ws.transport.tcp.io.DataInOutUtils.readInts4(DataInOutUtils.java:90)
at
com.sun.xml.ws.transport.tcp.io.DataInOutUtils.readInts4(DataInOutUtils.java:71)
at
com.sun.xml.ws.transport.tcp.client.WSConnectionManager.doSendMagicAndCheckVersions(WSConnectionManager.java:325)
at
com.sun.xml.ws.transport.tcp.client.WSConnectionManager.createConnectionSession(WSConnectionManager.java:193)
at
com.sun.xml.ws.transport.tcp.util.WSTCPURI.createConnection(WSTCPURI.java:165)
at
com.sun.xml.ws.transport.tcp.util.WSTCPURI.createConnection(WSTCPURI.java:52)
at
com.sun.xml.ws.transport.tcp.connectioncache.impl.transport.OutboundConnectionCacheBlockingImpl.tryNewConnection(OutboundConnectionCacheBlockingImpl.java:235)
at
com.sun.xml.ws.transport.tcp.connectioncache.impl.transport.OutboundConnectionCacheBlockingImpl.get(OutboundConnectionCacheBlockingImpl.java:458)
at
com.sun.xml.ws.transport.tcp.client.WSConnectionManager.openChannel(WSConnectionManager.java:124)
at
com.sun.xml.ws.transport.tcp.client.TCPTransportPipe.setupClientTransport(TCPTransportPipe.java:244)
at
com.sun.xml.ws.transport.tcp.client.TCPTransportPipe.process(TCPTransportPipe.java:136)
... 12 more

Exception in thread "main" javax.xml.ws.WebServiceException: WSTCP0017:Error
executing webservice
at
com.sun.xml.ws.transport.tcp.client.TCPTransportPipe.process(TCPTransportPipe.java:201)
at
com.sun.xml.ws.transport.tcp.client.TCPTransportPipe.processRequest(TCPTransportPipe.java:113)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
at com.sun.xml.ws.client.Stub.process(Stub.java:319)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy38.add(Unknown Source)
at com.xxx.ws.client.Client.main(Client.java:19)
Caused by: java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:492)
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:135)
at
com.sun.xml.ws.transport.tcp.io.FramedMessageInputStream.read(FramedMessageInputStream.java:208)
at
com.sun.xml.ws.transport.tcp.io.BufferedMessageInputStream.read(BufferedMessageInputStream.java:61)
at
com.sun.xml.ws.transport.tcp.io.DataInOutUtils.readInts4(DataInOutUtils.java:90)
at
com.sun.xml.ws.transport.tcp.io.DataInOutUtils.readInts4(DataInOutUtils.java:71)
at
com.sun.xml.ws.transport.tcp.client.WSConnectionManager.doSendMagicAndCheckVersions(WSConnectionManager.java:325)
at
com.sun.xml.ws.transport.tcp.client.WSConnectionManager.createConnectionSession(WSConnectionManager.java:193)
at
com.sun.xml.ws.transport.tcp.util.WSTCPURI.createConnection(WSTCPURI.java:165)
at
com.sun.xml.ws.transport.tcp.util.WSTCPURI.createConnection(WSTCPURI.java:52)
at
com.sun.xml.ws.transport.tcp.connectioncache.impl.transport.OutboundConnectionCacheBlockingImpl.tryNewConnection(OutboundConnectionCacheBlockingImpl.java:235)
at
com.sun.xml.ws.transport.tcp.connectioncache.impl.transport.OutboundConnectionCacheBlockingImpl.get(OutboundConnectionCacheBlockingImpl.java:458)
at
com.sun.xml.ws.transport.tcp.client.WSConnectionManager.openChannel(WSConnectionManager.java:124)
at
com.sun.xml.ws.transport.tcp.client.TCPTransportPipe.setupClientTransport(TCPTransportPipe.java:244)
at
com.sun.xml.ws.transport.tcp.client.TCPTransportPipe.process(TCPTransportPipe.java:136)
... 12 more
Java Result: 1

I should modify the configuration on Glassfish?
Please,help me.