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 89540 - SwingBrowser cannot start with -J-Djava.net.useSystemProxies=true
Summary: SwingBrowser cannot start with -J-Djava.net.useSystemProxies=true
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-17 12:50 UTC by Jiri Rechtacek
Modified: 2008-12-22 20:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
deadlock (12.33 KB, text/plain)
2006-11-17 12:52 UTC, Jiri Rechtacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Rechtacek 2006-11-17 12:50:56 UTC
Initialization of SwingBrowser leads to deadlock, see attachment.
How to reproduce:
- use latest jdk1.6
- Start Netbeans NB6.0, dev build with JDK's option java.net.useSystemProxies=true
- open Options dialog => deadlock appears.
On my configuration 100% reproducible.

============================================
Product Version         = NetBeans IDE Dev (Build 200611131900)
Operating System        = Linux version 2.6.15-27-386 running on i386
Java; VM; Vendor; Home  = 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104;
Sun Microsystems Inc.; /space/shared/java/jdk1.6.0/jre
System Locale; Encoding = us (nb); UTF-8
Comment 1 Jiri Rechtacek 2006-11-17 12:52:50 UTC
Created attachment 36109 [details]
deadlock
Comment 2 _ rkubacki 2006-11-20 15:50:46 UTC
At least once I was to reproduce. Another attempt resulted in crashed JVM (open
swing browser, then open options window).
Comment 3 _ rkubacki 2006-11-22 14:50:15 UTC
I filed bug against JDK - 6496491. It is not clear if we can fix it in NetBeans.
Successfully reproduced on my Ultra-20 w/ FC4 64-bit and Petr Nejedly's machine.
Comment 4 _ rkubacki 2006-12-08 20:36:00 UTC
two ways how to avoid this:

1.) Use
ORBit2 >= 2.14.2
gnome-vfs >= 2.16.1
libraries.

2.) Invoke java.net API on the same thread as Desktop API
Comment 5 _ rkubacki 2006-12-11 15:18:59 UTC
the third one: disable use of java.awt.Desktop on Linux/Solaris if the property
is set.

/shared/data/ccvs/repository/extbrowser/src/org/netbeans/modules/extbrowser/SystemDefaultBrowser.java,v
 <--  SystemDefaultBrowser.java
new revision: 1.9; previous revision: 1.8

Too agressive for those who have recent GNOME libs and does not cover the case
if you edit this preference in jre/lib/net.properties. I'll track the bug in JDK
and reenable this for JDK where it gets fixed.