• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAX-RPC stub problem classcastexception

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic