URLLoader bug with AIR SDK

Environment:
Flash Builder 4.7
AIR SDK 3.4
Mobile ActionScript project
Problem severity:
Use URLLoader class to get data from server; use URLVariables to send data containing a single field (Note, this issue happens only when you're sending only one field), as:
var urlVariables : URLVariables = new URLVariables();
urlVariables.contactid = "mycontactid";
var request : URLRequest = new URLRequest();
request.data = urlVariables;
request.url = "https://myserver.com/flex/GetContactDocument?OpenAgent";
var loader : Loader = new URLLoader();
loader.addEventListener( Event.COMPLETE, onSuccess );
loader.addEventListener( IOErrorEvent.IO_ERROR, onIOError );
loader.load( request );
Everytime it turns into IOErrorEvent returning stream error with the used URL path. I eventually noticed it didn't add any "&" after the URL! So what was supposed to be is this:
https://myserver.com/flex/GetContactDocument?OpenAgent&contactid=mycontactid
But instead URLLoader seeing this as:
https://myserver.com/flex/GetContactDocument?OpenAgentcontactid=mycontactid
Note, there's no & sign after OpenAgent word!
This doesn't happens when there are more then 1 fields in URLVariables class! This is strange, and looks like a bug to me!
Any suggestion would be appreciated. Thanks!

Hello,
1 . If you used more then 1 field in URLVariable, then is this ever worked for you with any of the AIR SDK version.Could you please share the use of OpenAgent here in the url.
2.  One should not used “?” without assigning any value in the url for the specified field which is incorrect ("https://myserver.com/flex/GetContactDocument?OpenAgent") , please try to implement like (“https://myserver.com/flex/GetContactDocument?OpenAgent=”+value+””) as url schema needs “?” before the first parameter and “&” before the following ones. OR  Try to use (https://myserver.com/flex/GetContactDocument”) and then pass the url variable through which “?” and “&” is append by the request automatically.
Please update if this will work for you.
-Nimit

Similar Messages

  • BUG - rotation of Default image on iOS with AIR SDK 16.0.0.250

    Hi guys!
    I just switched to AIR SDK 16.0.0.250. Everything was fine except one very strange problem with Default images on iOS devices.
    My app runs in landscape mode. In my app I have default images that are shown during application loading phase.
    When app start, first I see Default image properly, that for a very short period of time I see Default image rotated 90 degree and scaled to fill the screen and then it disappears and application is get loaded.
    Here is a video that illustrates the problem: http://youtu.be/Ry1l1v7dQss
    That is very strange, so I want to know if anybody else knows how to handle this issue and what could the source of it? Some info that might help: Application descriptor:
    <initialWindow>
        <content>SWF file name is set automatically at compile time</content>
        <visible>true</visible>
        <aspectRatio>landscape</aspectRatio>
        <autoOrients>true</autoOrients>
        <fullScreen>true</fullScreen>>
        <renderMode>direct</renderMode>
        <softKeyboardBehavior>none</softKeyboardBehavior>
    </initialWindow>
    List of default images:
    Default.png
    [email protected]
    [email protected]
    Default-Landscape.png
    [email protected]
    So, for me it seems like a bug in AIR SDK 16.0.0.250, on AIR SDK 15.XXX everything was just fine.

    Thanks for reporting the issue. Yes, It's known to us and we are investigating it.
    Best Regards,
    Jitender

  • Error "Could not resolve s:ViewNavigatorApplication to a component implementation...", after overlaying with AIR SDK 13.0

    Just installed FB 4.7, overlayed with AIR SDK 13.0, started FlexMobileProject and I get this error "Could not resolve <s:ViewNavigatorApplication> to a component implementation...", which I can't get rid of. Tried 3-4 times, error stays.
    I overwrote the Flex sdk 4.6.0 with Air SDK 13.0.
    Is this a bug? Please help.

    Thanks for the reply. I tried changing to the airmobile-config.xml but then I got the same error with a different componenet.
    Error: Could not resolve <r:QContainer> to a component implementation. <r:QContainer id="d">
    Could this related to a missing SWC from my build path do you think?

  • Soft KeyBoard is not working on ios 7 with Air sdk 3.8

    Hi
    In my app Soft KeyBoard is not working on ios 7 with Air sdk 3.8. Does any one know soluton for this ?

    Hi,
    There's no question that TextFields and TextAreas weren't working in our case, likely because we have a deep displaylist with a variety of object types. Presumably, AIR has changed how it looks through the displaylist for objects that need keyboard, and perhaps we have an object type somewhere in the hierarchy that AIR no longer recurses. It's definitely something that changed, though.
    It's no picnic to put together a sample app, I can't afford that time when I have a solution. But the symptom was very clear, a textbox would open, and the cursor would just blink with no way of interacting with it.
    I'm happy using StageText directly, because it's a more direct way to interact with the OS and gives more control.
    It also solves a bug in AIR that I haven't reported yet, but is as follows. Rarely, when you move the container of a TextField of TextArea after it has been created, AIR will crash and freeze iOS devices. It doesn't happen on Android or desktop, but with a user-base of about 100,000 of our app, we've had it reported maybe 50 times. One of our dialogs sometimes needs to reposition the elements, which is done animated. During this, AIR will crash about 0.01% of the time. We tried only creating the TextArea, but not activating it or even having it visible, but even an invisible TextArea will crash, presumably because AIR moves the internal StageText overlay around as well, and this confuses iOS after a while during the animation.
    By using StageText directly, I finally also have a way to get rid of this bug, because I simply don't activate StageText until the object has already been positioned. Prior to that, it isn't even an editable text field, it's a label like anything else. So I'm happy I did this solution.
    Let's just leave this thread as a record if someone else has the same problem. I'm quite sure it's because of our very complicated display list, and AIR having changed how it scans the displaylist for objects that need keyboard.
    Best,
    Per

  • Performance issue on iPad4 with AIR SDK 3.9

    Hi!
    I have an app that I've created with Flex SDK 4.6.0. The first time I've  compiled the app with AIR SDK 3.1 and it runs with good performance on iPad4 (and little bit slow on oPad2). Then I've upgrated the AIR SDK to the version 3.9 and suddenly my app starts to run slow (but on iPad2 performance is good)
    Is it any known problem with AIR SDK 3.9  on iPad4? Or on iOS 6.1?
    Should I downgrade the AIR SDK back to 3.1 to get good performance on iPad4?
    Thanks in advance
    UPD: I've downgraded the AIR SDK to 3.1 and my app get back the good performance! (But there's some strange bugs)
    Message was edited by: yx

    Hi Nimit!
    1. I've upgraded AIR SDK to 4.0 beta and the problem is gone away.
    2. Unfortunately  I'm not sure I can share my app - it's not in the policy of the company I'm working for. I'll check it out with my boss
    Than you,
    Olga

  • Why reloading pure asset SWF with AIR sdk 3.6+ doesn't work?

    Hi, I posted this in the AIR beta channel, but I think it suits better here... I'm sorry for double posting.
    Hi,
    I have a game targeting iOS using AIR sdk that needs to load many swf assets from the disk (packaged with the game). When using AIR sdk 3.5, everything runs just fine. When upgrading the sdk to 3.6 or later (-swf-version=19, 20, 21), we ran into the following problems:
    1) The packaging time (making the ipa file for iOS) passes from 15 minutes to 40+ minutes.
    2) The game can't load any swf twice (ie. reload a swf).
    The first problem is not a big deal. We only have to wait a little bit more. Our guess is that is has to do with new feature introduced by the sdk 3.6, which will go through all packaged secondary swfs and remove the code from it, and since we have lot of swf assets, it takes more time.
    The second problem is way more serious, as I have to be able to reload assets according to player's action. Since we have a ton of assets, I can't keep them all in the memory as we could quickly run out of memory.
    I know that there's a documented limitation of sdk 3.6 which states:
    In AIR apps on iOS running in AOT mode there is a problem when a SWF is reloaded. Therefore reloading a SWF will not be allowed for AIR apps for iOS in AOT mode and attempting to do so will result in following error:
    Error 3764: Reloading a SWF is not supported on this operating system
    It also says that "Reloading of pure asset SWFs will work with AIR 3.7". However, that's not true, since all my assets are pure asset SWF without any code inside. It won't work, even with AIR 3.8.
    While searching on the internet, I came across a forum post that says that the only way to know if a swf is a pure asset swf, is by using swfdump.exe, and searching for the DoABC2 tag. I did it, and effectively, DoABC2 tag was there, but empty.
    So my first observation is that:
    - Pure asset SWF file containing empty DoABC2 tag can be reloaded using AIR SDK 3.5
    - Pure asset SWF file containing empty DoABC2 tag can't be reloaded using AIR SDK 3.6+
    It seems to me that AIR SDK 3.6+ doesn't care if the tag is empty or not. If it is there, then it's not ok.
    Then I wanted to know why my SWFs have this empty tag. After lot of tests, it turns out that it is because I am using jsfl to automate the export of assets from a FLA file. And there comes my second observation:
    - When exporting a swf without code from Flash IDE (Ctrl+Alt+Shift+S), there's no empty DoABC2 tag.
    - When exporting a swf from the Flash IDE's library (right click on the library Movieclip -> Export Flash movie...), empty DoABC2 tag is automatically inserted.
    Unfortunately, my jsfl script uses thee same Library export functionality, and it produces the same "contaminated" swf. Why doesn't it produce the same SWF from both ways of export? I have no idea.
    In the perfect world, the AIR SDK would not only look for the DoABC2 tag, but it should check whether if there's code inside. Also, Flash should use the same export process disregarding if it is being called from the IDE or the Library, and not inserting empty DoABC2 tag when there's no code.
    As for now, I can't find any workaround to solve my problem. That means that I'm stuck with swf-version=18, and I can't benefit from all the cool features such as rectangle textures, new Context3DTextureFormat etc.
    If anyone has a solution, or simply pointing out what I'm doing wrong here, please share it.
    Thanks for reading.
    Iojeirg

    Hi makc3d,
    Thanks for the response. After all that time I started losing hope.
    I would not say that the abvious solution is to remove the tag. I think it should not be put there in the first place if there's no code at all. Moreover, this only happens when exporting a MC from the Library, and it works just fine when exporting normally (publish). It seems more like a bug than an expected behaviour.
    Also, AIR should check for actual code in this tag instead of relying only on the tag itself.
    Your solution is a nice workaround, and I will certainly try that out. But as I said, it will not fix the original bug, it will only patch it later on in the process.

  • "This bundle is invalid" no upload to iTunes allowed with Air SDK 4.0

    Hello,
    it is not possible to deliver to the iTunes anymore.
    I just updated my Sudoku game including Russian and Chinese language support and compiled it using the most recent Adobe Air SDK 4.0
    When uploading to iTunes with the application loader it says:
    "This bundle is invalid. Apple is not currently accepting application built with this version of the SDK".
    Testing locally on the devices works nonetheless.
    What can I do now?
    Best,
    Henning

    I had the same issue, and using the AIR SDK 4.0 build 4.0.0.1619 from :
    http://labsdownload.adobe.com/pub/labs/flashruntimes/air/air4-0_sdk_win.zip
    works for me (or to be specific, at least I was able to submit it to the app store without the "This bundle is invalid. Apple is not currently accepting applications built with this version of the sdk" message.  Dev environment is:
    Windows machine, swf created on Flash Pro CS5.5
    Windows machine, packaged swf for iOS with SDK 4.0 using commandline arguments on Windows
    xferred to Mac, unzipped, rezipped payload app, then uploaded to iTunes using Application Loader 2.9 (439)

  • Problem/bug with AIR 3.0

    Hi guys,
    I'm here again. I got this error when I tried to publish my project with AIR 3.0.. Actually, I've created an application usign AIR 2.6 (default comes with CS 5.5). It was used to get published and I used to update it on regular basis. Few days back I had to copy AIRSDK3 folder to Adobe's program files' folder, where I renamed AIR2.6 to anything else and AIRSDK3 to AIR2.6... Today, when I tried to publish my same project,  I got this following error. Hope that would help adobe (as it is beta version).
    (By the way, when I renamed the folders to their original names, it worked and published).

    Steve,
    We have seen the same thing and reported it to Forte. We have not yet
    heard back with a bug report number...
    For now, we have removed all comments from our sql code.
    Derk
    >
    We have just switched from version 2.0.H.1 to version 3.0.F.2 in development,
    and have discovered a bug with comments in SQL code.
    Anywhere in a cursor definition, or within SQL code in a method, if we use the
    multi-line comment format "/* ... */" even on a single line, then the code
    compiles fine, but crashes at runtime with a "Invalid SQL Command" error. It
    looks as though Forte is including the comment as part of the SQL!
    Has anyone else seen this problem? We have not found it in the known bugs list
    for 3.0.F.2 or the fixed bugs list for 3.0.G
    This worked fine for us prior to version 2, and if we don't get it fixed in
    Forte, it means a lot of rework to change the existing comments to single-line
    "// ..." format.
    Regards,
    Steve Isaac
    Senior Consultant, Information Services Group
    Hydro Electric Corporation of Tasmania
    4 Elizabeth St, Hobart, Australia, 7000
    Phone : +61 03 6230 5161
    e-mail: [email protected]
    Check out: http://mama.indstate.edu/users/sodana/lucado.html
    *** Derk Norton ***
    *** U S WEST Communications Voice : (303) 965-8772 ***
    *** 1801 California Street FAX : (303) 896-3565 ***
    *** Denver, Colorado 80202 Email : [email protected] ***
    **********************************************************************

  • Very strange bug with AIR and native process (Windows 7, EXE)

    Hello to everyone!
    The situation is:
    I've made an AIR Application, inside of that is running a native process - EXE file.
    I'm using Flash CC as IDE and tried to use compile that as EXE with AIR 2.6 and 3.6 - results are same.
    So I've insert inside a checking if Native Process is supported or not and the Native process is supported all the time.
    When I've just installed the application and run it - the very first attempt is good - everything is working as a must: internal EXE is called by my Application with necessary parameters as many time as I'm need.
    However if I'll close the App and then will run it again - internal EXE is not starting at all, doesn't depends on number of attempts to re-start of the App.
    So only way is to uninstall, install it back and then you'll be one more session of successful internal EXE-requests, till the next re-start of the App.
    That's it.
    I've tried to "google it" but unsuccessful. Probably the bug is very rare.
    Help me please?
    Update: at compilation with Flash CC IDE it's working all the time with no any issues.
    Update-2: when I'm running installator-EXE, there is going a notification "Same version is installed, etc." and then selected "Run Now" - there is also working with no problems.

    Well, I've found the solution and answer by myself and here is it please:
    In case with same situation as above you need to add just one line in your AS3-code
    nativeProcessStartupInfo.workingDirectory = File.applicationDirectory;
    And you will be happy so much

  • Any one who knows that use adt  to compile flex mobile projcet with air sdk 3.4 crash

      [java] # A fatal error has been detected by the Java Runtime Environment:
         [java] #
         [java] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x101a9871, pid=5004, tid=7544
         [java] #
         [java] # JRE version: 6.0_16-b01
         [java] # Java VM: Java HotSpot(TM) Client VM (14.2-b01 mixed mode windows-x86 )
         [java] # Problematic frame:
         [java] # C  [llvm.dll+0x1a9871]
         [java] #
         [java] # An error report file with more information is saved as:
         [java] # E:\custom\build\deploy\ios\hs_err_pid5004.log
         [java] #
         [java] # If you would like to submit a bug report, please visit:
         [java] #   http://java.sun.com/webapps/bugreport/crash.jsp
         [java] # The crash happened outside the Java Virtual Machine in native code.
         [java] # See problematic frame for where to report the bug.
         [java] #
         [java] Undefined symbols for architecture armv7:
         [java]   "_abcMethod_AOTBuildOutput-0000000001_9708_9708_function spark.components.supportClasses::SkinnableTextBase.isOurFocus", referenced from:
         [java]       _ug_11903 in AOTBuildOutput-0.o
         [java]   "_abcMethod_AOTBuildOutput-0000000001_9465_9465_function spark.components::List.itemRemoved", referenced from:
         [java]       _ug_11903 in AOTBuildOutput-0.o
    my adt command like that
    <target name="7. Package for IOS" depends="6 Collect IOS">
                        <echo message="Packaging for IOS"/>
                        <java jar="${ADT}" fork="true" failonerror="true" dir="${publish_dir}/ios">
                                  <arg value="-package"/>
                                  <arg value="-target"/>
                                  <arg value="ipa-test"/>
                                  <arg value="-provisioning-profile"/>
                                  <arg value="${ios_provisioning}"/>
                              <arg value="-storetype"/>
                                  <arg value="pkcs12"/>
                                  <arg value="-keystore"/>
                                  <arg value="${ios_keystore}"/>
                                  <arg value="-storepass"/>
                                  <arg value="${ios_pass}"/>
                                  <arg value="${ipa_file}"/>
                                  <arg value="${app_name}-app.xml"/>
                                  <arg value="Default.png"/>
                                  <arg value="[email protected]"/>
                                  <arg value="Default-Portrait.png"/>
                                  <arg value="[email protected]"/>
                                  <arg value="${assets_dir_name}/." />
                                  <arg value="${swf_file}" />
                                  <arg line="-platformsdk F:/ios/iPhoneOS6.0.sdk/"/>
                        </java>
              </target>
    wating for help, thanks very much

    Could you please share your swf and app.xml, packaging, your project (if possible) at [email protected]
    I will get a bug logged for this.

  • Missing compile-abc.exe to test "-useLegacyAOT no" with Air SDK 4.0 beta?

    i get the following error:
    SDK is missing file C:\Program Files (x86)\FlashDevelop\Tools\air40beta\lib\aot/bin/compile-abc/compile-abc.exe
    here's my command line:
    adt -package -target ipa-ad-hoc  -useLegacyAOT no -storetype pkcs12 -keystore "cert\iphone_dev.p12" -storepass **** -provisioning-profile cert\MorphEm_development.mobileprovision "dist\MorphEm-ad-hoc.ipa" "application.xml" -extdir extensions\package -C bin-ios . -C "icons/ios" .

    We are aware of the issue and investigating it.As if now,-useLegacyAOT switch is not working on windows.For more information please see this:
    http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air4-0_flashplayer12-0_release notes.pdf
    Thanks,
    Sakshi
    Adobe AIR Team

  • Alarming bug in AIR SDK 4.0.0.1390, -useLegacyAOT no

    I've uploaded small testcase which does some simple testing of equivalence of fractions (by parsing Numbers, Strings, etc).  The testcase SWF passes when packaged without -useLegacyAOT no, but fails when using the new halfmoon compiler.  I've filed the following bug:
    https://bugbase.adobe.com/index.cfm?event=selectBug&CFGRIDKEY=3694360
    This is alarming because it means the new halfmoon compiler feature has changed the logic of the testcase and breaks our app.
    I'd appreciate it if someone could download the testcase and confirm this.
    Please let me know when this is fixed.  We will not be using -useLegacyAOT no in the mean time.
    Best,
    -Jeff

    I've created a radically simplified testcase that isolates the bug.  When creating two instances of a class in a static function, those references are both set to the second instance only when using halfmoon compiler:
    https://gist.github.com/jcward/7066bc017bf92531f594
    Errant function reproduced here for discussion purposes:
      public class Foo
        public function Foo() {
        static public function something():void
          // Create two unique objects, they cannot be the same
          var A:Foo = new Foo();
          var B:Foo = new Foo();
          Main.t.text += "Created Foo, A="+A+"\n";
          Main.t.text += "Created Foo, B="+B+"\n";
          // But in halfmoon, the references are the same:
          if (A==B) {
            Main.t.text += "ERROR: reference A cannot be equal to B, wth halfmoon?"
            throw new Error("Halfmoon-induced error, A != B");
          } else {
            Main.t.text += "A-OK, two unique Foo references!"
        private var ID:int = Math.random()*0xffffff;
        public function toString():String {
          return "[Foo] " + ID;

  • Problem with Facebook popups (and other UIScreen based popups) since AIR SDK 15.0.0.302

    As you may remember, since the release of iOS 8 it's no longer possible to upload apps which were compiled with AIR SDK versions before 15.0.0.302 (No longer able to submit app to iTunes.)
    Problem is, since that version UIScreen based popups (such as Facebook dialogs in native extensions, etc.) are not presented correctly.
    There's a bug report: Bug#3837136 - Apps Built with AIR for iOS 8 reporting incorrect UISCreen dimensions
    And it seems like quite a critical problem given that we don't have an option to compile our apps using previous versions.
    I wish we had an ETA for this issue.

    Firstly, there's no such thing as Apache 9.3, there's Apache 1 (and subversions) and Apache 2 (and subversions). Your error message -
    Oracle-HTTP-Server/1.3.28Shows you're using Apache 1.3.28
    Secondly, I'm confused by your comment -
    I do not have Apache 9.3 or higher but I think oracle should offer this in its companion CDOracle does offer the Apache server, if you're saying you didn't get it from Oracle then where did your Apache server come from?
    Thirdly, I notice from your config file -
    ErrorLog "|E:\oracle\product\10.1.0\Companion\Apache\Apache\bin\rotatelogs logs/error_log 43200"That you're piping the logs through rotatelogs, are you sure the logfiles haven't just been renamed?

  • Can you use Firebug with AIR and AJAX development?

    I was wondering if it's possible to use Firebug (Firefox plugin) with AIR SDK when developing strictly in AJAX (html & javascript)?
    I came across this post:
    http://cookbooks.adobe.com/post_Logging_Flash_Flex_AIR_applications_in_Firebug-15607.html
    But it is a little over my head and am not sure if it's relevant or not.
    Thanks

    Oracle Metalink TAR gave me this answer:
    How to get the BUG patches required to implement this full feature "BUG 5073783 for Forms 10g and Oracle AS10g".
    The BUG 5073783 was logged in 10.1.2.0.2 and it is fixed in 11.0 which is the
    next major release for forms and AS. The backport requested has already been
    filed for this bug on 10.1.2.0.2 .
    Does this mean the only way I can do EUS Forms is to upgrade my Forms to 11
    and my App Server to 11 from 9.0.4 ?

  • Getting started with air and android

    Hi,
    I made a game using flash as3 technolgy some time ago, that is deployed in a website. I've been studying the possibility of porting the game to mobile devices (android). Is that possible? Wich level of effort am I going to need? Wich tools from adobe am I going to need?
    I think that's all for now... thanks!

    That's great! I also bought a book in amazon to help me to get started
    Thanks!!
    Sent from my iPhone
    El 09/04/2011, a les 23:20, Saumitra Bhave <[email protected]> va escriure:
    The development process remains almost same. In flash development you create swf and put it in HTML using object or embed tag. In Adobe AIR you create SWF and package it using the ADT tool which comes with AIR SDK.(But, With adobe AIR you get some more APIs which you don’t have in Flash)
    While packaging you can tell the adt to package for Android, iOS or any desktop. And provide the required parameters along with the SWF and application xml.
    Once you create the apk. You can install it on actual device or android simulator.
    For testing purposes you can generate a self signed certificate using java -keytool command.
    You can google any of the following things to get started.
    1. Android SDK, adb tool, creating Android emulator
    2. AIR adt - package command for android
    3. java -keytool help
    >

Maybe you are looking for