Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] JAXB having problems marshaling entity due to weaving-related class

Hi Laird,

We attempt to weave XMLTransient on to those fields. Can you provide a sample class so we can see why it is not showing up?

BTW: Are you using dynamic weaving or static weaving?

-Tom

On 13/02/2013 10:02 AM, Laird Nelson wrote:
Good morning; we're getting the following exception when one of our
EclipseLink-woven entities is being marshaled by JAXB:

    org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface is
    an interface, and JAXB can't handle interfaces.

                     this problem is related to the following location:

                                     at
    org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface

                                     at protected
    org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface
    com.jenzabar.ngp.financial.accounting.jpa.JournalEntity._persistence_reconcileGeneralLedger_vh

I am deeply and unfortunately familiar :-) with the fact that JAXB can't deal
with interfaces, so I understand the error from that end of things.

But I don't know how to work around this issue.  The mighty Google produces
exactly one result (!) that is similar to mine:
http://www.eclipse.org/forums/index.php/m/531683/

In our case we are not using EclipseLink annotations at all--straight JPA.

Is this what happens when lazy-loaded fields bump into JAXB marshaling?

Thanks,
Laird

--
http://about.me/lairdnelson


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top