axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arjan Broer <>
Subject Re: OMElement cast exception
Date Thu, 12 Mar 2009 07:50:37 GMT
Well, i've got this figured out.
Axis2 simply does not support ArrayLists and other java specific
constructs as these are not native to the webservice schemas. Just
create getters and setters that act like arrays and all is fine. I am
still using the arraylist as private attributes, only changed the
getters and setters.


On Wed, 2009-03-11 at 10:47 +0100, Arjan Broer wrote:
> Hi,
> For a webservice project i'm using the axis2 framework (1.4.1) with a
> pojo service. That service takes a complex object as input and should
> return a other complex object after some calculations.
> The input object looks like this.
> Order (Serializable)
>   ArrayList<Placement> placements
> Placement (Serializable)
>   Date publishdate
> But when i send this object and try to loop through the array list i get
> an ClassCast exception:
> Exception in thread "main" org.apache.axis2.AxisFault:
> cannot be cast to
> mypackage.model.Placement
> I realy have no idea how this can occur as i am using generics
> everywhere. Any hints for me??
> Regards,
>   Arjan

View raw message