groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keegan Witt <keeganw...@gmail.com>
Subject Re: GroovyShell
Date Tue, 24 Nov 2015 22:35:13 GMT
Ah.  Yes, I'm reproducing your issue now.  Honestly, I don't know enough
about Grape to answer this.  Groovysh and GroovyConsole both use
GroovyShell underneath and I don't see that they do any customization of
classloading/classpaths.  At the moment, I'm stumped :(

-Keegan

On Wed, Nov 18, 2015 at 2:25 PM, tog <guillaume.alleon@gmail.com> wrote:

> Well I was more thinking along the lines asking Grab not to download the servlet-api
> coming probably with Apache Spark.
>
> But I did renamed the one in $GROOVY_HOME/lib and thibault's branch fixed
> my exception regarding Akka. I nevertheless have a new issue which again
> seems related to the way class are loaded.
>
> I really need to better understand which are the differences in running
> the very same script using the command line and GroovyShell ... there seems
> to be subtile differences that should explain that difference in behavior.
>
> Here is my new exception in case that rings a bell.
>
> tog GroovySpark $ $GROOVY_HOME/bin/groovy
> GroovySparkThroughGroovyShell.groovy
>
> org.apache.spark.SparkException: Job aborted due to stage failure: Task 0
> in stage 0.0 failed 1 times, most recent failure: Lost task 0.0 in stage
> 0.0 (TID 0, localhost): java.lang.ClassNotFoundException:
> Script1$_run_closure1
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
> at java.lang.Class.forName0(Native Method)
>
> at java.lang.Class.forName(Class.java:348)
>
> at
> org.apache.spark.serializer.JavaDeserializationStream$$anon$1.resolveClass(JavaSerializer.scala:67)
>
>
> Cheers
>
> Guillaume
>

Mime
View raw message