axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Chakravarthy (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-3981) Axis2 Mapping not fond for package
Date Thu, 21 Aug 2008 09:22:45 GMT
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<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.

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


Mime
View raw message