[jbossws-users] socket problem, seem to cause asynchoronous invocation error(with ethereal capture)

Da Feng jvfengda at yahoo.com
Thu Jan 31 08:45:45 EST 2008


hello everyone:
        I deployed a test case to demonstrate jax-ws2.0,but find that jbossws' asynchronous client invocation throws a classcast exception. But the packet capture seems all right. One thing abnormal is that with jbossws 2.0.2, there is always a "broken pipe" exception thrown by container, and packet capture shows a tcp RST from client to server. With 2.0.3, it works all right with synchronous call. I used wsconsume with customization to get asynchronous stub. 
The packet capture is the communication process, the zip is project with a war archive, which is my webservice.
Can some one help me? My little demonstration is pending.


stack trace.

done
java.lang.ClassCastException: jboss.wsconsume.gen.hotelbooking.stub.Tickets
    at sunspider.jaxws20.tutorial.client.TestJAXWS20DynaClient.hanldeResponse1(TestJAXWS20DynaClient.java:95)
    at sunspider.jaxws20.tutorial.client.TestJAXWS20DynaClient.testBookingAsync(TestJAXWS20DynaClient.java:89)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Tear Down
Tear Down
java.lang.ClassCastException: jboss.wsconsume.gen.hotelbooking.stub.Tickets
    at sunspider.jaxws20.tutorial.client.TestJAXWS20DynaClient.hanldeResponse1(TestJAXWS20DynaClient.java:95)
    at sunspider.jaxws20.tutorial.client.TestJAXWS20DynaClient.access$0(TestJAXWS20DynaClient.java:92)
    at sunspider.jaxws20.tutorial.client.TestJAXWS20DynaClient$1.handleResponse(TestJAXWS20DynaClient.java:114)
    at org.jboss.ws.core.jaxws.client.ClientProxy$AsyncRunnable.run(ClientProxy.java:264)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

   
 
DaFENG
Coder
Telecommunication && Network Industry
Pudong
Shanghai
China





      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbossws-users/attachments/20080131/4ead84da/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classcastException
Type: application/octet-stream
Size: 6382 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/jbossws-users/attachments/20080131/4ead84da/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JAX-WS2.0.zip
Type: application/zip
Size: 67631 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/jbossws-users/attachments/20080131/4ead84da/attachment.zip 


More information about the jbossws-users mailing list