This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This bug was originally marked as duplicate of bug 239412, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201401270001) VM: Java HotSpot(TM) Client VM, 25.0-b66, Java(TM) SE Runtime Environment, 1.8.0-ea-b124 OS: Windows 7 User Comments: lhochet: asking for autocompletion on a local variable type GUEST: Trying to complete annotation while having not imported @Inject but typed that into the editor. Stacktrace: java.lang.AssertionError: Wrong diagnostic handler: com.sun.tools.javac.util.Log$DeferredDiagnosticHandler@e5f508 at com.sun.tools.javac.util.Assert.error(Assert.java:133) at com.sun.tools.javac.util.Assert.check(Assert.java:94) at com.sun.tools.javac.util.Log.popDiagnosticHandler(Log.java:467) at com.sun.tools.javac.api.JavacTaskImpl.attributeTree(JavacTaskImpl.java:765) at org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:662) at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.type(JavaCodeTemplateProcessor.java:683)
Created attachment 144403 [details] stacktrace
Created attachment 144977 [details] stacktrace <Forne?a uma descri??o do problema ou as etapas a serem reproduzidas>asdfasdf
Created attachment 145174 [details] stacktrace Ctrl + Enter on line: public final GenericListener listener = new Gene[CTRL+ENTER, ENTER -> ERROR]
*** Bug 241797 has been marked as a duplicate of this bug. ***
Created attachment 145445 [details] stacktrace autocompletion
Created attachment 145644 [details] stacktrace Trying to use code completion inside @link in Javadoc.
Created attachment 145836 [details] stacktrace Adding a annotation to a class file. (Lombok active but no Lombok annotation in the changes class)
20 reports => P2
Created attachment 147449 [details] stacktrace Tried to use CC to select what class to implement
Created attachment 147587 [details] stacktrace Triggered CC for a generics class
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=206993
This problem happens on Autocompletion (CTRL + Space) on my classes, if I try Autocompletion on java.lang.Integer the error does not happens. MyClassName wtf = MyCla(CTRL + Space) -> Error (the entire line is deleted) Integer i = new Int(CTRL + Space) -> Autocompletion as espected
Closing and reopening Netbeans the problem disappear.
*** Bug 245403 has been marked as a duplicate of this bug. ***
Additional logging added. http://hg.netbeans.org/jet-main/rev/8c7773843748
I have this same error on code completion of a (non-imported) class within a {@link item in javadoc.
Created attachment 148042 [details] messages.log Adding messages.log.
Created attachment 148085 [details] stacktrace switch windows, positions in editor during debug session
Integrated into 'main-silver', will be available in build *201407170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8c7773843748 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #241006: AssertionError: Wrong diagnostic handler: com.sun.tools.javac.util.Log$DeferredDiagnosticHandler - additional logging added.
Integrated into 'main-silver', will be available in build *201407300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f65152eabf7b User: Dusan Balek <dbalek@netbeans.org> Log: Issue #241006: AssertionError: Wrong diagnostic handler: com.sun.tools.javac.util.Log$DeferredDiagnosticHandler - additional logging added.
Incomplete until new reports come with the additional logging info.
The reason of the exception is sill unknown. 1) Either several thread access javac which is not thread safe. 2) The handler was reset to null Requesting waiver for NB 8.0.1
Added even more logging: http://hg.netbeans.org/main/nb-javac/rev/23c29b5857eb http://hg.netbeans.org/jet-main/rev/e19bf0875474
Transplanting logging into release801: 31ed068c48ba
Integrated into 'releases/release801', will be available in build *201408072300* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/31ed068c48ba User: Tomas Zezula <tzezula@netbeans.org> Log: #241006:AssertionError: Wrong diagnostic handler: com.sun.tools.javac.util.Log$DeferredDiagnosticHandler@e5f508
*** Bug 246146 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201408090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e19bf0875474 User: Tomas Zezula <tzezula@netbeans.org> Log: #241006:AssertionError: Wrong diagnostic handler: com.sun.tools.javac.util.Log$DeferredDiagnosticHandler@e5f508
*** Bug 241541 has been marked as a duplicate of this bug. ***
From http://statistics.netbeans.org/exceptions/messageslog?id=734491 it does not seems as concurrent usage of javac.
Created attachment 148925 [details] stacktrace Error badge appearing on an editor tab even though the status icon is green and there are no error annotations. Previously there was an error annotation on line 1 about reopening a file from an annotation processor; this went away after closing and reopening the file, but the badge remains, even after saving a dummy change to force a reparse.
Created attachment 149166 [details] stacktrace Invoking code completion
Created attachment 149252 [details] stacktrace sorry, no idea
Created attachment 149263 [details] stacktrace CC in java file
Created attachment 149342 [details] stacktrace invking code completion after a new
Created attachment 149345 [details] stacktrace invoke CC in java file
*** Bug 247230 has been marked as a duplicate of this bug. ***
Created attachment 149510 [details] stacktrace Autocompletion with the new name of a java class that was recently renamed
Created attachment 149512 [details] stacktrace Autocompletion of a class name
*** Bug 247521 has been marked as a duplicate of this bug. ***
Created attachment 149655 [details] stacktrace tried to finnish code completion on a type with compile errors
Created attachment 149697 [details] stacktrace I compile to Java 8, have Java 8 as my main platform, but do have Java 7 installed in /usr/bin
Created attachment 149767 [details] stacktrace using code completion within try with resources block
Created attachment 149819 [details] stacktrace pasting code from one class to another
*** Bug 248085 has been marked as a duplicate of this bug. ***
Created attachment 150167 [details] stacktrace Usin code completion to finisth extends statement
*** Bug 248964 has been marked as a duplicate of this bug. ***
Thomas or Dusan, Do the recent logs help you understand what is causing this issue? Or do you need to add even more logs?
*** Bug 249002 has been marked as a duplicate of this bug. ***
Logs in issue #249014 also contains Wrong diag handler report + threaddump.
Created attachment 150870 [details] messages.log This error started a couple days ago, so I updated to 8.0.2. I'm not sure that it didn't make it worst. I can not refactor anything. Usage searches return no results every time. I hope this log helps find the problem.
Created attachment 150910 [details] stacktrace edit file
P1 because cannot exit from IDE without data lost due to infinite exceptions reporting.
*** Bug 226578 has been marked as a duplicate of this bug. ***
Created attachment 151025 [details] stacktrace Working on web project.
Created attachment 151091 [details] stacktrace I was using the code completion function to select the method Anniversary.communicated. The error occured when I pressed return to select the method from the list of available methods.
Created attachment 151128 [details] stacktrace importing new module
Created attachment 151143 [details] stacktrace Autocompleting an interface name
Created attachment 151493 [details] stacktrace An attempt to auto-complete code
Created attachment 151541 [details] stacktrace refactor: rename
Created attachment 151554 [details] stacktrace -
Created attachment 151576 [details] stacktrace Code completion -> Exception
Created attachment 151695 [details] stacktrace Find usages
Created attachment 151757 [details] stacktrace invoking code completion
Created attachment 151972 [details] stacktrace Was just editing some code, removed a part that was not correct and started typing the correct part.
Created attachment 151973 [details] stacktrace Was continuing to type after report #206993, this occured when CC was invoked again (after next dot typed)
*** Bug 250413 has been marked as a duplicate of this bug. ***
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/fc2fe119e41b http://hg.netbeans.org/main/nb-javac/rev/8d8277c1bbcc
Integrated into 'main-silver', will be available in build *201502270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/fc2fe119e41b User: Dusan Balek <dbalek@netbeans.org> Log: Issue #241006: AssertionError: Wrong diagnostic handler: com.sun.tools.javac.util.Log$DeferredDiagnosticHandler - fixed.
Still reproduced (see report 773771)
*** Bug 250935 has been marked as a duplicate of this bug. ***
Created attachment 153466 [details] stacktrace just coding/debuggin in IDE
Another cases fixed in jet-main. http://hg.netbeans.org/jet-main/rev/821d1207a4a7 http://hg.netbeans.org/main/nb-javac/rev/3eb645d97485
Integrated into 'main-silver', will be available in build *201505050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/821d1207a4a7 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #241006: AssertionError: Wrong diagnostic handler - fix cont.
*** Bug 250628 has been marked as a duplicate of this bug. ***
*** Bug 255152 has been marked as a duplicate of this bug. ***