Connecting Tech Pros Worldwide Forums | Help | Site Map

JAXBElement

Newbie
 
Join Date: Nov 2008
Posts: 14
#1: Nov 14 '08
i gt a prob.
i gt a ClassCastException when this statement is executed :

JAXBElement poe = (JAXBElement) u.unmarshal(new FileInputStream("/home/prasad/Design/XMLFile.xml"));

error:
Exception in thread "main" java.lang.ClassCastException: com.rcfi.qxlink.xmlp.schema.FIXadaptor2 cannot be cast to javax.xml.bind.JAXBElement.

Can any1 post a solution for this.
Is thr any othr way to gt the JAXBElement?

Thanks in advance.

Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Nov 14 '08

re: JAXBElement


What is u? What is its class?
Newbie
 
Join Date: Nov 2008
Posts: 14
#3: Nov 14 '08

re: JAXBElement


Quote:

Originally Posted by r035198x

What is u? What is its class?

its Unmarshaller class

thanks, its wrking nw.
The prob was i hv referenced an object to JAXBElement.
I changed the unmarshaller method, & its wrking fine.
thanks again.
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#4: Nov 14 '08

re: JAXBElement


I really didn't do anything. Good to know you got it working anyway.
Reply


Similar Java bytes