axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kinichiro Inoguchi (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-880) service method that returns array got Exception
Date Sun, 09 Jul 2006 09:47:29 GMT
service method that returns array got Exception
-----------------------------------------------

         Key: AXIS2-880
         URL: http://issues.apache.org/jira/browse/AXIS2-880
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: core  
    Versions: 1.0    
 Environment: SDK 1.4.2  Tomcat5  WIndowsXP
    Reporter: Kinichiro Inoguchi
    Priority: Minor


Using RPCMessageReceiver with method returns array got Exception.
I tested this with nightly builds 09-Jul-2006 01:34.

I created method like this,
    public int [] arrayInt(String inparam)

Calling this service with REST like this,
http://localhost:8080/axis2/rest/TestService1/arrayInt?inparam=abc

I got this message on browser.
org.apache.axis2.AxisFault: null rcl; nested exception is: 
	java.lang.IllegalArgumentException: null rcl; nested exception is: 
	org.apache.axis2.AxisFault: null rcl; nested exception is: 
	java.lang.IllegalArgumentException: null rcl
	org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:141)
	org.apache.axis2.transport.http.AxisRESTServlet.doGet(AxisRESTServlet.java:36)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

In stdout.log of my tomcat, shows trace like this.
2006/07/09 18:34:30 org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
Fatal: Exception occurred while trying to invoke service method arrayInt
java.lang.IllegalArgumentException: null rcl
	at org.codehaus.jam.internal.reflect.ReflectClassBuilder.<init>(ReflectClassBuilder.java:47)
	at org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:173)
	at org.codehaus.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
	at org.codehaus.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:59)
	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:64)
	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:141)
	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
...

But, methods that returns array javabeans works fine.
http://localhost:8080/axis2/rest/TestService1/arrayBean?var1=abc&var2=123&var3=99999&var4=123.456&var5=4.0&var6=789&var7=true
This shows up response message on browser.

I'll attach TestService1.aar .
Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
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