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 86286 - Autoupdate blocks awt thread for long time
Summary: Autoupdate blocks awt thread for long time
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 87386 (view as bug list)
Depends on:
Blocks: 87188
  Show dependency tree
 
Reported: 2006-10-02 10:05 UTC by ehucka
Modified: 2006-10-25 11:49 UTC (History)
1 user (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 ehucka 2006-10-02 10:05:54 UTC
linux, nb dev build 200610011800

Autoupdate checking blocks awt thread of ide for a few seconds.

"AWT-EventQueue-1" prio=10 tid=0x0986a800 nid=0x1aaf runnable
[0xb4943000..0xb4943ec0]
   java.lang.Thread.State: RUNNABLE
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
        at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1183)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1136)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1109)
        at java.net.InetAddress.getAllByName(InetAddress.java:1072)
        at java.net.InetAddress.getByName(InetAddress.java:969)
        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:124)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:500)
        - locked <0x80951d38> (a sun.net.www.http.HttpClient)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:318)
        at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
        at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:733)
        at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:658)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:981)
        - locked <0x80951de8> (a sun.net.www.protocol.http.HttpURLConnection)
        at
org.netbeans.modules.autoupdate.XMLAutoupdateType.hasNewContent(XMLAutoupdateType.java:389)
        at
org.netbeans.modules.autoupdate.AutoChecker.getListWithNewContent(AutoChecker.java:132)
        at org.netbeans.modules.autoupdate.AutoChecker.run(AutoChecker.java:108)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Jiri Rechtacek 2006-10-02 10:13:07 UTC
It's a new code in NB6.0, asking for HttpURLConnection.getInputStream()
shouldn't be in AWT.
Comment 2 Jiri Rechtacek 2006-10-18 11:03:47 UTC
*** Issue 87386 has been marked as a duplicate of this issue. ***
Comment 3 Marian Mirilovic 2006-10-18 11:50:13 UTC
Jirka, 
I think this is serious issue and it has to be fixed for M4. I went to this
state and wait for ages to finish this action. 
Comment 4 mslama 2006-10-18 12:36:20 UTC
Yes it blocks for long time on Solaris not for 'a few seconds'.
Comment 5 Jiri Rechtacek 2006-10-18 16:38:58 UTC
Checking in AutoChecker.java;
/shared/data/ccvs/repository/autoupdate/src/org/netbeans/modules/autoupdate/AutoChecker.java,v
 <--  AutoChecker.java
new revision: 1.59; previous revision: 1.58
done
Comment 6 ehucka 2006-10-25 11:49:05 UTC
verified