java.lang.NullPointerException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by leavens
, 6 months ago
This exception has no message.
java.lang.NullPointerException:
at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2484)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2604)
at com.sun.tools.javac.parser.JmlParser.parseStatement(JmlParser.java:779)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2511)
at com.sun.tools.javac.parser.JmlParser.blockStatement(JmlParser.java:512)
at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2476)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2608)
at com.sun.tools.javac.parser.JmlParser.parseStatement(JmlParser.java:779)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2511)
at com.sun.tools.javac.parser.JmlParser.blockStatement(JmlParser.java:512)
at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2457)
at com.sun.tools.javac.parser.JmlParser.blockStatements(JmlParser.java:478)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2428)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2442)
at com.sun.tools.javac.parser.JavacParser.methodDeclaratorRest(JavacParser.java:3712)
at com.sun.tools.javac.parser.JavacParser.classOrInterfaceBodyDeclaration(JavacParser.java:3658)
at com.sun.tools.javac.parser.JmlParser.classOrInterfaceBodyDeclaration(JmlParser.java:901)
at com.sun.tools.javac.parser.JavacParser.classOrInterfaceBody(JavacParser.java:3562)
at com.sun.tools.javac.parser.JmlParser.classOrInterfaceBody(JmlParser.java:372)
at com.sun.tools.javac.parser.JavacParser.classDeclaration(JavacParser.java:3408)
at com.sun.tools.javac.parser.JavacParser.classOrInterfaceOrEnumDeclaration(JavacParser.java:3349)
at com.sun.tools.javac.parser.JmlParser.classOrInterfaceOrEnumDeclaration(JmlParser.java:306)
at com.sun.tools.javac.parser.JavacParser.typeDeclaration(JavacParser.java:3338)
at com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:3278)
at com.sun.tools.javac.parser.JmlParser.parseCompilationUnit(JmlParser.java:191)
at org.jmlspecs.openjml.JmlCompiler.parse(JmlCompiler.java:123)
at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:670)
at org.jmlspecs.openjml.JmlCompiler.parseFiles(JmlCompiler.java:243)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:864)
at com.sun.tools.javac.main.Main.compile(Main.java:553)
at org.jmlspecs.openjml.Main.compile(Main.java:556)
at com.sun.tools.javac.main.Main.compile(Main.java:399)
at org.jmlspecs.openjml.Main.execute(Main.java:392)
at org.jmlspecs.openjml.Main.execute(Main.java:350)
at org.jmlspecs.openjml.Main.execute(Main.java:337)
at org.jmlspecs.openjml.Main.main(Main.java:309)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.