Skip navigation
Currently Being Moderated

Output folder in Flash Builder 4.6 refuses to be anything but relative

Feb 6, 2012 7:56 PM

I just updated from Flash Builder 4.5 to 4.6. Things seemed to be going ok in terms of importing all my projects etc. (why can't there be a simple upgrade process rather than a complete uninstall/reinstall process?)

 

But then I got to setting the Output Folder within the Flex Build Path section of the properties of my project.

 

Now, as our dev environments we run glassfish servers locally on our testing machines and build our apps directly into them so our testing process is very quick. This was working fine in Flash Builder 4.5, I point my app's output folder to a location of the form:

 

C:\Users\myUserName\glassfish3\glassfish\domains\domain1\eclipseApps\a ppname

 

And that works fine, set by pasting in from an explorer window or Browsing there via the Browse button next to the field.

 

Now when I try to do this within Flash Builder 4.6 I get nothing at all appearing if I use the browse button. No error, nothing saying it failed, just an empty field. If I try to paste in anything I get an error from Flash Builder saying '"Paste" did not complete normally."

 

If I try to just type in the path it fails, it strips the leading C:\ and turns it into a relative path, which is completely useless.

 

This is getting really annoying!

 

 

Log file output after I tries to browse to the folder:

 

!ENTRY org.eclipse.ui 4 0 2012-02-07 14:54:00.474

!MESSAGE Unhandled event loop exception

!STACK 0

java.lang.NullPointerException

    at com.adobe.flashbuilder.launching.multiplatform.contributor.MultiPlatf ormDebugUtilLocalePathVariable.resolvePath(MultiPlatformDebugUtilLocal ePathVariable.java:68)

    at com.adobe.flexbuilder.project.PathVariableResolver.wrapPath(PathVaria bleResolver.java:198)

    at com.adobe.flexbuilder.project.PathVariableResolver.makePathVariableRe lative(PathVariableResolver.java:283)

    at com.adobe.flexbuilder.project.ui.utils.AbstractBuildPathsPropertiesPa ne.makeRelativeOutputPath(AbstractBuildPathsPropertiesPane.java:946)

    at com.adobe.flexbuilder.project.ui.utils.AbstractBuildPathsPropertiesPa ne.makeRelativeOutputPath(AbstractBuildPathsPropertiesPane.java:931)

    at com.adobe.flexbuilder.project.ui.utils.AbstractBuildPathsPropertiesPa ne.browseForOutputFolder(AbstractBuildPathsPropertiesPane.java:910)

    at com.adobe.flexbuilder.project.ui.utils.AbstractBuildPathsPropertiesPa ne$12.widgetSelected(AbstractBuildPathsPropertiesPane.java:805)

    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.Widget.sendEvent(Widget.java:1053)

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

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

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

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

    at com.adobe.flexbuilder.editors.derived.ui.navigator.FlexPackageExplore rPropertyDialogAction.run(FlexPackageExplorerPropertyDialogAction.java :41)

    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

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

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

    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC ontributionItem.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:4165)

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

    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.ja va:332)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav a:667)

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

    at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashB uilderApplication.java:108)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl e.java:196)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli cation(EclipseAppLauncher.java:110)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec lipseAppLauncher.java:79)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va:344)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va: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:622)

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

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

 
Replies
  • Currently Being Moderated
    Mar 18, 2012 9:31 AM   in reply to simon.oconnor

    Same problem here! I used your trick but you're right it's really not cool!

     

    Thx anyways. I hope Adobe will fix this soon.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2012 7:10 AM   in reply to simon.oconnor

    Tried reproducing this issue, but no luck. Could you please attach a sample project?

    I will re-open this bug.

     
    |
    Mark as:
  • Currently Being Moderated
    May 17, 2012 7:48 PM   in reply to simon.oconnor

    me too

    !ENTRY org.eclipse.jface 4 0 2012-05-18 10:40:39.212

    !MESSAGE java.lang.NullPointerException

    !STACK 0

    java.lang.NullPointerException

              at com.adobe.flashbuilder.launching.multiplatform.contributor.MultiPlatf ormDebugUtilLocalePathVariable.resolvePath(MultiPlatformDebugUtilLocal ePathVariable.java:68)

              at com.adobe.flexbuilder.project.PathVariableResolver.wrapPath(PathVaria bleResolver.java:198)

              at com.adobe.flexbuilder.project.PathVariableResolver.makePathVariableRe lative(PathVariableResolver.java:283)

              at com.adobe.flexbuilder.project.ui.utils.AbstractBuildPathsPropertiesPa ne.makeRelativeOutputPath(AbstractBuildPathsPropertiesPane.java:946)

              at com.adobe.flexbuilder.project.ui.utils.AbstractBuildPathsPropertiesPa ne.updateOutputFolder(AbstractBuildPathsPropertiesPane.java:1218)

              at com.adobe.flexbuilder.project.ui.properties.BuildPathsPropertyPage.ap plyProjectSettings(BuildPathsPropertyPage.java:444)

              at com.adobe.flexbuilder.project.ui.properties.AbstractFlexProjectProper tyPage.performOk(AbstractFlexProjectPropertyPage.java:117)

              at com.adobe.flexbuilder.project.ui.properties.BuildPathsPropertyPage.pe rformOk(BuildPathsPropertyPage.java:586)

              at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog .java:964)

              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

              at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)

              at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

              at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDia log.java:944)

              at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(Fi lteredPreferenceDialog.java:447)

              at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(Preferenc eDialog.java:233)

              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.Widget.sendEvent(Widget.java:1053)

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

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

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

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

              at com.adobe.flexbuilder.editors.derived.ui.navigator.FlexPackageExplore rPropertyDialogAction.run(FlexPackageExplorerPropertyDialogAction.java :41)

              at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

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

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

              at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC ontributionItem.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:4165)

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

              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.ja va:332)

              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav a:667)

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

              at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashB uilderApplication.java:108)

              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl e.java:196)

              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli cation(EclipseAppLauncher.java:110)

              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec lipseAppLauncher.java:79)

              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va:344)

              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va: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:622)

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

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

     
    |
    Mark as:
  • Currently Being Moderated
    May 22, 2012 7:33 AM   in reply to simon.oconnor

    I get this problem if i set the "locale" setting in the additional compiler arguments to a value other than the default "en_US". E. g. -locale de_DE.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 4, 2012 7:45 AM   in reply to lgo15

    I can confirm this behavior - I can change output folder only when I remove additional compiler arguments (czech locales in my case)

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 7:45 AM   in reply to kamil.svoboda

    I had the same issue.

    The solution for me is:  

     

    -locale=en_US,hu_HU

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 31, 2012 6:46 AM   in reply to TsigaBiga

    I got the same issue (described here http://forums.adobe.com/thread/1091290?)

     

    TsigaBiga, your fix doesn't work

     

    Message was edited by: ADI D Ok, I looked more to TsigaBiga's suggestion – it works! Just notice the "=" sign after -locale.

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2013 10:33 AM   in reply to simon.oconnor

    I am having the same issue. I tried editing the .actionscriptproperties file in NotePad and setting both the outputFolderLocation and outPutFolderPath to an absolute path on the C: drive on Windows 7 (64-bit) (and NOT within the applications folders on the C: drive.

     

    Flash Builder 4.6 is truncating the value and making it relative to the project folder. Absolutely useless!! Adobe needs to fix this!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points