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 207823 - IllegalStateException: Network call invoked in AWT
Summary: IllegalStateException: Network call invoked in AWT
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Internal Server (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: issues@ide
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 206311
  Show dependency tree
 
Reported: 2012-01-27 10:46 UTC by Petr Cyhelsky
Modified: 2012-04-16 14:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184830


Attachments
stacktrace (4.53 KB, text/plain)
2012-01-27 10:46 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-01-27 10:46:09 UTC
Build: NetBeans IDE Dev (Build 20120125-2ee091eab541)
VM: OpenJDK 64-Bit Server VM, 20.0-b11, OpenJDK Runtime Environment, 1.6.0_22-b22
OS: Linux

User Comments:
cyhelsky: http server monitor




Stacktrace: 
java.lang.IllegalStateException: Network call invoked in AWT
   at org.netbeans.TopSecurityManager.checkConnect(TopSecurityManager.java:364)
   at java.net.InetAddress.getLocalHost(InetAddress.java:1401)
   at org.netbeans.modules.httpserver.HttpServerURLMapper.getLocalHost(HttpServerURLMapper.java:189)
   at org.netbeans.modules.httpserver.HttpServerURLMapper.getURL(HttpServerURLMapper.java:155)
   at org.openide.filesystems.URLMapper.findURL(URLMapper.java:139)
   at org.netbeans.modules.web.monitor.client.Controller.getSampleHTTPServerURL(Controller.java:1478)
Comment 1 Petr Cyhelsky 2012-01-27 10:46:32 UTC
Created attachment 115304 [details]
stacktrace
Comment 2 Petr Jiricka 2012-04-12 20:56:27 UTC
Not sure about that - e.g. this thread is not really conclusive regarding whether DNS lookup is done here or not: http://stackoverflow.com/questions/7388847/does-inetaddress-getlocalhost-gethostaddress-involve-dns-server

Do you have some proof that there is really a network connection, or is this just a guess? Thanks.
Comment 3 Marian Mirilovic 2012-04-16 13:04:15 UTC
Increasing priority to P2 - after discussion with performance team and based on the goal for NB 7.2 (performance improvements) especially for remote filesystems.
Comment 4 Petr Jiricka 2012-04-16 13:42:17 UTC
Probably not a bug per comment above, marking as incomplete until this is clarified.