Hi Thomas,
can I kindly to ask you to try things against the RC of Castor 1.3.3,
where a few regression issues have been fixed that are in the context of
the *ElementProcessor classes.
If that does not improve things, we will have to look into this in more
detail.
Kind Regards
Werner
On 22.06.2012 10:02, Papendieck, Thomas wrote:
Hello,
my application used castor-xml 0.9.x for a long time.
I decided t upgrade to 1.3.2.
So I regenerated my castor-classes with castor-xml-codegen-1.3.2 and Java-7 and
added the castor-xml-1.3.2 jars to my projekt.
This is the DOS-CMD-line used to generate the castor classes:
"%JDK_HOME%\bin\java" -classpath %CP% org.exolab.castor.builder.SourceGenerator
-i %DTD_DIR%\%INTERFACE_NAME%.xsd -package %JAVA_PACKAGE% -dest
generated_sources/%INTERFACE_NAME%
As you ca see it's used for more than one project. This one is the first to be
upgraded. That's why I'd like to keep the old generator call untill I know the
new version workes well...
Unfortunately the unmarshaller does not create object tree as expected. I get
the an empty ParadIni object. No exception is thrown. Castor logs some warnings:
22.Jun.2012 09:25:18 [WARN ]
StartElementProcessor:StartElementProcessor.compute(): Unable to find
FieldDescriptor for 'Used_Interface_Flag' in ClassDescriptor of null.
22.Jun.2012 09:25:18 [INFO ] EndElementProcessor:EndElementProcessor.compute():
Ignoring Used_Interface_Flag no descriptor was found
22.Jun.2012 09:25:18 [WARN ]
StartElementProcessor:StartElementProcessor.compute(): Unable to find
FieldDescriptor for 'Bootloader_Path_Table' in ClassDescriptor of null.
22.Jun.2012 09:25:18 [INFO ] EndElementProcessor:EndElementProcessor.compute():
Ignoring Bootloader_Path_Table no descriptor was found
...
I attached the DTD, a valid XML and a jar containig the generated classes.
the Line to unmarshall is this:
Reader reader = new FileReader(_fileName);
ParadIni paradIni = (ParadIni) Unmarshaller.unmarshal(ParadIni.class,
reader);
What am I doing wrong?
How can I bring castor-xml-1.3.2 to work?
bye
Thomas
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email