java.lang.NullPointerException

Scala JIRA | Charlie Martin | 3 years ago
  1. 0

    [SI-7882] scala 2.10.2 fails first try on Mac OS/X - Scala

    scala-lang.org | 11 months ago
    java.lang.NullPointerException
  2. 0

    Unpacked scala and try to run it. Fails, giving this output: ./scala Welcome to Scala version 2.10.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_51). Type in expressions to have them evaluated. Type :help for more information. scala> [init] error: error while loading <root>, error in opening zip file Failed to initialize compiler: object scala.runtime in compiler mirror not found. ** Note that as of 2.8 scala does not assume use of the java classpath. ** For the old behavior pass -usejavacp to scala, or if using a Settings ** object programatically, settings.usejavacp.value = true. Failed to initialize the REPL due to an unexpected error. This is a bug, please, report it along with the error diagnostics printed below. java.lang.NullPointerException at scala.tools.nsc.interpreter.ExprTyper$codeParser$.applyRule(ExprTyper.scala:24) at scala.tools.nsc.interpreter.ExprTyper$codeParser$.stmts(ExprTyper.scala:35) at scala.tools.nsc.interpreter.ExprTyper$$anonfun$parse$2.apply(ExprTyper.scala:43) at scala.tools.nsc.interpreter.ExprTyper$$anonfun$parse$2.apply(ExprTyper.scala:42) at scala.tools.nsc.reporters.Reporter.withIncompleteHandler(Reporter.scala:51) at scala.tools.nsc.interpreter.ExprTyper$class.parse(ExprTyper.scala:42) at scala.tools.nsc.interpreter.IMain$exprTyper$.parse(IMain.scala:1074) at scala.tools.nsc.interpreter.IMain.parse(IMain.scala:1078) at scala.tools.nsc.interpreter.IMain$$anonfun$showCodeIfDebugging$1.apply(IMain.scala:1168) at scala.tools.nsc.interpreter.IMain$$anonfun$showCodeIfDebugging$1.apply(IMain.scala:1168) at scala.tools.nsc.interpreter.IMain.beSilentDuring(IMain.scala:238) at scala.tools.nsc.interpreter.IMain.showCodeIfDebugging(IMain.scala:1168) at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compileAndSaveRun(IMain.scala:800) at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compile(IMain.scala:761) at scala.tools.nsc.interpreter.IMain.bind(IMain.scala:618) at scala.tools.nsc.interpreter.IMain.bind(IMain.scala:661) at scala.tools.nsc.interpreter.IMain$$anonfun$quietBind$1.apply(IMain.scala:660) at scala.tools.nsc.interpreter.IMain$$anonfun$quietBind$1.apply(IMain.scala:660) at scala.tools.nsc.interpreter.IMain.beQuietDuring(IMain.scala:232) at scala.tools.nsc.interpreter.IMain.quietBind(IMain.scala:660) at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$apply$mcZ$sp$2.apply$mcV$sp(ILoop.scala:838) at scala.tools.nsc.interpreter.ILoopInit$class.runThunks(ILoopInit.scala:122) at scala.tools.nsc.interpreter.ILoop.runThunks(ILoop.scala:42) at scala.tools.nsc.interpreter.ILoopInit$class.postInitialization(ILoopInit.scala:95) at scala.tools.nsc.interpreter.ILoop.postInitialization(ILoop.scala:42) at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply$mcV$sp(ILoopInit.scala:63) at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply(ILoopInit.scala:60) at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply(ILoopInit.scala:60) at scala.tools.nsc.io.package$$anon$3.call(package.scala:40) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) .

    Scala JIRA | 3 years ago | Charlie Martin
    java.lang.NullPointerException
  3. 0

    Unpacked scala and try to run it. Fails, giving this output: ./scala Welcome to Scala version 2.10.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_51). Type in expressions to have them evaluated. Type :help for more information. scala> [init] error: error while loading <root>, error in opening zip file Failed to initialize compiler: object scala.runtime in compiler mirror not found. ** Note that as of 2.8 scala does not assume use of the java classpath. ** For the old behavior pass -usejavacp to scala, or if using a Settings ** object programatically, settings.usejavacp.value = true. Failed to initialize the REPL due to an unexpected error. This is a bug, please, report it along with the error diagnostics printed below. java.lang.NullPointerException at scala.tools.nsc.interpreter.ExprTyper$codeParser$.applyRule(ExprTyper.scala:24) at scala.tools.nsc.interpreter.ExprTyper$codeParser$.stmts(ExprTyper.scala:35) at scala.tools.nsc.interpreter.ExprTyper$$anonfun$parse$2.apply(ExprTyper.scala:43) at scala.tools.nsc.interpreter.ExprTyper$$anonfun$parse$2.apply(ExprTyper.scala:42) at scala.tools.nsc.reporters.Reporter.withIncompleteHandler(Reporter.scala:51) at scala.tools.nsc.interpreter.ExprTyper$class.parse(ExprTyper.scala:42) at scala.tools.nsc.interpreter.IMain$exprTyper$.parse(IMain.scala:1074) at scala.tools.nsc.interpreter.IMain.parse(IMain.scala:1078) at scala.tools.nsc.interpreter.IMain$$anonfun$showCodeIfDebugging$1.apply(IMain.scala:1168) at scala.tools.nsc.interpreter.IMain$$anonfun$showCodeIfDebugging$1.apply(IMain.scala:1168) at scala.tools.nsc.interpreter.IMain.beSilentDuring(IMain.scala:238) at scala.tools.nsc.interpreter.IMain.showCodeIfDebugging(IMain.scala:1168) at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compileAndSaveRun(IMain.scala:800) at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compile(IMain.scala:761) at scala.tools.nsc.interpreter.IMain.bind(IMain.scala:618) at scala.tools.nsc.interpreter.IMain.bind(IMain.scala:661) at scala.tools.nsc.interpreter.IMain$$anonfun$quietBind$1.apply(IMain.scala:660) at scala.tools.nsc.interpreter.IMain$$anonfun$quietBind$1.apply(IMain.scala:660) at scala.tools.nsc.interpreter.IMain.beQuietDuring(IMain.scala:232) at scala.tools.nsc.interpreter.IMain.quietBind(IMain.scala:660) at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$apply$mcZ$sp$2.apply$mcV$sp(ILoop.scala:838) at scala.tools.nsc.interpreter.ILoopInit$class.runThunks(ILoopInit.scala:122) at scala.tools.nsc.interpreter.ILoop.runThunks(ILoop.scala:42) at scala.tools.nsc.interpreter.ILoopInit$class.postInitialization(ILoopInit.scala:95) at scala.tools.nsc.interpreter.ILoop.postInitialization(ILoop.scala:42) at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply$mcV$sp(ILoopInit.scala:63) at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply(ILoopInit.scala:60) at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply(ILoopInit.scala:60) at scala.tools.nsc.io.package$$anon$3.call(package.scala:40) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) .

    Scala JIRA | 3 years ago | Charlie Martin
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Doesn't work in scala 2.10.2

    GitHub | 3 years ago | fernandezpablo85
    java.lang.NullPointerException
  6. 0

    Custom Scala REPL Issues

    Stack Overflow | 3 years ago | James Hughes
    java.lang.NullPointerException

    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. java.lang.NullPointerException

      No message provided

      at scala.tools.nsc.interpreter.ExprTyper$codeParser$.applyRule()
    2. Scala Compiler
      package$$anon$3.call
      1. scala.tools.nsc.interpreter.ExprTyper$codeParser$.applyRule(ExprTyper.scala:24)
      2. scala.tools.nsc.interpreter.ExprTyper$codeParser$.stmts(ExprTyper.scala:35)
      3. scala.tools.nsc.interpreter.ExprTyper$$anonfun$parse$2.apply(ExprTyper.scala:43)
      4. scala.tools.nsc.interpreter.ExprTyper$$anonfun$parse$2.apply(ExprTyper.scala:42)
      5. scala.tools.nsc.reporters.Reporter.withIncompleteHandler(Reporter.scala:51)
      6. scala.tools.nsc.interpreter.ExprTyper$class.parse(ExprTyper.scala:42)
      7. scala.tools.nsc.interpreter.IMain$exprTyper$.parse(IMain.scala:1074)
      8. scala.tools.nsc.interpreter.IMain.parse(IMain.scala:1078)
      9. scala.tools.nsc.interpreter.IMain$$anonfun$showCodeIfDebugging$1.apply(IMain.scala:1168)
      10. scala.tools.nsc.interpreter.IMain$$anonfun$showCodeIfDebugging$1.apply(IMain.scala:1168)
      11. scala.tools.nsc.interpreter.IMain.beSilentDuring(IMain.scala:238)
      12. scala.tools.nsc.interpreter.IMain.showCodeIfDebugging(IMain.scala:1168)
      13. scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compileAndSaveRun(IMain.scala:800)
      14. scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compile(IMain.scala:761)
      15. scala.tools.nsc.interpreter.IMain.bind(IMain.scala:618)
      16. scala.tools.nsc.interpreter.IMain.bind(IMain.scala:661)
      17. scala.tools.nsc.interpreter.IMain$$anonfun$quietBind$1.apply(IMain.scala:660)
      18. scala.tools.nsc.interpreter.IMain$$anonfun$quietBind$1.apply(IMain.scala:660)
      19. scala.tools.nsc.interpreter.IMain.beQuietDuring(IMain.scala:232)
      20. scala.tools.nsc.interpreter.IMain.quietBind(IMain.scala:660)
      21. scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$apply$mcZ$sp$2.apply$mcV$sp(ILoop.scala:838)
      22. scala.tools.nsc.interpreter.ILoopInit$class.runThunks(ILoopInit.scala:122)
      23. scala.tools.nsc.interpreter.ILoop.runThunks(ILoop.scala:42)
      24. scala.tools.nsc.interpreter.ILoopInit$class.postInitialization(ILoopInit.scala:95)
      25. scala.tools.nsc.interpreter.ILoop.postInitialization(ILoop.scala:42)
      26. scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply$mcV$sp(ILoopInit.scala:63)
      27. scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply(ILoopInit.scala:60)
      28. scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply(ILoopInit.scala:60)
      29. scala.tools.nsc.io.package$$anon$3.call(package.scala:40)
      29 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      5. java.lang.Thread.run(Thread.java:680)
      5 frames