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 205582 - [71cat] IllegalStateException: endPosTable already set
Summary: [71cat] IllegalStateException: endPosTable already set
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.1
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords: RANDOM
Depends on: 197425
Blocks:
  Show dependency tree
 
Reported: 2011-11-27 10:42 UTC by monezz
Modified: 2012-05-10 09:57 UTC (History)
20 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183210


Attachments
stacktrace (3.72 KB, text/plain)
2011-11-27 10:42 UTC, monezz
Details
stacktrace (3.58 KB, text/plain)
2011-12-08 19:43 UTC, Jesse Glick
Details
stacktrace (3.58 KB, text/plain)
2011-12-09 13:34 UTC, J Bachorik
Details
stacktrace (3.58 KB, text/plain)
2011-12-20 12:18 UTC, J Bachorik
Details
stacktrace (3.72 KB, text/plain)
2012-01-04 16:21 UTC, Martin Fousek
Details
stacktrace (3.72 KB, text/plain)
2012-01-13 09:23 UTC, J Bachorik
Details
stacktrace (3.36 KB, text/plain)
2012-02-27 17:29 UTC, Jesse Glick
Details
stacktrace (3.36 KB, text/plain)
2012-02-28 12:14 UTC, Tomas Mysik
Details
stacktrace (3.72 KB, text/plain)
2012-03-05 07:37 UTC, Petr Cyhelsky
Details
stacktrace (3.50 KB, text/plain)
2012-03-06 08:23 UTC, Sergey Petrov
Details
stacktrace (3.36 KB, text/plain)
2012-03-13 07:47 UTC, Jiri Skrivanek
Details
stacktrace (3.50 KB, text/plain)
2012-03-13 10:41 UTC, Sergey Petrov
Details
stacktrace (3.72 KB, text/plain)
2012-03-14 01:47 UTC, adam_myatt
Details
stacktrace (3.72 KB, text/plain)
2012-03-14 01:53 UTC, adam_myatt
Details
stacktrace (4.01 KB, text/plain)
2012-03-21 09:16 UTC, Jan Becicka
Details
stacktrace (3.87 KB, text/plain)
2012-03-23 10:16 UTC, Petr Cyhelsky
Details
stacktrace (3.72 KB, text/plain)
2012-03-27 01:31 UTC, David Konecny
Details
stacktrace (4.00 KB, text/plain)
2012-03-30 11:53 UTC, Petr Jiricka
Details
stacktrace (3.87 KB, text/plain)
2012-04-19 11:47 UTC, Jiri Skrivanek
Details
stacktrace (4.00 KB, text/plain)
2012-04-20 08:08 UTC, Sergey Petrov
Details
stacktrace (3.87 KB, text/plain)
2012-04-23 13:17 UTC, Milos Kleint
Details
stacktrace (4.00 KB, text/plain)
2012-04-26 18:56 UTC, everflux
Details
Test case (208.01 KB, application/zip)
2012-05-05 22:53 UTC, tms1979
Details

Note You need to log in before you can comment on or make changes to this bug.
Description monezz 2011-11-27 10:42:40 UTC
This bug was originally marked as duplicate of bug 196712, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1 RC1 (Build 201111171527)
VM: OpenJDK 64-Bit Server VM, 21.0-b17, OpenJDK Runtime Environment, 1.7.0_147-icedtea-b147
OS: Linux

User Comments:
Monezz: Create a new filetype with the new file type wizard:
New > Other > Module Development > File Type




Stacktrace: 
java.lang.IllegalStateException: endPosTable already set
   at com.sun.tools.javac.util.DiagnosticSource.setEndPosTable(DiagnosticSource.java:137)
   at com.sun.tools.javac.util.Log.setEndPosTable(Log.java:237)
   at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:646)
   at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:935)
   at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:921)
   at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:949)
Comment 1 monezz 2011-11-27 10:42:42 UTC
Created attachment 113550 [details]
stacktrace
Comment 2 Jesse Glick 2011-12-08 19:43:04 UTC
Created attachment 113976 [details]
stacktrace

Related to earlier stack overflow I guess.
Comment 3 J Bachorik 2011-12-09 13:34:06 UTC
Created attachment 114002 [details]
stacktrace
Comment 4 J Bachorik 2011-12-20 12:18:59 UTC
Created attachment 114350 [details]
stacktrace
Comment 5 Exceptions Reporter 2011-12-20 12:19:05 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=183210
Comment 6 Martin Fousek 2012-01-04 16:21:00 UTC
Created attachment 114633 [details]
stacktrace

opened one file from another repo - this happend when the scanning finished
Comment 7 J Bachorik 2012-01-13 09:23:48 UTC
Created attachment 114860 [details]
stacktrace

switching project groups
Comment 8 Jesse Glick 2012-02-27 17:29:44 UTC
Created attachment 116149 [details]
stacktrace
Comment 9 Tomas Mysik 2012-02-28 12:14:43 UTC
Created attachment 116177 [details]
stacktrace
Comment 10 Petr Cyhelsky 2012-03-05 07:37:10 UTC
Created attachment 116337 [details]
stacktrace
Comment 11 Sergey Petrov 2012-03-06 08:23:14 UTC
Created attachment 116371 [details]
stacktrace

projects scanning afyer startup
Comment 12 Exceptions Reporter 2012-03-06 08:23:22 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=183210
Comment 13 Jiri Skrivanek 2012-03-13 07:47:15 UTC
Created attachment 116642 [details]
stacktrace

While scanning sources.
Comment 14 Sergey Petrov 2012-03-13 10:41:15 UTC
Created attachment 116655 [details]
stacktrace
Comment 15 adam_myatt 2012-03-14 01:47:15 UTC
Created attachment 116696 [details]
stacktrace

opened all NetBeans source project in main-golden into netbeans at once. sat waiting for Scanning projects to finish . exception just popped up on its own.
Comment 16 adam_myatt 2012-03-14 01:53:14 UTC
Created attachment 116697 [details]
stacktrace
Comment 17 Jan Becicka 2012-03-21 09:16:14 UTC
Created attachment 116981 [details]
stacktrace
Comment 18 Petr Cyhelsky 2012-03-23 10:16:15 UTC
Created attachment 117148 [details]
stacktrace
Comment 19 David Konecny 2012-03-27 01:31:36 UTC
Created attachment 117293 [details]
stacktrace
Comment 20 Petr Jiricka 2012-03-30 11:53:20 UTC
Created attachment 117537 [details]
stacktrace

After opening j2eeserver module from NetBeans source base.
Comment 21 Dusan Balek 2012-04-04 13:28:34 UTC
Hard to fix without a reproducible test case. Are you able to reproduce the
issue? If so, could you please create a simple test case and attach it to the
issue? Thanks.
Comment 22 J Bachorik 2012-04-05 13:17:53 UTC
Happens quite randomly - usually when opening a file from the NB source tree which contains some IDE specific annotations (eg. @NbBundle.Messages) - but not always.
Comment 23 Jiri Skrivanek 2012-04-19 11:47:24 UTC
Created attachment 118506 [details]
stacktrace

Editing java file.
Comment 24 Sergey Petrov 2012-04-20 08:08:26 UTC
Created attachment 118550 [details]
stacktrace

scanning at startup
Comment 25 Milos Kleint 2012-04-23 13:17:31 UTC
Created attachment 118635 [details]
stacktrace

triggered a hint fix ( FileObject.getUrl->toUrl)
Comment 26 everflux 2012-04-26 18:56:27 UTC
Created attachment 118827 [details]
stacktrace

first start of nb nightly, clean import of nb 7.1 settings, opens maven project, question to install junit appears. clicked on select box of junit version
Comment 27 Exceptions Reporter 2012-05-05 14:26:51 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=183210
Comment 28 tms1979 2012-05-05 22:53:24 UTC
Created attachment 119126 [details]
Test case

I ran into this too when checking the fix for 211882. In my case it seems that when I trigger it it's related to adding implements/overrides buttons that refer to generated source. I wouldn't be able to tell if it's just source on a different path or whatnot.

I altered the 211882 test case slightly and it now triggers this bug consistently. New main class:
----
package testapapplication2;

import testap2.GenerateAClass;

@GenerateAClass(value="GeneratedClass", extendAnnotated=true)
public class TestAPApplication2 {
}
----

This now generates:
----
package testapapplication2;

public class GeneratedClass extends TestAPApplication2 {
}
----

Without "extendAnnotated=true" and, thus, "extends TestAPApplication2", this bug isn't hit. Flipping between "extendAnnotated=true" and false causes the bug to appear and disappear, but note that you have to do a touch-and-save *twice* after altering the annotation parameter to change between those states.
Comment 29 Dusan Balek 2012-05-09 08:27:12 UTC
Fixed in jet-main. Thanks for the reproducible test case.

http://hg.netbeans.org/jet-main/rev/1dfab9d39a0a
Comment 30 Quality Engineering 2012-05-10 09:57:12 UTC
Integrated into 'main-golden', will be available in build *201205100400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1dfab9d39a0a
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #205582: IllegalStateException: endPosTable already set - fixed.