Hi Castor list,

just upgraded to Castor 1.0.4 and now some of my unit tests are not working
anymore. To be more precise, all my unmarshalling tests where a type-safe
enum style class is involved now throw an IllegalArgumentException (stack
trace located at the end of the mail).

All these classes have a method "public static {Type} valueOf(String)" and
with 1.0.3 everything was working. Has the support for this been removed in
1.0.4 or is it a bug?

I really need some of the fixes from the latest version, so would a
GeneralizedFiledHandler implementation for all these classes help me to
solve this problem quickly?

Thanks for any comments.

Leander

----- Stack Trace

Type conversion error: could not set value of
documentVersion(de.adaptions.adgen.common.data.DocumentVersion) with value
of type java.lang.String
java.lang.IllegalArgumentException: Type conversion error: could not set
value of documentVersion(de.adaptions.adgen.common.data.DocumentVersion)
with value of type java.lang.String
        at
org.exolab.castor.mapping.loader.FieldHandlerImpl.setValue(FieldHandlerImpl.
java:546)
        at
org.exolab.castor.mapping.GeneralizedFieldHandler.setValue(GeneralizedFieldH
andler.java:274)
        at
org.exolab.castor.xml.UnmarshalHandler.processAttribute(UnmarshalHandler.jav
a:3047)
        at
org.exolab.castor.xml.UnmarshalHandler.processAttributes(UnmarshalHandler.ja
va:2704)
        at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:16
60)
        at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:13
75)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
wn Source)
        at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem
entHook(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:708)
....

---------------


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

    http://xircles.codehaus.org/manage_email

Reply via email to