MyEclipse: Add JSF capabilities does not work

stanft - Mar 07, 2006 - 10:22 AM
Post subject: Add JSF capabilities does not work
Hi everyone,

I have a problem using MyEclipseIDE 4.1.1. When I create a new web project and want to add JSF capabilities the dialog does not appear. In fact, completely nothing happens. I checked the Eclipse log and found out that the following log messages are related to the problem:

Code:

!ENTRY org.eclipse.ui 4 4 2006-03-07 11:14:36.965
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-03-07 11:14:36.965
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
   at com.genuitec.eclipse.jsf.wizards.NewJSFSupportMainWizardPage.createWebappControls(NewJSFSupportMainWizardPage.java:206)
   at com.genuitec.eclipse.jsf.wizards.NewJSFSupportMainWizardPage.createControl(NewJSFSupportMainWizardPage.java:176)
   at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:179)
   at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:611)
   at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:502)
   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 com.genuitec.eclipse.jsf.action.AddJSFCapabilitiesActionDelegate.basicRun(AddJSFCapabilitiesActionDelegate.java:69)
   at com.genuitec.eclipse.jsf.action.AddJSFCapabilitiesActionDelegate.run(AddJSFCapabilitiesActionDelegate.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:3125)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
   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:324)
   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)


I tried the same with MyEclipseIDE 4.1 and everything was fine. So it seems to be related to the 4.1.1 version. Below you'll find my configuration details.

Regards,
Stephan

Code:

*** Date: Tue Mar 07 11:16:54 CET 2006

*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.4.2_05

*** MyEclipse details:
MyEclipse Enterprise Workbench

Version: 4.1.1 GA
Build id: 20060228-4.1.1-GA

*** Eclipse details:
Eclipse SDK

Version: 3.1.2
Build id: M20060118-1600

Eclipse Platform

Version: 3.1.2
Build id: M20060118-1600

Eclipse RCP

Version: 3.1.2
Build id: M20060118-1600

Eclipse Java Development Tools

Version: 3.1.2
Build id: M20060118-1600

Eclipse Plug-in Development Environment

Version: 3.1.2
Build id: M20060118-1600

Eclipse Project SDK

Version: 3.1.2
Build id: M20060118-1600

Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Programme\myeclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
9e8_60
-vm
C:\j2sdk1.4.2_05\bin\javaw.exe

support-scott - Mar 07, 2006 - 11:16 AM
Post subject:
Stephan,

The issue is likely that the Eclipse plugin cache got stale as it sometimes
does not cleanly rebuild after updates. To rectify the problem you'll need
to restart Eclipse with the -clean flag one time: eclipse.exe -clean

That should resolve the problem.
stanft - Mar 07, 2006 - 12:09 PM
Post subject:
Hi Scott,

I already tried the -clean option but it did not solve the issue. Anyhow, in the meantime I have reinstalled the 4.1.1 version and use it with a new workspace. As a result, the mentioned problem has gone for now.

Regards,
Stephan
stanft - Mar 07, 2006 - 01:37 PM
Post subject:
Unfortunately, it seems like the problem is back again. I just created a new web project using the wizard. After having finished this I hit the "Add JSF Capabilities..." button .... and nothing happens. I checked the log and found the error messages from the log extract above. Well, in addition there is another log message that might be of interest for you ("unable to locate .myeclipse.properties file"). Last but not least: Restarting the Eclipse with the -clean option does not solve the problem. The error is still there.

Any idea?

Regards,
Stephan

Code:

!SESSION 2006-03-07 14:30:51.345 -----------------------------------------------
eclipse.buildId=M20060118-1600
java.version=1.4.2_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_DE
Command-line arguments:  -os win32 -ws win32 -arch x86 -clean

!ENTRY com.genuitec.eclipse.core 1 0 2006-03-07 14:32:06.73
!MESSAGE Unable to locate .myeclipse.properties file

!ENTRY org.eclipse.ui 4 4 2006-03-07 14:32:20.524
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-03-07 14:32:20.524
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
   at com.genuitec.eclipse.jsf.wizards.NewJSFSupportMainWizardPage.createWebappControls(NewJSFSupportMainWizardPage.java:206)
   at com.genuitec.eclipse.jsf.wizards.NewJSFSupportMainWizardPage.createControl(NewJSFSupportMainWizardPage.java:176)
   at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:179)
   at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:611)
   at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:502)
   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 com.genuitec.eclipse.jsf.action.AddJSFCapabilitiesActionDelegate.basicRun(AddJSFCapabilitiesActionDelegate.java:69)
   at com.genuitec.eclipse.jsf.action.AddJSFCapabilitiesActionDelegate.run(AddJSFCapabilitiesActionDelegate.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:3125)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
   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:324)
   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)

All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits