Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 40191 invoked from network); 24 Jul 2009 05:05:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jul 2009 05:05:34 -0000 Received: (qmail 4563 invoked by uid 500); 24 Jul 2009 05:06:39 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 4463 invoked by uid 500); 24 Jul 2009 05:06:38 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 4454 invoked by uid 99); 24 Jul 2009 05:06:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 05:06:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 05:06:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C1A6C234C004 for ; Thu, 23 Jul 2009 22:06:14 -0700 (PDT) Message-ID: <1635332723.1248411974778.JavaMail.jira@brutus> Date: Thu, 23 Jul 2009 22:06:14 -0700 (PDT) From: "Banu Maheswari (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-4446) Serviceclient problem invoking operations which have extended classes as parameters In-Reply-To: <824139075.1248411854838.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.