[antlr-interest] ANTLRWorks - Java null pointer exception

Vincent De Groote vdg.encelade at gmail.com
Sun Dec 12 13:48:18 PST 2010


Hello,

I downloaded today the ANTLRWORKS-1.4.1 package (antlrworks-1.4.1.jar).

I started the jar file with

java -jar ../Downloads/antlrworks-1.4.1.jar

When I use the sample expr grammar found on antlr site, the debugger
stops working a few steps after the beginning with java null pointer
exceptions on the console screen:


[---- CONSOLE OUTPUT
--------------------------------------------------------------------------] 

Checking Grammar expr.g...

Note: /home/vdg/antlr-test/output/exprParser.java uses unchecked or
unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

Note: /home/vdg/antlr-test/output/exprParser.java uses unchecked or
unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

java.lang.NullPointerException
java.lang.NullPointerException
	at
org.antlr.runtime.debug.RemoteDebugEventSocketListener.dispatch(RemoteDebugEventSocketListener.java:275)
	at
org.antlr.runtime.debug.RemoteDebugEventSocketListener.eventHandler(RemoteDebugEventSocketListener.java:176)
	at
org.antlr.runtime.debug.RemoteDebugEventSocketListener.run(RemoteDebugEventSocketListener.java:472)
	at java.lang.Thread.run(Thread.java:636)

[---- CONSOLE OUTPUT: end
--------------------------------------------------------------------------]


I have the same result with another grammar I downloaded from the site.

Any idea ?

Thanks for your help

Vincent De Groote



More information about the antlr-interest mailing list