Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3320

can't open Groovy console under Java 11 in 2.11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.0
    • Fix Version/s: 2.11.0
    • Component/s: Dev and Dep, java11
    • Labels:
    • Environment:
      Jalview Version: DEVELOPMENT
      Jalview Installation: Source git-commit:7ab3918b5 [develop]
      Build Date: 15:52:22 18 June 2019
      Java version: 11.0.1
      x86_64 Mac OS X 10.13.6

      Description

      Opening the Groovy Console raises the following exception:
      WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/Users/jprocter/git/jalview/build/libs/jalview-all-11.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: groovy/swing/SwingBuilder
      at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
      at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3167)
      at java.base/java.lang.Class.privateGetPublicMethods(Class.java:3192)
      at java.base/java.lang.Class.getMethods(Class.java:1905)
      at java.desktop/com.sun.beans.introspect.MethodInfo.get(MethodInfo.java:71)
      at java.desktop/com.sun.beans.introspect.ClassInfo.getMethods(ClassInfo.java:71)
      at java.desktop/java.beans.Introspector.getTargetMethodInfo(Introspector.java:1046)
      at java.desktop/java.beans.Introspector.getBeanInfo(Introspector.java:462)
      at java.desktop/java.beans.Introspector.getBeanInfo(Introspector.java:205)
      at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:3356)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3354)
      at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3331)
      at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:287)
      at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:329)
      at org.codehaus.groovy.runtime.callsite.ClassMetaClassGetPropertySite.<init>(ClassMetaClassGetPropertySite.java:37)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.createClassMetaClassGetPropertySite(AbstractCallSite.java:379)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.createGetPropertySite(AbstractCallSite.java:327)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.acceptGetProperty(AbstractCallSite.java:314)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:298)
      at groovy.ui.Console.<clinit>(Console.groovy:187)
      at jalview.gui.Desktop.openGroovyConsole(Desktop.java:2707)
      at jalview.gui.Desktop.groovyShell_actionPerformed(Desktop.java:2688)
      at jalview.jbgui.GDesktop$23.actionPerformed(GDesktop.java:400)
      at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
      at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
      at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
      at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
      at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
      at java.desktop/com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:129)
      at java.desktop/java.awt.MenuItem.processActionEvent(MenuItem.java:690)
      at java.desktop/java.awt.MenuItem.processEvent(MenuItem.java:649)
      at java.desktop/java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:375)
      at java.desktop/java.awt.MenuComponent.dispatchEvent(MenuComponent.java:363)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      Caused by: java.lang.ClassNotFoundException: groovy.swing.SwingBuilder
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
      ... 51 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              soares Ben Soares
              Reporter:
              jprocter Jim Procter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: