- This topic has 5 replies, 2 voices, and was last updated 19 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
Victor OttMemberHi, I wanted to test the Spring capabilities, starting on a plain & empty project, but am not able to do this.
New > Java project > Test3 …
Create new package ‘pkg’, new dir ‘lib’
ME > Add Hibernate capabilities > 2.1 or 3, /lib, new config, pkg.TestSessionFactory, etc
ME > Add Spring capabilities > Click on any Spring package >>>
. . . ERROR: An error has occured. See error log for more details.
> Ok > Finish >>>
. . . ERROR: Can not resolve the selected MyEclipse and User libraries to any jars/zip files. No jar/zip files copied into project.Below I’ve attached the error log details and my configuration details.
Victor
Problems occurred when invoking code from plug-in: "org.eclipse.jface". 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(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: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)
afterwards another one:
java.lang.NullPointerException at com.genuitec.eclipse.springframework.wizards.NewSpringSupportCreationWizard.installExplodedLibraryContainers(NewSpringSupportCreationWizard.java:320) at com.genuitec.eclipse.springframework.wizards.NewSpringSupportCreationWizard.installSupportLibraries(NewSpringSupportCreationWizard.java:246) at com.genuitec.eclipse.springframework.wizards.NewSpringSupportCreationWizard.finishPage(NewSpringSupportCreationWizard.java:113) at com.genuitec.eclipse.core.portability.NewElementWizard$2.run(Unknown Source) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:718) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3761) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
my configuration:
*** Date: Tue Nov 22 12:47:07 CET 2005 *** System properties: OS=WindowsXP OS version=5.1 Java version=1.5.0_05 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 4.0.3 GA Build id: 20051025-4.0.3-GA *** Eclipse details: Eclipse SDK Version: 3.1.1 Build id: M20050929-0840 Eclipse Platform Version: 3.1.1 Build id: M20050929-0840 Eclipse RCP Version: 3.1.1 Build id: I20050627-1435 Eclipse Java Development Tools Version: 3.1.1 Build id: I20050627-1435 Eclipse Plug-in Development Environment Version: 3.1.1 Build id: I20050627-1435 Eclipse Project SDK Version: 3.1.1 Build id: M20050929-0840 Eclipse startup command=-os win32 -ws win32 -arch x86 -launcher E:\progs\eclipse31\eclipse.exe -name Eclipse -showsplash 600 -exitdata 1068_768 -vm e:\java\jdk15\jre\bin\javaw.exe
November 22, 2005 at 7:57 am #241902
Riyad KallaMemberVictor, let’s try two things.
1) Try a new Java project (yes another one) and try and immediately to add Spring caps, did it work?
2) If no, try a new workspace: File > Switch Workspace > C:\tempworkspace hit OK, now try a new Project and Spring caps, did that work?
3) If no, this really sounds like an installation problem as all your settings are stored in your workspace, so if it’s still not working then incorrect settings or stale plugin caches are not the issue.
November 22, 2005 at 11:17 am #241935
Victor OttMemberRiyad,
1) does NOT work, sorry, already tried it and forgot to tell that.
2) does work, with and without Hibernate capabilities.
Any idea how to proceed?
Thanks in advance,
VictorNovember 22, 2005 at 11:36 am #241938
Riyad KallaMemberHmm. Ok let’s try and salvage the workspace.
Shut down MyEclipse, add -clean to the command line arguments you use when starting it. Fire it back up and reopen your old workspace, try with a new project, did it work? if not, you will need to use File > Export from your existing workspace to export all your settings, then go into the new one, File> Import, then use File > Import to pull in all the projects. Sorry for this, shoulldn’t take you more than a few minutes.
When workspaces go sour there is really no rhyme or reason to recovering them. I have done it one by maticlously pouring through each plugin directory and trying ot remove/edit files… took me a little more than an hour, just not worth it in my opinion if you can just create a new one and reimport the work.
November 23, 2005 at 3:23 pm #242040
Victor OttMemberRiyad, thanks for guiding me with this.
I should have mentioned that “-clean” doesn’t help. I followed your advice and migrated the projects to a new workspace, and now the Spring capabilities can be added to projects.
Thanks again,
VictorNovember 23, 2005 at 4:10 pm #242041
Riyad KallaMemberVictor, I am glad it is working, sometimes workspaces just go sour… they are like teenagers 🙂
-
AuthorPosts