[antlr-interest] antlr 3.1b1 problems with DebugEventSocketProxy?

Terence Parr parrt at cs.usfca.edu
Mon Jun 2 15:10:32 PDT 2008


On Jun 2, 2008, at 1:31 PM, Doucette, Charles wrote:

> For the time being, I have reverted to the current/earlier version  
> of Antlr (i.e. 3.0.1 vs. 3.1b1).
>
> Is not being able to run multiple parsers a new restriction?

not in debug mode on same server socket.
Ter
>
> If so, is that configurable?
> This may impact the code that I am developing.
>
> Thanks,
> Chuck
>
>> -----Original Message-----
>> From: Terence Parr [mailto:parrt at cs.usfca.edu]
>> Sent: Monday, June 02, 2008 2:34 PM
>> To: Doucette, Charles
>> Cc: antlr-interest Interest
>> Subject: Re: [antlr-interest] antlr 3.1b1 problems with
>> DebugEventSocketProxy?
>>
>> more than one parser is running...
>>
>> $ killall java
>>
>> Ter
>> On Jun 2, 2008, at 11:26 AM, Doucette, Charles wrote:
>>
>>> I am trying to debug a parser I generated with Antlr 3.1b1, and I'm
>>> seeing two at least problems:
>>>
>>> This is an error:
>>>
>>> java.lang.NullPointerException
>>> at
>>> org
>>> .antlr
>>> .runtime
>>>
>> .debug.DebugEventSocketProxy.transmit(DebugEventSocketProxy.java:116)
>>> at
>>> org
>>> .antlr
>>> .runtime
>>>
>> .debug.DebugEventSocketProxy.exitRule(DebugEventSocketProxy.java:130)
>>> at
>>> com
>>> .vaultus
>>> .studio
>>> .vscript.parser.antlr.vscriptParser.vscript(vscriptParser.java:488)
>>> at
>>> com
>>> .vaultus
>>> .studio
>>> .vscript
>>>
>> .parser.plugin.VScriptSourceParser.parse(VScriptSourceParser.java:69)
>>>
>>> Here's the code sequence that invokes this:
>>> finally {
>>>
>>> dbg.exitRule(getGrammarFileName(), "vscript");
>>>
>>> decRuleLevel();
>>>
>>> if ( getRuleLevel()==0 ) {dbg.terminate();}
>>>
>>> }
>>>
>>> I haven't yet looked at the Antlr source code to see
>> exactly what is
>>> causing this problem.
>>>
>>> This is a warning:
>>>
>>> java.net.BindException: Address already in use: JVM_Bind at
>>> java.net.PlainSocketImpl.socketBind(Native Method) at
>>> java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>>> at java.net.ServerSocket.bind(ServerSocket.java:319)
>>> at java.net.ServerSocket.<init>(ServerSocket.java:185)
>>> at java.net.ServerSocket.<init>(ServerSocket.java:97)
>>> at
>>> org
>>> .antlr
>>> .runtime
>>>
>> .debug.DebugEventSocketProxy.handshake(DebugEventSocketProxy.java:75)
>>> at
>>> com
>>> .vaultus
>>>
>> .studio.vscript.parser.antlr.vscriptParser.<init>(vscriptParser.java:
>>> 351)
>>> at
>>> com
>>> .vaultus
>>>
>> .studio.vscript.parser.antlr.vscriptParser.<init>(vscriptParser.java:
>>> 341)
>>> at
>>> com
>>> .vaultus
>>> .studio
>>> .vscript
>>>
>> .parser.plugin.VScriptSourceParser.parse(VScriptSourceParser.java:62)
>>>
>>> Chuck
>>>
>>> Charles E. Doucette *  617-399-1122 *  Vaultus Mobile Technologies,
>>> 263 Summer St., Boston, MA 02210 *  http://www.vaultus.com
>>>
>>
>>



More information about the antlr-interest mailing list