I added a default construtor in addition to a non default constructor, now
it's working.... Could you explain this behavior?

On 2/12/07, Tomek Sztelak <[EMAIL PROTECTED]> wrote:

Maybe you have some non default constructor defined on this class ?

On 2/12/07, sudip shrestha <[EMAIL PROTECTED]> wrote:
> Hi,
> My xfire service methos works fine when it returns some primitive java
types
> such as int, String.  However, one method returns a Java Bean such as:
> public class AuthenticationResponse
> {
>     private boolean isAuthenticated;
>     private String message;
>     public getters(){......}
>     public setters(){......}
> }
>
> When I invoke this method with debuggers on, I find that the method is
> executed properly, but at the end when it is about to receive this
object,
> xfire client throws an exception:
> callSoapServiceLocal(): got service model.
> WsClient.callWebService(): EXCEPTION:
> org.codehaus.xfire.XFireRuntimeException: Could not invoke
> service.. Nested exception is
> org.codehaus.xfire.fault.XFireFault: Couldn't instantiate
> class.
> com.adestagroup.authentication.manager.AuthenticationResponse
> Exception in thread "main" java.lang.NullPointerException
>         at TestWebService.callWebService(TestWebService.java:69)
>         at TestWebService.main (TestWebService.java:27)
>
> Thanks.
> note: I also have AuthenticationResponse class available for the client
as
> well.
>


--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to