org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during semantic analysis: unable to locate the compiler com.sun.tools.javac.Main, please change your classloader settings : unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings

coderanch.com | 3 months ago
  1. 0

    problems running the app after plugin installation (Groovy forum at Coderanch)

    coderanch.com | 3 months ago
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during semantic analysis: unable to locate the compiler com.sun.tools.javac.Main, please change your classloader settings : unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings
  2. 0

    If a library includes syntax errors, the build pretends to start but cannot be killed: {code:none} Started by user anonymous ERROR: failed to start build org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: file:/.../workflow-libs/src/chef/Cookbook.groovy: 5: Invalid duplicate class definition of class chef.Cookbook : The source file:/.../workflow-libs/src/chef/Cookbook.groovy contains at least two definitions of the class chef.Cookbook. One of the classes is an explicit generated class using the class statement, the other is a class generated from the script body based on the file name. Solutions are to change the file name or to change the class name. @ line 5, column 1. class Cookbook { ^ 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:861) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:550) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:526) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:503) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731) at groovy.lang.GroovyShell.parse(GroovyShell.java:743) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:100) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:346) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:314) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:176) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) at hudson.model.OneOffExecutor.run(OneOffExecutor.java:43) {code} where the library starts {code} package chef; def script = this; class Cookbook { ... } {code}

    Jenkins JIRA | 2 years ago | Jesse Glick
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: file:/.../workflow-libs/src/chef/Cookbook.groovy: 5: Invalid duplicate class definition of class chef.Cookbook : The source file:/.../workflow-libs/src/chef/Cookbook.groovy contains at least two definitions of the class chef.Cookbook. One of the classes is an explicit generated class using the class statement, the other is a class generated from the script body based on the file name. Solutions are to change the file name or to change the class name. @ line 5, column 1. class Cookbook { ^ 1 error
  3. 0

    java.lang.NullPointerException at com.sun.tools.javac.jvm.Code.width(Code.java:262)

    YouTrack | 6 years ago
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [12:07:02] [groovyc] Abnormal termination of javac. [12:07:02] [groovyc] An exception has occurred in the compiler (1.6.0_18). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. [12:07:02] [groovyc] java.lang.NullPointerException [12:07:02] [groovyc] at com.sun.tools.javac.jvm.Code.width(Code.java:262) [12:07:02] [groovyc] at com.sun.tools.javac.jvm.ClassReader.readMemberAttr(ClassReader.java:880) [12:07:02] [groovyc] at com.sun.tools.javac.jvm.ClassReader.readMemberAttrs(ClassReader.java:1027) [12:07:02] [groovyc] at com.sun.tools.javac.jvm.ClassReader.readCode(ClassReader.java:1080) [12:07:02] [groovyc] at com.sun.tools.javac.jvm.ClassReader.readMemberAttr(ClassReader.java:834) [12:07:02] [groovyc] at com.sun.tools.javac.jvm.ClassReader.readMemberAttrs(ClassReader.java:1027) [12:07:02] [groovyc] at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:1490)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Plugin not working with Grails 2.3

    GitHub | 3 years ago | tbarnier
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: _NgGenerate_groovy: 60: unable to resolve class DefaultGrailsTemplateGenerator @ line 60, column 1. 1 error
  6. 0

    Plugin uses deprecated ApplicationHolder class which has now been removed in Grails 2.4

    GitHub | 3 years ago | graemerocher
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: _AssetCompile_groovy: 2: unable to resolve class org.codehaus.groovy.grails.commons.ApplicationHolder @ line 2, column 1. 1 error

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.codehaus.groovy.control.MultipleCompilationErrorsException

      startup failed: General error during semantic analysis: unable to locate the compiler com.sun.tools.javac.Main, please change your classloader settings : unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings

      at org.codehaus.groovy.tools.javac.JavacJavaCompiler.findJavac()
    2. Groovy
      JavaAwareCompilationUnit.gotoPhase
      1. org.codehaus.groovy.tools.javac.JavacJavaCompiler.findJavac(JavacJavaCompiler.java:190)
      2. org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java:49)
      3. org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java:94)
      3 frames