Hi,
I am trying to marshall/unmarshall existing classes that I have no control
over. Unfortunately, some of them contain public static final Strings that
define constants.
Castor's default introspection would not work, so I constructed mapping
files that did not include <field> definitions for the constants. These
worked fine when unmarshalling the data, but Castor gets upset whenever I
try to marshall the data out; error message:
org.exolab.castor.mapping.MappingException: The field ORGANIZATION_TYPE in
class registrar.fulfill.gateway.corbagen.usermgmtintf.User is not accessible
-- the field must be public, not static and not transient
at org.exolab.castor.xml.Marshaller.getClassDescriptor(Unknown
Source)
at org.exolab.castor.xml.Marshaller.marshal(Unknown Source)
at org.exolab.castor.xml.Marshaller.marshal(Unknown Source)
at org.exolab.castor.xml.Marshaller.marshal(Unknown Source)
I tried defining a field for the constants with transient="true", but it
still gives the error. I've also tried my own create-method, get-method, and
set-method - no luck either.
Is there any way I can tell Castor to just ignore those constants?
Thanks,
Mike
======================================
Michael Brown
Sr Software Engineer
Network Solutions
13200 VeriSign Way
Herndon, VA 20171
Phone: (703) 668-4733
[EMAIL PROTECTED]
www.networksolutions.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev