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.
if IDE is running on Mustang, following exception is being thrown: ... 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.NewWebServiceSEI_Stub.operation(NewWebServiceSEI_Stub.java:68) ...
Workaround is to run IDE on JDK 1.5.
It's a JDK16 <->JAX-RPC1.6 clash. The bundled JAX-RPC library consists, exactly, of jar files taken from jwsdp-1.6. Specifically : activation.jar jax-qname.jar jaxp-api.jar FastInfoset.jar jaxrpc-api.jar jaxrpc-impl.jar jaxrpc-spi.jar jsr173_api.jar mail.jar relaxngDatatype.jar saaj-api.jar saaj-impl.jar xsdlib.jar WS Registry works with those classes . The set of JDK1.6 (rt.jar) classes overlaps with those specified in JAX-RPC library : specifically saaj-impl.jar. JDK1.6 <-> JAX-RPC clash can be avoided by putting JAX-RPC jars at the beginning of the Netbeans bootclasspath. (I tested that and it works) Now, I don't see any reasonable solution on Netbeans site.
Milan, thanks for your evaluation. I've asked a question at JAX-RPC team's mailing list. Let's see what do they think about this.
Response from JAX-RPC team: "...We fixed a bug in saaj to find the right factories when used with JDK 6. Please update your saaj jars from https://saaj.dev.java.net/ and let us know if the issue is resolved."
The saaj library was upgraded in issue #93423.
I tested new 551 build with saaj 1.3 and issue is still there. However the issue occurs only when testing default WS operation without any parameter and returning null value (default WS template). I tested also scenario with WS with one string parameter and it proceeded normally. First case, on other hand, causes future exceptions in any type of WS operation, even these with parameters.
JAX-RPC in Java SE project works on JDK6 if the project is run with "-Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl". I didn't check anything related to web/ejb modules yet...
*** Issue 113930 has been marked as a duplicate of this issue. ***
Lukas do we still have test web service method in 6.0?
yes, we do. But it's available only for JAX-RPC clients on the ws operation node in project view
*** Issue 95771 has been marked as a duplicate of this issue. ***
*** Issue 121706 has been marked as a duplicate of this issue. ***
I have updated latest saaj version in the jaxrpc libraries. changeset 6175104b11f5.
v. (has been fixed in 6.1 => setting appropriate TM)