This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 232609 - [FCEditor] Exception when adding link on Navigation Rule page
Summary: [FCEditor] Exception when adding link on Navigation Rule page
Status: CLOSED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JSF Project UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-16 17:24 EDT by Ian Trimble CLA
Modified: 2008-06-19 16:56 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Trimble CLA 2008-05-16 17:24:52 EDT
WTP build: S-3.0RC1-20080516071848

Exception with following stacktrace is thrown when adding a link on the FacesConfig Editor's "Navigation Rule" page:

org.eclipse.core.runtime.AssertionFailedException: assertion failed: ContentViewer must have a content provider when input is set.
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:111)
	at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:243)
	at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1603)
	at org.eclipse.jst.jsf.facesconfig.ui.section.OverviewNavigationSection.refreshAll(OverviewNavigationSection.java:202)
	at org.eclipse.jst.jsf.facesconfig.ui.section.OverviewNavigationSection$OverviewNavigationSectionAdapter.notifyChanged(OverviewNavigationSection.java:336)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:247)
	at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:255)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:300)
	at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:626)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.synchronization.FC2PFTransformer.createFacesCase(FC2PFTransformer.java:285)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.synchronization.FC2PFTransformer.addLink(FC2PFTransformer.java:437)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.synchronization.PF2FCSynchronizer.addInLink(PF2FCSynchronizer.java:178)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.synchronization.PF2FCSynchronizer.processChange(PF2FCSynchronizer.java:102)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.synchronization.PF2FCSynchronizer.notifyChanged(PF2FCSynchronizer.java:74)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:247)
	at org.eclipse.emf.common.notify.impl.NotificationImpl.dispatch(NotificationImpl.java:1030)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl.setTarget(PageflowLinkImpl.java:284)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowImpl.connect(PageflowImpl.java:381)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.command.AddConnectionCommand.doExecute(AddConnectionCommand.java:62)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.command.ConnectionCommand.execute(ConnectionCommand.java:72)
	at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:170)
	at org.eclipse.jst.jsf.facesconfig.ui.pageflow.command.PreExecuteCommandStack.execute(PreExecuteCommandStack.java:47)
	at org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTool.java:399)
	at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:411)
	at org.eclipse.gef.tools.AbstractConnectionCreationTool.handleCreateConnection(AbstractConnectionCreationTool.java:241)
	at org.eclipse.gef.tools.ConnectionCreationTool.handleButtonDown(ConnectionCreationTool.java:73)
	at org.eclipse.gef.tools.AbstractTool.mouseDown(AbstractTool.java:975)
	at org.eclipse.gef.EditDomain.mouseDown(EditDomain.java:215)
	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMousePressed(DomainEventDispatcher.java:342)
	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:513)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:178)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3801)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3400)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2387)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2351)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2203)
	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(Workbench.java:488)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:379)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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: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)
Comment 1 Ian Trimble CLA 2008-05-16 22:34:11 EDT
I cannot reproduce this issue when running build S-3.0RC1-20080516071848 on a workspace containing all HEAD JSF Tools plugins and launching a runtime workbench from it. I can only reproduce when running directly from the build. This would suggest our code is not broken, but the build system is not correctly building our code in some way.
Comment 2 Raghunathan Srinivasan CLA 2008-05-18 00:59:40 EDT
Verified fixed in build S-3.0RC1-20080517195317
See bug 232588 for more info.
Comment 3 Ian Trimble CLA 2008-06-19 16:56:29 EDT
Bug has no specific assignee, but has been verified fixed by project lead in build S-3.0RC1-20080517195317. Closing.