[ 
https://issues.apache.org/jira/browse/AXIS2-3981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274698#comment-13274698
 ] 

Sagara Gunathunga  commented on AXIS2-3981:
-------------------------------------------

This should be fixed in recent releases please test this again and reopen if 
you face to same exception again. 
                
> Axis2 Mapping not fond for package
> ----------------------------------
>
>                 Key: AXIS2-3981
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3981
>             Project: 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<Symbol>  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 <application name="xx" 
> scope="application">  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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to