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 118597 - [60cat] java.lang.IllegalStateException in tasklist todo scanning
Summary: [60cat] java.lang.IllegalStateException in tasklist todo scanning
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-11 19:36 UTC by piero
Modified: 2008-12-22 11:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description piero 2007-10-11 19:36:17 UTC
[ BUILD # : 200710071200 ]
[ JDK VERSION : 1.6.0_03 ]

I got the following stacktrace when opening a 
project. It is a problem with the tasklist:

java.lang.IllegalStateException: The data object 
MasterFileObject@cc1878
[<path>/seatmap/Caches.java] is invalid; you may 
not call getNodeDelegate on it any more; see 
#17020 and please fix your code
	at 
org.openide.loaders.DataObject.getNodeDelegate(DataObject.java:267)
	at 
org.openide.loaders.DataObject.getLookup(DataObject.java:994)
	at 
org.netbeans.modules.openide.loaders.DataObjectEncodingQueryImplementa
tion.getEncoding(DataObjectEncodingQueryImplementation.java:82)
	at 
org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQue
ry.java:93)
	at 
org.netbeans.modules.tasklist.todo.TodoTaskScanner.getContent(TodoTask
Scanner.java:344)
	at 
org.netbeans.modules.tasklist.todo.TodoTaskScanner.scanComments(TodoTa
skScanner.java:183)
	at 
org.netbeans.modules.tasklist.todo.TodoTaskScanner.scan(TodoTaskScanne
r.java:98)
	at 
org.netbeans.modules.tasklist.impl.FileScanningWorker.scan(FileScannin
gWorker.java:252)
	at 
org.netbeans.modules.tasklist.impl.FileScanningWorker.run(FileScanning
Worker.java:184)
	at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:
986)
Comment 1 Stanislav Aubrecht 2007-10-15 15:45:02 UTC
reassigning according to issue #17020, FileEncodingQuery needs to be fixed i think
Comment 2 Stanislav Aubrecht 2007-10-15 15:46:28 UTC
(i'm not sure i picked the correct (sub)component so pls reassign if necessary)
Comment 3 Milos Kleint 2007-10-16 13:33:42 UTC
a problem in org.netbeans.modules.openide.loaders.DataObjectEncodingQueryImplementation I suppose, reassigning to loaders.
Comment 4 Jaroslav Tulach 2007-10-16 14:47:37 UTC
#118597: Preventing potential race condition in checking of the isValid/getNodeDelegate

IDE: [16.10.07 15:46] Committing "DataObject.java" started
Checking in DataObject.java;
/shared/data/ccvs/repository/openide/loaders/src/org/openide/loaders/DataObject.java,v  <--  DataObject.java
new revision: 1.44; previous revision: 1.43
done
IDE: [16.10.07 15:46] Committing "DataObject.java" finished
Comment 5 Jesse Glick 2007-10-16 17:30:37 UTC
I could have sworn I added a comment to this or a similar issue just recently, but I cannot find it now. Anyway, isn't
the root problem that JavaDataObject does not override getLookup properly?