Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Component/s: XML code generator
-
Labels:
-
Environment:Websphere 6, RAD
-
Number of attachments :
Description
Hi, I am getting the following error when I try to unmarshal a xml. Used Xml code generator to generate the classes. All the jars are ver 1.2
I followed another thread with a similar issue and it said ver 1.2.1 resolved it. But I do not see that version for downloading.
Here's the code snippet
XMLContext context = new XMLContext();
String[] pckgs = new String[]
;
context.addPackages(pckgs);
Unmarshaller unm = context.createUnmarshaller();
InputStreamReader inpStrRdr = new InputStreamReader(new ByteArrayInputStream(outXML.getBytes()));
XYZ clsxyz = (XYZ)unm.unmarshal(inpStrRdr);
org.exolab.castor.xml.MarshalException: The class for the root element 'XYZ' could not be found.
{File: [not available]; line: 2; column: 6} at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:761)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:727)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:616)
Activity
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Won't Fix [ 2 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Well, we incremented version from 1.2 to 1.3. Can you please test against the current 1.3.3 RC1 build ?