Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » NPE from faces config editor
NPE from faces config editor [message #476058] Mon, 10 November 2008 14:15 Go to next message
Michael Giroux is currently offline Michael Giroux
Messages: 78
Registered: July 2009
Location: Phoenix, AZ
Member
As background, it is important to note that this error occurs in a project
that was originally a simple Java project. It has been migrated to
Dynamic Web Project by manually updating .project and .classpath files so
there may well be some issues with my changes.

That said, does the stack trace suggest anything obvious. If not, don't
spend any time on this.

Michael


eclipse.buildId=M20080911-1700
java.version=1.6.0_10
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

This is a continuation of log file
C:\EclipseWorkspace\Default\.metadata\.bak_1.log
Created Time: 2008-11-07 15:11:24.084


Error
Mon Nov 10 07:07:44 GMT-07:00 2008
Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".

java.lang.NullPointerException
at
org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.getDele gatingZoomManager(FacesConfigEditor.java:950)
at
org.eclipse.jst.jsf.facesconfig.ui.FacesConfigEditor.getAdap ter(FacesConfigEditor.java:995)
at
org.eclipse.gef.ui.actions.ZoomComboContributionItem$1.partA ctivated(ZoomComboContributionItem.java:83)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerL ist.java:72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at
org.eclipse.ui.internal.PartListenerList.fireEvent(PartListe nerList.java:57)
at
org.eclipse.ui.internal.PartListenerList.firePartActivated(P artListenerList.java:70)
at
org.eclipse.ui.internal.PartService.firePartActivated(PartSe rvice.java:186)
at org.eclipse.ui.internal.PartService.setActivePart(PartServic e.java:305)
at
org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePart Changed(WorkbenchPagePartList.java:56)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java :126)
at
org.eclipse.ui.internal.WorkbenchPage.setActivePart(Workbenc hPage.java:3491)
at
org.eclipse.ui.internal.WorkbenchPage.requestActivation(Work benchPage.java:3034)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane. java:272)
at org.eclipse.ui.internal.EditorPane.requestActivation(EditorP ane.java:98)
at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:318)
at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java: 127)
at
org.eclipse.ui.internal.PartStack.presentationSelectionChang ed(PartStack.java:846)
at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:82 9)
at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.jav a:139)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation$1.handleEvent(TabbedStackPresentation.java:133)
at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(AbstractTabFolder.java:267)
at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(AbstractTabFolder.java:276)
at
org.eclipse.ui.internal.presentations.defaultpresentation.De faultTabFolder.access$1(DefaultTabFolder.java:1)
at
org.eclipse.ui.internal.presentations.defaultpresentation.De faultTabFolder$2.handleEvent(DefaultTabFolder.java:87)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:7 70)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.ja va:3242)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:20 17)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.j ava:320)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Re: NPE from faces config editor [message #476059 is a reply to message #476058] Mon, 10 November 2008 18:34 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Michael Giroux wrote:

> As background, it is important to note that this error occurs in a project
> that was originally a simple Java project. It has been migrated to

It looks like a bug. I opened one:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=254777.

Most likely what is happening is that the editor doesn't think you're in a
dynamic web project. Adding the dynamic web projects manually (which
isn't "supported" behaviour, but should work) requires to you to edit
settings/org.eclipse.wst.common.project.facet.core.xml. To see what
should do there, create a new empty dynamic web project with the JSF facet
and look at the file that gets created.


--Cam
Re: NPE from faces config editor [message #618728 is a reply to message #476058] Mon, 10 November 2008 18:34 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Michael Giroux wrote:

> As background, it is important to note that this error occurs in a project
> that was originally a simple Java project. It has been migrated to

It looks like a bug. I opened one:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=254777

Most likely what is happening is that the editor doesn't think you're in a
dynamic web project. Adding the dynamic web projects manually (which
isn't "supported" behaviour, but should work) requires to you to edit
settings/org.eclipse.wst.common.project.facet.core.xml. To see what
should do there, create a new empty dynamic web project with the JSF facet
and look at the file that gets created.


--Cam
Previous Topic:NPE from faces config editor
Next Topic:JSF 2.0 support?
Goto Forum:
  


Current Time: Mon Sep 22 08:19:50 GMT 2014

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

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