cyclic exception nesting infinite loop

Peter Wisnovsky <[email protected]> Mon, 28 Jul 2003 14:01:35 -0700
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
Peter Wisnovsky writes:
 > 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:
 > 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.

More information:

- this seems to be connected with parsing a file open in the editor,
  which makes me think it has to do with the construction of the tools
  menu. I have some menu items I add to the editor:

  <!-- Stuff we add to the Java class node's tools menu -->
  <folder name="Actions">
   <folder name="Tools">
    <file name="com-sun-s1s-jpe-module-ConvertToServiceAction.instance"/>

    <attr name="com-sun-s1s-jpe-module-ConvertToServiceAction.instance/com-sun-s1s-jpe-module-PatternCustomizerAction.instance" value="true"/>

    <file name="com-sun-s1s-jpe-module-PatternCustomizerAction.instance"/>

    <attr name="com-sun-s1s-jpe-module-PatternCustomizerAction.instance/com-sun-s1s-jpe-module-CheckValidityAction.instance" value="true"/>

    <file name="com-sun-s1s-jpe-module-CheckValidityAction.instance"/>
   </folder>
  </folder>

  <!-- Stuff we add to the Java editor menu -->
  <folder name="Editors">
   <folder name="text">
    <folder name="x-java">
     <folder name="Popup">
      <file name="com-sun-s1s-jpe-module-ConvertToServiceAction.instance"/>
  
      <attr name="com-sun-s1s-jpe-module-ConvertToServiceAction.instance/com-sun-s1s-jpe-module-PatternCustomizerAction.instance" value="true"/>

      <file name="com-sun-s1s-jpe-module-PatternCustomizerAction.instance"/>

      <attr name="com-sun-s1s-jpe-module-PatternCustomizerAction.instance/com-sun-s1s-jpe-module-CheckValidityAction.instance" value="true"/>

      <file name="com-sun-s1s-jpe-module-CheckValidityAction.instance"/>
     </folder>
    </folder>
   </folder>
  </folder>

- If the IDE starts up with the editor closed I don't get the error
  right away. I get it when I try to build the node tree of a Java
  class by opening the Java node. I have a node factory

  <!-- These are the factories that add nodes to Java objects -->
  <folder name="NodeFactories">
    <folder name="java">
      <folder name="explorer">
        <file name="com-sun-s1s-jpe-module-ServiceInterfaceNodeFactory.instance"/>
      </folder>
    </folder>
  </folder>

  Is there an example of how to do this in 4.0?

Peter