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.
[#200111230645; last jdk14] The fastest way to reproduce 1.Add the keyboard shortcut to the "Add to project" action 2.Select some data objects in the explorer and press repeatedly the shortcut for this "Add to project" action 3.The exception bellow will appear Fri Nov 23 13:57:02 CET 2001: org.openide.loaders.DataObjectNotFoundException: Projects/Default/Files/ClockFrame_16.shadow Annotation: Projects/Default/Files/ClockFrame_16.shadow Annotation: class org.openide.loaders.BrokenDataShadow org.openide.loaders.DataObjectNotFoundException: Projects/Default/Files/ClockFrame_16.shadow at org.openide.loaders.DataShadow$1.run(DataShadow.java:259) at org.openide.filesystems.EventControl.runAtomicAction (EventControl.java:89) at org.openide.filesystems.FileSystem.runAtomicAction (FileSystem.java:388) at org.openide.loaders.DataShadow.create(DataShadow.java:240) at org.openide.loaders.DataShadow.create(DataShadow.java:206) at org.openide.loaders.DataObject.handleCreateShadow (DataObject.java:619) at org.openide.loaders.DataObject$5.run(DataObject.java:634) at org.openide.filesystems.EventControl.runAtomicAction (EventControl.java:89) at org.openide.filesystems.FileSystem.runAtomicAction (FileSystem.java:388) at org.openide.loaders.DataObject.createShadow(DataObject.java:632) at org.netbeans.modules.projects.ProjectDataObject.add (ProjectDataObject.java:195) at org.netbeans.modules.projects.AddToProjectAction.performAction (AddToProjectAction.java:101) at org.openide.util.actions.NodeAction.performAction (NodeAction.java:180) at org.openide.util.actions.NodeAction.actionPerformed (NodeAction.java:171) at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:105) at org.openide.util.Task.run(Task.java:152) [catch] at org.openide.util.RequestProcessor$ProcessorThread.run (RequestProcessor.java:622)
Increasing priority. Easy reproducible on linux, regardless JDK version. Also it's not needed to add the same group multiple times. Happens only if you try to add multiple selection (more selected nodes) to project. Hesitating to mark as P1. The result of this are broken links in Project tab.
Increasing priority to P1.
It's caused by the fact that DataShadow doesn't sync access to .shadow file. Even if the creation and record of file run in FS.atomicAction it doesn't prevent FolderList running in Folder recognizer thread to scan parent folder of .shadow file. Events sequence would be: 1. create more than one DataShadow in one folder (creation of each of them runs in atomicAction) 2. when the first DS is created (atomicAction is left), FolderList starts folder scanning 3. next DS' are created in parallel with folder recognition process, which very likely causes uncompletely written .shadow file to be read and BrokenDataShadow produced
working on
I've synchronized access to .shadow files in DataShadow's read and writeOriginal methods. Conflict between Folder recognizer and DataShadow.create caller threads should not occure anymore. Fixed in release33, release33_beta6 branches.
Marking as 3.3.0_CANDIDATE.
Verified in dev #200111271845.
This is still a problem under VMS. Please give us some time to investigate. Thanks. David Penney Compaq Computer Corporation
David, OpenVMS problems could be related to issue #16401, please look at it as well. Actually the effort on #16401 is frozen due to lack of time on my side, but my suspition is that there is a problem with file names either in our filesystems API or in JDK for VMS. I could prepare another patch solving 16401 and this one, but it would be a workaround which wouldn't solve real cause of the problem. Thanks!
Upon investigation (for the issue still being a problem under VMS), we discovered that this was an error on our part - we were getting the wrong development stream. Apologies for any confusion this may have caused. I have changed the issue back to fixed. Vitezslav Stejskal: Thank you for your speedy reply and suggestion. David Penney Compaq Computer Corporation
Making as verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.