[jbosstools-issues] [JBoss JIRA] (JBIDE-19530) JVM Monitor Preferences Page validation doesn't disable "Apply" button in case of value errors

Alexey Kazakov (JIRA) issues at jboss.org
Mon Mar 30 12:44:21 EDT 2015


     [ https://issues.jboss.org/browse/JBIDE-19530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov reassigned JBIDE-19530:
--------------------------------------

    Assignee: Rob Stryker


> JVM Monitor Preferences Page validation doesn't disable "Apply" button in case of value errors
> ----------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-19530
>                 URL: https://issues.jboss.org/browse/JBIDE-19530
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jmx
>    Affects Versions: 4.2.3.CR1
>            Reporter: Denis Golovin
>            Assignee: Rob Stryker
>
> It just throws exceptions Error Log:
> {code}java.lang.NumberFormatException: For input string: "cxcxc"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> 	at java.lang.Integer.parseInt(Integer.java:492)
> 	at java.lang.Integer.valueOf(Integer.java:582)
> 	at org.jboss.tools.jmx.jvmmonitor.internal.ui.JavaMonitorPreferencePage.applyChanges(JavaMonitorPreferencePage.java:185)
> 	at org.jboss.tools.jmx.jvmmonitor.internal.ui.JavaMonitorPreferencePage.performOkMonitor(JavaMonitorPreferencePage.java:177)
> 	at org.jboss.tools.jmx.jvmmonitor.internal.ui.JavaMonitorPreferencePage.performOk(JavaMonitorPreferencePage.java:164)
> 	at org.eclipse.jface.preference.PreferenceDialog$12.run(PreferenceDialog.java:992)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
> 	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
> 	at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:971)
> 	at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:460)
> 	at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:174)
> 	at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:236)
> 	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
> 	at org.eclipse.jface.window.Window.open(Window.java:808)
> 	at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:221)
> 	at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66)
> 	at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
> 	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
> 	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
> 	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
> 	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
> 	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list