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 179735 - Java's Analyzefolder action takes ages on AWT thread
Summary: Java's Analyzefolder action takes ages on AWT thread
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: PERFORMANCE
: 192632 201504 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-21 02:40 UTC by arren
Modified: 2016-07-09 00:42 UTC (History)
12 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 arren 2010-01-21 02:40:55 UTC
This is a remote filesystem. Right clicking on a folder takes forever, because AnalyzeFolder in javahints is blocking the AWT thread.

I'm therefore reporting this to java, perhaps it belongs to platform?

I wrote the remote filesystem, but I don't think this is a FS problem, the FS is doing what it ought.

"AWT-EventQueue-1" prio=10 tid=0x08653400 nid=0x325f runnable [0x785fb000]
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
        at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
        - locked <0x874d57a8> (a java.lang.Object)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:746)
        at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
        - locked <0x85072948> (a com.sun.net.ssl.internal.ssl.AppInputStream)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
        - locked <0x8621ffa8> (a java.io.BufferedInputStream)
        at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
        at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
        at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
        at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
        at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:342)
        at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestHead(RestS3Service.java:718)
        at org.jets3t.service.impl.rest.httpclient.RestS3Service.getObjectImpl(RestS3Service.java:1599)
        at org.jets3t.service.impl.rest.httpclient.RestS3Service.getObjectDetailsImpl(RestS3Service.java:1535)
        at org.jets3t.service.S3Service.getObjectDetails(S3Service.java:1987)
        at org.jets3t.service.S3Service.getObjectDetails(S3Service.java:1332)
        at com.karmasphere.studio.hadoop.impl.hdfs.S3FileSystem$Impl.getS3Object(S3FileSystem.java:207)
        at com.karmasphere.studio.hadoop.impl.hdfs.S3FileSystem$Impl.lastModified(S3FileSystem.java:290)
        at org.openide.filesystems.AbstractFileObject.initLastModified(AbstractFileObject.java:94)
        at org.openide.filesystems.AbstractFileObject.lastModified(AbstractFileObject.java:175)
        at org.openide.filesystems.AbstractFileObject.<init>(AbstractFileObject.java:79)
        at org.openide.filesystems.AbstractFileSystem.createFileObject(AbstractFileSystem.java:447)
        at org.openide.filesystems.AbstractFileObject.createFile(AbstractFileObject.java:136)
        at org.openide.filesystems.AbstractFolder.getChild(AbstractFolder.java:363)
        at org.openide.filesystems.AbstractFolder.getChild(AbstractFolder.java:334)
        at org.openide.filesystems.AbstractFolder.getChildren(AbstractFolder.java:255)
        - locked <0x8be6e380> (a org.openide.filesystems.AbstractFileObject)
        at org.netbeans.modules.java.hints.analyzer.Analyzer.containsJavaFiles(Analyzer.java:245)
        at org.netbeans.modules.java.hints.analyzer.Analyzer.toAnalyze(Analyzer.java:212)
        at org.netbeans.modules.java.hints.analyzer.Analyzer.normalizeLookup(Analyzer.java:195)
        at org.netbeans.modules.java.hints.analyzer.AnalyzeFolder.<init>(AnalyzeFolder.java:88)
        at org.netbeans.modules.java.hints.analyzer.AnalyzeFolder$ToolsAction.createContextAwareInstance(AnalyzeFolder.java:140)
        at org.openide.actions.ToolsAction$G.isPopupEnabled(ToolsAction.java:437)
        at org.openide.actions.ToolsAction$G.access$300(ToolsAction.java:344)
        at org.openide.actions.ToolsAction$Popup.synchMenuPresenters(ToolsAction.java:275)
        at org.openide.actions.ToolsAction$Popup.getMenuPresenters(ToolsAction.java:280)
        at org.netbeans.modules.openide.awt.DefaultAWTBridge.convertComponents(DefaultAWTBridge.java:106)
        at org.openide.util.Utilities.actionsToPopup(Utilities.java:2741)
        at org.openide.util.Utilities.actionsToPopup(Utilities.java:2810)
        at org.openide.explorer.view.TreeView.createPopup(TreeView.java:971)
        at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1450)
        at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:182)
        at org.openide.awt.MouseUtils$PopupMouseAdapter.mousePressed(MouseUtils.java:173)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
        at java.awt.Component.processMouseEvent(Component.java:6260)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6028)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4630)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2475)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Jan Lahoda 2010-11-29 11:53:38 UTC
*** Bug 192632 has been marked as a duplicate of this bug. ***
Comment 2 Jan Lahoda 2011-09-18 06:30:28 UTC
*** Bug 201504 has been marked as a duplicate of this bug. ***
Comment 3 Martin Balin 2016-07-07 07:16:54 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 4 arren 2016-07-08 04:39:24 UTC
Current situation, for production use of NetBeans:
* 8.0.2 has the bug.
* 8.1 doesn't work at all for any of our users.
* 8.2 isn't released yet.
Comment 5 Michel Graciano 2016-07-09 00:42:31 UTC
Any chance to test 8.2 and see if still happens and if fix all your issues? Maybe you can participate at NetCAT 8.2 and help to stabilize it for your reality.