On Mon, 16 Dec 2002 17:45:17 -0700, Jason Tang <jason.tang_at_UBC.CA> wrote:
>Hello, I follow the example on the document which should allow me to do
>
>Unmarshalling from a StringBuffer using a javax.xml.transform.stream.StreamSource:
>
> JAXBContext jc = JAXBContext.newInstance( "org.foo" );
> Unmarshaller u = jc.createUnmarshaller();
> String xml = // from a valid source
> StringBuffer xmlStr = new StringBuffer(xml);
> Object o = u.unmarshal( new StreamSource( new StringReader( xmlStr.toString() ) ) );
>
>But I got this error when doing the unmarshalling,
>
>java.lang.AbstractMethodError
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.getXMLReader(AbstractUnmarshallerImpl.java:88)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:129)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:102)
>
>any idea?
>
>Thanks
I have no luck solving this since last post. What I do is to marshal the object to xml, send it to servlet via POST (weblogic6sp2). I do have a helper class to do the marshal and unmarshal job. I can run it just fine locally. The error I got above is from server where I tried to unmarshal the xml back to java object. Both classpaths in client and server are the same. Any help will be appreciated...
Thanks