0 Replies Latest reply on Nov 29, 2011 7:10 AM by Richard Barber

    Export Release Build failing with a NullException in Flash Builder 4.0.1

    Richard Barber

      Hi, when doing an Export Release Build from a project which works fine in Debug mode, I'm getting an error on one particular version of my project. I've tried ensuring that the output folder is removed before building, I've tried creating an empty output folder, I've tried turning off 'copyDependantFiles' and html-template, but all to no avail, I just keep coming back to this error, and don't get any more information in the .log file to suggest where to look next, any ideas?

       

      My apps a fairly complex one, with a number of sub-modules and libraries, so I haven't managed to reduce it to a repro case yet...

       

      !ENTRY com.adobe.flexbuilder.project 4 43 2011-11-29 14:56:02.415

      !MESSAGE ExportReleaseVersionWizard: internal error occurred

      !STACK 0

      java.lang.reflect.InvocationTargetException

          at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:477)

          at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

          at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)

          at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionManager.doExport(Ex portReleaseVersionManager.java:305)

          at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.doBuild(E xportReleaseVersionWizard.java:152)

          at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.performFi nish(ExportReleaseVersionWizard.java:115)

          at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)

          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:1003)

          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)

          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)

          at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)

          at org.eclipse.jface.window.Window.open(Window.java:801)

          at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:97)

          at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction.run(ExportRe leaseVersionAction.java:103)

          at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)

          at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)

          at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)

          at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

          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:1003)

          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)

          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)

          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

          at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)

          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)

          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

          at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :109)

          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)

          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)

          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)

          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)

          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

          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:559)

          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

          at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

      Caused by: java.lang.NullPointerException

          at com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.getOutputContainer(ReleasePr ojectBuilder.java:433)

          at com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.buildDependentProjects(Relea seProjectBuilder.java:265)

          at com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.build(ReleaseProjectBuilder. java:200)

          at com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.doReleaseBuild(ReleaseProjec tBuilder.java:141)

          at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionManager$2.execute(E xportReleaseVersionManager.java:226)

          at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)

          at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)

          at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)

          at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

          ... 46 more

      Root exception:

      java.lang.NullPointerException

          at com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.getOutputContainer(ReleasePr ojectBuilder.java:433)

          at com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.buildDependentProjects(Relea seProjectBuilder.java:265)

          at com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.build(ReleaseProjectBuilder. java:200)

          at com.adobe.flexbuilder.project.compiler.ReleaseProjectBuilder.doReleaseBuild(ReleaseProjec tBuilder.java:141)

          at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionManager$2.execute(E xportReleaseVersionManager.java:226)

          at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)

          at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)

          at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)

          at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)

          at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)

          at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)

          at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionManager.doExport(Ex portReleaseVersionManager.java:305)

          at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.doBuild(E xportReleaseVersionWizard.java:152)

          at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.performFi nish(ExportReleaseVersionWizard.java:115)

          at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)

          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:1003)

          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)

          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)

          at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)

          at org.eclipse.jface.window.Window.open(Window.java:801)

          at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:97)

          at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction.run(ExportRe leaseVersionAction.java:103)

          at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)

          at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)

          at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)

          at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

          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:1003)

          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)

          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)

          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)

          at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)

          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)

          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

          at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :109)

          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)

          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)

          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)

          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)

          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

          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:559)

          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

          at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

      !SESSION 2011-11-29 15:04:28.180 -----------------------------------------------