Hi I am using the Browser Launcher application to launch the browser from my java application. the code is not working on Solaris 9 though Netscape is INSTALLED.
Interestingly when I connect through XManager to that Solaris 9 machine its working. But directly in the machine it’s not working. The following stack trace is thrown.
What could be the reason?
lbert.exception.BrowserLaunchingInitializingException: one of the supported browsers must be installed: FireFox, Mozilla, Netscape, Konqueror, FireFox, Opera
at edu.stanford.ejalbert.launching.misc.UnixNetscapeBrowserLaunching.initialize(UnixNetscapeBrowserLaunching.java:92)
at edu.stanford.ejalbert.BrowserLauncher.initBrowserLauncher(BrowserLauncher.java:80)
at edu.stanford.ejalbert.BrowserLauncher.<init>(BrowserLauncher.java:35)
at com.interwoven.modeler.core.modelconfiguration.IWHelpHandler.perform(IWHelpHandler.java:19)
at ilog.views.diagrammer.application.IlvDiagrammerAction.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at ilog.views.util.waitcursor.IlvWaitCursorManager.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The Windows message is "Windows cannot find <url>..."
This is an intermittent error. Subsequent attempts do correctly launch the browser with the url.
Have you seen this behavior? Is there a fix? Can I get the source for BrowserLauncher2 1.0 rc4
///// code in use...
public void launchBrowser(String absoluteUrl)
{
if (m_browserLauncher == null)
{
try
{
m_browserLauncher = new BrowserLauncher(null);
m_browserErrorhandler = new BrowserLauncherErrorHandler()
{
public void handleException(Exception ex)
{
displayBrowserLaunchError(ex);
}
};
}
catch (Exception e1)
{
displayBrowserLaunchError(e1);
return;
}
}
BrowserLauncherRunner runner = new BrowserLauncherRunner(m_browserLauncher,
absoluteUrl, m_browserErrorhandler);
Thread launcherThread = new Thread(runner);
launcherThread.start();
}
private void displayBrowserLaunchError(Exception e)
{
ConfigManager.getMessagingUtil().showErrorMessage(Messages.getString(
"Utilities.cant.launch.browser.message"), //$NON-NLS-1$
e);
}
No, we haven't seen this issue before. At least no one else has reported it.
Yes, the source is available in the -all- jar file.
Jeff
Hi I am using the Browser Launcher application to launch the browser from my java application. the code is not working on Solaris 9 though Netscape is INSTALLED.
Interestingly when I connect through XManager to that Solaris 9 machine its working. But directly in the machine it’s not working. The following stack trace is thrown.
What could be the reason?
lbert.exception.BrowserLaunchingInitializingException: one of the supported browsers must be installed: FireFox, Mozilla, Netscape, Konqueror, FireFox, Opera
at edu.stanford.ejalbert.launching.misc.UnixNetscapeBrowserLaunching.initialize(UnixNetscapeBrowserLaunching.java:92)
at edu.stanford.ejalbert.BrowserLauncher.initBrowserLauncher(BrowserLauncher.java:80)
at edu.stanford.ejalbert.BrowserLauncher.<init>(BrowserLauncher.java:35)
at com.interwoven.modeler.core.modelconfiguration.IWHelpHandler.perform(IWHelpHandler.java:19)
at ilog.views.diagrammer.application.IlvDiagrammerAction.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at ilog.views.util.waitcursor.IlvWaitCursorManager.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)