Lose access to services on Export Release Build

I have a web project which uses GraniteDS to interface with java services and works perfectly using Run in FB4.
However when I use Export Release Build to create the SWF file (and put it into the correct place in my web application), the application can no longer connect to my services. They just silently fail. Why would that be?
In the project properties, i have Flex Server > Application server type set to BlazeDS with the correct parameters set. My compiler arguments are:
-locale en_US -services ${STS_WORKSPACE}/library/web-app/WEB-INF/flex/services-config.xml -include-libraries libs/granite-essentials.swc
Obviously Adobe doesn't support GraniteDS but it seems to me to be an FB4 issue - the connections work fine in development using Run. It's almost as if Export Release Build causes FB4 to ignore the compiler arguments?
Thanks for any help.

The SWC is already added there automatically by virtue of being in the libs folder. The compiler option is necessary in addition because the classes in the SWC file are not directly referenced and this option does the following:
"Links all classes inside a SWC file to the resulting application SWF file, regardless of whether or not they are used.
Contrast this option with the library-path option that includes only those classes that are referenced at compile time.
To link one or more classes whether or not they are used and not an entire SWC file, use the includes option.
This option is commonly used to specify resource bundles."
Anyway in the meantime I solved the problem. Sorry I said that services were silently failing but this was incorrect, there were error messages in some tests I just did. The cause was that I'm using a framework that does injection based on annotations and when you "export release build" apparently the compiler removes annotations, which it doesn't do in normal development mode, so the objects were not getting injected hence no access to services. I'd actually be interested to know which compiler flag you are using that does this, by the way. In my case I added the following to the compiler arguments and everything started working:
-keep-as3-metadata+=Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient,Id,Ver sion,Name,In,Inject,Out,Observer,ManagedEvent,Destroy

Similar Messages

  • Flash Builder + WTP = "Export Release Build" Broken

    If I create a combined Flex/Java project and then click the "Export Release Build..." menu, then nothing appears to happen. If I just create a plain Flex project, then it works just fine.
    I used the Eclipse Plug-in installer 4.0.1 (build 277662) for Windows XP SP3.
    I am running the bundled 3.4.2 version of Eclpse and installed Subclipse and the WTP plugin.
    I eventually looked through the Eclipse workspace log file and found the following stack trace. If anyone can offer me any suggestions on how to get this working I would appreciate it.
    !ENTRY org.eclipse.ui 4 0 2010-11-11 15:54:01.577
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.getDefaultOutputFolderPath(ExportReleaseVersionProjectAndLocationPage.java:485)
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createLocationControls(ExportReleaseVersionProjectAndLocationPage.java:399)
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createControl(ExportReleaseVersionProjectAndLocationPage.java:702)
        at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.createPag eControls(ExportReleaseVersionWizard.java:471)
        at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:669)
        at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:543)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
        at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:93)
        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:583)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
        at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java :452)
        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:3823)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
        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(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:386)
        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:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Thanks,
    Chris Ward

    Hi
    I was able to reproduce this issue with  Eclipse 3.6 and burrito build.
    When I create a flex/java project I am not able to export the release build and the null pointer exception occurs.
    But when I create the flex/java project with remote object service as LCDS export worked fine.
    Also export of normal project is worked fine. I  raised a bug http://bugs.adobe.com/jira/browse/FB-29046 for the same
    I am  attaching the logs here
    ENTRY org.eclipse.ui 4 0 2010-11-17 10:52:09.360
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
    at  com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionMainPageContent. getDefaultOutputFolderPath(ExportReleaseVersionMainPageContent.java:581)
    at  com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionMainPageContent. createLocationControls(ExportReleaseVersionMainPageContent.java:282)
    at  com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionMainPageContent. createControls(ExportReleaseVersionMainPageContent.java:193)
    at  com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createControl(ExportReleaseVersionProjectAndLocationPage.java:188)
    at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1226)
    at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1218)
    at org.eclipse.jface.wizard.WizardDialog$6.run(WizardDialog.java:1207)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1205)
    at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:894)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:426)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.internal.handlers.WizardHandler$Export.executeHandler(WizardHandler.java:9 8)
    at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:274)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.jav a:508)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
    at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.j ava:241)
    at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
    at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:171)
    at org.eclipse.ui.actions.ExportResourcesAction.run(ExportResourcesAction.java:116)
    at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerActi on.java:168)
    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:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    Thanks and Regards
    Swathi

  • Export Release Build Flash Builder 4.5 fails to load over the web.

    Exported Release Build Application fails to load over the web.  You can reproduce using the following steps:
    1. Create New Flex Project in Trial Flash Builder 4.5.
    2. Use the default Flex 4.5 sdk.
    3. Configure as a web application.
    3. Place the following MXML code in the main application file:
    <?xml version = "1.0" encoding = "utf-8"?>
    <s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"
    xmlns:s = "library://ns.adobe.com/flex/spark"
    xmlns:mx = "library://ns.adobe.com/flex/mx"
    minWidth = "955"
    minHeight = "600">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:TextArea text = "Hello World!" width = "100%" height = "100%">
    </s:TextArea>
    </s:Application>
    3. Save the main application file and Export Release Build to bin-release.
    4. Place all files in bin-release on IIS web server in a web accessible location.
    5. Go to the web accessible location in any browser with newest flash player and view the application's html page.
    Actual Results:
    Flash movie appears blank. Context menu shows Movie Not Loaded. Network traffic shows application main swf downloaded. Framework dependent swfs not downloaded.
    Expected Results:
    Movie loads. Hello World! appears in text box. Context menu does not show Movie Not Loaded. Framework dependent swfs downloaded.
    Workaround (if any):
    Deploy on an Apache web server.
    The tests were run on IIS 7.x (7.0 for one, and 7.5)
    Flex application was built using Flex 4.5.0 SDK pre-bundled release (built-in flex 4.5 with Flash Builder 4.5 trial) on Mac OS X 10.6.7 (10J869)
    Flash Player 10.3.181.14
    Example failing website:
    http://staging.ibenergy.com/Test.html
    Any idea as to why my exported release build fails? Any help would be appreciated.

    Just tried this out on an IIS server with Flash player 10.3.181.14 - it worked.
    Are you using the release version of Flash Builder 4.5 with the release version of Flex SDK (not a prior SDK build)?
    The URL you mentioned gives me a 403 forbidden error.
    -Anirudh

  • Export Release Build error - Exception in thread "main" java.lang.Error: Unable to find named traits

    I've been developing an AIR application for Android and iOS. During development, I've run the application (in debug mode) in the desktop simulator as well as on an iPhone 4 and a Nook Tablet.
    However, I recently tried to "Export Release Build" for iOS and hit the following error: (I've stripped out the package and class information in the error message below)
    !ENTRY com.adobe.flexbuilder.project 4 43 2012-04-06 13:09:15.516
    !MESSAGE Error occurred while packaging the application:
    Exception in thread "main" java.lang.Error: Unable to find named traits: valid.package.path.here::ValidClassName
              at adobe.abc.Domain.resolveTypeName(Domain.java:231)
              at adobe.abc.Domain.resolveTypeName(Domain.java:148)
              at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6665)
              at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
              at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
              at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
              at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
              at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
              at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
              at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)
              at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    !STACK 0
    java.lang.Exception
              at com.adobe.flexbuilder.project.internal.FlexProjectCore.createErrorStatus(FlexProjectCore. java:1019)
              at com.adobe.flexbuilder.util.logging.GlobalLogImpl.log(GlobalLogImpl.java:66)
              at com.adobe.flexbuilder.util.logging.GlobalLog.log(GlobalLog.java:52)
              at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.doPackage (ExportReleaseVersionWizard.java:283)
              at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.performFi nish(ExportReleaseVersionWizard.java:152)
              at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
              at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
              at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
              at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
              at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
              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.Display.sendEvent(Display.java:4128)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
              at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
              at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
              at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
              at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
              at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
              at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
              at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
              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:344)
              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:622)
              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
              at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    The class the error message is referring to is defined with a SWC that my project links to. However, I've even tried to define a class with that same name (and location) within my project and it still fails to find it.
    Why am I able to Project->Clean and run this project within the desktop AIR player (or on the device in debug mode) but unable to export it as a release build?
    I have found a couple of threads mentioning a similar error but none of them have been marked as resolved.

    At this point I feel I am talking to myself, but I will share my work-around in case it helps another who may stumble across this post.
    In my particular case, both my main AIR application and my ANE wrapper library were referencing the same external Flex library (same revision). Both projects had the library linkage set to merge. Changing the linkage to "External" on one of the 2 libraries (it doesn't seem to matter which) and leaving the other as "Merged into code" enabled the export to complete without the bizarre "Unable to find named traits" error.

  • Flex Builder 4 Export Release Build fails on OSX

    Flex Builder 4, SDK 4.1.0.16076
    When I choose Project->Export Release Build, or Export Release Build from the Export context menu, nothing happens on teh interface, but I see the following error in the log. Any thoughts on solution or workaround?
    Thanks
    D
    !ENTRY org.eclipse.ui 4 0 2011-05-25 14:54:44.886
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.getDefaultOutputFolderPath(ExportReleaseVersionProjectAndLocationPage.java:312)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createLocationControls(ExportReleaseVersionProjectAndLocationPage.java:297)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createControl(ExportReleaseVersionProjectAndLocationPage.java:501)
    at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.createPag eControls(ExportReleaseVersionWizard.java:310)
    at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:734)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:606)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:93)
    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:1669)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1693)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1678)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1421)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3657)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3240)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    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:369)
    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:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

    looks like this is same as http://bugs.adobe.com/jira/browse/FB-29046 -- export works if turn Application Server in Properties to None/Other rather than J2EE... that bug report was closed as unreproducible. Looks like its still out there in the wild...

  • Export Release Build on Flash Builder 4 Beta 2

    Hi Everyone,
    I have a Flex 4 project that is organized as a main app project with several related projects that are linked in, along with several libraries that get included (I use granite dataservice and tweener, among others). The project runs fine when I do a normal build, I have deployed the resulting swf independently on a web server and its working fine.
    Now, whenever I try to do 'Export release build' from the Project menu, the resulting release build doesnt run at all, and it crashes with weird errors, like for example, it first crashes because of a null reference in the partAdded method in one of the components I created, when I removed that component completely it crashed because of a type coercion error on one of the data service objects, and this goes on with all sorts of errors that never existed in the normal 'debug' version not built with the export option.
    So I have two questions:
    Does anyone have any clue what might be wrong? I would have posted examples but it looks to me like an application-wide anomaly, maybe because of it not loading the libraries or the resources correctly? I tried both build path options or merging sdk libraries into the code or using runtime libraries, didnt work, not sure if it is related.
    What exactly does 'Export release build' add for me? is the release build faster than the normal one?
    Thanks a lot.

    Hi,
    A release build optimises the compile,(no debugging code etc). The swf will be a little quicker and a lot smaller. If you are getting null pointers and data service issues maybe something in your create order is a bit out. If you have an idea of what the offending component may be see if you can set its creation policy. This would be my first thought the other could possibly be some sort of local versus network issue on the release build.
    David.

  • Export Release Build stopped working on Flash builder 4.0.1

    Does anybody else have a problem  with "Export Release Build..." with the new Flash builder version ?
    I'm  selecting the option through the menu, and nothing happens.

    Same here the error log of eclipse:
    !ENTRY org.eclipse.ui 4 0 2010-07-05 11:25:51.796
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NoClassDefFoundError: com/adobe/flexbuilder/exportimport/releaseversion/ui/ExportSigningPage$1
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportSigningPage.createControl(Expo rtSigningPage.java:117)
        at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.createPag eControls(ExportReleaseVersionWizard.java:310)
        at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:675)
        at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:549)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
        at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:93)
        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)

  • Flexbuilder 3 export release build click throws NullPointerException

    Hello!
    Please help me build a release version of my app.
    When I click the "Export Release Build" button, nothing happens.
    From the Eclipse application log, I see that ExportReleaseVersionProjectAndLocationPage.getDefaultOutputFolderPath throws a NullPointerException.
    Some things I've tried:
    Search extensively on net and within adobe forums...
    I tried to guess at the default output folder location -- creating an bin-release folder...
    Reinstall the whole stack on both OS X and a Windows XP... nothing.
    My primary setup:
    J2EE/Flex/Postgresql app, deploying to tomcat 6. Using flex builder 3 plugin for eclipse 3.4 with flex sdk 3.5 (though I tried with 3.2 as well). Running all this on a mac book pro. App has grown such that the low-powered clients (in a health clinic in rural uganda) can't handle the debug version very well. Just trying to make things a bit faster... Help!
    Thank you,
    kuang
    full stack trace:
    !ENTRY org.eclipse.ui 4 0 2010-02-18 18:17:53.312
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.getDefaultOutputFolderPath(ExportReleaseVersionProjectAndLocationPage.java:307)
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createLocationControls(ExportReleaseVersionProjectAndLocationPage.java:292)
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createControl(ExportReleaseVersionProjectAndLocationPage.java:495)
        at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.createPag eControls(ExportReleaseVersionWizard.java:277)
        at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:669)
        at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:543)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
        at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:93)
        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:583)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
        at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java :452)
        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(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: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: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)

    Sounds like this bug http://bugs.adobe.com/jira/browse/FB-22946.
    You might want to try closing projects that are unrelated to the project you are exporting.
    Jason San Jose
    Quality Engineer, Flash Builder

  • FB4 Export Release Build fails

    I am having problems exporting a release build of my application.   Nothing appears to happen when I Project => Export Release Build.
    Any help would be appreciated.
    Below is the stack trace taken from the workspace's .log file:
    !ENTRY org.eclipse.ui 4 0 2010-04-10 12:09:57.919
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NoClassDefFoundError: com/adobe/flexbuilder/exportimport/releaseversion/ui/ExportContentPage$ExportFileChooser$ ExportViewerFilter
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportContentPage.createControl(Expo rtContentPage.java:106)
        at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
        at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.createPag eControls(ExportReleaseVersionWizard.java:310)
        at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:675)
        at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:549)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
        at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:93)
        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:3910)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
        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 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        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(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: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.ClassNotFoundException: com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportContentPage$ExportFileChooser$ ExportViewerFilter
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:105)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 38 more

    I did a little more testing...
    I am using MyEclipse 8.5 as my IDE.  I placed the Flash Builder plugin folder in my MyExclipse profile's 'dropins' folder and restarted MyEclipse.  Everything appears to work as expected except for Project => Export Release Build - as described in my ealier post.
    I have since downloaded and installed the Standalone version of Flash Builder 4.   Using the same workspace and proejcts used in the earlier tests I am able export a release build without a problem.
    Is anyone else have a similiar problem with exporting a release build using Eclipse with the FB4 plugin as I am with MyEclipse?
    Can anyone shead some light as to why I am getting the loop exception using MyEclipse 8.5?
    pwp

  • File export release build + nothing happens.

    I have an important Flex MXML application that when I go to file > export > release build and nothing happens.
    Any ideas where I go from here?
    Clean has no effect.

    Here's the error i'm getting from the Eclipse error log... WTF?! I'm not making an iPhone project!!!
    java.lang.NoClassDefFoundError: com/adobe/flexbuilder/project/air/IIPhoneProject
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.isIPhoneProjectSelected(ExportReleaseVersionProjectAndLocationPage.java:1107)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.getDefaultLocation(ExportReleaseVersionProjectAndLocationPage.java:1002)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.loadSettings(ExportReleaseVersionProjectAndLocationPage.java:965)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createControl(ExportReleaseVersionProjectAndLocationPage.java:730)
    at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.createPag eControls(ExportReleaseVersionWizard.java:585)
    at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:675)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:549)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:93)
    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$6.handleEvent(ActionContributionItem.java :452)
    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:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    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 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    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)

  • Export Release Build error

    I am exporting AIR project and getting the following error after providing a certificate:
    "Error occurred while saving the project settings: "default" build target cannot be found for the selected project."
    I am using FB 4.5.
    Thanks

    I get this error as well everytime I create a mobile project in the lastest version of Launchpad, import the resulting files into Flex Builder 4.5 then try to export the project as a signed AIR desktop app. Exporting Release Build to a mobile target device works fine however.
    Here is my log file as well:
    !ENTRY com.adobe.flexbuilder.project 4 43 2011-09-09 17:33:29.640
    !MESSAGE Failed to get build target settings: default
    !STACK 0
    java.lang.Exception
         at com.adobe.flexbuilder.project.internal.FlexProjectCore.createErrorStatus(FlexProjectCore. java:1009)
         at com.adobe.flexbuilder.util.logging.GlobalLogImpl.log(GlobalLogImpl.java:66)
         at com.adobe.flexbuilder.util.logging.GlobalLog.log(GlobalLog.java:52)
         at com.adobe.flexbuilder.project.ui.utils.ProjectBuildPackagingUI.doApplySettings(ProjectBui ldPackagingUI.java:754)
         at com.adobe.flexbuilder.project.ui.utils.ProjectBuildPackagingUI.applySettings(ProjectBuild PackagingUI.java:781)
         at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionBuildPackagingPa geContent.saveSettings(ExportReleaseVersionBuildPackagingPageContent.java:131)
         at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionBuildPackagingPa ge.saveSettings(ExportReleaseVersionBuildPackagingPage.java:84)
         at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.performFi nish(ExportReleaseVersionWizard.java:144)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
         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:1053)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
         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:369)
         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:619)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    Update:
         As a work around, I tried to export it as an unsigned airi, then manually signed it with ADT using a self signed certificate and it worked perfectly...
    Message was edited by: Jason Woodcock

  • Export release build with latest nightly build

    I picked up a night build this week and I noticed when I export release build now I get a bunch of framework sdks and swc files. I need to build something I can email to my supervisors for them to play with the gui I am building. If I try to run the swf it says it does not have permission to access the required framework swf. Is there some way to give it permission to do this? When I did a nightly build with beta2, it created an all encompased swf that I could mail people.
    Thanks for the input.

    Hi,
    You need to go into your project settings a set the flex build path to merge code.
    David

  • Export release build from WAMP-2-LAMP questions

    Having some difficulties with exporting a release build to move onto a linux host. Looking for a better solution that will ease moving the code (build) to Prod env/version.
    Other than the Flash Builder breaking when I start changing the server and path values that reflect the linux paths - I'm unable to export a release with the errors.Is it a build-time thing that it needs all this config - or is it in the release (post-build) that I do all my config edits?
    Am I going about this the right way ? - or is there an easier way to export a release with the server settings as a config file - or a way I can just have one version in FB rather than trying to hack a production release to linux from windows?
    Using the PHP services generated by FB - a folder called .model has the service config file for all the services - XYZ.fml
    ie
        <annotation name="ServiceConfig">
          <item name="PHP_RELATIVE_LOCATION">XYZ/services/HactionService.php</item>
          <item name="PHP_SERVER_ROOT">C:\Program Files\Zend\Apache2\htdocs</item>
          <item name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>
          <item name="PHP_SERVICES_FOLDER">C:\Program Files\Zend\Apache2\htdocs\XYZ\bin-debug\services</item>
          <item name="PHP_LOCATION">C:\Program Files\Zend\Apache2\htdocs\XYZ\services\HactionService.php</item>
          <item name="LINKED_FILE">HactionService.php</item>
          <item name="PHP_SERVER_ROOT_URL">http://localhost/</item>
          <item name="ABSOLUTE_ENDPOINT">http://localhost/XYZ/bin-debug/gateway.php</item>
          <item name="PHP_CLASS_NAME">HactionService</item>
        </annotation>
    noticed the amf_config.ini file and that has linux paths for Zend - and I think that's ok - but the paths are reverse for on and not the other.
    webroot =C:/Program Files/Zend/Apache2/htdocs
    zend_path = C:\apache\PHPFrameworks\ZendFramework
    Details - Win7, FB Beta 2, WAMP
    martin

    Hi Martin,
       Below are the steps to do an export release build and deploy the same on to any required target server (in your case MAMP)
    Export release build of the project with the existing server settings:
    1. Do export release build of the project.
    2. zip the bin-release folder contents into say <xyz>.zip
    3. upload xyz.zip to the target server and unzip its contents to /wwwroot/<xyz>/
    Additional configurations and installations:
    1. Zend installation: Your current local webroot would have a folder called ZendFramework, zip it and upload it to your server.
       Unzip the framework in your web root. If Zend Framework is installed in a location other than webroot, then you would have to update the amf_config.ini file. The amf-config.ini file will be found in the <xyz> folder
      -    Uncomment and modify zend_path variable to the absolute path of the Zend framework directory.
      -    Set amf.production to true.
      -    Update webroot with the absolute path to the web root on the server
    2.  Ensure that any of the php services used by the application is already deployed on the server.
         Ensure that the same directory structure is maintained for the services deployed.
    Hope it helps.
    Regards,
       Latha

  • Error while exporting release build.

    I'm getting this error while exporting release build targeting iOS, running Flash Builder 4.7 and Apache Flex 4.10.0, any help would be greatly appreciated.
    Error occurred while packaging the application:
    # A fatal error has been detected by the Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180386950, pid=3328, tid=2472
    # JRE version: 6.0_31-b05
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.6-b01 mixed mode windows-amd64 compressed oops)
    # Problematic frame:
    # C  [llvm.dll+0x386950]
    # An error report file with more information is saved as:
    # C:\wamp\www\Flex\ROMCorp\bin-release-temp\AOT\hs_err_pid3328.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Compilation failed while executing : ADT

    My application contains too much private data, I can't attach it. Just several notes about my problem:
    1. It's not reproducible in the Flash Builder 4.6 on OSX 10.6.8
    2. It's reproducible with ant build script
    3. Error is gone when I removed all <icon></icon> elements from descriptor file.

  • Flex Builder 3 - Export Release Build Feature

    Just bought the Flex Builder 3 prof version and imported my
    project from Flex Builder 2 to 3. All compiled OK and I see all
    .html wrappers and swf (debug and release versions) in the bin
    folder. However when I run the "Export Release Build Feature" only
    index.swf (my main application file) along with its wrapper
    index.html and my images directory gets copied to "bin-release"
    folder. Not sure why remaining.swf files corresponding to the .mxml
    files are not copied. Do I need to copy these manually???
    Appreciate any help with this.
    Thanks in advance.

    The problem is that:
    all the images do not appear in the "Select the output files to include in the exported AIR or AIRI file" section of the Export Release Build. I see only 30 files with the rest of the files missing.
    As a work around, what I did is manually copy all the resources/images from bin-debug to bin-release directory and then make the export release build. In this air package after installation, I see now all the images.
    so, the original problem with flex builder not being able to include all the images in release build still persists.
    thanks,
    Sunil

Maybe you are looking for

  • How can I open an email file in edition mode?

    Hi! I use a system here in my company that generates an automatic email and prepare it to be sent. We were using MS Outlook and we have migrated to thunderbird for lots of reasons. But since it has migrated, the system cannot generate this email in t

  • RWTValDlist T ::find( )  C++ 5.5 Compile error

    Folks: I must be overlooking something obvious, but ask for your help on this one: I'm in the process of moving some C++ code which compiles and runs with the C++ 4.3 compiler to the Sun C++ 5.5 compiler. We've moved to Sun Studio C++ 8 . I'm adherin

  • Migrate from Boot Camp to Parallels

    I've followed the threads about using the Boot Camp partition as a VM in Parallels, but I want to know if there is an advantage to keeping the Boot Camp partition if I doubt I'll ever need to re-boot into Boot Camp. I'm thinking I want to migrate my

  • Why error code 1009 again ?

    i was using  appstor in my ipad for 5 weeks and now...error code 1009 why dose it happen again...? please don't delete my post i just want to say to apple: please...please don't do this not for me but for everyone seeing this error please apple turn

  • Can't get imac to reboot after it locked up

    hello, did a hard shut down and  can't  get  imac to reboot,  all i get is the spinning wheel. the computer is about 6 years old and i recently upgraded to leopard. the system seems to be running more slow in recent months. is there a way  i can rebo