• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-RPC stub problem classcastexception

 
Ignacio Vazquez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i have an old application that use a stub to call rpc based webservice in a batch process, and when calls the send method it's give me that..


class java.lang.ClassCastException: null
java.lang.ClassCastException

at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)

at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)

at com.intelap.macropago.sei.MacroPago_Stub.consultarServiciosHabilitados(MacroPago_Stub.java:231)


i've searched in the web, and the people who has this error , has different than null in the message of the toString of exception, the mine is null so i dont know what to do
i try putting this property



after the main call, but it doesn't work.
the jre im using is 1.4.2.

Greetings.

 
Ignacio Vazquez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , i figured out..

I put this property
System.setProperty("javax.xml.soap.MessageFactory", "com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");



It seems that it was using org.apache.axis.Message instead of saaj implementation



Hope it helps!
Bye!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic