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 178303 - After 10 minutes, still Activating Java Web and EE
Summary: After 10 minutes, still Activating Java Web and EE
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 178312 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-08 08:14 UTC by _ tboudreau
Modified: 2009-12-10 02:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (190.05 KB, application/octet-stream)
2009-12-08 08:15 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2009-12-08 08:14:59 UTC
On an existing userdir I have been using for module development for months, Build 091124-35ff831ae96c of main/, I expanded the Servers node in the Services tab.  Modal progress dialog "Activating Java Web and EE" pops up.

After 10 minutes, it is still there.  I will attach log & two thread dumps, but I think there is an obvious culprit:  Someone is putting java.net.URLs into a collection.  java.net.URL.equals() will try to make a socket connection to determine if two URLs resolve to the same place.  They should never, ever, ever be used in a Collection for this reason - use strings instead.

"FoD Processor" daemon prio=1 tid=0x00000001510ad800 nid=0x1395bf000 runnable [0x00000001395bc000]
   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:1200)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
	at java.net.InetAddress.getAllByName(InetAddress.java:1083)
	at java.net.InetAddress.getAllByName(InetAddress.java:1019)
	at java.net.InetAddress.getByName(InetAddress.java:969)
	at java.net.URLStreamHandler.getHostAddress(URLStreamHandler.java:420)
	- locked <0x0000000109f1a318> (a sun.net.www.protocol.http.Handler)
	at java.net.URLStreamHandler.hostsEqual(URLStreamHandler.java:439)
	at java.net.URLStreamHandler.sameFile(URLStreamHandler.java:396)
	at java.net.URLStreamHandler.equals(URLStreamHandler.java:316)
	at java.net.URL.equals(URL.java:842)
	at java.util.AbstractList.equals(AbstractList.java:507)
	at java.util.Collections$UnmodifiableList.equals(Collections.java:1151)
	at org.netbeans.modules.project.libraries.LibraryDeclarationHandlerImpl.safeEquals(LibraryDeclarationHandlerImpl.java:205)
	at org.netbeans.modules.project.libraries.LibraryDeclarationHandlerImpl.end_library(LibraryDeclarationHandlerImpl.java:166)
	at org.netbeans.modules.project.libraries.LibraryDeclarationParser.endElement(LibraryDeclarationParser.java:142)
Comment 1 _ tboudreau 2009-12-08 08:15:48 UTC
Created attachment 92280 [details]
log file

Log file w/ 2 thread dumps
Comment 2 Jesse Glick 2009-12-08 09:51:53 UTC
FindBugs warns about this. I am curious though what these URLs actually are - it is not normal for there to be HTTP(S) URLs in library declarations.
Comment 3 Tomas Zezula 2009-12-08 10:05:41 UTC
Already fixed.
I will integrate it today.
Comment 4 Tomas Zezula 2009-12-08 10:16:02 UTC
Fixed in jet-main: 495c3ce596f9
Comment 5 Tomas Zezula 2009-12-08 11:06:07 UTC
*** Bug 178312 has been marked as a duplicate of this bug. ***
Comment 6 Quality Engineering 2009-12-10 02:32:16 UTC
Integrated into 'main-golden', will be available in build *200912100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/495c3ce596f9
User: Tomas Zezula <tzezula@netbeans.org>
Log: #178303:After 10 minutes, still Activating Java Web and EE