Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 93030 invoked from network); 21 Aug 2008 09:41:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2008 09:41:49 -0000 Received: (qmail 84483 invoked by uid 500); 21 Aug 2008 09:41:45 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 84432 invoked by uid 500); 21 Aug 2008 09:41:45 -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 84420 invoked by uid 99); 21 Aug 2008 09:41:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 02:41:44 -0700 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; Thu, 21 Aug 2008 09:40:45 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A47A8234C1C2 for ; Thu, 21 Aug 2008 02:40:44 -0700 (PDT) Message-ID: <184456909.1219311644672.JavaMail.jira@brutus> Date: Thu, 21 Aug 2008 02:40:44 -0700 (PDT) From: "Ajay Chakravarthy (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-3981) Axis2 Mapping not fond for package In-Reply-To: <1595312063.1219310565584.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ajay Chakravarthy updated AXIS2-3981: ------------------------------------- Description: Hello, I have a java class which i have exposed as a web service using Axis2 version 1.4, It has the following methods , loadXMLConfiguration() -- This method loads an XML parses it and stores the content parsed inside a datastructure of type HashSet where Symbol is a custom class that i have written. get_symbolList() - This method simply returns the HashSet poulated in the above method. In the service created i have added the line to make it a stateful service. Because the get_symbolList() method is dependent on the execution of the loadXMLCOnfiguration() method. When i run the client i get the following error. I have pasted the client code first and then the error. If I remove the scope="application" parameter in the service.xml then the program works fine, but the get_symbolList() always returns an empty HashSet because a new object is created every time the service is invoked. Client Code ----------------- Name qname1 = new QName("http://notation.it.soton.ac.uk", "loadConfiguration"); Object[] args1 = new Object[] { }; Class[] types1 = new Class[] { Boolean.class }; Object[] response1 = serviceClient.invokeBlocking(qname1, args1, types1); System.out.println("XML File loaded response : " + response1[0]); QName qname2 = new QName("http://notation.it.soton.ac.uk", "get_symbolList"); Object[] args2 = new Object[] { }; Class[] types2 = new Class[] { Symbol[].class }; Object[] response2 = serviceClient.invokeBlocking(qname2, args2, types2); Symbol[] symbolsList = (Symbol[])response2[0]; System.out.println("Number of symbols retrieved : " + symbolsList.length); ----------------------------------------------------------------------------------------------------------------------------- Error -------------- XML File loaded response : true Exception in thread "main" org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.axis2.AxisFault: Mapping qname not fond for the package: uk.ac.soton.it.notation.symbol at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102) at uk.ac.soton.it.notation.ws.client.NotationAPIServiceClient.main(NotationAPIServiceClient.java:46) An solutions to this problem , i have looked at the other thread with a similar problem which says the problem is fixed in the 1.4 version of Axis2 , but it clearly not, please help ! was: Hello, I have a java class which i have exposed as a web service using Axis2 version 1.4, It has the following methods , loadXMLConfiguration() -- This method loads an XML parses it and stores the content parsed inside a datastructure of type HashSet where Symbol is a custom class that i have written. get_symbolList() - This method simply returns the HashSet poulated in the above method. In the service created i have added the line to make it a stateful service. Because the get_symbolList() method is dependent on the execution of the loadXMLCOnfiguration() method. When i run the client i get the following error. I have pasted the client code first and then the error. Client Code ----------------- Name qname1 = new QName("http://notation.it.soton.ac.uk", "loadConfiguration"); Object[] args1 = new Object[] { }; Class[] types1 = new Class[] { Boolean.class }; Object[] response1 = serviceClient.invokeBlocking(qname1, args1, types1); System.out.println("XML File loaded response : " + response1[0]); QName qname2 = new QName("http://notation.it.soton.ac.uk", "get_symbolList"); Object[] args2 = new Object[] { }; Class[] types2 = new Class[] { Symbol[].class }; Object[] response2 = serviceClient.invokeBlocking(qname2, args2, types2); Symbol[] symbolsList = (Symbol[])response2[0]; System.out.println("Number of symbols retrieved : " + symbolsList.length); ----------------------------------------------------------------------------------------------------------------------------- Error -------------- XML File loaded response : true Exception in thread "main" org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.axis2.AxisFault: Mapping qname not fond for the package: uk.ac.soton.it.notation.symbol at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102) at uk.ac.soton.it.notation.ws.client.NotationAPIServiceClient.main(NotationAPIServiceClient.java:46) An solutions to this problem , i have looked at the other thread with a similar problem which says the problem is fixed in the 1.4 version of Axis2 , but it clearly not, please help ! > Axis2 Mapping not fond for package > ---------------------------------- > > Key: AXIS2-3981 > URL: https://issues.apache.org/jira/browse/AXIS2-3981 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.4 > Environment: WIndows XP, Tomcat 5.5x , java 1.6 , Axis 1.4 > Reporter: Ajay Chakravarthy > > Hello, > I have a java class which i have exposed as a web service using Axis2 version 1.4, It has the following methods , > loadXMLConfiguration() -- This method loads an XML parses it and stores the content parsed inside a datastructure of type HashSet where Symbol is a custom class that i have written. > get_symbolList() - This method simply returns the HashSet poulated in the above method. > In the service created i have added the line to make it a stateful service. Because the get_symbolList() method is dependent on the execution of the loadXMLCOnfiguration() method. When i run the client i get the following error. I have pasted the client code first and then the error. If I remove the scope="application" parameter in the service.xml then the program works fine, but the get_symbolList() always returns an empty HashSet because a new object is created every time the service is invoked. > Client Code > ----------------- > Name qname1 = new QName("http://notation.it.soton.ac.uk", "loadConfiguration"); > Object[] args1 = new Object[] { }; > Class[] types1 = new Class[] { Boolean.class }; > Object[] response1 = serviceClient.invokeBlocking(qname1, args1, types1); > > System.out.println("XML File loaded response : " + response1[0]); > > > > > QName qname2 = new QName("http://notation.it.soton.ac.uk", "get_symbolList"); > Object[] args2 = new Object[] { }; > Class[] types2 = new Class[] { Symbol[].class }; > Object[] response2 = serviceClient.invokeBlocking(qname2, args2, types2); > > Symbol[] symbolsList = (Symbol[])response2[0]; > > > System.out.println("Number of symbols retrieved : " + symbolsList.length); > ----------------------------------------------------------------------------------------------------------------------------- > Error > -------------- > XML File loaded response : true > Exception in thread "main" org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.axis2.AxisFault: Mapping qname not fond for the package: uk.ac.soton.it.notation.symbol > at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) > at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) > at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) > at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548) > at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) > at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102) > at uk.ac.soton.it.notation.ws.client.NotationAPIServiceClient.main(NotationAPIServiceClient.java:46) > An solutions to this problem , i have looked at the other thread with a similar problem which says the problem is fixed in the 1.4 version of Axis2 , but it clearly not, please help ! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org