Hi,

How are Integers (etc) supposed to be unmarshaled. Take for example I
marshall simple type as;

        CharArrayWriter caw1 = new CharArrayWriter();
        Marshaller mar = new Marshaller(caw1);
        mar.setMarshalAsDocument(false);
        mar.setRootElement("TestInt");
        mar.marshal(testInt);
        String enFullId = caw1.toString();

If I want to unmarshal this string;

        Unmarshaller unmar = new Unmarshaller(Integer.class);
        Integer fullIdRet = (Integer) unmar.unmarshal(new
CharArrayReader(enFullId.toCharArray()));

This gives the execption;

Exception is org.xml.sax.SAXException: unable to create XMLClassDescriptor
for class: java.lang.Inte
ger{file: [not available]; line: 1; column: 13}

Anyone got any ideas ?

Thanks,

Brian.


**************************************************************************
The information contained in this e-mail is confidential,
may be privileged and is intended only for the use of the
recipient named above. If you are not the intended
recipient or a representative of the intended recipient,
you have received this e-mail in error and must not copy,
use or disclose the contents of this email to anybody
else. If you have received this e-mail in error, please
notify the sender immediately by return e-mail and
permanently delete the copy you received. This email has
been swept for computer viruses. However, you should
carry out your own virus checks.


Registered in Ireland, No. 205721. http://www.FINEOS.com
**************************************************************************

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to