groovyConsole doesn't start

Bug #1842928 reported by Beowulf
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
groovy (Debian)
Fix Released
Unknown
groovy (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Open terminal, type groovyConsole
Expected behavior: Groovy sonsole shows up
Actual behavior: An exception is printed

java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:116)
 at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:138)
Caused by: groovy.lang.MissingMethodException: No signature of method: javax.swing.JMenu.setMnemonic() is applicable for argument types: (java.lang.String) values: [F]
Possible solutions: setMnemonic(char), setMnemonic(int), getMnemonic()
 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:77)
 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:80)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:177)
 at groovy.ui.view.BasicMenuBar$_run_closure1.doCall(BasicMenuBar.groovy:22)
 at groovy.ui.view.BasicMenuBar$_run_closure1.doCall(BasicMenuBar.groovy)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
 at groovy.lang.Closure.call(Closure.java:420)
 at groovy.lang.Closure.call(Closure.java:414)
 at groovy.util.FactoryBuilderSupport.dispatchNodeCall(FactoryBuilderSupport.java:899)
 at groovy.util.FactoryBuilderSupport.doInvokeMethod(FactoryBuilderSupport.java:791)
 at groovy.util.FactoryBuilderSupport.invokeMethod(FactoryBuilderSupport.java:511)
 at groovy.util.FactoryInterceptorMetaClass.invokeMethod(FactoryBuilderSupport.java:1322)
 at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
 at groovy.lang.Script.invokeMethod(Script.java:80)
 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:74)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:83)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:169)
 at groovy.ui.view.BasicMenuBar.run(BasicMenuBar.groovy:21)
 at groovy.util.FactoryBuilderSupport.build(FactoryBuilderSupport.java:1181)
 at groovy.util.FactoryBuilderSupport.build(FactoryBuilderSupport.java:1164)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:169)
 at groovy.ui.Console$__clinit__closure25.doCall(Console.groovy:267)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
 at groovy.ui.ConsoleView$_run_closure1.doCall(ConsoleView.groovy:62)
 at groovy.ui.ConsoleView$_run_closure1.doCall(ConsoleView.groovy)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104)
 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
 at groovy.lang.Closure.call(Closure.java:420)
 at groovy.lang.Closure.call(Closure.java:414)
 at groovy.util.FactoryBuilderSupport.dispatchNodeCall(FactoryBuilderSupport.java:899)
 at groovy.util.FactoryBuilderSupport.doInvokeMethod(FactoryBuilderSupport.java:791)
 at groovy.util.FactoryBuilderSupport.invokeMethod(FactoryBuilderSupport.java:511)
 at groovy.util.FactoryInterceptorMetaClass.invokeMethod(FactoryBuilderSupport.java:1322)
 at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
 at groovy.lang.Script.invokeMethod(Script.java:80)
 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:74)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:157)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:177)
 at groovy.ui.ConsoleView.run(ConsoleView.groovy:59)
 at groovy.util.FactoryBuilderSupport.build(FactoryBuilderSupport.java:1181)
 at groovy.util.FactoryBuilderSupport.build(FactoryBuilderSupport.java:1164)
 at groovy.util.FactoryBuilderSupport$build$4.call(Unknown Source)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
 at groovy.ui.Console.run(Console.groovy:308)
 at groovy.ui.Console$run$1.callCurrent(Unknown Source)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:157)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:169)
 at groovy.ui.Console.run(Console.groovy:271)
 at groovy.ui.Console$run$0.call(Unknown Source)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
 at groovy.ui.Console.main(Console.groovy:205)

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: groovy 2.4.16-2ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-27.28-generic 5.0.21
Uname: Linux 5.0.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: Unity:Unity7:ubuntu
Date: Thu Sep 5 16:32:22 2019
EcryptfsInUse: Yes
InstallationDate: Installed on 2018-01-06 (606 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
PackageArchitecture: all
SourcePackage: groovy
UpgradeStatus: Upgraded to disco on 2019-07-25 (41 days ago)

Revision history for this message
Beowulf (s-highlander) wrote :
Revision history for this message
Beowulf (s-highlander) wrote :

java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

I get the same error message when attempting to start groovyConsole on Ubuntu Focal.

Changed in groovy (Ubuntu):
status: New → Confirmed
tags: added: eoan focal
Logan Rosen (logan)
Changed in groovy (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Changed in groovy (Debian):
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package groovy - 2.4.17-4ubuntu1

---------------
groovy (2.4.17-4ubuntu1) focal; urgency=medium

  * Merge with Debian unstable (LP: #1842928). Remaining changes:
    - debian/patches/exclude_groovydoc.patch: exclude
      EncodingGroovyMethodsSupport.java from groovydoc - without it, the
      archive builder fails with no log.

groovy (2.4.17-4) unstable; urgency=medium

  * Team upload.
  * disable timestamps from javadoc
  * install icon for Groovy Console

groovy (2.4.17-3) unstable; urgency=medium

  [ tony mancill ]
  * Team upload.
  * Use debhelper 12
  * Update debian/watch

  [ Hans-Christoph Steiner ]
  * use a fixed timestamp to support reproducible builds

groovy (2.4.17-2) unstable; urgency=medium

  * Team upload.
  * Add patch to fix groovyConsole exception. (Closes: #929460)
  * Fix typo in Recommends for junit4-doc
  * Add lintian override for needless-suggest-recommend-libservlet-java
  * Remove dangling symlink to testng.jar (Closes: #874755)
    (Recommends was removed in 2.4.8-2)
  * Remove dangling symlink to jsr166y (Closes: #874711)

groovy (2.4.17-1) unstable; urgency=medium

  * Team upload.
  * New upstream release
    - Refreshed the patches
    - Updated the poms
  * Standards-Version updated to 4.4.0

 -- Logan Rosen <email address hidden> Thu, 13 Feb 2020 23:26:03 -0500

Changed in groovy (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Beowulf (s-highlander) wrote :

I do not have this issue anymore, please close the ticket.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.