org.codehaus.commons.compiler.CompileException: Line 1, Column 7: Assignment conversion not possible from type "java.lang.String" to type "int"

GitHub | laurent149 | 2 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Strings in switch statement

    GitHub | 2 months ago | laurent149
    org.codehaus.commons.compiler.CompileException: Line 1, Column 7: Assignment conversion not possible from type "java.lang.String" to type "int"
  2. 0

    Pico compiler on iOS

    Stack Overflow | 1 month ago | Votre Patron
    org.codehaus.janino.JaninoRuntimeException: SNO: Conversion failed

  1. tyson925 4 times, last 5 months ago
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.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()
  2. Janino
    SimpleCompiler.cook
    1. org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:11523)
    2. org.codehaus.janino.UnitCompiler.assignmentConversion(UnitCompiler.java:10379)
    3. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1881)
    4. org.codehaus.janino.UnitCompiler.access$2300(UnitCompiler.java:209)
    5. org.codehaus.janino.UnitCompiler$6.visitSwitchStatement(UnitCompiler.java:1451)
    6. org.codehaus.janino.UnitCompiler$6.visitSwitchStatement(UnitCompiler.java:1438)
    7. org.codehaus.janino.Java$SwitchStatement.accept(Java.java:3220)
    8. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1438)
    9. org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:1518)
    10. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2950)
    11. org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:1308)
    12. org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:1281)
    13. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:780)
    14. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:431)
    15. org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:209)
    16. org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:385)
    17. org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:380)
    18. org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1405)
    19. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:380)
    20. org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:354)
    21. org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:413)
    22. org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:318)
    23. org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:597)
    24. org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:489)
    25. org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:422)
    26. org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:200)
    26 frames
  3. Commons Compiler
    Cookable.cook
    1. org.codehaus.commons.compiler.Cookable.cook(Cookable.java:76)
    2. org.codehaus.commons.compiler.Cookable.cook(Cookable.java:71)
    2 frames