Forums de discussion
NPE in Eclipse Portlet Creation Wizard
Richard Youngkin, modifié il y a 15 années.
NPE in Eclipse Portlet Creation Wizard
New Member Publications: 7 Date d'inscription: 26/08/08 Publications récentes
Hi,
I'm new to liferay and am trying to create my first portlet using the ext environment and the Eclipse plugin. I'm using Eclipse 3.3. I have a new ext project in eclipse and I'm trying to add a portlet using the wizard. The wizard dialog displays fine, I pick the project from the dropdown, and provide the name of the portlet I want to create. So far so good. When I click the "Finish" button nothing happens - i.e., the dialog stays open and waiting. I opened the eclipse Error view and the following exception is logged. Any ideas?
Thanks,
Rich
I'm new to liferay and am trying to create my first portlet using the ext environment and the Eclipse plugin. I'm using Eclipse 3.3. I have a new ext project in eclipse and I'm trying to add a portlet using the wizard. The wizard dialog displays fine, I pick the project from the dropdown, and provide the name of the portlet I want to create. So far so good. When I click the "Finish" button nothing happens - i.e., the dialog stays open and waiting. I opened the eclipse Error view and the following exception is logged. Any ideas?
Thanks,
Rich
eclipse.buildId=M20071023-1652
java.version=1.6.0_10-beta
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -clean
Error
Tue Aug 26 09:51:53 MDT 2008
Unhandled event loop exception
java.lang.NullPointerException
at com.liferay.ide.portlet.eclipse.wizards.LiferayPortletWARWizard.updateBuildXML(LiferayPortletWARWizard.java:221)
at com.liferay.ide.portlet.eclipse.wizards.LiferayPortletWARWizard.performFinish(LiferayPortletWARWizard.java:88)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
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.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at com.liferay.ide.portlet.eclipse.actions.CreatePortletWAR.run(CreatePortletWAR.java:38)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:443)
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.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
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(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
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(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Richard Youngkin, modifié il y a 15 années.
RE: NPE in Eclipse Portlet Creation Wizard
New Member Publications: 7 Date d'inscription: 26/08/08 Publications récentes
...Just noticed that the portlet was created in spite of the NPE. There are directories and files under WEB-INF and html. To my untrained eyes it looks like everything is there. Hmmmm..
Thanks,
rich
Thanks,
rich