JAXBElement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • popprem
    New Member
    • Nov 2008
    • 19

    #1

    JAXBElement

    i gt a prob.
    i gt a ClassCastExcept ion when this statement is executed :

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

    error:
    Exception in thread "main" java.lang.Class CastException: com.rcfi.qxlink .xmlp.schema.FI Xadaptor2 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.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    What is u? What is its class?

    Comment

    • popprem
      New Member
      • Nov 2008
      • 19

      #3
      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.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

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

        Comment

        Working...