facebook

[Closed] Bug with Spring capabilities?

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #240064 Reply

    everbright
    Member

    Hi all,

    I’m using MyEclipse 4.0.2 GA on Windows XP Professional. I’m encountering the following problems when trying to work with Spring.

    1) Under Eclipse Preferences, MyEclipse->Project Capabilities, I get an error when I click on “Spring”. The error message is The currently displayed page contains invalid values.

    2) If I try and add Spring capabilities to a Web Project, I get the error An error has occurred. Please see error log for more details.
    Here’s the details from the error log:

    Message: Problems occurred when invoking code from plug-in: “org.eclipse.jface”.

    Stack trace:
    java.lang.NullPointerException
    at com.genuitec.eclipse.springframework.wizards.NewSpringSupportLibraryWizardPage.doUpdateLibAndTldAvailInfo(NewSpringSupportLibraryWizardPage.java:412)
    at com.genuitec.eclipse.springframework.wizards.NewSpringSupportLibraryWizardPage.dialogFieldChanged(NewSpringSupportLibraryWizardPage.java:497)
    at com.genuitec.eclipse.core.ui.wizard.NewCoreWizardPage$TypeFieldsAdapter.dialogFieldChanged(Unknown Source)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.dialogFieldChanged(DialogField.java:70)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.ListDialogField.dialogFieldChanged(ListDialogField.java:483)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.CheckedListDialogField.checkStateChanged(CheckedListDialogField.java:111)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.CheckedListDialogField.doCheckStateChanged(CheckedListDialogField.java:207)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.CheckedListDialogField.access$0(CheckedListDialogField.java:201)
    at org.eclipse.jdt.internal.ui.wizards.dialogfields.CheckedListDialogField$1.checkStateChanged(CheckedListDialogField.java:78)
    at org.eclipse.jface.viewers.CheckboxTableViewer$1.run(CheckboxTableViewer.java:176)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    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.CheckboxTableViewer.fireCheckStateChanged(CheckboxTableViewer.java:174)
    at org.eclipse.jface.viewers.CheckboxTableViewer.handleSelect(CheckboxTableViewer.java:262)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1053)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:209)
    at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:204)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:364)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    at com.genuitec.eclipse.springframework.action.AddSpringCapabilitiesActionDelegate.basicRun(AddSpringCapabilitiesActionDelegate.java:69)
    at com.genuitec.eclipse.springframework.action.AddSpringCapabilitiesActionDelegate.run(AddSpringCapabilitiesActionDelegate.java:51)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:236)
    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:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    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:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    Am I missing something with my installation, or could this be a bug somewhere?

    Thanks!

    #240090 Reply

    Riyad Kalla
    Member

    Hmm, can you please paste the result of the MyEclipse > About > Configuration dialog here, also try and restart using the -clean command line argument and see if that helps.

    Try create a new web project and adding spring caps to it, does it work?

    #240095 Reply

    everbright
    Member

    Hi rkalla,

    Have tried using the -clean option, but that didn’t work either. Same observations as before.

    What do you mean by the result of MyEclipse->About->Configuration? How do I get to this? Apologies, a bit new to this.

    Thanks for your help with this!

    #240409 Reply

    everbright
    Member

    Hi rkalla,

    I’ve tried to un-install and re-install MyEclipse, and still got the same pop-up error as before. However this time round, I got a different error message in the Eclipse error logs:

    java.lang.NullPointerException
    at com.genuitec.eclipse.springframework.classpath.MEClasspathContainerInitializer.initialize(MEClasspathContainerInitializer.java:41)
    at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1591)
    at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1040)
    at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1326)
    at com.genuitec.eclipse.springframework.preference.MELibraryFieldEditor.doLoad(MELibraryFieldEditor.java:274)
    at com.genuitec.eclipse.springframework.preference.MELibraryFieldEditor.doLoad(MELibraryFieldEditor.java:267)
    at com.genuitec.eclipse.springframework.preference.SpringModulesPreferencePage.createContents(SpringModulesPreferencePage.java:201)
    at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232)
    at com.genuitec.eclipse.springframework.preference.SpringModulesPreferencePage.createControl(SpringModulesPreferencePage.java:122)
    at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1371)
    at org.eclipse.jface.preference.PreferenceDialog$12.run(PreferenceDialog.java:1138)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    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:1132)
    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:351)
    at org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged(PreferenceDialog.java:638)
    at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:763)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    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:123)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3057)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2716)
    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:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    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:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    Does this help us to find out what’s wrong?

    #240410 Reply

    everbright
    Member

    The strange thing is that when I tried installing it on another machine, the functionality works fine?!

    I’ve got no other plugins installed on the problem so there should not be any conflicts anywhere, else the error logs would have captured it, but the log is blank when I start up Eclipse with MyEclipse.

    @everbright wrote:

    Hi rkalla,

    I’ve tried to un-install and re-install MyEclipse, and still got the same pop-up error as before. However this time round, I got a different error message in the Eclipse error logs:

    java.lang.NullPointerException
    at com.genuitec.eclipse.springframework.classpath.MEClasspathContainerInitializer.initialize(MEClasspathContainerInitializer.java:41)
    at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1591)
    at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1040)
    at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1326)
    at com.genuitec.eclipse.springframework.preference.MELibraryFieldEditor.doLoad(MELibraryFieldEditor.java:274)
    at com.genuitec.eclipse.springframework.preference.MELibraryFieldEditor.doLoad(MELibraryFieldEditor.java:267)
    at com.genuitec.eclipse.springframework.preference.SpringModulesPreferencePage.createContents(SpringModulesPreferencePage.java:201)
    at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232)
    at com.genuitec.eclipse.springframework.preference.SpringModulesPreferencePage.createControl(SpringModulesPreferencePage.java:122)
    at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1371)
    at org.eclipse.jface.preference.PreferenceDialog$12.run(PreferenceDialog.java:1138)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    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:1132)
    at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:351)
    at org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged(PreferenceDialog.java:638)
    at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:763)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    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:123)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3057)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2716)
    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:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    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:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    Does this help us to find out what’s wrong?

    #240510 Reply

    everbright
    Member

    Hi,

    Finally figured out what’s wrong… sort of. Seems like I have a slightly corrupted Eclipse workspace. Tried switching to a entirely new workspace, and re-configuring all my Eclipse and MyEclipse prefences and the Spring functionality are working fine now!

    Sorry for the false alarm 🙁

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: [Closed] Bug with Spring capabilities?

You must be logged in to post in the forum log in