[
https://jira.jboss.org/jira/browse/JBWS-1439?page=com.atlassian.jira.plug...
]
prabhu varadan commented on JBWS-1439:
--------------------------------------
Hi,
Relating to the above issue, i have been using JDK1.6 and Jboss4.2.3GA and as per
suggestion i placed the below mentioned jar files and the "setProperty must be
overridden by all subclasses of SOAPMessage" error message dissappeared. But i am
facing a new issue. below is the Soap client used and the exception i am receiving.
jboss-jaxrpc.jar,
jboss-jaxws.jar,
jboss-jaxws-ext.jar,
jboss-saaj.jar,
jaxb-api.jar
Soap client:
import org.apache.axis.soap.MessageFactoryImpl;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPMessage;
public SOAPMessage sendSoapMessage(SOAPMessage soapMessage, String serviceURL) throws
Exception {
MessageFactoryImpl factory = new MessageFactoryImpl();
soapMessage.writeTo( System.out );
URL endPoint = new URL( serviceURL );
SOAPMessage reply=null;
try
{
reply = con.call( soapMessage, endPoint );
}
catch(Exception e)
{
e.printStackTrace();
}
con.close();
reply.writeTo( System.out );
return ( reply );
}
Exception:
javax.xml.soap.SOAPException: java.lang.ClassCastException: org.apache.axis.Message cannot
be cast to org.jboss.ws.core.soap.SOAPMessageImpl
at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:113)
at org.jboss.ws.core.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:64)
at
com.iriss.crs.airlinecrs.webservice.client.soap.impl.SoapClientImpl.sendSoapMessage(SoapClientImpl.java:179)
Any one has faced this issue. If so what has been done to fix this.
Thanks
Prabhu Varadan
Jdk 1.6.0 Requests get the error "setProperty must be overridden
by all subclasses of SOAPMessage"
--------------------------------------------------------------------------------------------------
Key: JBWS-1439
URL:
https://jira.jboss.org/jira/browse/JBWS-1439
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-1.0.4
Environment: Jboss 4.0.5.GA
Java 1.6.0
Reporter: Denis Angleton
Assignee: Heiko Braun
Fix For: jbossws-2.0.0
Requests get the error "setProperty must be overridden by all subclasses of
SOAPMessage"
In the abstract class javax.xml.soap.SOAPMessage which is now shipped with the jdk, the
implementation of setProperty is as follows:
public void setProperty(String property, Object value)
throws SOAPException {
throw new UnsupportedOperationException("setProperty must be overridden
by all subclasses of SOAPMessage");
}
in the constructor of org.jboss.ws.soap.SOAPMessageImpl it calls the super methods
setProperty(CHARACTER_SET_ENCODING, "UTF-8");
setProperty(WRITE_XML_DECLARATION, false);
This results in the exception being thrown.
--
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