[Mc4j-cvs] mc4j/src/org/mc4j/console/connection WebsphereConnectionNode.java,1.3,1.4
Brought to you by:
ghinkl
From: Greg H. <gh...@us...> - 2004-04-01 03:53:59
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/connection In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9023/src/org/mc4j/console/connection Modified Files: WebsphereConnectionNode.java Log Message: Output the exception instead of just guessing that the server isn't there. (Need to determine which exceptions are caused by what) Index: WebsphereConnectionNode.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/connection/WebsphereConnectionNode.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** WebsphereConnectionNode.java 17 Feb 2004 02:03:36 -0000 1.3 --- WebsphereConnectionNode.java 1 Apr 2004 03:42:05 -0000 1.4 *************** *** 29,34 **** import javax.naming.Context; ! import org.openide.DialogDisplayer; ! import org.openide.NotifyDescriptor; import org.mc4j.console.connection.proxy.GenericMBeanServerProxy; --- 29,33 ---- import javax.naming.Context; ! import org.openide.ErrorManager; import org.mc4j.console.connection.proxy.GenericMBeanServerProxy; *************** *** 123,128 **** super.connect(); } catch (Exception e) { ! NotifyDescriptor d = new NotifyDescriptor.Message("Unable to connect to server at [" + this.connectionSettings.getServerUrl() + --- 122,130 ---- super.connect(); + // TODO GH: Customize exception and error messages to help + // with typical problems (jsse jars missing, passwords, etc.) } catch (Exception e) { ! ErrorManager.getDefault().notify(e); ! /*NotifyDescriptor d = new NotifyDescriptor.Message("Unable to connect to server at [" + this.connectionSettings.getServerUrl() + *************** *** 130,134 **** NotifyDescriptor.ERROR_MESSAGE); DialogDisplayer.getDefault().notify(d); ! } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); --- 132,136 ---- NotifyDescriptor.ERROR_MESSAGE); DialogDisplayer.getDefault().notify(d); ! */ } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); |