问题描述
以前查看变量的窗口现在显示如下信息Unable to create view: Argument not valid请问是怎么回事?java.lang.IllegalArgumentException: Argument not validat org.eclipse.swt.SWT.error(SWT.java:3358)at org.eclipse.swt.SWT.error(SWT.java:3297)at org.eclipse.swt.SWT.error(SWT.java:3268)at org.eclipse.swt.custom.SashForm.setWeights(SashForm.java:372)at org.eclipse.debug.internal.ui.views.variables.VariablesView.showDetailPane(VariablesView.java:763)at org.eclipse.debug.internal.ui.views.variables.VariablesView.setDetailPaneOrientation(VariablesView.java:747)at org.eclipse.debug.internal.ui.views.variables.VariablesView.createViewer(VariablesView.java:561)at org.eclipse.debug.ui.AbstractDebugView$ViewerPage.createControl(AbstractDebugView.java:270)at org.eclipse.debug.ui.AbstractDebugView.createDefaultPage(AbstractDebugView.java:358)at org.eclipse.ui.part.PageBookView.createPartControl(PageBookView.java:473)at org.eclipse.debug.ui.AbstractDebugView.createPartControl(AbstractDebugView.java:319)at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:332)at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1675)at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:987)at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:968)at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3514)at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3511)at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3487)at org.eclipse.ui.internal.ShowViewAction.run(ShowViewAction.java:76)at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)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:324)at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)at org.eclipse.core.launcher.Main.basicRun(Main.java:280)at org.eclipse.core.launcher.Main.run(Main.java:977)at org.eclipse.core.launcher.Main.main(Main.java:952) 问题补充:单眼皮大娘 写道
解决方案
我不清楚你的代码,所以无法明确指出。主要是我记不清哪些是系统函数,哪些是你写的~
解决方案二:
是说你的SWT中的参数不合法。仔细查看下你的SWT参数,只要有不合适的都会抱这种错误。