Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Frustrating problem with WTP 2.0 EJB project
Frustrating problem with WTP 2.0 EJB project [message #199950] Tue, 18 September 2007 06:18 Go to next message
Eclipse UserFriend
Originally posted by: no-spam.hotmail.com

Hi everyone,

I have Eclipse 3.3 with WTP 2.0.

Have a Eclipse workspace that has an EAR project and a EJB project that was
set up by someone prior to me arriving at this company.

I'm getting a frustrating error with the J2EE Module Dependencies prefs
screen for the EJB project.

When I change to it this page in the properties for that project it throws
the following dialog

Dialog Title: Could Not Accept Changes
Dialog Message: The currently displayed page contains invalid values

If I inspect the /.metadata/.log file for this workspace I see the
stacktrace at the end of this mail (see below)

This settings page for the EAR project however seems to work fine.

If I set up a new workspace with a new test EAR and EJB project from scratch
this J2EE Module Dependencies screen works fine. However I don't have this
luxury setting things up again from scratch as I don't want to break all the
history with source control (subversion).

I have compared every single Eclipse related file I can find in the EJB
project (.project, .classpath, /.settings/*.*) with the ones in the test EJB
project and can see only minor differences.

Any ideas greatly appreciated. I have trawled the web as hard as I can and
have found no suggestions that have helped.

Kindest Regards,

Gray.

------------------------

!ENTRY org.eclipse.jface 4 2 2007-09-18 15:26:55.408
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jst.j2ee.model.ModelProviderManager.getModelProv ider(ModelProviderManager.java:57)
at
org.eclipse.jst.j2ee.model.ModelProviderManager.getModelProv ider(ModelProviderManager.java:119)
at
org.eclipse.jst.j2ee.application.internal.operations.ClassPa thSelection.initializeElements(ClassPathSelection.java:543)
at
org.eclipse.jst.j2ee.application.internal.operations.ClassPa thSelection. <init>(ClassPathSelection.java:142)
at
org.eclipse.jst.j2ee.internal.common.ClasspathModel.createCl assPathSelection(ClasspathModel.java:260)
at
org.eclipse.jst.j2ee.internal.common.ClasspathModel.initiali zeSelection(ClasspathModel.java:244)
at
org.eclipse.jst.j2ee.internal.common.ClasspathModel.getClass PathSelection(ClasspathModel.java:286)
at
org.eclipse.jst.j2ee.internal.ClasspathTableManager.initiali zeEJBClientDefaults(ClasspathTableManager.java:110)
at
org.eclipse.jst.j2ee.internal.ClasspathTableManager.createRa dioGroup(ClasspathTableManager.java:167)
at
org.eclipse.jst.j2ee.internal.ClasspathTableManager.fillComp osite(ClasspathTableManager.java:94)
at
org.eclipse.jst.j2ee.internal.JARDependencyPropertiesPage.cr eateTableComposite(JARDependencyPropertiesPage.java:415)
at
org.eclipse.jst.j2ee.internal.JARDependencyPropertiesPage.cr eateListGroup(JARDependencyPropertiesPage.java:372)
at
org.eclipse.jst.j2ee.internal.JARDependencyPropertiesPage.cr eateContents(JARDependencyPropertiesPage.java:282)
at
org.eclipse.jst.j2ee.internal.J2EEDependenciesPage.createNon EARContent(J2EEDependenciesPage.java:138)
at
org.eclipse.jst.j2ee.internal.J2EEDependenciesPage.createCon tents(J2EEDependenciesPage.java:75)
at
org.eclipse.jface.preference.PreferencePage.createControl(Pr eferencePage.java:233)
at
org.eclipse.jface.preference.PreferenceDialog.createPageCont rol(PreferenceDialog.java:1456)
at
org.eclipse.jface.preference.PreferenceDialog$13.run(Prefere nceDialog.java:1213)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 3)
at
org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java:1207)
at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.sho wPage(FilteredPreferenceDialog.java:433)
at
org.eclipse.jface.preference.PreferenceDialog$9.selectionCha nged(PreferenceDialog.java:698)
at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:842)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 3)
at
org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(StructuredViewer.java:840)
at
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:1153)
at
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:1178)
at
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java:250)
at
org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:156)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Re: Frustrating problem with WTP 2.0 EJB project [message #199967 is a reply to message #199950] Tue, 18 September 2007 15:21 Go to previous message
Rob Frost is currently offline Rob FrostFriend
Messages: 64
Registered: July 2009
Member
hi Gary,

That same stack was reported in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198148; if you add the details
of your use case to the bug (and attach sufficient project files to enable a
repro), that would be great.

-Rob

"Gray" <no-spam@hotmail.com> wrote in message
news:fcnqjj$4gs$1@build.eclipse.org...
> Hi everyone,
>
> I have Eclipse 3.3 with WTP 2.0.
>
> Have a Eclipse workspace that has an EAR project and a EJB project that
> was set up by someone prior to me arriving at this company.
>
> I'm getting a frustrating error with the J2EE Module Dependencies prefs
> screen for the EJB project.
>
> When I change to it this page in the properties for that project it throws
> the following dialog
>
> Dialog Title: Could Not Accept Changes
> Dialog Message: The currently displayed page contains invalid values
>
> If I inspect the /.metadata/.log file for this workspace I see the
> stacktrace at the end of this mail (see below)
>
> This settings page for the EAR project however seems to work fine.
>
> If I set up a new workspace with a new test EAR and EJB project from
> scratch this J2EE Module Dependencies screen works fine. However I don't
> have this luxury setting things up again from scratch as I don't want to
> break all the history with source control (subversion).
>
> I have compared every single Eclipse related file I can find in the EJB
> project (.project, .classpath, /.settings/*.*) with the ones in the test
> EJB project and can see only minor differences.
>
> Any ideas greatly appreciated. I have trawled the web as hard as I can
> and have found no suggestions that have helped.
>
> Kindest Regards,
>
> Gray.
>
> ------------------------
>
> !ENTRY org.eclipse.jface 4 2 2007-09-18 15:26:55.408
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.jface".
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.jst.j2ee.model.ModelProviderManager.getModelProv ider(ModelProviderManager.java:57)
> at
> org.eclipse.jst.j2ee.model.ModelProviderManager.getModelProv ider(ModelProviderManager.java:119)
> at
> org.eclipse.jst.j2ee.application.internal.operations.ClassPa thSelection.initializeElements(ClassPathSelection.java:543)
> at
> org.eclipse.jst.j2ee.application.internal.operations.ClassPa thSelection. <init>(ClassPathSelection.java:142)
> at
> org.eclipse.jst.j2ee.internal.common.ClasspathModel.createCl assPathSelection(ClasspathModel.java:260)
> at
> org.eclipse.jst.j2ee.internal.common.ClasspathModel.initiali zeSelection(ClasspathModel.java:244)
> at
> org.eclipse.jst.j2ee.internal.common.ClasspathModel.getClass PathSelection(ClasspathModel.java:286)
> at
> org.eclipse.jst.j2ee.internal.ClasspathTableManager.initiali zeEJBClientDefaults(ClasspathTableManager.java:110)
> at
> org.eclipse.jst.j2ee.internal.ClasspathTableManager.createRa dioGroup(ClasspathTableManager.java:167)
> at
> org.eclipse.jst.j2ee.internal.ClasspathTableManager.fillComp osite(ClasspathTableManager.java:94)
> at
> org.eclipse.jst.j2ee.internal.JARDependencyPropertiesPage.cr eateTableComposite(JARDependencyPropertiesPage.java:415)
> at
> org.eclipse.jst.j2ee.internal.JARDependencyPropertiesPage.cr eateListGroup(JARDependencyPropertiesPage.java:372)
> at
> org.eclipse.jst.j2ee.internal.JARDependencyPropertiesPage.cr eateContents(JARDependencyPropertiesPage.java:282)
> at
> org.eclipse.jst.j2ee.internal.J2EEDependenciesPage.createNon EARContent(J2EEDependenciesPage.java:138)
> at
> org.eclipse.jst.j2ee.internal.J2EEDependenciesPage.createCon tents(J2EEDependenciesPage.java:75)
> at
> org.eclipse.jface.preference.PreferencePage.createControl(Pr eferencePage.java:233)
> at
> org.eclipse.jface.preference.PreferenceDialog.createPageCont rol(PreferenceDialog.java:1456)
> at
> org.eclipse.jface.preference.PreferenceDialog$13.run(Prefere nceDialog.java:1213)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 3)
> at
> org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java:1207)
> at
> org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.sho wPage(FilteredPreferenceDialog.java:433)
> at
> org.eclipse.jface.preference.PreferenceDialog$9.selectionCha nged(PreferenceDialog.java:698)
> at
> org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:842)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 3)
> at
> org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(StructuredViewer.java:840)
> at
> org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:1153)
> at
> org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:1178)
> at
> org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java:250)
> at
> org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:244)
> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 418)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at
> org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:156)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
>
Previous Topic:Eclipse treats inline ssi's as errors
Next Topic:Opening files with other extension in Web Page Editor
Goto Forum:
  


Current Time: Sat Dec 20 03:48:35 GMT 2014

Powered by FUDForum. Page generated in 0.12030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software