- This topic has 1 reply, 2 voices, and was last updated 17 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
mario123ParticipantHello,
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_20070413I 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
Riyad KallaMemberMoving to OT > Soft Dev
JAXB question, requesting community input (not sure myself what’s wrong)
-
AuthorPosts