[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] java.lang.ClassCastException
From: |
lsanchez |
Subject: |
[Axiom-developer] java.lang.ClassCastException |
Date: |
Tue, 18 Mar 2008 06:41:36 -0700 (PDT) |
Hello !!! Im Trying to deserialize an OMElement into an Array of Objects,
here a snippets of my code
String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
xml += "<parameters>";
xml += "<getCityTime xmlns=\"http://www.Nanonull.com/TimeService/\"
xmlns:tns=\"http://www.Nanonull.com/TimeService/\">";
xml += "<city>caracas</city>";
xml += "</getCityTime>";
xml += "</parameters>";
methodElement =
org.apache.axiom.om.impl.llom.util.AXIOMUtil.stringToOM(xml);
ObjectSupplier obj1 = new DefaultObjectSupplier();
BeanUtil.deserialize(methodElement,_method.getParameterTypes(),new
DefaultObjectSupplier());
However when i run this code i get this exception:
java.lang.ClassCastException:
org.apache.axiom.om.impl.llom.OMDocumentImpl cannot be cast to
org.apache.axiom.om.OMElement
at
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:520)
at com.cinet.axiom.src.test2.marshall(test2.java:78)
at com.cinet.axiom.src.OMtoJava.main(OMtoJava.java:23)
Any body have any clues about that error ???
thx in advance, Lennin.
--
View this message in context:
http://www.nabble.com/java.lang.ClassCastException-tp16121415p16121415.html
Sent from the axiom-developer mailing list archive at Nabble.com.
- [Axiom-developer] java.lang.ClassCastException,
lsanchez <=