tunnelvisionlabs / antlrworks2

Tunnel Vision Labs' ANTLRWorks 2 IDE
http://tunnelvisionlabs.com/products/antlrworks
Other
48 stars 21 forks source link

java.lang.NullPointerException when running TestRig #48

Open baruchl opened 9 years ago

baruchl commented 9 years ago

Hello, I'm using antlrworks2 version 2.1. When I try to run testrig on any grammar file and input file, I get the following exception in the notification window, and from there I cannot recover:

java.lang.NullPointerException
    at org.antlr.works.editor.grammar.actions.RunInTestRigAction$TestRigTask.run(RunInTestRigAction.java:295)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)

Attached is the grammar and input file I'm using, please note it happens all the time for any file. math_eample --> change the file extension to .txt

calculator --> change the file extension to .g

Appreciate any help. Busi

baruchl commented 9 years ago

Additional system info for debug: Java: 1.7.0_76; Java HotSpot(TM) 64-Bit Server VM 24.76-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_76-b36 System: Windows 8 version 6.2 running on amd64; Cp1255; en_US (antlrworks2)

baruchl commented 9 years ago

Update: When I downloaded JDK 8U40 it worked! this is the new system info: Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26

I'm leaving the issue opened for 1.7.

pete-w commented 8 years ago

Same stack trace with the following system:

Product Version: ANTLRWorks 2 20130716-5d2e7d936ca1 Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Windows 7 version 6.1 running on amd64; Cp1252; en_NZ (antlrworks2)