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

Terence Parr parrt at cs.usfca.edu
Mon Jun 2 11:33:51 PDT 2008


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