jastrachan | 27 Mar 12:44 2004
Picon

Re: problem running groovy 1.0-beta-4 on AIX with IBM Java 1.4

Thanks Tim - patch applied for both groovysh.sh and groovysh.bat

On 25 Mar 2004, at 09:19, Tim Ellison wrote:
> Hmm, I see that too.
>
> As a work around please add -Xverify:none to the launcher command-line  
> in
> groovysh.
>
> I added it after line 138, like this:
> $ diff -c groovysh groovyte
> *** groovysh    Fri Mar 12 17:20:21 2004
> --- groovyte    Thu Mar 25 09:11:37 2004
> ***************
> *** 136,140 ****
> --- 136,141 ----
>           -Dclassworlds.conf="$CLASSWORLDS_CONF" \
>           -Dgroovy.home="$GROOVY_HOME" \
>           -Dtools.jar="$TOOLS_JAR" \
> +         -Xverify:none \
>           org.codehaus.classworlds.Launcher "$ <at> "
>   fi
> $
>
> I'll post again when I've figured it out.
>
> Regards,
> Tim
>
> groovy-user-admin@... wrote on 24/03/2004 18:23:12:
>
>> I've been working with groovy in MS Windows with no problems, so I  
>> tried
>
>> installing groovy on an AIX 5.1 box with IBM's Java 1.4.
>>
>> # java -version
>> java version "1.4.0"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0)
>> Classic VM (build 1.4.0, J2RE 1.4.0 IBM AIX build cadev-20020513 (JIT
>> enabled: jitc))
>>
>> When I attempt to start the groovysh, I get the following exception:
>>
>> # groovysh
>> Exception in thread "main" java.lang.ClassCircularityError:
>> groovy/lang/Closure$WritableClosure
>>         at java/lang/ClassLoader.resolveClass0(Native Method)
>>         at java/lang/ClassLoader.resolveClass(ClassLoader.java:888)
>>         at java/lang/ClassLoader.loadClass(ClassLoader.java:536)
>>         at
>> org/codehaus/classworlds/RealmClassLoader.
>> loadClassDirect(RealmClassLoader.java:136)
>>         at
>> org/codehaus/classworlds/ClassRealmImpl.
>> loadClassDirect(ClassRealmImpl.java:262)
>>         at
>>
> org/codehaus/classworlds/ClassRealmImpl.loadClass(ClassRealmImpl.java: 
> 239)
>>         at
>>
> org/codehaus/classworlds/ 
> RealmClassLoader.loadClass(RealmClassLoader.java:155)
>>         at java/lang/ClassLoader.loadClass(ClassLoader.java:465)
>>         at java/lang/ClassLoader.defineClass0(Native Method)
>>         at java/lang/ClassLoader.defineClass(ClassLoader.java:728)
>>         at
>> java/security/SecureClassLoader.defineClass(SecureClassLoader.java: 
>> 149)
>>         at  
>> java/net/URLClassLoader.defineClass(URLClassLoader.java:320)
>>         at java/net/URLClassLoader.access$400(URLClassLoader.java:93)
>>         at
> java/net/URLClassLoader$ClassFinder.run(URLClassLoader.java:677)
>>         at java/security/AccessController.doPrivileged(Native Method)
>>         at java/net/URLClassLoader.findClass(URLClassLoader.java:239)
>>         at java/lang/ClassLoader.loadClass(ClassLoader.java:533)
>>         at
>> org/codehaus/classworlds/RealmClassLoader.
>> loadClassDirect(RealmClassLoader.java:136)
>>         at
>> org/codehaus/classworlds/ClassRealmImpl.
>> loadClassDirect(ClassRealmImpl.java:262)
>>         at
>>
> org/codehaus/classworlds/ClassRealmImpl.loadClass(ClassRealmImpl.java: 
> 239)
>>         at
>>
> org/codehaus/classworlds/ 
> RealmClassLoader.loadClass(RealmClassLoader.java:155)
>>         at java/lang/ClassLoader.loadClass(ClassLoader.java:465)
>>         at java/lang/ClassLoader.resolveClass0(Native Method)
>>         at java/lang/ClassLoader.resolveClass(ClassLoader.java:888)
>>         at java/lang/ClassLoader.loadClass(ClassLoader.java:536)
>>         at
>> org/codehaus/classworlds/RealmClassLoader.
>> loadClassDirect(RealmClassLoader.java:136)
>>         at
>> org/codehaus/classworlds/ClassRealmImpl.
>> loadClassDirect(ClassRealmImpl.java:262)
>>         at
>>
> org/codehaus/classworlds/ClassRealmImpl.loadClass(ClassRealmImpl.java: 
> 239)
>>         at
>>
> org/codehaus/classworlds/ 
> RealmClassLoader.loadClass(RealmClassLoader.java:155)
>>         at java/lang/ClassLoader.loadClass(ClassLoader.java:465)
>>         at java/lang/ClassLoader.resolveClass0(Native Method)
>>         at java/lang/ClassLoader.resolveClass(ClassLoader.java:888)
>>         at java/lang/ClassLoader.loadClass(ClassLoader.java:536)
>>         at
>> org/codehaus/classworlds/RealmClassLoader.
>> loadClassDirect(RealmClassLoader.java:136)
>>         at
>> org/codehaus/classworlds/ClassRealmImpl.
>> loadClassDirect(ClassRealmImpl.java:262)
>>         at
>>
> org/codehaus/classworlds/ClassRealmImpl.loadClass(ClassRealmImpl.java: 
> 239)
>>         at
>>
> org/codehaus/classworlds/ 
> RealmClassLoader.loadClass(RealmClassLoader.java:155)
>>         at java/lang/ClassLoader.loadClass(ClassLoader.java:465)
>>         at java/lang/Class.forName1(Native Method)
>>         at java/lang/Class.forName(Class.java:162)
>>         at
> groovy/lang/MetaClassRegistry.class$(MetaClassRegistry.java:83)
>>         at
> groovy/lang/MetaClassRegistry.<init>(MetaClassRegistry.java:83)
>>         at
> groovy/lang/MetaClassRegistry.<init>(MetaClassRegistry.java:72)
>>         at org/codehaus/groovy/runtime/Invoker.<init>(Invoker.java:83)
>>         at      at
>> org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.
>> java:82).null(Unknown
>> Source)
>>         at
>> groovy/lang/GroovyObjectSupport.<init>(GroovyObjectSupport.java:61)
>>         at groovy/lang/Binding.<init>(Binding.java:62)
>>         at groovy/lang/GroovyShell.<init>(GroovyShell.java:97)
>>         at groovy/ui/InteractiveShell.<init>(InteractiveShell.java:77)
>>         at groovy/ui/InteractiveShell.main(InteractiveShell.java:87)
>>         at sun/reflect/NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>>
> sun/reflect/ 
> NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
>>         at
>> sun/reflect/DelegatingMethodAccessorImpl.
>> invoke(DelegatingMethodAccessorImpl.java:28)
>>         at java/lang/reflect/Method.invoke(Method.java:327)
>>         at
>> org/codehaus/classworlds/Launcher.launchStandard(Launcher.java:410)
>>         at org/codehaus/classworlds/Launcher.launch(Launcher.java:344)
>>         at org/codehaus/classworlds/Launcher.main(Launcher.java:474)
>>
>> Any idea what could be causing this?
>>
>> Thanks
>> Andrew
>>
>> _______________________________________________
>> groovy-user mailing list
>> groovy-user@...
>> http://lists.codehaus.org/mailman/listinfo/groovy-user
>
> _______________________________________________
> groovy-user mailing list
> groovy-user@...
> http://lists.codehaus.org/mailman/listinfo/groovy-user
>
>

James
-------
http://radio.weblogs.com/0112098/

Gmane