Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4318

java.lang.IllegalStateException: Cannot use Elements.getTypeElement before the TaskEvent.Kind.ENTER finished event

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.2
    • 11.2
    • None
    • None

    Description

      I'm making a Java Ant Project. Yesterday morning things were fine, but somehow starting from yesterday night, this persistent bug appears. I don't know whats wrong. Told my friend to run the projects on his computer but he says the bug didn't appear. Does this bug only affects my computer?

      <record>
      <date>2020-05-10T09:57:19</date>
      <millis>1589079439482</millis>
      <sequence>3304</sequence>
      <level>1001</level>
      <thread>35</thread>
      <exception>
      <message>java.lang.IllegalStateException: Cannot use Elements.getTypeElement before the TaskEvent.Kind.ENTER finished event.</message>
      <frame>
      <class>com.sun.tools.javac.model.JavacElements</class>
      <method>ensureEntered</method>
      <line>891</line>
      <file>jrt:/jdk.compiler/com/sun/tools/javac/model/JavacElements.class</file>
      </frame>
      <frame>
      <class>com.sun.tools.javac.model.JavacElements</class>
      <method>doGetTypeElement</method>
      <line>171</line>
      <file>jrt:/jdk.compiler/com/sun/tools/javac/model/JavacElements.class</file>
      </frame>
      <frame>
      <class>com.sun.tools.javac.model.JavacElements</class>
      <method>getTypeElement</method>
      <line>160</line>
      <file>jrt:/jdk.compiler/com/sun/tools/javac/model/JavacElements.class</file>
      </frame>
      <frame>
      <class>com.sun.tools.javac.model.JavacElements</class>
      <method>getTypeElement</method>
      <line>85</line>
      <file>jrt:/jdk.compiler/com/sun/tools/javac/model/JavacElements.class</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.Hacks</class>
      <method>parseFQNType</method>
      <line>150</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker</class>
      <method>doComputeHints</method>
      <line>525</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker</class>
      <method>computeSuggestions</method>
      <line>450</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker</class>
      <method>computeHints</method>
      <line>221</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker</class>
      <method>computeHints</method>
      <line>193</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker</class>
      <method>computeHints</method>
      <line>166</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker</class>
      <method>computeHints</method>
      <line>128</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.hints.HintsTask</class>
      <method>run</method>
      <line>114</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.hints.spiimpl.hints.HintsTask</class>
      <method>run</method>
      <line>65</line>
      <file>${netBeansDir}modules/org-netbeans-spi-java-hints.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper</class>
      <method>run</method>
      <line>273</line>
      <file>${netBeansDir}modules/org-netbeans-modules-java-source-base.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.parsing.impl.TaskProcessor</class>
      <method>callParserResultTask</method>
      <line>561</line>
      <file>${netBeansDir}modules/org-netbeans-modules-parsing-api.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer</class>
      <method>run</method>
      <line>786</line>
      <file>${netBeansDir}modules/org-netbeans-modules-parsing-api.jar</file>
      </frame>
      <frame>
      <class>org.openide.util.lookup.Lookups</class>
      <method>executeWith</method>
      <line>279</line>
      <file>${netbeans.home}lib/org-openide-util-lookup.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer</class>
      <method>execute</method>
      <line>702</line>
      <file>${netBeansDir}modules/org-netbeans-modules-parsing-api.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob</class>
      <method>run</method>
      <line>663</line>
      <file>${netBeansDir}modules/org-netbeans-modules-parsing-api.jar</file>
      </frame>
      <frame>
      <class>java.util.concurrent.Executors$RunnableAdapter</class>
      <method>call</method>
      <line>515</line>
      <file>jrt:/java.base/java/util/concurrent/Executors$RunnableAdapter.class</file>
      </frame>
      <frame>
      <class>java.util.concurrent.FutureTask</class>
      <method>run</method>
      <line>264</line>
      <file>jrt:/java.base/java/util/concurrent/FutureTask.class</file>
      </frame>
      <frame>
      <class>org.openide.util.RequestProcessor$Task</class>
      <method>run</method>
      <line>1418</line>
      <file>${netbeans.home}lib/org-openide-util.jar</file>
      </frame>
      <frame>
      <class>org.netbeans.modules.openide.util.GlobalLookup</class>
      <method>execute</method>
      <line>45</line>
      <file>${netbeans.home}lib/org-openide-util-lookup.jar</file>
      </frame>
      <frame>
      <class>org.openide.util.lookup.Lookups</class>
      <method>executeWith</method>
      <line>278</line>
      <file>${netbeans.home}lib/org-openide-util-lookup.jar</file>
      </frame>
      <frame>
      <class>org.openide.util.RequestProcessor$Processor</class>
      <method>run</method>
      <line>2033</line>
      <file>${netbeans.home}lib/org-openide-util.jar</file>
      </frame>
      </exception>
      </record>

      Attachments

        1. messages.log
          395 kB
          Vee

        Activity

          People

            Unassigned Unassigned
            cloudybow_ Vee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: