[antlr-interest] Antlrworks Debug givesjava.net.ConnectionException
Chris Snyder
snyder at t-vec.com
Tue Feb 12 12:17:30 PST 2008
In case someone else has a similar problem here is what I found.
I had about 110 function names that I wanted to match to distinguish between
built in and user defined names. If I remove all those names from the lexer
and default to looking for (Identifier LPAREN) I can debug.
I did try having the names in the parser instead of the lexer with the same
result. I think I can work around this issue though.
C
-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Chris Snyder
Sent: Tuesday, February 12, 2008 2:34 PM
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Antlrworks Debug
givesjava.net.ConnectionException
Thanks for the response.
I had already tried that but it turns out not to be the problem.
Apparently I have a grammar issue.
I clicked on the output window in the debugger and saw this:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.antlr.runtime.DFA.unpackEncodedString(DFA.java:151)
at MScriptLexer.<clinit>(MScriptLexer.java:14863)
at __Test__.main(__Test__.java:9)
I tried increasing the heap with Xmx1024m but am still getting this error.
I downloaded the antlr source and loaded everything up in Eclipse but that
class turns out to not in the source distribution I downloaded here
http://antlr.org/download.html.
The DFA28_transitionS variable that it is being looped over and passed to
unpackEncodedString has 1344 Strings in it. Is there something I should look
for in my grammar to reduce this array size?
Thank you,
Chris
________________________________________
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Jim Idle
Sent: Tuesday, February 12, 2008 1:37 PM
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Antlrworks Debug gives
java.net.ConnectionException
Try changing the port number in preferences, something else is possibly
using the same port.
Jim
From: Chris Snyder [mailto:snyder at t-vec.com]
Sent: Tuesday, February 12, 2008 10:09 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Antlrworks Debug gives java.net.Connection
Exception
Hello,
Im trying to use the Antlrworks debugger locally but I keep getting the
error:
java.net.ConnectException: Connection refused: connect
and a dialog box that says:
Cannot launch the debugger.
Time-out waiting to connect to the remote parser.
I tried turning off the Windows firewall but that didnt help.
Can someone provide the work around for this issue?
Thanks,
Chris
T-VEC Technologies, Inc.
More information about the antlr-interest
mailing list