You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "John Wagenleitner (JIRA)" <ji...@apache.org> on 2015/12/27 09:09:49 UTC

[jira] [Commented] (GROOVY-7628) NoClassDefFoundError when creating a javafx.concurrent.Task

    [ https://issues.apache.org/jira/browse/GROOVY-7628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15072087#comment-15072087 ] 

John Wagenleitner commented on GROOVY-7628:
-------------------------------------------

Think the problem is that the [ProxyGeneratorAdapter uses the classloader of the proxy|https://github.com/apache/groovy/blob/ebf4a9227697f0cfd83eb605741bcccf6605329e/src/main/org/codehaus/groovy/runtime/ProxyGeneratorAdapter.java#L148] and javafx is loaded by the Extension classloader that doesn't know of the GroovyObject (which the proxy class extends).

> NoClassDefFoundError when creating a javafx.concurrent.Task
> -----------------------------------------------------------
>
>                 Key: GROOVY-7628
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7628
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-runtime
>    Affects Versions: 2.4.3
>         Environment: Windows 7
> java version "1.8.0_60"
> Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
> Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
>            Reporter: Jan Becker
>            Priority: Minor
>         Attachments: screenshot-1.png
>
>
> This code
> {noformat}
> def connectTask = {println "connected"} as javafx.concurrent.Task
> connectTask.start()
> {noformat}
> yields this error
> {noformat}
> Exception thrown
> java.lang.NoClassDefFoundError: groovy/lang/GroovyObject
> 	at ConsoleScript6.run(ConsoleScript6:1)
> Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyObject
> 	... 1 more
> {noformat}
> Any idea what i am doing wrong, or have i discovered a bug?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)