facebook

problem with JAXBContext

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #269476 Reply

    mario123
    Participant

    Hello,

    I have Myeclipse 5.5 M2, JBoss 4.0.5 with ejb3 capability
    I try in ejb do the following:
    ….
    String xml = getDocumentAsXml( doc );
    System.out.println( xml );
    InputSource is = new InputSource( new StringReader( xml ) );
    JAXBContext jc = JAXBContext.newInstance( “biznes.jaxb.courier” ); <—– error
    Unmarshaller u = jc.createUnmarshaller();
    Couriers couriers = (Couriers) u.unmarshal( is );

    in the package biznes.jaxb.courier there are the classes which I generated using Jaxb 2.0 Java tool xjc
    Jaxb is version: JAXB2_20070413

    I got the error:
    15:49:34,265 ERROR [STDERR] java.lang.NullPointerException
    15:49:34,265 ERROR [STDERR] at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287)
    15:49:34,265 ERROR [STDERR] at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:260)
    15:49:34,281 ERROR [STDERR] at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.getTypes(ElementPropertyInfoImpl.java:100)
    15:49:34,281 ERROR [STDERR] at com.sun.xml.bind.v2.model.impl.RuntimeElementPropertyInfoImpl.getTypes(RuntimeElementPropertyInfoImpl.java:50)
    15:49:34,281 ERROR [STDERR] at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.size(ElementPropertyInfoImpl.java:42)
    15:49:34,296 ERROR [STDERR] at java.util.AbstractList$Itr.hasNext(AbstractList.java:339)
    15:49:34,296 ERROR [STDERR] at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
    15:49:34,296 ERROR [STDERR] at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
    15:49:34,312 ERROR [STDERR] at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)

    I use Java EE 5 libraries and Xfire 1.2 JAXB2 Libraries from Myeclipse

    Any suggestions?

    Boguslaw Fries

    #269483 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    JAXB question, requesting community input (not sure myself what’s wrong)

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: problem with JAXBContext

You must be logged in to post in the forum log in