[ https://issues.apache.org/jira/browse/AXIS2-4446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734927#action_12734927 ]
Andreas Veithen commented on AXIS2-4446: ---------------------------------------- Banu, Can you test this with Axis2 1.5? > 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.