4 Replies Latest reply on Oct 24, 2007 4:05 PM by Peter Flynn (Adobe)

    Flex3 Beta 2  - cannot create new Flex Project

    ianils

      just installed the flex3 beta2 plugin and tried creating a Flex Project -

      It fails with

      Could not create project.
      java.lang.NullPointerException

      Here is the stack trace from the .log file :

      !SESSION 2007-10-01 10:25:24.302 -----------------------------------------------
      eclipse.buildId=I20070625-1500
      java.version=1.6.0_02
      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


      !ENTRY com.adobe.flexbuilder.editors.common 4 1 2007-10-01 10:27:00.390
      !MESSAGE Error in ActionScript Project wizard
      !STACK 0
      java.lang.reflect.InvocationTargetException
      at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:381)
      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
      at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
      at com.adobe.flexbuilder.editors.common.ui.project.wizards.AbstractActionScriptProjectWizard .doCreateProject(AbstractActionScriptProjectWizard.java:297)
      at com.adobe.flexbuilder.editors.common.ui.project.wizards.AbstractActionScriptProjectWizard .getActionScriptProject(AbstractActionScriptProjectWizard.java:224)
      at com.adobe.flexbuilder.editors.common.ui.project.wizards.ProjectBuildPathsPage.createContr ol(ProjectBuildPathsPage.java:102)
      at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1147)
      at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1139)
      at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:1128)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1126)
      at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:820)
      at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
      at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
      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 org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java: 135)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:545)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :402)
      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:153)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a: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(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
      Caused by: java.lang.NullPointerException
      at org.eclipse.core.runtime.Path.fromPortableString(Path.java:102)
      at com.adobe.flexbuilder.project.internal.FlexProjectCore.ensureDefaultHTMLTemplatesCopied(F lexProjectCore.java:610)
      at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject$4.run(ActionScrip tProject.java:935)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
      at com.adobe.flexbuilder.project.FlexWorkspaceRunner.run(FlexWorkspaceRunner.java:43)
      at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.updateHtmlTemplat eFolder(ActionScriptProject.java:996)
      at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject$1.run(ActionScrip tProject.java:282)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
      at com.adobe.flexbuilder.project.FlexWorkspaceRunner.run(FlexWorkspaceRunner.java:43)
      at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.initialize(Action ScriptProject.java:290)
      at com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.<init>(ActionScri ptProject.java:132)
      at com.adobe.flexbuilder.project.internal.FlexBasedProject.<init>(FlexBasedProject.java:50)
      at com.adobe.flexbuilder.project.internal.FlexProject.<init>(FlexProject.java:106)
      at com.adobe.flexbuilder.project.FlexProjectManager.createFlexProject(FlexProjectManager.jav a:412)
      ...
      ...