axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Banu Maheswari (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-4446) Serviceclient problem invoking operations which have extended classes as parameters
Date Fri, 24 Jul 2009 05:06:14 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Banu Maheswari updated AXIS2-4446:
----------------------------------

    Affects Version/s: 1.4.1

> Serviceclient problem invoking operations which have extended classes as parameters
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2-4446
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4446
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.4.1
>         Environment: Windows
>            Reporter: Banu Maheswari
>
> Hi,
> When I try to invoke a webservice which takes as argument, an extended class, then it
is returning the following error.
> org.apache.axiom.om.OMException: java.lang.NullPointerException
>             at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
>             at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:327)
>             at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:706)
>             at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:675)
>             at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:124)
>             at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:274)
>             at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:203)
>             at org.apache.axiom.soap.impl.llom.SOAPBodyImpl.addChild(SOAPBodyImpl.java:231)
>             at org.apache.axis2.client.ServiceClient.fillSOAPEnvelope(ServiceClient.java:713)
>             at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:545)
>             at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
>             at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102)
> I have a User class {username, password} and a Master class which extends User class
{ address, accountType} in my webservice app.
> In my client application when i call serviceClient.invokeBlocking(operation, args.toArray(),
returnTypes), where I pass Master class object as one of args, then I get the above error.
> However when I remove the "extends User" from Master class and put all fields in Master
class directly, when I invoke the same operation it works fine without any issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message