jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-2559

java.lang.NoClassDefFoundError: java/lang/Appendable

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.5.2
  • Fix Version/s: None
  • Component/s: Groovysh
  • Labels:
    None
  • Environment:
    windows cygwin shell or cmd.exe

Description

$ groovysh
FATAL: java.lang.NoClassDefFoundError: java/lang/Appendable
java.lang.NoClassDefFoundError: java/lang/Appendable
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at org.codehaus.groovy.tools.RootLoader.oldFindClass(RootLoader.java:142)
at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:114)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at jline.ConsoleReader.<init>(ConsoleReader.java:140)
at jline.ConsoleReader.<init>(ConsoleReader.java:188)
at jline.ConsoleReader.<init>(ConsoleReader.java:183)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39
)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl
.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:528)
at groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2347)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1244)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1174)
at org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:805)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:227
)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.<init>(InteractiveShellRunner.groovy
:48)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39
)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl
.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:528)
at groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2347)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1244)
at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1174)
at org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:805)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:227
)
at org.codehaus.groovy.tools.shell.Groovysh.run(Groovysh.groovy:515)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:899)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdap
ter.java:77)
at org.codehaus.groovy.tools.shell.Groovysh.run(Groovysh.groovy:482)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:899)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:777)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:757)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:
167)
at org.codehaus.groovy.tools.shell.Main.main(Main.groovy:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. GROOVY-2380 groovysh not working with JVM 1.4.2_06-b03

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
jiracodehouse added a comment - 30/Jan/08 9:05 AM

Using java j2sdk1.4.2_05 does not work.
Using java 1.5.0_06-b05 does work, but the docu says
-------------------------------------------------snippet from pdf----------------------------------
Runtime dependencies
As well as Java 1.4, or above, and the Groovy jar we also depend at runtime on the ASM library (asm and
asm-tree mainly), as well as Antlr. You can also use the groovy-all-xxx.jar from your
GROOVY_HOME/embeddable directory, which embeds ASM and Antlr in its own namespace, to avoid Jar
version hell.
Document generated by Confluence on Dec 07, 2007 12:38 Page 19

Show
jiracodehouse added a comment - 30/Jan/08 9:05 AM Using java j2sdk1.4.2_05 does not work. Using java 1.5.0_06-b05 does work, but the docu says -------------------------------------------------snippet from pdf---------------------------------- Runtime dependencies As well as Java 1.4, or above, and the Groovy jar we also depend at runtime on the ASM library (asm and asm-tree mainly), as well as Antlr. You can also use the groovy-all-xxx.jar from your GROOVY_HOME/embeddable directory, which embeds ASM and Antlr in its own namespace, to avoid Jar version hell. Document generated by Confluence on Dec 07, 2007 12:38 Page 19
Hide
Permalink
blackdrag blackdrag added a comment - 30/Jan/08 10:27 AM

only groovysh depends on 1.5 and only because a JLine version for 1.4 is still missing

Show
blackdrag blackdrag added a comment - 30/Jan/08 10:27 AM only groovysh depends on 1.5 and only because a JLine version for 1.4 is still missing
Hide
Permalink
Guillaume Laforge added a comment - 30/Jan/08 3:11 PM

This is a known issue.
As said, our dependency on JLine causes this issue.
We're waiting eagerly for an updated version of JLine.
The problem only happens with Groovysh, please try to use GroovyConsole in the interim?

Show
Guillaume Laforge added a comment - 30/Jan/08 3:11 PM This is a known issue. As said, our dependency on JLine causes this issue. We're waiting eagerly for an updated version of JLine. The problem only happens with Groovysh, please try to use GroovyConsole in the interim?

People

  • Assignee:
    Jason Dillon
    Reporter:
    jiracodehouse
Vote (0)
Watch (0)

Dates

  • Created:
    30/Jan/08 8:59 AM
    Updated:
    30/Jan/08 3:11 PM
    Resolved:
    30/Jan/08 3:11 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.