aspose file tools
The moose likes Web Services and the fly likes HELP! org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to com.axis2.client.beans.ChildBean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "HELP! org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to com.axis2.client.beans.ChildBean" Watch "HELP! org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to com.axis2.client.beans.ChildBean" New topic
Author

HELP! org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to com.axis2.client.beans.ChildBean

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Hi;

I have been trying to get an test app using Axis2 working and thought I was there until I came across this issue!

I have a 'Parent' bean which contains an ArrayList of 'Child' beans.
Even though the results are coming back as expected and I can read the value of 'Parent' bean; as soon as I try to get a value from the 'Child' bean(s), I get this error:

"org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to com.axis2.client.beans.ChildBean"

It seems that even though the ArrayList has been populated, then 'Child' beans have become 'OMElementImpl' object and can not be turned into 'Child' beans

How do I get around this???

KS
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: HELP! org.apache.axiom.om.impl.llom.OMElementImpl cannot be cast to com.axis2.client.beans.ChildBean
 
Similar Threads
updating ArrayList on parent from child window
Generics and Parent - child hierarchy
Overriding static methods
Cating Object to ComplexType
override a static method / Cast