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.

Similar Messages

  • 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

  • Flash Builder : managing multiple charts projects for one XHTML site

    Hello,
    I build several Charts that have to be integrated in some static web page.
    2 or 3 charts are integrated in the same page ...
    In Flash Builder
    - i have one project per chart
    - i must change the compilation options (option -services -locale etc) depending on wich platform i deploy (because i use an AMF Server and i have to configure the locale also) :
              - local windows machine
              - Linux pre-production server
    So it takes me a lot of time to build each project for the local host or for the pre-production one ...
    Is there a way to create a compilation profile to avoid re-typing each compilation option (like in netbeans per example) ?
    Is  there a way to build several projects at the same time ? maybe in  separate directories ? (in my case i would like to build 3 or 4 Charts  that will be available on the same HTML page even if they don't use the  same services ...)
    Thanks for your help
    Regards

    ok sorry for the mistake
    Have a nice day

  • Successfully using a Native Extension with Flash CS5.5 Pro, having issues

    Hey all,
    I'm trying to use a native extension due to an app rejection about the new storage guidelines. I'm hoping someone can help me figure out how to use a native extension from Flash CS5.5 and the adt command line utility (I've never used before).
    Apples storage guidelines in 5.0.1 require files saved to Documents (and other places) to be marked with the icloud "do not back up" bit. I'm trying to use Adobe's IOS 5.0.1 data storage native extension to do that as I have file sharing enabled and my app downloads files I want the user to be able to copy to their desktop.
    From the bits and fragments I'm reading all over, getting it to compile means using the command line adt tool (I've never used it before) because Flash Pro CS5.5 doesn't support native extensions. Also, this native extension requires a v14 SWF published (11.1) and CS5.5 only goes up to 10.2 (or higher if you install the players).
    I edited the AiriPhone.xml file and pointed it to an AIR 3.1 airglobal.swc and I have AIR 3.1 overlayed in flash. I can't test AIR for iOS anymore after that change but I can get it to compile a SWF. The adt command line adt utility stopped complaining that my SWF version was 13 when it needed 14, so I assume this worked?
    I am trying to compile a debug version so I can see trace statements to see if the native extension reports success on changing the bit. Here is my command line cobbled together from scraps of info on adobe.com and the -help data:
    adt -package -target ipa-debug -connect 192.168.1.80 -provisioning-profile myApp.mobileprovision -storetype pkcs12 -keystore myApp.p12 myApp.ipa myApp-app.xml myApp.swf dat AppIconsForPublish Default-Landscape.png Default-LandscapeRight.png -extdir extensionDir
    Before this iCloud change this app published directly from Flash Pro CS5.5 without any issues. I am only running into issues getting this app to work with this native extension and/or published correctly.
    I am including the folders "dat" and "AppIconsForPublish" as well as splash screens (this app is landscape-only) as well as that extension in the folder extensionDir.
    After putting in my password my app compiles into an IPA which I can drop into iTunes. It has the same general size as the IPA generated from Flash Pro. The icon is correct, etc.
    When I sync this file, the progress bar goes across, I see it loading on my iPad and then once it goes to install I get a popup saying "iTunes Sync: 'myApp' failed to install."
    Is there anything obvious wrong with my adt line? Has anyone else used this native extension? Ideas on what I can do to fix this?
    No, unfortunately I did not build this with Flash Builder. I am an avid user of it now and this would be a moot point as it uses ANEs and changes SWF versions trivially. I have to get this to compile using Flash Pro CS5.5 though.
    Any help is greatly appreciated!
    edit:
    Just FWIW, after I updated the .xml to use the latest AIR and such (so the version is 14) I removed the extension, exported purely from Flash Pro CS5.5 and the app works fine. As soon as I enable the <extension> in the XML I can no longer install the app. This just appears to be a noob adt publish issue.

    My app downloads PDFs, movies and other information-esque files and saves them to the apps Documents folder so they can be retrieved via file sharing. These files not being in something purgable like /Library/Caches and not having the "do not back up" bit is why I was rejected.
    update: It's definitely my command line building.. I took out the native extension completely and published from flash to an IPA and it works. I then run adt on the same SWF that just worked and it fails to install. So the install failing is my command line. I see this article and my command line is very similar. I'm really uncertain why it's failing.

  • Would you use Flash Builder Beta2 for production project?

    i am currently developing a project in Flash Builder beta2 with flex 4 sdk with the new spark components.
    But as i can see not all mx components have a spark equivalent and in my bin-debug folder there are
    spark_4.0.0.10485.swf 431,927  bytes
    rpc_4.0.0.10485.swf 206,435  bytes
    framework_4.0.0.10485.swf 1,018,863  bytes
    without taking in mind my main application file sizes.
    An i am wondering will my project that use a mix of mx and spark components will have to load the hole frameworks?

    i've got the same pb... any ideas ?

  • 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.

  • SWC buttons not working in a Flash Builder 4.7 ActionScript Project

    Howdy,
    I have this BIG issue. Every button in my swc causes issues when compilling in Flash Builder 4.7. Two things will happen, one or the other:
    1. I get this error in the class that extends a linked library item:
    Error #1107: The ABC data is corrupt, attempt to read out of bounds.
    2. The swf compiles with no errors but all buttons display the wrong art.
    Both problems go away when I remove the buttons.
    I found this article:
    http://inflagrantedelicto.memoryspiral.com/2012/12/flash-builder-4-7-useflashsdk/
    I tried this solution but it did not work.
    This problem occurs with all my projects. I'm creating SWCs via Flash Pro, and using them in a Flash Builder ActionScript Project.
    Does anyone have any solutions?
    Thanks!

    Hi,
    I followed the directions here: http://inflagrantedelicto.memoryspiral.com/2012/12/flash-builder-4-7-u seflashsdk/
    But the only "Use Specific SDK:" options are Flex 4.6.0 and Flex 3.6a.
    When I select Flex 4.6.0 (under "Use Specific SDK:"), I get errors, it seems that some sub classes don't have access to their parents protected methods and properties. The only way to fix this is to delete the project and create it again.
    I downloaded the apache flex SDK, and added it via the Flash Builder preferences. Then went into the project and set "Use Specific SDK:" to the appache flex. This brought up more errors, double clicking the errors wouldn't take me to any class, they where mostly something about bitmap...
    And the only way to fix it is to delete the project and create it again.
    Should I not use Flash 4.6? or not use SWCs? This is really frustrating.

  • 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.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.

  • Can't import flash.display3D in Flash Builder 4.5 AS project

    Hi,
    I'm trying to experiment with Stage3D but I can't import the display3D package. 
    Does anyone have any tips?
    cheers.

    Got it to work.  Had to upgrade to Flash Builder 4.6 and get the new Flex SDK.

  • 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';

  • 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

  • Can I build divice Independent mobile application using J2ME?

    I want to build one mobile client application using J2ME. Do all different mobile devices support applications built in J2EE? Please share experience with me.

    Mu

  • Flex Builder 3  new j2ee project using LDS

    Hello
    I am using Eclipse Europa With flex builder v3 beta 2. My
    application server is apache geronimo v2.
    When i deploy my ear file into geronimo i recieve an
    exception: org.apache.geronimo.common.DeploymentException: Could
    not parse TLD file at file in /WEB-INF/lib/flex-bootstrap-jsp.jar.
    This is a flex jar. it is caused by caused by
    org.apache.xmlbeans.impl.piccolo.io.IllegalCharException: Illegal
    XML character: 0x3
    Can any one help me . as i have tried to view this file and i
    have found no illegal character.
    I think this might be an issue with geronimo . but does Flex
    support geronimo.
    Thnks in advance for any help

    I'd love to help because I know how frustrating it is to get
    it working. Unfortunately, I run CF locally and IIS as the web
    server. However, maybe my settings will spark something that you
    can use:
    1
    2. myFirstFlex
    3. C:\Documents and Settings\[useraccount]My
    Documents\myFirstFlex
    4. Web application/
    5. Coldfusion/ColdFusion Remoting
    6. Standalone
    7. c:\coldfusion8
    8. c:\inetpub\wwwroot
    9.
    http://localhost/
    is what works for me

Maybe you are looking for

  • SAP consume external web service - HTTP Code 200 : OK

    Hi We are integrating UPS Shipping Ground Web service with SAP system and we have the settings in place on our side and did a blank request test today and we are getting a " HTTP Code 200 : OK " error instead of a response. The SAP SOAManager shows t

  • Programs freeze?!

    So Its extremely frustrating to "upload" a file into different types of programs and the program freezes.  For example when I upload a file onto an email when I am looking for a file to upload into the email the "attachment box" freezes and I need to

  • Fast transfers via drag and drop w/ARD, but painfully slow on AFP...?

    So, we've tested this using the same exact file on the same machine (same internet connection and all that): If I open up ARD and then control our server with it via my laptop, then I open up my personal afp folder on the server itself via ARD and ta

  • Windows 7 on Mac book pro photos missing from files Does it happen often?

    Photos keep disappearing from files when saved from the net using Windows 7 .Has this happened to anyone else? Thanks John

  • Brand new MacBook Pro updated to Lion now it is so slow

    Hi Everyone, I have just purchased a brand new MacBook Pro, upon setting it up it promted me to update software which I did so it's currently running Mac OS X Lion 10.7.3. My server provider is Optus and I live in the heart of Sydney. I am new to the