ZSE 6.1.2 - Zend Framework Project Error

General discussion on Zend Studio
Post Reply
sprocketlogic
Posts: 42
Joined: Sat Mar 14, 2009 10:43 pm

ZSE 6.1.2 - Zend Framework Project Error

Post by sprocketlogic » Wed Apr 22, 2009 4:55 pm

Every time I try to create a new Zend Framework Project I get the error pasted below.

Is this because I am checking out of Subversion before creating a Zend Framework project?

I got to File > Create Project > From Subversion

I check out the sources from trunk.

I then select Check out as project configured using the New Project Wizard

I then go into the New Project Wizard and select Zend Framework Project, enter the name (all alpha, no spaces), select ZF version 1.7, uncheck Dojo support, click next, keep the Framework paths as-is, leave the Libraries alone then click finish.

I then get this error:

"An error has occurred when Zend Framework Project finished."

With the following errors:

Code: Select all


org.eclipse.core.runtime.CoreException: Extended Operation failure: org.zend.php.framework.ui.wizards.PHPFrameworkCreationDataModelProvider$PHPFrameworkModuleCreationOperation
	at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.performFinish(DataModelWizard.java:190)
	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:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
	at org.eclipse.team.svn.ui.wizard.CheckoutAsWizard.doCheckout(CheckoutAsWizard.java:260)
	at org.eclipse.team.svn.ui.wizard.CheckoutAsWizard.performFinish(CheckoutAsWizard.java:210)
	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:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.team.svn.ui.wizard.ImportFromSVNWizard.performFinish(ImportFromSVNWizard.java:89)
	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:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3482)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	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:386)
	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:585)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java)
	at org.eclipse.equinox.launcher.Main.run(Main.java)
Caused by: java.lang.NullPointerException
	at org.zend.php.framework.ui.wizards.PHPFrameworkCreationDataModelProvider$PHPFrameworkModuleCreationOperation.a(PHPFrameworkCreationDataModelProvider.java)
	at org.zend.php.framework.ui.wizards.PHPFrameworkCreationDataModelProvider$PHPFrameworkModuleCreationOperation.a(PHPFrameworkCreationDataModelProvider.java)
	at org.zend.php.framework.ui.wizards.PHPFrameworkCreationDataModelProvider$PHPFrameworkModuleCreationOperation.d(PHPFrameworkCreationDataModelProvider.java)
	at org.zend.php.framework.ui.wizards.PHPFrameworkCreationDataModelProvider$PHPFrameworkModuleCreationOperation.b(PHPFrameworkCreationDataModelProvider.java)
	at org.zend.php.framework.ui.wizards.PHPFrameworkCreationDataModelProvider$PHPFrameworkModuleCreationOperation.execute(PHPFrameworkCreationDataModelProvider.java)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:376)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:401)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:352)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:242)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:214)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
	at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:202)
	at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard$1$CatchThrowableRunnableWithProgress.run(DataModelWizard.java:219)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Contains: Extended Operation failure: org.zend.php.framework.ui.wizards.PHPFrameworkCreationDataModelProvider$PHPFrameworkModuleCreationOperation


Am I not supposed to check out from Subversion and then create a new ZF project? Should I try another approach?

Thanks in advance for any help.

</k>

hornjef
Posts: 8
Joined: Fri Feb 27, 2009 4:35 am

Re: ZSE 6.1.2 - Zend Framework Project Error

Post by hornjef » Thu Apr 23, 2009 5:27 am

This seems to be a bug in ZSE. I've tried a few different approaches and none really work all that well. So, I basically do what you did, click OK when I get the error and then immediately revert any changes the project wizard made to the code. Not ideal but it works.

Jeff

rufinus
Posts: 20
Joined: Sun Apr 12, 2009 8:13 pm

Re: ZSE 6.1.2 - Zend Framework Project Error

Post by rufinus » Thu Apr 23, 2009 4:50 pm

Hi,

Try: File -> Import -> Project from SVN

Rufinus

hornjef
Posts: 8
Joined: Fri Feb 27, 2009 4:35 am

Re: ZSE 6.1.2 - Zend Framework Project Error

Post by hornjef » Thu Apr 23, 2009 9:18 pm

That yields the same result. If you don't use the Zend Framework Project wizard you don't get the Zend Framework Nature which sets everything up correctly. However, the wizard creates a default directory and file structure so it over writes existing code pulled from SVN. Zend needs to add a Zend Framework Nature option to the project context menu that correctly fixes the .project file therefore applying the Zend Framework Nature. If that option was there File -> Import -> Project from SVN would be all you need to do.

Post Reply