I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
Anyone have an idea on other things to try to debug/resolve this?
Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
Thanks!

After a week's worth of debugging, I found the issue.
The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

Similar Messages

  • I have an IPhone 4S and am using the Phonak Icom with my hearing aids. All works well except for when I get an incoming call I can't hear the ringing/ringtone in my aids.  Any solution?

    I have an IPhone 4S and am using the Phonak Icom with my hearing aids. All works well except for when I get an incoming call I can't hear the ringing/ringtone in my aids.  Any solution?

    Did you get any answers?

  • I've just hooked my 20" iMac up to my Toshiba 37" HDTV using a mini dvi-HDMI adapter, and works well, EXCEPT for the green tinge (or hue) that is showing up on my TV. Any suggestions or ideas?

    I've just hooked my 20" iMac display up to my Toshiba 37" HDTV using a mini dvi-HDMI adapter, and everything works well, EXCEPT for the green tinge (or hue) that is showing up. Everything else looks pretty good though..... The color that is on my iMac is still good, Its just green on the TV.
    Anyone have suggestions or ideas?

    Try opening the Display System Preferences, then click on the Color options in the Display preferences window that appeared on the Toshiba display. Click on the Calibrate button and follow the instructions for creating a custom ColorSync profile that will hopefully solve the green tinge issue. The Apple Display Calibrator Assistant software that launches when you click on the calibrate button will walk you through the process.Assuming that the green tinge is minor and that you don't have a more serious cable or hardware issue, I am hopeful the results will be worth it.

  • I have a powerpoint that I created on PC.  I downloaded "Slideshark" to convert it so I can play it on ipad.  Worked well, EXCEPT for the music was not embedded.  Can anyone help me to find out why the music is not attached.

    I have powerpoint that I created on my Pc.  I downloaded "slideshark" to convert it so i can play it on my ipad.  Everything was great (fonts, animations, colour)  EXCEPT the music did not come through..What is the reason for this??

    Perhaps you should ask the developers of the app you used to convert this presentation?

  • Sometimes the text on a web page is distorted or looks like it overlays other text. Some web sites the text gets totally mis-aligned. The same sites are fine when I use IE. And sometimes, when typing ... the cursor goes awry.

    Text is overlaid on text to render the page unreadable. sometimes columns are totally misaligned.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)<br />
    See:
    * http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have increased the minimum font size then try the default setting 'none' as a high value can cause issues like you described.
    * Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    * Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    See also [[Websites look wrong]]
    If you need to increase (or decrease) the font size on websites then look at the NoSquint or Default FullZoom Level extension.
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • Work well in my mini but not in my iMac 27". Only difference is 27" with CS5 , are there any concerns?

    My mini works well with Lion but my 27" iMac always stop some where. I did install two times and restore to SL because I want new thing but I have to work. The difference between two computer sis just the iMac with CS5 but the mini don't. Any concern ?

    I don't really have a suggestion, other than to point out that others have had problems with CS5 in Lion.  You did not describe your problems, and I don't use Adobe CS, so I have no idea whether that might be the cause in your case.  If the problems people describe with CS5 match your problems, then you may want to update to CS5.5.

  • My iphone / mac no longer recognize they are the same Itunes library.  When I try to sync my phone now, it wants to erase everything and replace it with the computers itunes library.  I have purchased items on the phone I don't want to erase

    My iphone / mac no longer recognize they are the same Itunes library.  When I try to sync my phone now, it wants to erase everything and replace it with the computers itunes library.  I have purchased items on the phone I don't want to erase them from the phone.  The phone backs up fine, but won't sync. 

    File>Devices>Transfer Purchases from "iPhone" and then sync.

  • Adobe reader will not open pdf files I have saved as, or, export as pdf to my desktop (latest Maverick). The same file does open when I am on the source website (i.e. user manuals etc.). Why?

    Adobe reader will not open pdf files I have saved as, or, export as pdf to my desktop (latest Maverick). The same file does open when I am on the source website (i.e. user manuals etc.). Why?

    iMac G4, Mac OS X (10.4.9)
    Make sure you have the latest Adobe Reader installed for your OS.
    http://www.adobe.com/support/downloads/product.jsp?platform=macintosh&product=10
    Did you try using Preview. If you control click on the PDF on your desktop you can use the "open with" option.

  • [svn] 949: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 949
    Author: [email protected]
    Date: 2008-03-27 07:12:59 -0700 (Thu, 27 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - try again with legacy-collection true and false.
    Doc: No
    Checkintests: Pass
    Details: Another try in fixing this bug. When legacy-collection is false, Actionscript Array on the client becomes Java Array on the server and my fix yesterday assumed this case. However, when legacy-collection is true, Actionscript Array becomes Java ArrayList on the server. So added code to handle this case.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • [svn] 931: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 931
    Author: [email protected]
    Date: 2008-03-26 11:31:01 -0700 (Wed, 26 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - we need automated tests for this basic case.
    Doc: No
    Checkintests: Pass
    Details: RequestFilter was not handling multiple headers with the same name properly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • We have 2 iphone 5s sharing the same apple ID.  When browsing Safari on one phone it automatically sends a link to that page to the other phone.  How do we turn this off please?

    We have 2 iphone 5s sharing the same apple ID.  When browsing Safari on one phone it automatically sends a link to that page to the other phone.  How do we turn this off please?

    @apup80
    It sounds that you are running the same iCloud account with two phones.  I recommend you to create a different iCloud account and you should be all set.
    Creating an iCloud account: Frequently Asked Questions - Apple Support
    iCloud: Remove your device from Find My iPhone

  • My husband and I have the same itunes password.  When I tried to set up his own, it said that I could not use his email address because it is a back up address on mine.  How can I change that....can't find the right place to go.  Thanks

    My husband and I have the same itunes password.  When I tried to set up a separate one for him, it said that his email address was used as a backup on my phone so it could not have its own address.  Where do I go to remove his address as my backup address....thanks

    Hi theirmimi,
    Go to Manage your Apple ID (on a computer) and sign in with your Apple ID. Then you can edit the email information on your account:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Cheers,
    GB

  • I am not able to access the App Store on my Iphone 3GS with IOS 6.01, however i can access the same on my laptop when i connect my phone to my PC. Any suggestions on this.

    I am not able to access the App Store on my Iphone 3GS with IOS 6.01, however i can access the same on my laptop when i connect my phone to my PC. Any suggestions on this.

    varunsharmaapplefan
    http://support.apple.com/kb/ht5209 might help you.  An iPhone 4 can airplay content from apps that support airplay and iTunes but it cannot mirror.  If your game does not have airplay in the app you cannot mirror it to the apple TV so I don't know if you can play just the music.  You should have no problem playing your iTunes over airplay though.
    This may also help http://support.apple.com/kb/HT4437
    Regards
    Jules 

  • Cant open web pages when connected to the internet via Telstra's Pre Paid WiFi has anyone else had the same issues works fine with BigPond WiFi

    Cant open web pages when connected to the internet via Telstra's Pre Paid WiFi (this connection is working on other devices) has anyone else had the same issues, works fine with BigPond Wifi

    and now, when i tried to check again my network preference below the airport tab is showing a message that
    "my airport does not have an IP address and cannot connect to the internet!"
    then after seconds it will goes back to the first message that
    "airport has the self assigned IP address etc....."
    i don't know whats going on now!
    airport tab is not showing green color anyway! i'ts always in yellow!
    i tried turning it on and off but nothing happen! HEEELLLLPP!!!!

  • When I want to make a phonecall with my iphone5, I hear absolutely nothing....no ringing and no talking when connection established. When I make the same call but now on speaker, no problem or what so ever, can anyone help me ?

    When I want to make a phonecall with my iphone5, I hear absolutely nothing....no ringing and no talking when connection established. When I make the same call but now on speaker, no problem or what so ever, can anyone help me ?

    Hello there, RobenCaatje.
    The following Knowledge Base article is specific for the issue you're describing:
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Specifically:
    Resolution
    Verify that there is nothing plugged in to the headset jack, including headsets, headphones, or adapters.
    Make sure the Ring/Silent switch is not switched to silent.
    While on the Home screen, adjust the volume buttons. If you see the icon below, indicating that headphones are attached, there may be debris or an object lodged in the headset jack:
    Check the headset jack. If there is an object lodged in the headset jack that is not easily removed, have the iPhone serviced to remove object.
    For Original iPhone: If there is light debris, such as lint, in the headset jack, try connecting a pair of headphones to the headset jack and then remove the headphones. Repeat this several times to remove the debris.
    If you have installed a protective film on the display, either ensure that the receiver is not covered or remove the film completely.
    Check the receiver mesh (which is on the top front of the device, above the display). If it appears blocked, use a clean, small, dry, soft-bristled brush to carefully and gently brush away any debris.
    If you have paired with a Bluetooth headset that is nearby, either use the headset or turn Bluetooth off (chooseSettings > General > Bluetooth).
    Restart the iPhone.
    If restarting the iPhone doesn't resolve the issue, try restoring the device.
    If the issue persists, go to the Service Answer Center - iPhone for information on service.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

Maybe you are looking for

  • I cant restart my MacBook pro

    When I switch on my MacBook pro, it tries to load the operating system but after some seconds the MacBook pro switch off. I can t get in to my desk.

  • 3PEEK496 The internal transaction "0050" is not assigned to an external tra

    hi, During XPRAS_UPG phase of upgrade we are getting 3 errors: 3PEEK496 The internal transaction "0050" is not assigned to an external transaction 3PEEK496 The internal transaction "0050" is not assigned to an external transaction 3PEEK496 The intern

  • Playback pauses and ipod freezes then unfreezes after 20 seconds

    Description of the issue: When playing continuously song after song, the ipod freezes and music stops about 5 seconds in to most songs.  After about 20 seconds, playback resumes and the ipod is responsive again. Symptoms: Only happens after one song

  • RE: Forte Compilation Time -Reply

    J.KODUMUDI 01/18/99 11:30am >>> Anand, Autocompile will be slower that using fcompile. Autocompile is a sequential process. It starts one compile after the other finishes. But since you control fcompile, you can start multiple at the same time. Have

  • PB G3 Pismo-Stalls, Hard Disk Disappears

    [NOTE - This message originally posted in Older Hardware discussion group. One response appears at end of original message.] PB G3 firewire (Pismo) OS 10.4.2 Fastmac G4 550 processor 576 mb RAM Western Digital 60 MB HD (replacing Toshiba 40 mb HD tha