[jbossws-issues] [JBoss JIRA] Commented: (JBWS-1126) Got Call invocation failed: setProperty must be overridden in subclasses of SOAPMessage when invoking a service

Brendan Farragher (JIRA) jira-events at lists.jboss.org
Mon Jun 8 10:18:57 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBWS-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12471015#action_12471015 ] 

Brendan Farragher commented on JBWS-1126:
-----------------------------------------

Ubuntu 9.04
JBoss AS 4.2.3
Java 1,5

I was receiving the same exception as mentioned above AFTER I received the NoClassDefFound exception mentioned in this JIRA while running wsconsume:

https://jira.jboss.org/jira/browse/JBWS-2284

After I added the Sun metro jars, wsconsume ran properly, but the ws client code caused the exception described in this JIRA, as the Sun metro jars caused the saaj.jar conflict described here (webservices-rt.jar has saaj.jar packaged with it). There does seem to be a bug in the wsconsume script. I had to add numerous jar files to my lib/endorsed directory to get wsconsume to work. I could not get the wsconsume script to work even when I copied the script added the jars manually to the script's CLASSPATH and/or JBOSS_ENDORSED_LIBS env variable. My lib/endorsed directory looks like this now:

activation.jar
jaxb-api.jar
jaxb-impl.jar
jaxb-xjc.jar
jaxws-rt.jar			// Copied from JBoss installation root
jaxws-tools.jar			// Copied from JBoss installation root
jboss-jaxws-ext.jar
jboss-jaxws.jar
serializer.jar
stax-api.jar
stax-ex.jar
streambuffer.jar
xalan.jar
xercesImpl.jar

This configuration works, and so does the client code, by why doesn't the wsconsume script pick up the dependencies from the right place?

> Got Call invocation failed: setProperty must be overridden in subclasses of SOAPMessage when invoking a service
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JBWS-1126
>                 URL: https://jira.jboss.org/jira/browse/JBWS-1126
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: jbossws-1.0.2
>         Environment: windows 2000, JBoss 4.0.4
>            Reporter: Yaron Holland
>            Assignee: Thomas Diesler
>
> Got this when tring to test a JSR Web Service with encryption:
> java.rmi.RemoteException: Call invocation failed: setProperty must be overridden in subclasses of SOAPMessage; nested exception is: 
> 	java.lang.UnsupportedOperationException: setProperty must be overridden in subclasses of SOAPMessage
> 	at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
> 	at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
> 	at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
> 	at $Proxy0.login(Unknown Source)
> 	at com.picom.services.TestPicomSession.testEndpoint(TestPicomSession.java:45)
> 	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 junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden in subclasses of SOAPMessage
> 	at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:356)
> 	at org.jboss.ws.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:64)
> 	at org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:120)
> 	at org.jboss.ws.binding.soap.SOAP11BindingProvider.createMessage(SOAP11BindingProvider.java:52)
> 	at org.jboss.ws.binding.soap.SOAPBindingProvider.bindRequestMessage(SOAPBindingProvider.java:87)
> 	at org.jboss.ws.binding.soap.SOAP11BindingProvider.bindRequestMessage(SOAP11BindingProvider.java:58)
> 	at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:645)
> 	... 23 more
> Using code similar to the samples to run the test unit.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list