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 196104, 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 201103140400) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Windows XP User Comments: GUEST: Opened a new project. Exception happened repeatedly. farouka: Opening the IDE first time GUEST: scanning newly opened project 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:255) at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:668) at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:936) at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1153) at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1167)
Created attachment 107008 [details] stacktrace
Do you have a reproducible test case? Could you please attach your pom.xml file? Thanks.
I am working on a Java EE 6 Stack application with EJBs and JSF 2.0. I dont remember exactly what I was working on but this error does happen very often
Created attachment 107068 [details] Attached is my IDE log if that is useful
Created attachment 107069 [details] Logfile 2
Created attachment 107070 [details] Another log file Hope you find them useful
Unfortunately, the log files are not so useful because they are already accessible as a part of the Exception reports. I would appreciate if you could attach the pom.xml file of your application. Thanks.
Created attachment 107160 [details] This is the parent pom The top level pom
Created attachment 107161 [details] The web application pom JSF 2.0 web application pom
Created attachment 107162 [details] The EJB module pom The EJB module pom for ejb 3.1 module
Created attachment 107163 [details] the EAR pom
Reproduced - thanks for the POM.xml files.
The problem seems to be in MavenAnnotationProcessingQueryImpl.getAnnotationProcessingOptions that allows for annotation processing while indexing given project even though <compilerArgument>-proc:none</compilerArgument> is explicitly declared in the corresponding pom.xml file.
Bug #187648 covers Maven project configuration. But the Java parser should not be throwing low-level errors like this regardless of how the project is set up. For this particular exception, bug #194664 is another example which was perhaps improperly marked as a duplicate of bug #196104; bug #196391 would offer a workaround but the parser should be made more robust to begin with, perhaps using tzezula's AptOutputFileManager.java.
We will try with Dusan to remove the apt generated sources from source path if possible.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/8b96c4651370 changeset 3ca96d2291e3 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=3ca96d2291e3
Integrated into 'main-golden', will be available in build *201103300400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8b96c4651370 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #196712: IllegalStateException: endPosTable already set - fixed.
*** Bug 197410 has been marked as a duplicate of this bug. ***