开发者

ClassCastException error

开发者 https://www.devze.com 2023-02-04 17:35 出处:网络
In the flex app (without BlazeDS), I send an arrayCollect开发者_运维百科ion to Java using a webservice.

In the flex app (without BlazeDS), I send an arrayCollect开发者_运维百科ion to Java using a webservice.

And I get this error:

ClassCastException: com.sum.org.apache.xerces.internal.do.ElementNSImp l cannot be cast to MyValueObject

How can I retrive the properties from ElementNSImpl?


The error is given when, from flex, I send and arraycollection type MyValueObject, through a webservice, so on Java I have the VO of the same type, and with the same properties (all strings), I receive it as ArrayList and I try to cast.

Then I obtain the class cast exception. I don't know how to retrieve the objects from the arraylist and I don't know why it was converted into an ElementNSImp object.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号