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