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 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)
Created attachment 113550 [details] stacktrace
Created attachment 113976 [details] stacktrace Related to earlier stack overflow I guess.
Created attachment 114002 [details] stacktrace
Created attachment 114350 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=183210
Created attachment 114633 [details] stacktrace opened one file from another repo - this happend when the scanning finished
Created attachment 114860 [details] stacktrace switching project groups
Created attachment 116149 [details] stacktrace
Created attachment 116177 [details] stacktrace
Created attachment 116337 [details] stacktrace
Created attachment 116371 [details] stacktrace projects scanning afyer startup
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=183210
Created attachment 116642 [details] stacktrace While scanning sources.
Created attachment 116655 [details] stacktrace
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.
Created attachment 116697 [details] stacktrace
Created attachment 116981 [details] stacktrace
Created attachment 117148 [details] stacktrace
Created attachment 117293 [details] stacktrace
Created attachment 117537 [details] stacktrace After opening j2eeserver module from NetBeans source base.
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.
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.
Created attachment 118506 [details] stacktrace Editing java file.
Created attachment 118550 [details] stacktrace scanning at startup
Created attachment 118635 [details] stacktrace triggered a hint fix ( FileObject.getUrl->toUrl)
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
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=183210
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.
Fixed in jet-main. Thanks for the reproducible test case. http://hg.netbeans.org/jet-main/rev/1dfab9d39a0a
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.