axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AXIS2-3981) Axis2 Mapping not fond for package
Date Mon, 14 May 2012 16:03:52 GMT

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

Sagara Gunathunga  resolved AXIS2-3981.
---------------------------------------

    Resolution: Fixed
    
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message