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 193261 - [70cat] IllegalArgumentException: Task: org.netbeans.modules.java.editor.fold.JavaElementFoldManager$JavaElementFoldTask@1273129 is already scheduled
Summary: [70cat] IllegalArgumentException: Task: org.netbeans.modules.java.editor.fold...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 195151 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-10 22:51 UTC by anrielgilang
Modified: 2011-11-24 13:46 UTC (History)
27 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172319


Attachments
stacktrace (2.82 KB, text/plain)
2010-12-10 22:51 UTC, anrielgilang
Details
stacktrace (4.21 KB, text/plain)
2011-01-06 13:25 UTC, eltony81
Details
stacktrace (4.69 KB, text/plain)
2011-02-14 23:01 UTC, swpalmer
Details
stacktrace (4.69 KB, text/plain)
2011-03-07 10:04 UTC, jmborer
Details
stacktrace (6.89 KB, text/plain)
2011-09-20 09:04 UTC, Jiri Skrivanek
Details
stacktrace (1.65 KB, text/plain)
2011-09-25 20:16 UTC, Maksim Khramov
Details
stacktrace (4.41 KB, text/plain)
2011-09-27 22:25 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anrielgilang 2010-12-10 22:51:04 UTC
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)
Comment 1 anrielgilang 2010-12-10 22:51:08 UTC
Created attachment 103956 [details]
stacktrace
Comment 2 eltony81 2011-01-06 13:25:42 UTC
Created attachment 104759 [details]
stacktrace
Comment 3 swpalmer 2011-02-14 23:01:21 UTC
Created attachment 106004 [details]
stacktrace

Opened a small .java file
Comment 4 jmborer 2011-03-07 10:04:23 UTC
Created attachment 106785 [details]
stacktrace

Occured after fresh install and opened the very first java editor window.
Comment 5 Miloslav Metelka 2011-03-08 19:26:28 UTC
*** Bug 195151 has been marked as a duplicate of this bug. ***
Comment 6 Jiri Skrivanek 2011-09-20 09:04:00 UTC
Created attachment 110902 [details]
stacktrace

I opened MessageListWriter.java file from MessageBoard project created from Samples|Web Services|REST Message Board template.
Comment 7 Maksim Khramov 2011-09-25 20:16:37 UTC
Created attachment 111160 [details]
stacktrace
Comment 8 javydreamercsw 2011-09-27 22:25:34 UTC
Created attachment 111259 [details]
stacktrace

Refactoring code between modules.
Comment 9 torsten_paul 2011-09-28 22:30:18 UTC
(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)
Comment 10 Exceptions Reporter 2011-10-10 07:41:13 UTC
This bug already has 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=172319
Comment 11 Jan Lahoda 2011-10-10 17:45:21 UTC
Thanks to torsten_paul for a reproducible test case:
http://hg.netbeans.org/jet-main/rev/b03c76356e00
Comment 12 Quality Engineering 2011-10-11 14:06:49 UTC
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().