Castor seems to be not able to marshall classes that are loaded.
I applied the last patch.
http://jira.codehaus.org/browse/CASTOR-1342


I got to work using doing the following.

org.exolab.castor.xml.Marshall.java

// opendemand fix for marshalling lazy loaded class (Proxy.isProxyClass) did not work
               if (object instanceof net.sf.cglib.proxy.Factory) {
                  _class = object.getClass().getSuperclass();
               }
             else if (Proxy.isProxyClass(object.getClass()) ) {
:


I have the following lazy loaded configuration.
<class name="com.opendemand.jdo.WebResource" auto-complete="false" identity="webResourceId" key-generator="keygen" >

:

<field name="response" type="com.opendemand.jdo.WebResourceResponse" get-method="getResponse" set-method="setResponse" lazy="true">

<sql />

</field>

</class>

Steve

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to