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 105938 - IOException when ide can't find system default web browser to open
Summary: IOException when ide can't find system default web browser to open
Status: RESOLVED DUPLICATE of bug 92306
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-06 23:05 UTC by Peter Lam
Modified: 2007-07-09 14:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2007-06-06 23:05:17 UTC
using build netbeans-hudson-trunk-346-full.zip (20070606)

I generated UML Model report. At the end of report generation, a web browser was
launched to display the model report. However, if the browser could not be found
or launched, the following exception was popped up in an exception dialog.

java.io.IOException: Failed to show
URI:file:/home1/jse/hydra/projects/ReportingJavaModel/report/index.html
	at sun.awt.X11.XDesktopPeer.launch(XDesktopPeer.java:75)
	at sun.awt.X11.XDesktopPeer.browse(XDesktopPeer.java:64)
	at java.awt.Desktop.browse(Desktop.java:368)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.netbeans.modules.extbrowser.SystemDefaultBrowser$1.browse(SystemDefaultBrowser.java:73)
	at
org.netbeans.modules.extbrowser.SystemDefaultBrowser$Jdk6BrowserImpl.setURL(SystemDefaultBrowser.java:181)
[catch] at org.openide.awt.HtmlBrowser$1URLSetter.run(HtmlBrowser.java:471)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


From the command line where ide was launched, the following additional lines
were displayed in addition to the above exception.

Warning: use of system property netbeans.home in
org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties has been obsoleted in
favor of InstalledFileLocator
Fontconfig error: Cannot load default config file

(process:3058): libgnomevfs-WARNING **: Configuration file
`/etc/gnome-vfs-2.0/modules/cdemenu-module.conf' was not found: Too many open files

(process:3058): libgnomevfs-WARNING **: Configuration file
`/etc/gnome-vfs-2.0/modules/default-modules.conf' was not found: Too many open files

(process:3058): libgnomevfs-WARNING **: Configuration file
`/etc/gnome-vfs-2.0/modules/smb-module.conf' was not found: Too many open files

(process:3058): libgnomevfs-WARNING **: Configuration file
`/etc/gnome-vfs-2.0/modules/ssl-modules.conf' was not found: Too many open files

(process:3058): libgnomevfs-WARNING **: Configuration file
`/etc/gnome-vfs-2.0/modules/mapping-modules.conf' was not found: Too many open files

(process:3058): libgnomevfs-WARNING **: Configuration file
`/etc/gnome-vfs-2.0/modules/font-method.conf' was not found: Too many open files

(process:3058): libgnomevfs-WARNING **: Configuration file
`/etc/gnome-vfs-2.0/modules/theme-method.conf' was not found: Too many open files
WARNING [org.netbeans.modules.editor.impl.KitsTracker]: Ambiguous mime types for
editor kit implementation class: class
org.netbeans.modules.xml.text.syntax.XMLKit; mime types: [text/xml,
text/xml-external-parsed-entity, text/x-bpel+xml, text/x-struts+xml,
application/x-schema+xml, text/x-ant+xml, text/xml-bpel+xml, text/x-jsf+xml]
WARNING [org.netbeans.modules.editor.impl.KitsTracker]: Ambiguous mime types for
editor kit implementation class: class
org.netbeans.modules.web.core.syntax.JSPKit; mime types: [text/x-jsp, text/x-tag]
WARNING [org.netbeans.modules.editor.impl.KitsTracker]: No mime type uses editor
kit implementation class: class org.netbeans.modules.editor.NbEditorKit
GConf Error: Failed to contact configuration server; some possible causes are
that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks
due to a system crash. See http://www.gnome.org/projects/gconf/ for information.
(Details -  1: IOR file '/var/tmp/gconfd-petersl/lock/ior' not opened
successfully, no gconfd located: Too many open files 2: IOR file
'/var/tmp/gconfd-petersl/lock/ior' not opened successfully, no gconfd located:
Too many open files)
WARNING [org.netbeans.modules.extbrowser.SystemDefaultBrowser]
Comment 1 Peter Lam 2007-06-06 23:06:08 UTC
A more user-friendly message should have been displayed instead of the exception.
Comment 2 Peter Pis 2007-06-08 13:00:08 UTC
Reassigning to "uml" for evaluation...
Comment 3 Yang Su 2007-07-03 22:17:54 UTC
UML uses HtmlBrowser.URLDisplayer.getDefault().showURL(url), which in turn invokes 
SystemDefaultBrowser.setURL(URL url), this utility catches IOException and reports in GUI. 
This is clearly out of uml module control, if it is deemed unfriendly or uninformative, it should 
be changed in SystemDefaultBrowser.

Re-assign to external html browser module.
Comment 4 Tomasz Slota 2007-07-09 14:35:37 UTC

*** This issue has been marked as a duplicate of 92306 ***