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)
Ok, have found an unsatifactory solution for now, which lets me build the app.
From comparing the old actionscript file in our repository to the new one, it seems like it doesn't have both the outputFolderLocation and outputFolderPath entries, and by copying those from the old one (outputFolderLocation being the full path to where I want it to go, and outputFolderPath="bind-debug"), it now compiles into the right place... all working again.
However, if I try to look at this field in Flash Builder by going to the Flex Build Path of the properties dialoge I get 'The currently displayed page contains invalid values', and nothing is shown.
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)
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.
The only way I ever get this to stop happening (only seems to happen on projects that were originally built in FB 4.5 I think), is to close Flash Builder and edit the .actionscriptProperties file to have the correct values for outputFolderLocation and outputFolderPath.
Save it, then open Flash Builder again and it should be working fine (although you still can't go into that page of the properties of the project).
It's a pain, the issue that belongs to this problem which I logged has example projects that replicate it, they've been able to replicate it, but it's not a priority to fix as it doesn't happen for projects made fresh in 4.6 as far as I know.
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!
North America
Europe, Middle East and Africa
Asia Pacific