hi,
i'm trying to get idl to execute some java (my language may betray that i'm a java newbie). i'm using a pre-made idl routine that should be calling some java "stuff" (methods? classes?). my fingers were crossed that it would work straight away, but i got this strange looking java stack trace. so i went to the java examples that come with idl, as a launching point to understand things. at this point, something weird happened. i ran hellojava fine. then i tried to run hellojava2 and got the following error:
IDL> hellojava2
% ERR -ReflObject::doesClassExist exc:null
% java.lang.InternalError
% at java.util.zip.Inflater.init(Native Method)
% at java.util.zip.Inflater.(Inflater.java:75)
% at java.util.zip.ZipFile.getInflater(ZipFile.java:375)
% at java.util.zip.ZipFile.getInputStream(ZipFile.java:320)
% at java.util.zip.ZipFile.getInputStream(ZipFile.java:286)
% at java.util.jar.JarFile.getInputStream(JarFile.java:387)
% at sun.misc.JarIndex.getJarIndex(JarIndex.java:92)
% at sun.misc.URLClassPath$JarLoader.(URLClassPath.java:547)
% at sun.misc.URLClassPath$3.run(URLClassPath.java:324)
% at java.security.AccessController.doPrivileged(Native Method)
% at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
% at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
% at sun.misc.URLClassPath.getResource(URLClassPath.java:160)
% at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
% at java.security.AccessController.doPrivileged(Native Method)
% at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
% at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
% at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
% at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
% at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
% at java.lang.Class.forName0(Native Method)
% at java.lang.Class.forName(Class.java:164)
% at com.rsi.javab.ReflObject.doesClassExist(ReflObject.java:601)
% Class helloWorld not found
% Execution halted at: HELLOJAVA2 19 /usr/local/itt/idl/resource/bridges/import/java/examples/hellojava2.pro
% $MAIN$
this error is very similar to the error i got when trying to run my out-of-the-box java from before (the last 10 lines were exactly the same). then i tried some of the other example programs, and after running those successfully i went back to try hellojava2.pro and it worked (after a recompile...didn't try it without).
so does this error look familiar to people? any guidance would be appreciated.
gh
|