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.
Summary: | IllegalStateException: The data object /home/nigel/src/DC/Makefile is invalid; you may not call getNodeDelegate on it any more; see #17020 and please fix your code | ||
---|---|---|---|
Product: | platform | Reporter: | nleck <nleck> |
Component: | Data Systems | Assignee: | Jiri Skrivanek <jskrivanek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | asmotrich, carlosmx, dhayalan, didgeridoo, glag, johnsonlau, jskrivanek, jtulach, kenashkov, matthies, misterm, nicoliniyo, oopman, setdosa, slowhog, stefanv |
Priority: | P2 | Keywords: | RANDOM, THREAD |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=1232 | ||
Issue Type: | DEFECT | Exception Reporter: | 1232 |
Attachments: |
stacktrace
stacktrace |
Description
nleck
2008-11-12 05:52:06 UTC
OK, thanks for the report. Reassigning all openide/data systems issues to the new owner jskrivanek. Build: NetBeans IDE 6.5 RC1 (Build 200810171318) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.IllegalStateException: The data object C:\projetos\rio_branco\cotacao\producao\app\aspectwerkz-jdk14-2.0.1__V152.jar 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:270) at org.openide.loaders.DataObject.getClonedNodeDelegate(DataObject.java:306) at org.openide.loaders.FolderChildren.createNodes(FolderChildren.java:200) at org.openide.loaders.FolderChildren.createNodes(FolderChildren.java:66) at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1596) at org.openide.nodes.EntrySupport$Lazy$EntryInfo.getNode(EntrySupport.java:1554) Created attachment 74221 [details]
stacktrace
*** Issue 153214 has been marked as a duplicate of this issue. *** Integrated into 'main-golden', will be available in build *200902130336* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e09ee540e865 User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #153008 - Do not call getNodeDelegate() for invalid DataObject. *** Issue 163797 has been marked as a duplicate of this issue. *** *** Issue 162058 has been marked as a duplicate of this issue. *** *** Issue 164642 has been marked as a duplicate of this issue. *** Still happens. See also issue 156864. Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: After starting the IDE, hwile projects are being scanned. Stacktrace: java.lang.IllegalStateException: The data object C:\Home\nm\Devel\pencom\PenCom\PenCom.war\build is invalid; you may not call getNodeDelegate on it any more; see #17020 and please fix your code<br/> at org.openide.loaders.DataObject.getNodeDelegate(DataObject.java:270)<br/> at org.openide.loaders.DataFolder.getClonedNodeDelegate(DataFolder.java:424)<br/> at org.openide.loaders.FolderChildren.createNodes(FolderChildren.java:205)<br/> at org.openide.loaders.FolderChildren.createNodes(FolderChildren.java:66)<br/> at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1609)<br/> at org.openide.nodes.EntrySupport$Lazy$EntryInfo.getNode(EntrySupport.java:1552)<br/> Created attachment 84862 [details]
stacktrace
This issue already has 51 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=1232 *** Issue 156864 has been marked as a duplicate of this issue. *** I added some debug message to be able to detect why DataObject is invalid. Integrated into 'main-golden', will be available in build *200907290201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/35747781ddaf User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #153008 - Added debug message. As this record proves http://statistics.netbeans.org/exceptions/exception.do?id=248376, DataObject is invalid because its primary file is no more valid. Also DataObjectPool.getPOOL().find(getPrimaryFile()) returns null which means DataObject is already unregistered. This can happen if primary file is deleted by other thread between myDataObject.isValid() and myDataObject.getNodeDelegate(). We can't prevent such situation. That's why I changed message level to INFO and added one more isValid() check to FolderChildren.createNodes(). core-main #7ff94fe22bc8 Integrated into 'main-golden', will be available in build *200908260201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7ff94fe22bc8 User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #153008 - Decrease level to INFO because DataObject can become invalid between isValid() and getNodeDelegate(). Also added one more validity check to FolderChildren.createNodes(). |