Hi. I'm trying to build IDL for a Java interface that uses Castor
types, using Sun's rmic.
It works fine when I don't use Castor types, but when I add, for
example, the following line to the interface:
public MyCastorObjectType getMyCastorObjectBytId(String id);
where 'MyCastorObjectType' is some Castor class, and then I run rmic as
follows:
rmic -verbose -idl -d tmp -classpath $LOCALCLASSPATH
packages.etc.tmpRemoteInterface
then I get the following error:
(messages about loading some System classes)...
[loaded
./lib/castor-0.9.3.9-xml.jar(org/exolab/castor/xml/MarshalException.class)
in 8 ms]
[loaded
./lib/castor-0.9.3.9-xml.jar(org/exolab/castor/xml/CastorException.class)
in 1 ms]
[loaded
./lib/castor-0.9.3.9-xml.jar(org/exolab/castor/xml/Location.class) in 9
ms]
java.lang.ClassFormatError: org/exolab/castor/xml/MarshalException
(Illegal UTF8 string in constant pool)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
at
sun.rmi.rmic.iiop.ClassPathLoader.findClass(ClassPathLoader.java:34)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
sun.rmi.rmic.iiop.CompoundType.loadClass(CompoundType.java:314)
... rest of exception truncated...
I looked in the source for MarshallException and didn't see any strange
constants. This is castor 0.9.3.9, by the way.
Can anyone help?
thanks!
Jeff Klann
[EMAIL PROTECTED]
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev