You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org> on 2006/11/12 13:46:37 UTC

[jira] Created: (AXIS2-1687) array in POJO causes ClassCastException

array in POJO causes ClassCastException
---------------------------------------

                 Key: AXIS2-1687
                 URL: http://issues.apache.org/jira/browse/AXIS2-1687
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: rpc
            Reporter: Kinichiro Inoguchi


I checked this with Axis2 1.1 RC2.

In case returned Java Beans contains array, 
java.lang.ClassCastException had occurred.

2006/11/12 21:25:45 org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
: Exception occurred while trying to invoke service method sayHelloArray
java.lang.ClassCastException
	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:117)
	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:90)
	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:496)
...

You can reproduce this problem with attached ArrayInPojo.aar.
After deploying this aar, call service by REST,
http://localhost:8080/axis2/rest/ArrayInPojo/sayHelloArray?inParam=2

If returned Java Beans contains no array, it works fine.
You can confirm this by 
http://localhost:8080/axis2/rest/ArrayInPojo/sayHello?inParam=2


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


[jira] Commented: (AXIS2-1687) array in POJO causes ClassCastException

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1687?page=comments#action_12449386 ] 
            
Kinichiro Inoguchi commented on AXIS2-1687:
-------------------------------------------

I checked this issue with latest (13-Nov-2006 06:10) nightly.
It's OK.
Thanks.

> array in POJO causes ClassCastException
> ---------------------------------------
>
>                 Key: AXIS2-1687
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1687
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>            Reporter: Kinichiro Inoguchi
>         Attachments: ArrayInPojo.aar, myService.zip
>
>
> I checked this with Axis2 1.1 RC2.
> In case returned Java Beans contains array, 
> java.lang.ClassCastException had occurred.
> 2006/11/12 21:25:45 org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
> : Exception occurred while trying to invoke service method sayHelloArray
> java.lang.ClassCastException
> 	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:117)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:90)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
> 	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
> 	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:496)
> ...
> You can reproduce this problem with attached ArrayInPojo.aar.
> After deploying this aar, call service by REST,
> http://localhost:8080/axis2/rest/ArrayInPojo/sayHelloArray?inParam=2
> If returned Java Beans contains no array, it works fine.
> You can confirm this by 
> http://localhost:8080/axis2/rest/ArrayInPojo/sayHello?inParam=2

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


[jira] Updated: (AXIS2-1687) array in POJO causes ClassCastException

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1687?page=all ]

Kinichiro Inoguchi updated AXIS2-1687:
--------------------------------------

    Attachment: ArrayInPojo.aar
                myService.zip

ArrayInPojo.aar : service archive 
myService.zip : source code for this service

> array in POJO causes ClassCastException
> ---------------------------------------
>
>                 Key: AXIS2-1687
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1687
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>            Reporter: Kinichiro Inoguchi
>         Attachments: ArrayInPojo.aar, myService.zip
>
>
> I checked this with Axis2 1.1 RC2.
> In case returned Java Beans contains array, 
> java.lang.ClassCastException had occurred.
> 2006/11/12 21:25:45 org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
> : Exception occurred while trying to invoke service method sayHelloArray
> java.lang.ClassCastException
> 	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:117)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:90)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
> 	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
> 	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:496)
> ...
> You can reproduce this problem with attached ArrayInPojo.aar.
> After deploying this aar, call service by REST,
> http://localhost:8080/axis2/rest/ArrayInPojo/sayHelloArray?inParam=2
> If returned Java Beans contains no array, it works fine.
> You can confirm this by 
> http://localhost:8080/axis2/rest/ArrayInPojo/sayHello?inParam=2

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


[jira] Resolved: (AXIS2-1687) array in POJO causes ClassCastException

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1687?page=all ]

Davanum Srinivas resolved AXIS2-1687.
-------------------------------------

    Resolution: Fixed

Fixed. Please see r474032

-- dims

> array in POJO causes ClassCastException
> ---------------------------------------
>
>                 Key: AXIS2-1687
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1687
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: rpc
>            Reporter: Kinichiro Inoguchi
>         Attachments: ArrayInPojo.aar, myService.zip
>
>
> I checked this with Axis2 1.1 RC2.
> In case returned Java Beans contains array, 
> java.lang.ClassCastException had occurred.
> 2006/11/12 21:25:45 org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
> : Exception occurred while trying to invoke service method sayHelloArray
> java.lang.ClassCastException
> 	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:117)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:90)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
> 	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
> 	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:496)
> ...
> You can reproduce this problem with attached ArrayInPojo.aar.
> After deploying this aar, call service by REST,
> http://localhost:8080/axis2/rest/ArrayInPojo/sayHelloArray?inParam=2
> If returned Java Beans contains no array, it works fine.
> You can confirm this by 
> http://localhost:8080/axis2/rest/ArrayInPojo/sayHello?inParam=2

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