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 213011 - IllegalStateException: endPosTable already set
Summary: IllegalStateException: endPosTable already set
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 216357 218599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-25 11:42 UTC by Sergey Petrov
Modified: 2012-09-19 15:08 UTC (History)
24 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188375


Attachments
stacktrace (4.00 KB, text/plain)
2012-05-25 11:42 UTC, Sergey Petrov
Details
stacktrace (4.00 KB, text/plain)
2012-06-14 10:58 UTC, Jiri Skrivanek
Details
stacktrace (3.87 KB, text/plain)
2012-06-14 17:35 UTC, Jesse Glick
Details
stacktrace (4.00 KB, text/plain)
2012-06-14 20:55 UTC, everflux
Details
stacktrace (4.00 KB, text/plain)
2012-06-15 11:37 UTC, Sergey Petrov
Details
stacktrace (4.00 KB, text/plain)
2012-06-18 13:34 UTC, Jiri Skrivanek
Details
stacktrace (4.00 KB, text/plain)
2012-06-19 09:07 UTC, Jiri Skrivanek
Details
stacktrace (4.00 KB, text/plain)
2012-06-28 13:08 UTC, Petr Cyhelsky
Details
stacktrace (4.00 KB, text/plain)
2012-07-03 07:20 UTC, Milos Kleint
Details
stacktrace (4.00 KB, text/plain)
2012-07-10 11:20 UTC, Vladimir Riha
Details
stacktrace (4.00 KB, text/plain)
2012-07-18 08:23 UTC, mienamoo
Details
stacktrace (4.00 KB, text/plain)
2012-07-20 07:50 UTC, Vladimir Riha
Details
stacktrace (3.87 KB, text/plain)
2012-07-23 21:26 UTC, javydreamercsw
Details
stacktrace (4.01 KB, text/plain)
2012-07-24 08:43 UTC, Milos Kleint
Details
stacktrace (3.87 KB, text/plain)
2012-07-31 13:57 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2012-05-25 11:42:10 UTC
This bug was originally marked as duplicate of bug 205582, 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 20120525-a237552e4755)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
mjanicek: Just running a project

GUEST: opening free-form projects that use annotation processors to generate source code

yardus: Opened the "maven" project from the IDE source tree. Opened ActionProviderImpl class from that project, went to line 330 and ctrl-hovered over ActionToGoalUtils token - all while scanning was in progress.

GUEST: opening free-form projects that use annotation processors to generate source code

everflux: Threw in a bunch of JVM options and started nightly build of Netbeans

Additional options where:
-J-XX:+UseG1GC -J-XX:+AggressiveOpts -J-XX:+OptimizeStringConcat -J-XX:+UseStringCache -J-XX:+UseLargePages -J-XX:+UseCompressedStrings -J-Djava.net.preferIPv4Stack=true

sj-nb: scanning at startup

yardus: Opening the "Source Packages" node of the maven.j2ee project

everflux: 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

pjiricka: After opening j2eeserver module from NetBeans source base.




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:643)
   at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:932)
   at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:920)
   at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:948)
Comment 1 Sergey Petrov 2012-05-25 11:42:16 UTC
Created attachment 119880 [details]
stacktrace
Comment 2 Jiri Skrivanek 2012-06-14 10:58:50 UTC
Created attachment 120832 [details]
stacktrace

Called revert on layer.xml which was opened in editor but not focused.
Comment 3 Jesse Glick 2012-06-14 17:35:29 UTC
Created attachment 120865 [details]
stacktrace
Comment 4 everflux 2012-06-14 20:55:48 UTC
Created attachment 120875 [details]
stacktrace

running junit tests with compile on save disabled
Comment 5 Sergey Petrov 2012-06-15 11:37:47 UTC
Created attachment 120900 [details]
stacktrace

start fresh build with removed cache but old userdir and several nb module and java project opened with several files opened(some bundle.properties, some project.xmk, etc)
Comment 6 Jiri Skrivanek 2012-06-18 13:34:43 UTC
Created attachment 120987 [details]
stacktrace

While scanning cnd.kit project.
Comment 7 Dusan Balek 2012-06-19 07:20:59 UTC
Hard to fix without a reproducible test case. Could you please create a simple test case and attach it to the issue? Thanks.
Comment 8 Jiri Skrivanek 2012-06-19 09:07:42 UTC
Created attachment 121030 [details]
stacktrace

While scanning j2ee.kit project.
Comment 9 Petr Cyhelsky 2012-06-28 13:08:07 UTC
Created attachment 121497 [details]
stacktrace
Comment 10 Milos Kleint 2012-07-03 07:20:06 UTC
Created attachment 121681 [details]
stacktrace
Comment 11 Vladimir Riha 2012-07-10 11:20:08 UTC
Created attachment 121882 [details]
stacktrace

during background scanning
Comment 12 mienamoo 2012-07-18 08:23:07 UTC
Created attachment 122142 [details]
stacktrace

I am working on a Maven-based NetBeans platform application, and I was building a module when this occurred.
Comment 13 Vladimir Riha 2012-07-20 07:50:08 UTC
Created attachment 122209 [details]
stacktrace

During background scanning
Comment 14 javydreamercsw 2012-07-23 21:26:10 UTC
Created attachment 122276 [details]
stacktrace

Opening a project's properties.
Comment 15 Milos Kleint 2012-07-24 08:43:36 UTC
Created attachment 122286 [details]
stacktrace
Comment 16 Milos Kleint 2012-07-24 12:07:16 UTC
as far as I can tell the issue occurs in clusters, I often get close to 10 at once and in situations when heap memory is scarce (got the Low memory warning in the status bar)
Comment 17 Dusan Balek 2012-07-26 09:52:22 UTC
Enhanced logging.

http://hg.netbeans.org/jet-main/rev/6d6a78c56472
Comment 18 Quality Engineering 2012-07-27 02:27:18 UTC
Integrated into 'main-golden', will be available in build *201207270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6d6a78c56472
User: Dusan Balek <dbalek@netbeans.org>
Log: Enhanced logging (see issue #213011 - IllegalStateException: endPosTable already set)
Comment 19 Tomas Mysik 2012-07-31 13:57:35 UTC
Created attachment 122587 [details]
stacktrace

switch from one java file to another
Comment 20 Sergey Petrov 2012-08-03 14:38:40 UTC
it looks after more logging was added the same issue is reported as issue 216357
Comment 21 Dusan Balek 2012-08-08 07:47:03 UTC
*** Bug 216357 has been marked as a duplicate of this bug. ***
Comment 23 Quality Engineering 2012-08-10 02:24:43 UTC
Integrated into 'main-golden', will be available in build *201208100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2f4e13c2ce98
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #213011: IllegalStateException: endPosTable already set - fixed.
Comment 24 Dusan Balek 2012-09-19 15:08:19 UTC
*** Bug 218599 has been marked as a duplicate of this bug. ***