[otj-users] Incompatibility JManger 2.0.3 <-> Java5

Stephan Herrmann stephan at cs.tu-berlin.de
Tue Oct 18 20:11:32 CEST 2005


Hi

I just discovered the actual reason why launching OT/J-programs sometimes
failed saying: 

	Exception in thread "main" java.lang.ClassNotFoundException: plementer

This happens when running the OTDT via Java5 and using the JMangler-
variant of the OTRE. The problem is: JManger2.0.3 (the version shipped
with the OTDT) does not respect the SAX-specification when reading the
file callinTransformers.xml.  This was not a problem with the sax-parser
contained in the JDK 1.4.x but Java5 ships the com.sun.org.apache.xerces 
parser, which is not compatible with said version of JMangler.

Workarounds: either
a) don't use Java5 and JMangler together OR
b) locate the file callinTransformers.xml within the org.objectteams.runtime
   plugin and delete 9 characters within the leading comment, (the length
   of "plementer" in the above error message) =:-0
   (This works on linux, Windows has different file-lengths due to different
   line-end character sequence..)
   Isn't that an obvious thing to do?? ;-))
   [the 2049th character must not be within the content of an XML element]

I don't think we need to supply a home-grown bugfix version of JMangler,
do we?

cheers
Stephan

PS: when I asked google about "JMangler Java5" the first hit was within
this very mailing list ;-))



More information about the otj-users mailing list