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.
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)
Created attachment 92280 [details] log file Log file w/ 2 thread dumps
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.
Already fixed. I will integrate it today.
Fixed in jet-main: 495c3ce596f9
*** Bug 178312 has been marked as a duplicate of this bug. ***
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