Running a Flash Builder 4.5 Mobile BlazeDS Application on the Device

I've been developing a Flex Mobile application in a Flash Builder 4.5 mobile project.  The project uses a java/blazeds server, which is a spring application using the spring blazeds integration. I created the project with the Root URL property in Flex Server settings set to localhost (http://localhost:8080/myServerApp), and all has worked well.  I'm now trying to run the application on a usb connected android device, and am getting a warning that the device can't access my localhost location.  I changed localhost in the Root URL property to the ip of my workstation on the local wifi network the device and workstation are connected to (say http://10.0.0.2:8080/myServerApp), and receive the following error stack:
ArgumentError: Error #2004: One of the parameters is invalid.  url: 'http:'
          at flash.net::NetConnection/connect()
          at mx.messaging.channels::NetConnectionChannel/internalConnect()[E:\dev\4.5.1\frameworks\pro jects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:240]
          at mx.messaging.channels::AMFChannel/internalConnect()[E:\dev\4.5.1\frameworks\projects\rpc\ src\mx\messaging\channels\AMFChannel.as:307]
          at mx.messaging::Channel/connect()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\messaging\Cha nnel.as:884]
          at mx.messaging::ChannelSet/connectChannel()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\mes saging\ChannelSet.as:1707]
          at mx.messaging::ChannelSet/reconnectChannel()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\m essaging\ChannelSet.as:1809]
          at flash.utils::Timer/_timerDispatch()
          at flash.utils::Timer/tick()
When I change the root url back to localhost, the error persists, and the only way to recover is to start a new project.  Am I doing something stupid or what?  Any help is greatly appreciated.
Jay

Hi,
Looks like a debug build of your application was submitted.
You have to "Export Release" a build of your application specifically for App store submission. Look at Step 4, sub-step 3 in "Package for distribution".
Can you confirm if you picked "Final release package for app store" in "Export Release Build"?
-Anirudh

Similar Messages

  • Flash Builder 4.6 Mobile Project Using Blazeds & Native Extension

    Hi,
    I'm building a Flex Mobile project in FB, that uses BlazeDS to access data through a Spring Project, and also uses an ANE file to access the device's contacts.  I want to debug the application on a device connected with a USB cable, so had to set my root and output folders in Server Settings  using UNC so it can be found from my device thru my wifi network. I also have added the native extension via the Build Path and Packaging tabs.  When I debug from a desktop emulator, things launch OK and the extension correctly tells me it's not supported on the emulator. However, if I debug on the device, FB throws an exception at launch, complaining of a java null pointer exception.  The Eclipse log, in part, looks like this:
    com.adobe.flexbuilder.project.AbstractXMLModel$FileReadException: org.eclipse.core.internal.resources.ResourceException: Resource '/NewOne-debug/NewOne-app.xml' does not exist.
              at com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel.<init>(ApplicationXMLM odel.java:102)
              at com.adobe.flexbuilder.project.air.AppXMLCreator.init(AppXMLCreator.java:91)
              at com.adobe.flexbuilder.project.air.AppXMLCreator.<init>(AppXMLCreator.java:80)
              at com.adobe.flexbuilder.project.air.AppXMLCreator.<init>(AppXMLCreator.java:73)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.getAppXMLCreator (AppXMLFileANEExtensionHandler.java:153)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.retainExtensionI ds(AppXMLFileANEExtensionHandler.java:315)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging(ANECont roller.java:371)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.modifyAppXMLforPackaging(ANECont roller.java:338)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AbstractANEPackageHandler.modifyAppXMLforPacka ging(AbstractANEPackageHandler.java:91)
              at com.adobe.flexide.launching.multiplatform.launchhandlers.AbstractMultiPlatformLaunchHandl er.applyNativeExtensionDetails(AbstractMultiPlatformLaunchHandler.java:164)
              at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.doPackage(ADBLaunchHan dler.java:424)
              at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.launch(ADBLaunchHandle r.java:250)
              at com.adobe.flexide.launching.multiplatform.MultiPlatformLaunchDelegate.launch(MultiPlatfor mLaunchDelegate.java:191)
              at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate. java:244)
              at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate. java:134)
              at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
              at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
              at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
              at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/NewOne-debug/NewOne-app.xml' does not exist.
              at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
              at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
              at org.eclipse.core.internal.resources.File.getContents(File.java:287)
              at org.eclipse.core.internal.resources.File.getContents(File.java:278)
              at com.adobe.flexbuilder.project.air.internal.xml.ApplicationXMLModel.<init>(ApplicationXMLM odel.java:100)
              ... 19 more
    I guess the problem is that when the application tries to run on my device, the extension is not finding the application descriptor file.  Is there anything else I need to do?
    I appreciate any help.
    Jay

    Here's the fix in case anyone else runs into this problem.  When Flash Builder is building the deployment during launch, it converts the mapped path to a mangled local path for the ane to find the descriptor to a relative path, which can't be found and throws the null pointer.  Making the Output Folder path actually local to the computer, as opposed to the default that FB creates, resolves the error, and still allows blazeds access from the device.

  • 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

  • Installed ROVE MOBILE VIEWER: what is the device password????????????

    installed the above program and when i go to hook my usb to my blackberry it asks me on this program to input the device password.....not sure what its looking for because i don't use a password on my blackberry......has anyone else used this program and what did you put?????

    wpbrink wrote:
    what happens in detail:     i click on the desktop icon (rove mobile viewer) and open up the program.........i then hook my usb cable up so i have communication between the laptop and the phone..........then as the program says to do i click on "start" and it then that a new box pops up and says "DEVICE PASSWORD REQUIRED"   "PLEASE ENTER YOUR DEVICE PASSWORD "
    i've never ever been asked for a password even when i do a sync. so i know its the program thats asking for it..........
    ok, understood.
    So, in the Rove instructions... what does it say? You should create a password for the application ON the device, I suspect you have not done that?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Flash Builder 4.6 Mobile Application Packaging and Exporting

    Hello Everyone,
    I'm novice to Flash builder,using Flash Builder 4.6 to develop android application.
    It runs in desktop no error occur. But when I export it or try to run it on my
    SAMSUNG GALAXY Y S5360 phone it doesn't run. It's Android version is 2.3.6
    I plugged the USB with pc and tried to run on app on my phone.
    First builder ask that Do you want to install ADOBE AIR to device I select the "YES" option then after it go for 57% and show me an error
    Error occurred while installing the applicaiton: pkg:/data/local/tmp/Runtime.apk   Failure[INSTALL_FAILED_CPU_ABI_INCOMPATIBLE] 3261 KB/s (8653085 bytes in 2.333s)
    And when I Export and Release Build for .apk file.I select the Captive Runtime.
    Then it shows a message
    The package(s) were successfully created but the application could not be installed on one or more devices:   Device ID 0123456789ABCDEF(Google Android): Problem Occurred while installing ADOBE AIR.
    Please guide me...
    Thanks

    After searching on internet and have hands on this problem, finally found the solution.
    SAMSUNG Galaxy Y S5360 has CPU 830 MHz ARMv6 and minimum requirement of minimum system requirements for AIR 3.3 Beta on Android :
    CPU: ARMv7 processor with Vector FPU, Minimum 550MHz, OpenGL ES2.0, H.264 & AAC H/W Decoders OS: Android 2.2, 2.3, 3.0, 3.1, 3.2 & 4.0 RAM: 256MB RAM
    Later I used a Motorola mobile handset with higher version my .apk file worked well.
    Click here For Samsung Galaxy Y S5360 Phone Specification
    thanks to everyone for your efforts.

  • Flash builder 4.5 + mobile apps + mx components : error#1014

    Hi everyone,
    I found about the capabilities of Flex/Air a few weeks ago and I started experimenting. I'm interested in the mobile apps in particular.
    I downloaded the final release of Flash Builder and started to "code" a few things (I am fairly new to ActionScript too).
    The thing is I have errors when launching the mobile apps on an emulator or on my Desire HD.
    Typical example is this app from Ryan Stewart : http://blog.digitalbackcountry.com/2011/03/slides-and-assets-from-adobe-refresh/
    I tried to run his CollaborationMobile App (as I want to work with LCCS) onto a device emulator thanks to Flash Builder but I get the following errors :
    VerifyError: Error #1014: Class mx.containers::Canvas could not be found.
         at flash.display::MovieClip/nextFrame()
         at mx.managers::SystemManager/deferredNextFrame()[E:\dev\hero_private\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:284]
         at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\hero_private\ frameworks\projects\framework\src\mx\managers\SystemManager.as:2633]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.preloaders::Preloader/timerHandler()[E:\dev\hero_private\frameworks\projects\framework \src\mx\preloaders\Preloader.as:515]
         at flash.utils::Timer/_timerDispatch()
         at flash.utils::Timer/tick()
    VerifyError: Error #1014: Class com.adobe.coreUI.controls::RichTextArea could not be found.
         at flash.display::MovieClip/nextFrame()
         at mx.managers::SystemManager/deferredNextFrame()[E:\dev\hero_private\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:284]
         at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\hero_private\ frameworks\projects\framework\src\mx\managers\SystemManager.as:2633]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.preloaders::Preloader/timerHandler()[E:\dev\hero_private\frameworks\projects\framework \src\mx\preloaders\Preloader.as:515]
         at flash.utils::Timer/_timerDispatch()
         at flash.utils::Timer/tick()
    and a few others...
    I have no clue of the reason of these errors...
    Thanks for the help

    Try to avoid using MX components in mobile apps.

  • Flash Builder 4.6 mobile connetion oracle and php

    Hi everyone im new in flash builder and as far i know Flash Builder 4.6 gives you the option to create sample PHP code, but only gives an option for a MySQL database.  Does anyone have some PHP sample code for using Oracle? I try few proyect and they work perfect but i dont know how to do it for oracle
    Thnx a lot XD

    After searching on internet and have hands on this problem, finally found the solution.
    SAMSUNG Galaxy Y S5360 has CPU 830 MHz ARMv6 and minimum requirement of minimum system requirements for AIR 3.3 Beta on Android :
    CPU: ARMv7 processor with Vector FPU, Minimum 550MHz, OpenGL ES2.0, H.264 & AAC H/W Decoders OS: Android 2.2, 2.3, 3.0, 3.1, 3.2 & 4.0 RAM: 256MB RAM
    Later I used a Motorola mobile handset with higher version my .apk file worked well.
    Click here For Samsung Galaxy Y S5360 Phone Specification
    thanks to everyone for your efforts.

  • Flash Builder 4.6 mobile simulator question

    I have Flash Builder 4.6 for Mac, I'm  developing a mobile application for iOS. When I test the application, the simulator comes up huge, is there a way
    to configure the simulator so that the simulator show itself as being the same dimensions as what the application would be if were actually on an iPhone 4.
    Thanks.

    Not that I know of within Flash Builder however it is possible to make a web page and manually calculate what the final size would be by dividing screen DPI by the device dpi and scaling the resolution accordingly.
    There is a hack to get screen DPI in JavaScript:
    <div id='testdiv' style='height: 1in; left: -100%; position: absolute; top: -100%; width: 1in;'></div>
    var screenDPI = document.getElementById('testdiv').offsetWidth;
    NOTE: DPI is mostly standard across browsers and generally you get 96 on Windows and 72 on Mac. However, as the browser is rendering based on this DPI (and not your actual screen DPI) everything matches up.
    After you get the final dimensions then you just change the width/height of your Flash div on the web page. There are a lot of documents available on the web on how to resize the Flash content inside a web page if you need help with this.

  • Native Process running from Flash Builder but not from the installed exe

    I have created an AIR application to launch a native process. The   application works fine when tested in Flash Builder but doesn't runs   when I create and AIR  installer and run the installed exe. Any idea  what might be wrong?

    Have you created a native installer instead of just an AIR file.
    -ted

  • Flash Builder 4.5 Mobile Apple Error

    Hi, 
    I applied the following link text.
    http://www.adobe.com/devnet/air/articles/packaging-air-apps-ios.html
    We run the application on the iPhone via iTunes like you did. 
    But when we upload it to the Apple Store, Apple returned us by the following message. 
    2.5: Apps that use non-public APIs will be rejected 
    We found the following non-public APIs in your app: 
    addTextFieldWithValue:label: 
    setRunsModal: 
    Is there a solution for this?

    Hi,
    Looks like a debug build of your application was submitted.
    You have to "Export Release" a build of your application specifically for App store submission. Look at Step 4, sub-step 3 in "Package for distribution".
    Can you confirm if you picked "Final release package for app store" in "Export Release Build"?
    -Anirudh

  • Flash Builder 4.6 is not detecting my Android Device

    Hi Everybody,
    I'm making an application for the mobile platform but my Flash Builder 4.6 is unable to detect my Android Device. My Android device is manufactured by Huawei. I happened to visit the following site which displays the certified smart phones.
    http://www.adobe.com/flashplatform/certified_devices/smartphones.html
    In this list, I don't find my device. Is this the reason my device is not being detected by Flash Builder 4.6?
    Please let me know.
    Thank you very much.

    I see my device there available. Here is the command along the response:
    C:\Android\android-sdk\platform-tools>adb.exe devices
    adb server is out of date.  killing...
    * daemon started successfully *
    List of devices attached
    4C5499EFF384    device
    So, I can see my device in Android but not in Flash Builder 4.6
    Thanks

  • Flash Builder 4 Beta 2 will not accept the extension serial provided

    Hi!
    Just received an extension serial for FB4 beta 2 via https://freeriatools.adobe.com/flashbuilder4beta/ but the serial number doesn’t work. Any suggestions?

    Hi,
    Sounds as if you've run into this known issue on Snow Leopard:
    FB-22869 - Licensing error prevents Flash Builder from launching on OSX 10.6.1 (Snow Leopard).
    Workaround:
    After installing on 10.6.1, run the mini-installer found in your Flash Builder installation folder:
    /install.support/builder-common-mul/Setup.app
    Let us know whether or not that resolves the problem,
    -Chris

  • I purchased Flash Builder 4.7 Premium for Mac, but the DOWNLOAD section says "Not applicable". So how do I get my download?

    Adobe has taken my money, but I don't have the ability to download the product I purchased (Flash Builder 4.7 Premium for Mac/Win). What do I do in order to download the product I purchased?

    download the trial and enter your serial number during installation, Develop games and applications | Adobe Flash Builder 4.7 Premium

  • Why when i download anything thru firefox and try to run it says its not a win 31 application and the properties show it is empty

    why when i download anything thru firefox and try to run it says its not a valid win 32 application and the properties show it is empty

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go Tools Menu -> Clear Recent History -> '''Time range to clear: select EVERYTHING''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> Advanced -> Network -> Offline Storage (Cache): click '''Clear Now''' button
    If the problem persist check this link:
    Unable to download or save files
    https://support.mozilla.com/en-US/kb/Unable%20to%20download%20or%20save%20files
    Check and tell if its working.

  • Web Root Flash Builder 4.5 mobile + PHP

    hello everyone, i just want to know how to add the address of the web root when i do a flex mobile project, when i work locally in my server i put C:\xampp\htdocs, but when when i work remotelly how can i put this address.
    for example if mi server is 200.100.1.12, and my root URL is http://200.100.1.12, how can i write de web root for this server, please help me, i dont know if i have to configure something else in the server or what i need to do, pleas any answer will be welcome.
    Thanks

    Even though I spent a lot time, still my flex app on a mobile device cannot access to db on the remote server.
    I made changes on the following files. Can you point out what was wrong? Thanks
    .flexProperties file:
    serverRoot="/var/www/vhosts/mydomain.com/httpdocs/public" serverRootURL="http://mydomain.com"
    Web host's document root is /var/www/vhosts/mydomain.com/httpdocs/public
    MyService.as file:
        protected override function preInitializeService():void
            super.preInitializeService();
            // Initialization customization goes here
              this._serviceControl.endpoint = "http://mydomain.com/gateway.php";
    MyService.php
    class MyService
        public $username = "root";
        public $password = "pwd_2";
        public $server = "xx.xx.xxx.xx";
        public $port = "3306";
        public $databasename = "testdrive_db";
        public $tablename = "mydb";
    amf_config.ini
    webroot = "/var/www/vhosts/mobilemenu.info/httpdocs/public"
    zend_path ="/usr/local/php/ZendFramework-1.11.4-minimal/library"
    library ="/var/www/vhosts/mydomain.com/httpdocs/library"
    services ="/var/www/vhosts/mydomain.com/httpdocs/services"
    [zendamf]
    amf.directories[]=services
    gateway.php
    <?php
    ini_set("display_errors", 1);
    $dir = dirname(__FILE__);
    $webroot = $_SERVER['DOCUMENT_ROOT'];
    //Web Hosting Document Root: /var/www/vhosts/mydomain.com/httpdocs/public
    $zenddir = '/usr/local/php/ZendFramework-1.11.4-minimal/library';

Maybe you are looking for