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.
Build: NetBeans IDE 7.0 Beta (Build 201011152355) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05 OS: Windows XP User Comments: Chiana: Was reporting error #435774 GUEST: Error occurred when opening a file that was part of a Maven project that I opened in NetBeans for the first time. Chiana: Was reporting #435775 GUEST: Opening a Java source file. Stacktrace: java.lang.IllegalArgumentException: Task: org.netbeans.modules.java.editor.fold.JavaElementFoldManager$JavaElementFoldTask@1273129 is already scheduled at org.netbeans.modules.java.source.JavaSourceAccessor.addPhaseCompletionTask(JavaSourceAccessor.java:190) at org.netbeans.api.java.source.JavaSourceTaskFactory$3.addPhaseCompletionTask(JavaSourceTaskFactory.java:234) at org.netbeans.api.java.source.JavaSourceTaskFactory.stateChangedImpl(JavaSourceTaskFactory.java:187) at org.netbeans.api.java.source.JavaSourceTaskFactory.access$000(JavaSourceTaskFactory.java:81) at org.netbeans.api.java.source.JavaSourceTaskFactory$1.run(JavaSourceTaskFactory.java:142) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
Created attachment 103956 [details] stacktrace
Created attachment 104759 [details] stacktrace
Created attachment 106004 [details] stacktrace Opened a small .java file
Created attachment 106785 [details] stacktrace Occured after fresh install and opened the very first java editor window.
*** Bug 195151 has been marked as a duplicate of this bug. ***
Created attachment 110902 [details] stacktrace I opened MessageListWriter.java file from MessageBoard project created from Samples|Web Services|REST Message Board template.
Created attachment 111160 [details] stacktrace
Created attachment 111259 [details] stacktrace Refactoring code between modules.
(http://statistics.netbeans.org/analytics/exception.do?id=529924) I can recreate the problem with the following steps 1) Create new project "A" (Java Application), Create Main Class a.A (NetBeans opens the java file automatically) 2) Context-Menu "Rename..." project to "B", tick the "Also Rename Project Folder" checkbox (NetBeans closes the editor) 3) Open the automatically created class a.A in Java editor again 4) Context-Menu "Refactor->Rename..." the "a" package to "b" I guess it's important to have the file open in the java editor when doing the renames... The exception window is only popping up a second and vanishes again, when repeating the steps, the exception window sometimes stays visible. This is with the 7.1beta on Linux: Product Version: NetBeans IDE 7.1 Beta (Build 201109222201) Java: 1.7.0_147-icedtea; OpenJDK Client VM 21.0-b17 System: Linux version 3.0.0-1-686-pae running on i386; UTF-8; en_US (nb)
This bug already has 100 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=172319
Thanks to torsten_paul for a reproducible test case: http://hg.netbeans.org/jet-main/rev/b03c76356e00
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/b03c76356e00 User: Jan Lahoda <jlahoda@netbeans.org> Log: #193261: the OpenedEditors.visibleEditors2Files map can apparently contain several entries for one DataObject some rare cases, making sure the DO will appear only once in the getVisibleEditorsFiles().