Jon,
I honestly don't know, but I am sure Keith or somebody else will have an opinion.
Werner
On Tue, 28 Sep 2004 13:19:21 -0700 (PDT), Jon Wilmoth wrote:
>
>I think my problem is that I'm not explicitely setting
>the mapping file on the Marshaller, so it's going into
>default mode. However, I think the Marshaller
>shouldn't generated errors when/if it hits
>Constants...atleast ones defined by other Castor
>interfaces ;) Is this worthy of a bugzilla entry?
>
>--- Werner Guttmann <[EMAIL PROTECTED]> wrote:
>
>>
>> Jon,,
>>
>> it looks like NO_TIMESTAMP is defined static,
>> correct ? I think that's why you see the exception,
>> at least. But unfortunately I am not in a position
>> to
>> provide you with any hints.
>>
>> Werner
>>
>> On Tue, 21 Sep 2004 13:22:13 -0700 (PDT), Jon
>> Wilmoth wrote:
>>
>> >
>> >I just added xml mappings to an existing Castor JDO
>> >mapped object and am getting a MappingException
>> >(below) trying to execute the following marshalling
>> >code (0.9.5.3):
>> >
>> >StringWriter fileContents = new StringWriter();
>> >Marshaller myMarshaller = new
>> >Marshaller(fileContents);
>> >myMarshaller.marshal(castorJDOAndXMLMappedObject);
>> >
>> >The "castorJDOAndXMLMappedObject" implements the
>> >Persistent, TimeStampable, Serializable, and
>> Cloneable
>> >interfaces. I thought the "class" element
>> >"auto-complete" attribute being set to false would
>> >prevent Castor from trying to use reflection from
>> >discovering what needs to be marshalled, but that's
>> >not working. Has anyone mapped a single object to
>> JDO
>> >& XML? Is Castor supposed to fail when a class
>> >implements the org.exolab.castor.jdo.TimeStampable
>> >interface? How do I marshall this JDO mapped class
>> >used in JDO long trxns to xml?
>> >
>> >org.exolab.castor.mapping.MappingException: The
>> field
>> >NO_TIMESTAMP in class
>> >org.exolab.castor.jdo.TimeStampable is not
>> accessible
>> >-- the field must be public, not static and not
>> >transient
>> > at
>>
>>org.exolab.castor.xml.Marshaller.getClassDescriptor(Marshaller.java:1801)
>> > at
>>
>>org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:922)
>> > at
>>
>>org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:785)
>> >
>> >Thanks,
>> >Jon
>> >
>> >
>> >
>>
>>-----------------------------------------------------------
>>
>> >If you wish to unsubscribe from this mailing, send
>> mail to
>> >[EMAIL PROTECTED] with a subject of:
>> > unsubscribe castor-user
>> >
>>
>>
>>
>>
>-----------------------------------------------------------
>>
>> If you wish to unsubscribe from this mailing, send
>> mail to
>> [EMAIL PROTECTED] with a subject of:
>> unsubscribe castor-user
>>
>
>
>
>-----------------------------------------------------------
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user