Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00B1218447 for ; Sat, 20 Feb 2016 15:47:24 +0000 (UTC) Received: (qmail 35081 invoked by uid 500); 20 Feb 2016 15:47:20 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 35035 invoked by uid 500); 20 Feb 2016 15:47:20 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 34981 invoked by uid 99); 20 Feb 2016 15:47:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Feb 2016 15:47:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 62831180185 for ; Sat, 20 Feb 2016 15:47:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.98 X-Spam-Level: X-Spam-Status: No, score=0.98 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Ub4ROIMoq4K2 for ; Sat, 20 Feb 2016 15:47:19 +0000 (UTC) Received: from pmta2.delivery5.ore.mailhop.org (pmta2.delivery5.ore.mailhop.org [54.186.218.12]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 8FD215F3F5 for ; Sat, 20 Feb 2016 15:47:18 +0000 (UTC) X-MHO-User: 68629f6f-d7e9-11e5-8de6-958346fd02ba X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 69.135.186.89 X-Mail-Handler: DuoCircle Outbound SMTP Received: from [192.168.1.30] (unknown [69.135.186.89]) by outbound2.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA for ; Sat, 20 Feb 2016 15:48:37 +0000 (UTC) Message-ID: <56C88A7C.10102@apache.org> Date: Sat, 20 Feb 2016 10:47:08 -0500 From: Carl Marcum User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: users@groovy.apache.org Subject: No suitable ClassLoader found for grab Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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