Discussions

XML & Web services: failed to invoke service, nullpointerexception

  1. failed to invoke service, nullpointerexception (1 messages)

    hi, I'm using weblogic8.1SP3, to develop custom type RPC-oriented webservices, but whenever I invoke the webservices from weblogic testing web page, it'd fail to invoke service, with exceptions like below:

    java.lang.NullPointerException at com.bigrez.ws.serializer.ReservationCodec.serialize(ReservationCodec.java:240) at ....

    my question is that when I invoke webservices from testing web page, SOAP request message is sent webservice component, so deserialize() method should be called instead of serialize() method called, like above?

    any help appreciated
  2. just a thought[ Go to top ]

    my question is that when I invoke webservices from testing web page, SOAP request message is sent webservice component, so deserialize() method should be called instead of serialize() method called, like above?

    Then perhaps it is the marshalling of the response message that fails?
    Perhaps the returned object reference is null, or the object returned is in a bad state, containing a null value in an attribute where nulls aren't allowed?

    But that's just guesswork.