Menu

#6 3.1M7 Error

closed-fixed
nobody
None
8
2005-07-03
2005-05-18
David Mann
No

I'm running a clean install of 3.1M7 with SQLExplorer
2.2.3 and am getting an error when using the
preferences page.
The message box says that it can't accept the changes.
Preview-limit rows=100
SQL limitrows=1000
Autocommit checked
Tables and columns... Checked

It won't display the SQL Editor pane
The error in the error log is:
Error 2005-05-17 21:51:28.14 Problems occurred when
invoking code from plug-in: "org.eclipse.jface".
java.lang.ClassCastException:
org.eclipse.swt.layout.GridData
at
org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayout.java:141)

at
org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.java:119)

at
org.eclipse.swt.widgets.Composite.computeSize(Composite.java:213)

at
org.eclipse.swt.widgets.Group.computeSize(Group.java:150)
at
org.eclipse.swt.layout.GridData.computeSize(GridData.java:463)

at
org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:207)

at
org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:155)

at
org.eclipse.swt.widgets.Composite.computeSize(Composite.java:213)

at
org.eclipse.swt.layout.GridData.computeSize(GridData.java:463)

at
org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:207)

at
org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:155)

at
org.eclipse.swt.widgets.Composite.computeSize(Composite.java:213)

at
org.eclipse.jface.preference.PreferencePage.doComputeSize(PreferencePage.java:341)

at
org.eclipse.jface.preference.PreferencePage.computeSize(PreferencePage.java:162)

at
org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:1146)

at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029)

at
org.eclipse.core.runtime.Platform.run(Platform.java:775)
at
org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at
org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)

at
org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1140)

at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:350)

at
org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged(PreferenceDialog.java:626)

at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:763)

at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029)

at
org.eclipse.core.runtime.Platform.run(Platform.java:775)
at
org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at
org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)

at
org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:761)

at
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1042)

at
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1062)

at
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:231)

at
org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:226)

at
org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:392)

at
org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118)

at
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2898)

at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2557)

at
org.eclipse.jface.window.Window.runEventLoop(Window.java:809)

at org.eclipse.jface.window.Window.open(Window.java:787)
at
org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66)

at
org.eclipse.jface.action.Action.runWithEvent(Action.java:996)

at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)

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:82)

at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2921)

at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2554)

at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1601)

at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565)

at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)

at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)

at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)

at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:230)

at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)

at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)

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:585)
at
org.eclipse.core.launcher.Main.invokeFramework(Main.java:330)

at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Discussion

  • David Mann

    David Mann - 2005-05-18
    • priority: 5 --> 7
     
  • Alexandre Luti Telles

    Logged In: YES
    user_id=805530

    Comment from bug 1204466:

    I am having trouble getting in to Preferences page for
    the plugin with Eclipse 3.1M7. And also it does not
    allow to edit the drivers or add a new one.

     
  • Andreas Voss

    Andreas Voss - 2005-05-22

    Logged In: YES
    user_id=36405

    same happens when I try to edit a driver in 3.1M7. The
    exception then is

    Error 2005-05-22 20:56:34.135 org.eclipse.swt.layout.GridData
    java.lang.ClassCastException: org.eclipse.swt.layout.GridData
    at
    org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayout.java:141)
    at
    org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.java:119)
    at
    org.eclipse.swt.widgets.Composite.computeSize(Composite.java:190)
    at
    org.eclipse.swt.layout.GridData.computeSize(GridData.java:463)
    at
    org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:207)
    at
    org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:186)
    at
    org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1128)
    at org.eclipse.swt.widgets.Composite.layout(Composite.java:754)
    at org.eclipse.swt.widgets.Composite.layout(Composite.java:719)
    at org.eclipse.swt.widgets.Composite.layout(Composite.java:689)
    at
    net.sourceforge.sqlexplorer.dialogs.CreateDriverDlg.createDialogArea(CreateDriverDlg.java:322)
    at
    org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:157)
    at
    net.sourceforge.sqlexplorer.dialogs.CreateDriverDlg.createContents(CreateDriverDlg.java:117)
    at org.eclipse.jface.window.Window.create(Window.java:418)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
    at org.eclipse.jface.window.Window.open(Window.java:776)
    at
    net.sourceforge.sqlexplorer.dialogs.DriverContainerGroup$1.run(DriverContainerGroup.java:79)
    at
    org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
    at
    org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    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:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
    at
    org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2770)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2475)
    at
    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1601)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at
    org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:230)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
    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:585)
    at
    org.eclipse.core.launcher.Main.invokeFramework(Main.java:330)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

     
  • Alexandre Luti Telles

    Logged In: YES
    user_id=805530

    It doen't work with RC1 also. Same error.

     
  • Alexandre Luti Telles

    • priority: 7 --> 8
     
  • Alexandre Luti Telles

    Logged In: YES
    user_id=805530

    It's now fixed on CVS thanks to a patch submited from Elias
    Volanakis.

     
  • Justin Edelson

    Justin Edelson - 2005-06-17

    Logged In: YES
    user_id=1298818

    Depdening upon gef, as opposed to bundling some older
    version of the jar will resolve this. Just submitted bug
    1222932 to that effect.

     
  • Alexandre Luti Telles

    • status: open --> closed-fixed
     

Log in to post a comment.