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.

Bug 241006 - AssertionError: Wrong diagnostic handler: com.sun.tools.javac.util.Log$DeferredDiagnosticHandler@e5f508
Summary: AssertionError: Wrong diagnostic handler: com.sun.tools.javac.util.Log$Deferr...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal with 3 votes (vote)
Assignee: Dusan Balek
URL:
Keywords: 8.0.1_WAIVER_APPROVED
: 226578 241541 241797 245403 246146 247230 247521 248085 248964 249002 250413 250628 250935 255152 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-27 10:28 UTC by lhochet
Modified: 2015-09-15 13:28 UTC (History)
77 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206993


Attachments
stacktrace (4.17 KB, text/plain)
2014-01-27 10:28 UTC, lhochet
Details
stacktrace (4.47 KB, text/plain)
2014-02-10 10:49 UTC, Exceptions Reporter
Details
stacktrace (4.06 KB, text/plain)
2014-02-14 05:10 UTC, Exceptions Reporter
Details
stacktrace (4.17 KB, text/plain)
2014-02-20 18:01 UTC, aldobrucale
Details
stacktrace (4.17 KB, text/plain)
2014-02-27 19:09 UTC, Jesse Glick
Details
stacktrace (4.17 KB, text/plain)
2014-03-07 12:22 UTC, Michel Graciano
Details
stacktrace (4.17 KB, text/plain)
2014-05-26 11:54 UTC, akobberup
Details
stacktrace (4.25 KB, text/plain)
2014-06-05 18:41 UTC, Michel Graciano
Details
messages.log (162.97 KB, text/plain)
2014-07-14 16:06 UTC, matthies
Details
stacktrace (2.25 KB, text/plain)
2014-07-16 13:55 UTC, Sergey Petrov
Details
stacktrace (5.06 KB, text/plain)
2014-08-27 15:47 UTC, Jesse Glick
Details
stacktrace (4.40 KB, text/plain)
2014-09-12 10:20 UTC, akobberup
Details
stacktrace (5.06 KB, text/plain)
2014-09-16 09:27 UTC, Tomas Mysik
Details
stacktrace (5.06 KB, text/plain)
2014-09-16 14:24 UTC, Tomas Mysik
Details
stacktrace (5.10 KB, text/plain)
2014-09-18 11:30 UTC, skygo
Details
stacktrace (3.81 KB, text/plain)
2014-09-18 12:27 UTC, Tomas Mysik
Details
stacktrace (5.13 KB, text/plain)
2014-09-25 10:16 UTC, aldobrucale
Details
stacktrace (5.06 KB, text/plain)
2014-09-25 11:07 UTC, aldobrucale
Details
stacktrace (5.06 KB, text/plain)
2014-10-01 15:17 UTC, Tomas Stupka
Details
stacktrace (4.55 KB, text/plain)
2014-10-03 16:35 UTC, dynamite
Details
stacktrace (4.40 KB, text/plain)
2014-10-07 12:44 UTC, skygo
Details
stacktrace (3.81 KB, text/plain)
2014-10-09 17:24 UTC, alied
Details
stacktrace (5.13 KB, text/plain)
2014-10-30 12:30 UTC, Jiri Prox
Details
messages.log (471.72 KB, text/plain)
2014-12-03 22:14 UTC, justinwwebb
Details
stacktrace (1.81 KB, text/plain)
2014-12-05 11:13 UTC, Alexander Simon
Details
stacktrace (3.38 KB, text/plain)
2014-12-10 21:19 UTC, jyeary
Details
stacktrace (5.06 KB, text/plain)
2014-12-13 14:46 UTC, wjdhamilton
Details
stacktrace (8.58 KB, text/plain)
2014-12-16 09:46 UTC, skygo
Details
stacktrace (5.06 KB, text/plain)
2014-12-17 13:05 UTC, malakim
Details
stacktrace (4.17 KB, text/plain)
2015-01-13 21:06 UTC, Andrew Krasny
Details
stacktrace (5.06 KB, text/plain)
2015-01-16 08:51 UTC, muellermi
Details
stacktrace (3.39 KB, text/plain)
2015-01-17 00:24 UTC, thruminds
Details
stacktrace (4.45 KB, text/plain)
2015-01-19 15:48 UTC, markiewb
Details
stacktrace (5.53 KB, text/plain)
2015-01-27 08:00 UTC, Alexander Simon
Details
stacktrace (4.95 KB, text/plain)
2015-01-31 05:10 UTC, alied
Details
stacktrace (4.45 KB, text/plain)
2015-02-12 14:21 UTC, Chiana
Details
stacktrace (4.45 KB, text/plain)
2015-02-12 14:24 UTC, Chiana
Details
stacktrace (4.91 KB, text/plain)
2015-04-29 18:29 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lhochet 2014-01-27 10:28:24 UTC
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)
Comment 1 lhochet 2014-01-27 10:28:26 UTC
Created attachment 144403 [details]
stacktrace
Comment 2 Exceptions Reporter 2014-02-10 10:49:25 UTC
Created attachment 144977 [details]
stacktrace

<Forne?a uma descri??o do problema ou as etapas a serem reproduzidas>asdfasdf
Comment 3 Exceptions Reporter 2014-02-14 05:10:29 UTC
Created attachment 145174 [details]
stacktrace

Ctrl + Enter on line:

public final GenericListener listener = new Gene[CTRL+ENTER, ENTER -> ERROR]
Comment 4 Dusan Balek 2014-02-17 11:51:08 UTC
*** Bug 241797 has been marked as a duplicate of this bug. ***
Comment 5 aldobrucale 2014-02-20 18:01:35 UTC
Created attachment 145445 [details]
stacktrace

autocompletion
Comment 6 Jesse Glick 2014-02-27 19:09:06 UTC
Created attachment 145644 [details]
stacktrace

Trying to use code completion inside @link in Javadoc.
Comment 7 Michel Graciano 2014-03-07 12:22:03 UTC
Created attachment 145836 [details]
stacktrace

Adding a annotation to a class file. (Lombok active but no Lombok annotation in the changes class)
Comment 8 Alexander Simon 2014-03-15 14:18:49 UTC
20 reports => P2
Comment 9 akobberup 2014-05-26 11:54:24 UTC
Created attachment 147449 [details]
stacktrace

Tried to use CC to select what class to implement
Comment 10 Michel Graciano 2014-06-05 18:41:20 UTC
Created attachment 147587 [details]
stacktrace

Triggered CC for a generics class
Comment 11 Exceptions Reporter 2014-06-24 11:06:03 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206993
Comment 12 mone.java 2014-06-27 13:33:20 UTC
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
Comment 13 mone.java 2014-06-27 13:38:31 UTC
Closing and reopening Netbeans the problem disappear.
Comment 14 Dusan Balek 2014-07-10 12:23:42 UTC
*** Bug 245403 has been marked as a duplicate of this bug. ***
Comment 15 Dusan Balek 2014-07-10 13:46:03 UTC
Additional logging added.

http://hg.netbeans.org/jet-main/rev/8c7773843748
Comment 16 matthies 2014-07-14 16:05:52 UTC
I have this same error on code completion of a (non-imported) class within a {@link item in javadoc.
Comment 17 matthies 2014-07-14 16:06:40 UTC
Created attachment 148042 [details]
messages.log

Adding messages.log.
Comment 18 Sergey Petrov 2014-07-16 13:55:21 UTC
Created attachment 148085 [details]
stacktrace

switch windows, positions in editor during debug session
Comment 19 Quality Engineering 2014-07-17 02:17:41 UTC
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.
Comment 20 Quality Engineering 2014-07-30 02:31:57 UTC
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.
Comment 21 Antonin Nebuzelsky 2014-08-06 12:56:42 UTC
Incomplete until new reports come with the additional logging info.
Comment 22 Tomas Zezula 2014-08-07 10:41:35 UTC
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
Comment 24 Tomas Zezula 2014-08-07 13:03:13 UTC
Transplanting logging into release801: 31ed068c48ba
Comment 25 Quality Engineering 2014-08-08 02:31:31 UTC
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
Comment 26 Svata Dedic 2014-08-08 20:18:53 UTC
*** Bug 246146 has been marked as a duplicate of this bug. ***
Comment 27 Quality Engineering 2014-08-09 05:02:53 UTC
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
Comment 28 Dusan Balek 2014-08-25 17:07:32 UTC
*** Bug 241541 has been marked as a duplicate of this bug. ***
Comment 29 Tomas Zezula 2014-08-25 17:16:25 UTC
From http://statistics.netbeans.org/exceptions/messageslog?id=734491 it does not seems as concurrent usage of javac.
Comment 30 Jesse Glick 2014-08-27 15:47:01 UTC
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.
Comment 31 akobberup 2014-09-12 10:20:12 UTC
Created attachment 149166 [details]
stacktrace

Invoking code completion
Comment 32 Tomas Mysik 2014-09-16 09:27:05 UTC
Created attachment 149252 [details]
stacktrace

sorry, no idea
Comment 33 Tomas Mysik 2014-09-16 14:24:07 UTC
Created attachment 149263 [details]
stacktrace

CC in java file
Comment 34 skygo 2014-09-18 11:30:19 UTC
Created attachment 149342 [details]
stacktrace

invking code completion after a new
Comment 35 Tomas Mysik 2014-09-18 12:27:18 UTC
Created attachment 149345 [details]
stacktrace

invoke CC in java file
Comment 36 Ralph Ruijs 2014-09-23 11:55:57 UTC
*** Bug 247230 has been marked as a duplicate of this bug. ***
Comment 37 aldobrucale 2014-09-25 10:16:57 UTC
Created attachment 149510 [details]
stacktrace

Autocompletion with the new name of a java class that was recently renamed
Comment 38 aldobrucale 2014-09-25 11:07:57 UTC
Created attachment 149512 [details]
stacktrace

Autocompletion of a class name
Comment 39 Ralph Ruijs 2014-09-28 12:45:04 UTC
*** Bug 247521 has been marked as a duplicate of this bug. ***
Comment 40 Tomas Stupka 2014-10-01 15:17:13 UTC
Created attachment 149655 [details]
stacktrace

tried to finnish code completion on a type with compile errors
Comment 41 dynamite 2014-10-03 16:35:19 UTC
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
Comment 42 skygo 2014-10-07 12:44:59 UTC
Created attachment 149767 [details]
stacktrace

using code completion within try with resources block
Comment 43 alied 2014-10-09 17:24:23 UTC
Created attachment 149819 [details]
stacktrace

pasting code from one class to another
Comment 44 Jiri Prox 2014-10-22 07:49:48 UTC
*** Bug 248085 has been marked as a duplicate of this bug. ***
Comment 45 Jiri Prox 2014-10-30 12:30:16 UTC
Created attachment 150167 [details]
stacktrace

Usin code completion to finisth extends statement
Comment 46 Dusan Balek 2014-11-28 08:22:48 UTC
*** Bug 248964 has been marked as a duplicate of this bug. ***
Comment 47 _ gtzabari 2014-11-28 14:05:09 UTC
Thomas or Dusan,

Do the recent logs help you understand what is causing this issue? Or do you need to add even more logs?
Comment 48 Dusan Balek 2014-12-01 10:22:55 UTC
*** Bug 249002 has been marked as a duplicate of this bug. ***
Comment 49 Svata Dedic 2014-12-01 11:55:22 UTC
Logs in issue #249014 also contains Wrong diag handler report + threaddump.
Comment 50 justinwwebb 2014-12-03 22:14:33 UTC
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.
Comment 51 Alexander Simon 2014-12-05 11:13:18 UTC
Created attachment 150910 [details]
stacktrace

edit file
Comment 52 Alexander Simon 2014-12-05 11:14:04 UTC
P1 because cannot exit from IDE without data lost due to infinite exceptions reporting.
Comment 53 Dusan Balek 2014-12-08 09:31:59 UTC
*** Bug 226578 has been marked as a duplicate of this bug. ***
Comment 54 jyeary 2014-12-10 21:19:26 UTC
Created attachment 151025 [details]
stacktrace

Working on web project.
Comment 55 wjdhamilton 2014-12-13 14:46:46 UTC
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.
Comment 56 skygo 2014-12-16 09:46:55 UTC
Created attachment 151128 [details]
stacktrace

importing new module
Comment 57 malakim 2014-12-17 13:05:27 UTC
Created attachment 151143 [details]
stacktrace

Autocompleting an interface name
Comment 58 Andrew Krasny 2015-01-13 21:06:33 UTC
Created attachment 151493 [details]
stacktrace

An attempt to auto-complete code
Comment 59 muellermi 2015-01-16 08:51:41 UTC
Created attachment 151541 [details]
stacktrace

refactor: rename
Comment 60 thruminds 2015-01-17 00:24:42 UTC
Created attachment 151554 [details]
stacktrace

-
Comment 61 markiewb 2015-01-19 15:48:44 UTC
Created attachment 151576 [details]
stacktrace

Code completion -> Exception
Comment 62 Alexander Simon 2015-01-27 08:00:51 UTC
Created attachment 151695 [details]
stacktrace

Find usages
Comment 63 alied 2015-01-31 05:10:02 UTC
Created attachment 151757 [details]
stacktrace

invoking code completion
Comment 64 Chiana 2015-02-12 14:21:15 UTC
Created attachment 151972 [details]
stacktrace

Was just editing some code, removed a part that was not correct and started typing the correct part.
Comment 65 Chiana 2015-02-12 14:24:15 UTC
Created attachment 151973 [details]
stacktrace

Was continuing to type after report #206993, this occured when CC was invoked again (after next dot typed)
Comment 66 Dusan Balek 2015-02-16 11:27:15 UTC
*** Bug 250413 has been marked as a duplicate of this bug. ***
Comment 68 Quality Engineering 2015-02-27 04:00:11 UTC
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.
Comment 69 Alexander Simon 2015-04-07 10:02:57 UTC
Still reproduced (see report 773771)
Comment 70 Dusan Balek 2015-04-13 15:49:07 UTC
*** Bug 250935 has been marked as a duplicate of this bug. ***
Comment 71 Vladimir Voskresensky 2015-04-29 18:29:41 UTC
Created attachment 153466 [details]
stacktrace

just coding/debuggin in IDE
Comment 73 Quality Engineering 2015-05-05 03:28:07 UTC
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.
Comment 74 Svata Dedic 2015-05-12 10:06:17 UTC
*** Bug 250628 has been marked as a duplicate of this bug. ***
Comment 75 Dusan Balek 2015-09-15 13:28:29 UTC
*** Bug 255152 has been marked as a duplicate of this bug. ***