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 108688 - NetBeans does seem to pickup the platform browser - IDE vanishes on "view"ing HTML file
Summary: NetBeans does seem to pickup the platform browser - IDE vanishes on "view"ing...
Status: CLOSED DUPLICATE of bug 92306
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2007-07-02 21:36 UTC by alexismp
Modified: 2011-06-09 09:56 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (85.31 KB, text/plain)
2007-07-11 09:27 UTC, alexismp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alexismp 2007-07-02 21:36:08 UTC
Simply selecting "View" on the contextual menu of an HTML file make the IDE "disappear".
No error is generated in the IDE log file or when running using nb.exe.
Using Help->Tutorials->Quick Start Guide also 'kills' the IDE, but strangely enough, not Help->Tutorials->NetBeans
Platform Tutorial

Web Browser is set to <Default System Browser> which isn't set to anything in advanced options.
Switching to Internet Explorer or Adding Firefox 2.0.0.4 fixes the problem.

Please provide a better OOTB behavior.
Comment 1 _ gsporar 2007-07-03 19:17:31 UTC
FWIW, I was not able to reproduce this when using M10 on WinXP.  Instead, nothing happens.  In other words, I click the
"View" context menu entry for an .html file and the menu goes away but the IDE continues to run just fine.  So either
this got fixed in M10 or there is an additional factor involved in reproducing the problem....

Comment 2 alexismp 2007-07-03 20:07:08 UTC
This is using the full-blown M10 install.
Comment 3 _ gsporar 2007-07-04 00:35:29 UTC
Hmmm.... that's what I was using as well: the full blown M10 install, using JDK6u1 on WinXP.

Raising priority to a P2 since at least one person can make this happen on M10.
Comment 4 alexismp 2007-07-04 16:52:09 UTC
More background: I have Firefox as my default WindowsXP browser, but HTML is being opened with IE 7 (not sure how that
happened...).
Comment 5 Peter Pis 2007-07-10 12:48:04 UTC
Reassigning to "html" for evaluation...
Comment 6 Tomasz Slota 2007-07-11 08:51:58 UTC
This is most likely a variation of issue 92306, but there were no previous reports on JVM crash. It could be of great help if people who can reproduce it run 
the IDE with -J-Dorg.netbeans.modules.extbrowser=-1 option and attached produced IDE log files to the issue. 
Comment 7 alexismp 2007-07-11 09:26:24 UTC
Starting IDE with -J-Dorg.netbeans.modules.extbrowser=-1, with Web Browser set to <Default System Browser>, and select
Help>Tutorials>Quick Start Guide produces the attached messages.log file (nothing obvious there it seems).
There is no JVM crash apparently.
Also, changing the Windows config to have .html and .htm files be opened with FF rather than IE doesn't help.
Comment 8 alexismp 2007-07-11 09:27:16 UTC
Created attachment 44924 [details]
IDE log
Comment 9 _ rkubacki 2007-07-11 09:42:00 UTC
-J-Dorg.netbeans.modules.extbrowser.level=200 should log the data after migration to Logging API. At least we want to
find if java.awt.Desktop.browse() is used or not. If this is the case we can try to run small standalone testcase.
Comment 10 alexismp 2007-07-11 10:01:34 UTC
java.awt.Desktop.browse() is not called (diff shows no change in the log file).
Comment 11 _ rkubacki 2007-07-16 13:01:42 UTC
There should be at least some logging with mentioned property. I do not understand what 'diff shows no change in the log
file' means.

Also it is not clear to me whether customized 'Firefox 2.settings' has some impact on results. It can be worth to try
with clean userdir.
Comment 12 alexismp 2007-07-16 13:19:31 UTC
Sorry I messed up looking at the log files. Here's what should be relevant:

FIN [org.netbeans.modules.extbrowser]: org.netbeans.modules.extbrowser.ExtWebBrowser 1184587992500> init
FIN [org.netbeans.modules.extbrowser.SystemDefaultBrowser]: java.awt.Desktop found, isDesktopSupported returned true
FIN [org.netbeans.modules.extbrowser.SystemDefaultBrowser]: java.awt.Desktop found, isSupported(Action.BROWSE) returned true
FIN [org.netbeans.modules.extbrowser.SystemDefaultBrowser]: java.awt.Desktop.browse support
FIN [org.netbeans.modules.extbrowser]: 1184587992546> NbDdeBrowser: static initializer: 
INFO [org.netbeans.modules.extbrowser]: Cannot detect Firefox : org.netbeans.modules.extbrowser.NbBrowserException:
RegOpenKeyEx() failed for SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\FIREFOX.exe.
INFO [org.netbeans.modules.extbrowser]: Cannot detect Mozilla : org.netbeans.modules.extbrowser.NbBrowserException:
RegOpenKeyEx() failed for SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\MOZILLA.exe.
INFO [org.netbeans.modules.extbrowser]: Cannot detect Netscape 7 : org.netbeans.modules.extbrowser.NbBrowserException:
RegOpenKeyEx() failed for SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NETSCP.exe.
INFO [org.netbeans.modules.extbrowser]: Cannot detect Netscape 6 : org.netbeans.modules.extbrowser.NbBrowserException:
RegOpenKeyEx() failed for SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NETSCP6.exe.
INFO [org.netbeans.modules.extbrowser]: Cannot detect Netscape 4 : org.netbeans.modules.extbrowser.NbBrowserException:
RegOpenKeyEx() failed for SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NETSCAPE.exe.

This is all I get before the IDE 'exits' itself on choosing "Help > Tutorials > Quick Start Guide".
Comment 13 Tomasz Slota 2007-07-25 12:46:21 UTC
Yes, this is just another variation of issue 92306.

*** This issue has been marked as a duplicate of 92306 ***
Comment 14 Marian Mirilovic 2011-06-09 09:56:20 UTC
v/c