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 219470 - InterruptedException at java.lang.Object.wait during lookup call from XmlMultiViewEditorSupport
Summary: InterruptedException at java.lang.Object.wait during lookup call from XmlMult...
Status: RESOLVED INCOMPLETE
Alias: None
Product: xml
Classification: Unclassified
Component: XML Multiview (show other bugs)
Version: 7.1.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-03 18:39 UTC by jasondrums
Modified: 2012-10-20 06:50 UTC (History)
0 users

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 jasondrums 2012-10-03 18:39:24 UTC
While processing the accept method of a FileFilter implementation a DataObject is instantiated which, via its constructor, instantiates the XmlMultiViewEditorSupport class. The XmlMultiViewEditorSupport constructor calls setMimeType on its CloneableEditorSupport instance which starts a lookup which eventually leads to the InterruptedException during FolderLookup.

I marked this as a P2 only because this is a frequent occurrence in our tool. However, I do not know if it is limited to our tool based on our design. After reading the source code of the FolderLookup, RequestProcessor and Task classes I cannot determine if the issue is ours or Netbeans. I'm leaning towards Netbeans since I do not believe we are misusing the public API provided by Netbeans.

java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at org.openide.util.Task.waitFinished(Task.java:161)
at org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:1706)
at org.openide.util.Task.waitFinished(Task.java:195)
[catch] at org.openide.loaders.FolderLookup$ProxyLkp.beforeLookup(FolderLookup.java:425)
at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:672)
at org.openide.util.lookup.ProxyLookup$R.beforeLookup(ProxyLookup.java:691)
at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:680)
at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:526)
at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:497)
at org.openide.util.Lookup.lookupAll(Lookup.java:263)
at org.openide.text.CloneableEditorSupportRedirector.findRedirect(CloneableEditorSupportRedirector.java:60)
at org.openide.text.CloneableEditorSupport.setMIMEType(CloneableEditorSupport.java:1560)
at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport.<init>(XmlMultiViewEditorSupport.java:141)
at org.netbeans.modules.xml.multiview.XmlMultiViewDataObject.getEditorSupport(XmlMultiViewDataObject.java:132)
at com.datasoft.diva.gui.apiset.APISetDataObject.<init>(APISetDataObject.java:54)
at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.openide.loaders.MimeFactory.findDataObject(MimeFactory.java:108)
at org.openide.loaders.DataObjectPool.handleFindDataObject(DataObjectPool.java:181)
at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:537)
at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:493)
at org.openide.loaders.DataObject.find(DataObject.java:528)
at com.datasoft.diva.gui.FileChooserUtils.isValidFile(FileChooserUtils.java:209)
at com.datasoft.diva.gui.FileChooserUtils.access$000(FileChooserUtils.java:25)
at com.datasoft.diva.gui.FileChooserUtils$DIVA_FILE_FILTER.accept(FileChooserUtils.java:149)
at javax.swing.JFileChooser.accept(JFileChooser.java:1576)
at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:231)
at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:211)
Comment 1 Svata Dedic 2012-10-12 20:18:16 UTC
Lowering to P3; XmlMultiViewEditorSupport is heavily used from JEE modules, and they do not report a problem. Perhaps there's something in your environment which interferes with the FolderLookup ?