org.codehaus.commons.compiler.CompileException

Line 1, Column 7: Assignment conversion not possible from type "java.lang.String" to type "int"

Solutions on the web15

  • via GitHub by laurent149
    , 6 months ago
    Line 1, Column 7: Assignment conversion not possible from type "java.lang.String" to type "int"
  • via Apache's JIRA Issue Tracker by Renkai Ge, 1 year ago
    Line 46, Column 11: Expression "null" is not a type
  • Line 1, Column 7: A class 'ch.qos.logback.classic.Level' could not be found
  • Stack trace

    • org.codehaus.commons.compiler.CompileException: Line 1, Column 7: Assignment conversion not possible from type "java.lang.String" to type "int" at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:11523) at org.codehaus.janino.UnitCompiler.assignmentConversion(UnitCompiler.java:10379) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1881) at org.codehaus.janino.UnitCompiler.access$2300(UnitCompiler.java:209) at org.codehaus.janino.UnitCompiler$6.visitSwitchStatement(UnitCompiler.java:1451) at org.codehaus.janino.UnitCompiler$6.visitSwitchStatement(UnitCompiler.java:1438) at org.codehaus.janino.Java$SwitchStatement.accept(Java.java:3220) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1438) at org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:1518) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2950) at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:1308) at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:1281) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:780) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:431) at org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:209) at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:385) at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:380) at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1405) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:380) at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:354) at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:413) at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:318) at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:597) at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:489) at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:422) at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:200) at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:76) at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:71)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    8 times, 6 months ago