groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Schumacher <pascalschumac...@gmx.net>
Subject Re: No suitable ClassLoader found for grab
Date Sun, 21 Feb 2016 12:34:02 GMT
Hi Carl,

this exception could be cause by java security setting.

Groovy 1.8.6 is a bit old. There were a several fixes and enhancements 
to grab between 1.8 and 2.4. Also the Apache Ivy version - which is use 
by grab - was updated multiple times between 1.8 and 2.4.

Cheers,
Pascal

Am 20.02.2016 um 16:47 schrieb Carl Marcum:
> Hi All,
>
> I distributed a Groovy script for users to test a connection to Apache 
> OpenOffice.
>
> It started with grabbing jars from maven:
> @Grab("org.openoffice:juh:4.1.2")
> @Grab("org.openoffice:ridl:4.1.2")
> @Grab("org.openoffice:unoil:4.1.2")
> @Grab("org.openoffice:jurt:4.1.2")
> @GrabConfig(systemClassLoader=true)
>
> import com.sun.star.lang.XMultiComponentFactory
> import com.sun.star.uno.XComponentContext
> import com.sun.star.comp.helper.BootstrapException
> import com.sun.star.connection.NoConnectException
> import ooo.connector.BootstrapSocketConnector
>
> Works fine for me and but one user reported this error:
>
> org.codehaus.groovy.control.MultipleCompilationErrorsException: 
> startup failed:
> General error during conversion: No suitable ClassLoader found for grab
>
> java.lang.RuntimeException: No suitable ClassLoader found for grab
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>     at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
> The system was Fedora 20 and
> $ groovy -version
> Groovy Version: 1.8.9 JVM: 1.7.0_79 Vendor: Oracle Corporation OS: Linux
> $ javac -version
> javac 1.7.0_79
>
> Same user reported no problems on another machine with Fedora 23 and 
> Groovy version 2.4.4 and Java 8
>
> I'm new using grab so it could be me.
>
> Any ideas what can cause this error?
>
> Thanks,
> Carl Marcum
> Apache OpenOffice committer and PMC member
>


Mime
View raw message