users@jaxb.java.net

Just checking on an exception

From: Brian Pontarelli <brian_at_pontarelli.com>
Date: Mon, 25 Apr 2005 19:18:16 -0500

I just wanted to check that you haven't implemented this functionality
yet before I submit an issue. I have an element that has a
XmlJavaTypeAdapter associated with it and during marshalling I'm getting
this exception:

java.lang.UnsupportedOperationException
    at
com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:100)
    at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:279)
    at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:484)
    at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:269)
    at
com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:443)
    at
com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:220)
    at
com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:164)
    at
javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:76)
    at
com.inversoft.iap.transport.bind.RequestMarshalTest.testPerformAction(RequestMarshalTest.java:139)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

I'm using HEAD of the CVS source code and from what I can tell this just
hasn't been implemented yet to handle the adapters. However, I have only
briefly looked through this stack trace and haven't yet looked deeply
into the context creation code.

- bp