Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException when running TestRig #48

Open
baruchl opened this issue Mar 25, 2015 · 3 comments
Open

java.lang.NullPointerException when running TestRig #48

baruchl opened this issue Mar 25, 2015 · 3 comments
Labels

Comments

@baruchl
Copy link

baruchl commented Mar 25, 2015

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

@sharwell sharwell added the bug label Mar 25, 2015
@baruchl
Copy link
Author

baruchl commented Mar 29, 2015

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
Copy link
Author

baruchl commented Mar 29, 2015

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
Copy link

pete-w commented Aug 15, 2016

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants