cyclic exception nesting infinite loop

Peter Wisnovsky <[email protected]> Mon, 28 Jul 2003 13:13:47 -0700
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
I'm trying to convert a module that built on the Java module to the
Projects APIs. I'm getting a problem with a null pointer exception:

*********** Exception occurred ************ at Mon Jul 28 13:02:29 PDT 2003
Annotation: Parser error
java.lang.NullPointerException
	at org.netbeans.modules.java.gj.V8ClassReader.setBootClassPath(V8ClassReader.java:244)
	at org.netbeans.modules.java.gj.V8EngineBase.setSearchPaths(V8EngineBase.java:162)
	at org.netbeans.modules.java.gj.JavaParserEngine.getEngine(JavaParserEngine.java:100)
	at org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngine.java:70)
	at org.netbeans.modules.java.parser.ParsingSupport$Processor.process(ParsingSupport.java:703)
	at org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(ParsingSupport.java:654)
[catch] at org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.java:585)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:677)
==>
WARNING - ErrorManager detected cyclic exception nesting:
	java.lang.NullPointerException
Be sure not to annotate an exception with itself, directly or indirectly.
*********** Exception occurred ************ at Mon Jul 28 13:02:29 PDT 2003
Annotation: Parser error
java.lang.NullPointerException
	at org.netbeans.modules.java.gj.V8ClassReader.setBootClassPath(V8ClassReader.java:244)
	at org.netbeans.modules.java.gj.V8EngineBase.setSearchPaths(V8EngineBase.java:162)
	at org.netbeans.modules.java.gj.JavaParserEngine.getEngine(JavaParserEngine.java:100)
	at org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngine.java:70)
	at org.netbeans.modules.java.parser.ParsingSupport$Processor.process(ParsingSupport.java:703)
	at org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(ParsingSupport.java:654)
[catch] at org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.java:585)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:677)
==>
WARNING - ErrorManager detected cyclic exception nesting:
	java.lang.NullPointerException
Be sure not to annotate an exception with itself, directly or indirectly.
*********** Exception occurred ************ at Mon Jul 28 13:02:29 PDT 2003

...ad infinitum.

It then appears to be in an infinite loop of these messages, but only
if my module is enabled...now, my module does attempt to use the src
tree, so perhaps there is a novel race condition here. In any caseI
can't figure out what the problem is among all these thousands of
identical exceptions. The source is simply:

    package ws;

    public class WS
    {
    }

At the very least it seems like there is a problem with the handler
kicking off a new parse process regardless of how the previous one
failed.

Peter