Hi All,
I managed to work around this problem by using the
"classic" JVM. It turns out that marshalling sometimes fails silently with exit
code 128 when the JVM is in the hotspot mode. The same thing works fine in the
classic mode. This may be related to Xerces rather than
Castor.
thx
Alex
-----Original Message-----
From: Aleksandar Milanovic [mailto:[EMAIL PROTECTED]]
Sent: November 23, 2001 9:43 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] weird problem, Castor 0.9.3 silently fails to marshal when used in non-debugging mode
Importance: High
Hi All,I've encountered a really weird problem with the Castor marshalling framework. I generated source files using Castor 0.9.3 in the type mode, i.e. without the element classes. Then I defined mappings for the elements that appear as root elements in documents and also for those that may substitute others. To achieve full substitutability I had to subclass a few Castor-generated classes and provide additional accessor methods. These subclasses appear also in the mapping files.All this took me a while to complete and I managed to get it to work after some initial hickups. Actually, now I realize that it worked only under specific conditions, namely, when I ran it in the debugging mode (I use JBuilder 5, but it happens in other IDEs too). The exact phenomenon can be described as follows:In the debugging mode, the marshalling of these elements that are mapped to my classes ALWAYS works fine.In the ordinary running mode, it sometimes works, sometimes not. There are two cases:1) It doesn't work at all and nothing is marshalled. The program terminates somewhere in the marshalling code, because the control never returns.2) Only the first attempt to marshal succeeds, the next attempt ends up as case 1.Since there seems to be a connection between this phenomenon and my subclasses I initially thought that there was something wrong with my classes. However, if this were the case, then the program would neither work in the debugging mode. So, there is a connection to my subclasses, but this connection is effective only in the ordinary running mode.I am stumped. Help is appreciated.FYI, I am using JDK 1.3.1_01 and Xerces 1.4.3.thxAlex
