Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5473

groovysh 2.0.0-beta-3 ERROR java.lang.ClassCastException: required class java.lang.Class but encountered class org.fusesource.jansi.AnsiRenderer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-3
    • Fix Version/s: 2.1.0-rc-1, 2.0.7
    • Component/s: Groovysh
    • Environment:
      Windows XP SP3

      Description

      Guillaume requested the I create a ticket for this issue originally reported on the groovy-user mailing list...

      I'm trying out the invoke dynamic (indy) version of groovy. When running groovysh 2.0.0-beta-3 with Java 1.7u4, the following error is continuously printing to the console

      C:\>groovysh
      Groovy Shell (2.0.0-beta-3, JVM: 1.7.0_04)
      Type 'help' or '\h' for help.
      -------------------------------------------------------------------------------
      ERROR java.lang.ClassCastException: required class java.lang.Class but encountered class org.fusesource.jansi.AnsiRenderer

      I'm running this on Windows XP SP3.

      I followed Cédric Champeau's instructions to copy the indy jar to the lib and rename it (http://groovy.329449.n5.nabble.com/ANN-Groovy-2-0-0-beta-3-td5691151.html). groovyConsole starts without these errors.

        Attachments

        1. groovysh-indy-logging-output.txt
          760 kB
          Pascal Schumacher

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              bbrooks Brian Brooks
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: