This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build RC1 200711120000,JDK1.6.0_03,Win Vista When I Run Java application with JAX-RPC web service client, I got exception with message: com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl (see attachment for full stacktrace). One of users on nbusers mailing list has experienced similar problem, but in his case it's different exception with the same message. InvocationTargetException org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:518) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:444) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$50 (TestWebServiceMethodDlg.java:70) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:387) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932) Next Exception Layer null sun.reflect.NativeMethodAccessorImpl.invoke (Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:512) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:444) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$50 (TestWebServiceMethodDlg.java:70) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:387) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932) Next Exception Layer com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324) webservice.ProcesarXML_Stub.procDatosXml(ProcesarXML_Stub.java:72) webservice.ProcesarXMLServiceClient.procesarxmlProcDatosXml(ProcesarXMLServiceClient.java:26) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:512) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:444) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$50 (TestWebServiceMethodDlg.java:70) org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:387) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
dup of issue 87181 ?
Correction: There's no info in messages.log, so I'm posting Output only: init: deps-jar: wscompile-init: NewWebService-client-wscompile: web-service-client-generate: web-service-client-compile: Compiling 9 source files to C:\Users\jp154641\Documents\NetBeansProjects\JavaApplication1\build\classes Compiling 1 source file to C:\Users\jp154641\Documents\NetBeansProjects\JavaApplication1\build\classes Copying 2 files to C:\Users\jp154641\Documents\NetBeansProjects\JavaApplication1\build\classes compile: run: 12.11.2007 11:02:20 javaapplication1.Main main SEVERE: null java.lang.ClassCastException: com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231) at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324) at wsc.NewWebServiceSEI_Stub.operation(NewWebServiceSEI_Stub.java:71) at javaapplication1.Main.main(Main.java:23) BUILD SUCCESSFUL (total time: 1 second)
The same cause maybe,but more severe problem than simple test operation now.I think this deserves either separate issue or to raise original issue priority, at least.
After more investigation I agree it's the same issue and the same workaround works,closing as duplicate. *** This issue has been marked as a duplicate of 87181 ***