Max nested levels reached on item with RemoteObject

Hello:

We have an application that uses RemoteObject (with AMFPHP) connections to send a custom PHP class object. This object has several levels deep, with objects nested inside the main one. We have noticed that, after having reached a certain level, the RemoteObject accidents serialization throw this error:

TypeError: Error #1034: Type coercion failed: cannot convert Object@7e30f89 to mx.messaging.messages.IMessage.

We tried to send a lighter object, without property, just nested levels. The same thing happens. In the example:

var params:Object = {};
params['test'] = {0:{1:{2:{3:{4:{5:{6:{7:{8:{9:{10:{11:{12:{13:{14:{15:{16:{17:{18:{19:{20:{21:{22:{}}}}}}}}}}}}}}}}}}}}}}}};
remoteObject.runService(params);

If the object has fewer levels, it works:

params['test'] = {0:{1:{2:{3:{4:{5:{6:{7:{8:{9:{10:{11:{12:{13:{14:{15:{16:{17:{18:{19:{20:{21:{}}}}}}}}}}}}}}}}}}}}}}};

So, it seems that the RemoteObject has a maximum depth of 24 levels? Maybe 23, I m do not know. Sending in JSON is not an option, because I lost all the typed classes and objects inside the main object.

Can anyone provide a good approach to deal with this problem?

Thanks in advance!

Solved: http://stackoverflow.com/questions/22936444/max-nested-levels-reached-on-object-sent-with-remoteobject

Tags: Flex

Similar Questions

  • I can't reach some websites with any browser. I get the message ERR_CONNECTION_REFUSED. If I boot in safe mode I don't have the issue. I tried the reset and repair of everything. Help, please

    I can't reach some websites with any browser. I get the message ERR_CONNECTION_REFUSED. If I boot in safe mode I don't have the issue. I tried the reset and repair of everything. Help, please

    Try to run this program in your usual account, then copy and paste the result in a response. The program was created by Etresoft, a regular contributor.  Use please copy and paste the screenshots can be difficult to read. On the screen with the Options, please open Options and tick the boxes in the bottom 2 before the race. Click on the button "Report share" in the toolbar, select "Copy to Clipboard" and then paste into a response. This will show what is running on your computer. No personal information is shown.

    Etrecheck - Information System

  • Level of trust associated with the details of precision in the plug

    What is the level of confidence associated with details of precision in the data sheet?

    Specifically, I am interested in the analog input 9205.  Technical sheet here: http://sine.ni.com/ds/app/doc/p/id/ds-190/lang/en

    There is a table on 2/3 by the document called 'précision Détails', and I would like to know what the level of trust is for the numbers in the table.  The reason is if I can use them in my measurement uncertainty calculation.

    Thank you.

    Now that I read through a lot of a manual of reference for the characterization of the ADC, I believe that the following terms in the table of absolute precision were calculated experimentally with at least 100 data points and a coverage of at least 3 factor:

    GainTempco ·

    ReferenceTempco
    OffsetTempco ·

    INL_Error
    NoiseUncertainty

    The rest of the values are derived from these, or are supposed to be conservative values to the estimate of the error. For example, the variation in temperature since the last calibration is assumed to be 70 degrees, because that's the maximum value supported temperature change in the temperature of the device has been calibrated at.

    Each term in the equation has at least a factor of expansion of 3. Therefore, the absolute precision of the measure has a factor of expansion of 3.

    Jeremy P.

  • Computer laptop Compaq PresarioCQ40 using Windows 7 32 bit. In Device Manager, I found two items with a trademark right Exclaimation beside 'Devices Bluetooth device' in the other devices section.

    My laptop Compaq PresarioCQ40 running Windows 7 32-bit. In Device Manager, I found two items with a trademark right Exclaimation beside 'Devices Bluetooth device' in the other devices section. Properties, I found that these two elements with problem are found on "Microsoft Bluetooth enumerator.  I tried to run Windows update to get the driver but it says no update available. And I can't find this driver online. Can someone help me solve this problem? Thank you very much

    Hello

    Perform the steps in the link and check.

    Error: "device driver Bluetooth not found" when you try to connect to a bluetooth device

    Hope this information helps.

  • Try to install items with purchased 14 box serial number and system does not... What are the next steps?

    Try to install items with purchased 14 box serial number and system does not... What are the next steps?

    Are you sure have a serial number from the inside of the box, or you could have a redemption code?

    Find your http://helpx.adobe.com/x-productkb/global/find-serial-number.html serial No.

    What is the exact error message?

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

    - and https://forums.adobe.com/thread/1572504

  • When I click on an item with the direct Selection tool, I used to get a little place on each limit

    When I click on an item with the direct tool, I used to get a little place on each line of bounding box that I could use to adjust the size of the object. Somehow he disappeared - how can I get that back please?

    Display > display the edges

    -OB

  • Group items with a changing diapers

    I want to group some items, move it then it separated again. After dissociation, however, all the elements are on a single layer.

    It is possible to group elements move it and then he disassociate with keeps them in the same layer as they were before I grouped them?

    Thanks for any help.

    I don't think it's possible. It would be possible to do it with a script.

    Maybe check out the Forum script that if there is a way to group a set of items with a script - then when separate you with a script it releases their return to their original positions of layer?

  • CFCS with RemoteObject Pathing

    Hello
    What is the way to corrrect path access CFCs with RemoteObject? I'm so frickin frustrated I have no hair left.
    Look at the post in this forum I believe I'm not the only one. However, no Adobe can post a simple answer.
    No matter how I see my fully qualified parent cfc, I get the message to standard error that it cannot find the component.

    I use the last grazing available on Adobe site CF 7.02 and autonomous FB2. My flex working directory is the default value.

    Can you please explain in plain simple English the correct way to way a cfc with FB2 and < mx:RemoteObject / >

    aaaaarrrrrggggggg!

    Thank you

    Peter,

    2 things you have posted above should be defined to get this working for a typical Web Server installation.

    1.) open the services - config.xml in C:\CFusionMX7\wwwroot\WEB-INF\flex\ file
    find and change the value of

    http://{server.name}:{server.port}{context.root}/flex2gateway/"class="flex.messaging.endpoints.AMFEndpoint"/ >
    TO
    http://localhost/flex2gateway/"class="flex.messaging.endpoints.AMFEndpoint"/ >
    Port number is optional, 80 is default as usual.

    (2.) in FlexB right click your project folder, and then click Properties > flex compiler
    and paste this line into the area of additional args.

    -services "C:\CFusionMX7\wwwroot\WEB-INF\flex\services-config.xml" - local en_US.

    That's all!

    However, I believe that there are bugs in FB2 to watch. When you change the properties and click on apply. The flex build path likes to reset the output folder of
    c:\cfusionmx7\wwwroot\bin which will then cause your page does not and you get a 404 error in the browser. You will need to make sure that reset you the path to your projects output folder again.

    These issues with Remoting are the reasons why all the FLEX examples show that how in the cfroot rather than in your webroot.

    Thanks for your help Peter. See you soon!

  • Problem with remoteObject...


    Hi, I'm HelloWorld_ro and HelloWorld_ws apps. I can get the ws app to work, however, when I try the app remoteObject, I get the following error thrown:

    (mx.rpc::Fault) #0
    errorID = 0
    faultCode = "Client.Error.MessageSend".
    faultDetail = "error Channel.Connect.Failed NetConnection.Call.Failed: HTTP: failed".
    faultString = "send failed".
    message = "faultCode:Client.Error.MessageSend faultString: error faultDetail:'Channel.Connect.Failed"Send failed"NetConnection.Call.Failed: HTTP: failed '."
    name = "Error".
    rootCause = (Object) #1
    Code = "NetConnection.Call.Failed".
    Description = "HTTP: failed".
    Details = "" http://websrvr01/flex2gateway/ " "
    Level = "error".

    I am running CFMX 7.02 on Tomcat 5.5 and see the following in the log:

    [Flex] 14:34:20.359 [INFO] [Configuration] starting Adobe Flex Data Services Express 2
    [Flex] 14:34:20.359 [INFO] [Configuration] Adobe Flex Data Services Build: 142467
    [Flex] 14:34:20.421 [INFO] [Configuration] my Endpoint-cfamf created with security: no
    to the URI: http://{server.name}:{server.port}{context.root}/flex2gateway/

    I compile the application with: - services "C:\webapps\cfusion\WEB-INF\flex\services-config.xml" - local en_US

    my services-config. XML looks like this:

    <? XML version = "1.0" encoding = "UTF-8"? >
    <>services-config

    < services >
    < id = "coldfusion-flashremoting-service" service
    Class = "Flex.Messaging.services.RemotingService"
    messageTypes = "flex.messaging.messages.RemotingMessage' >"

    < adapter >
    < adapter-definition id = "CF-object" class = "coldfusion.flash.messaging.ColdFusionAdapter" default = "true" / > "
    < / adapters >

    < destination id = "ColdFusion" >
    <>channels
    < Channel Ref = "my-cfamf" / >
    < / channels >
    Properties of <>
    < source > * < / source >
    <!-define the access level of the invoked--> cfc and resolution rules
    < access >
    <!-use ColdFusion mappings for CFCS, by default, only the SWC files under your webroot can be found. ->
    false < use-mappings > < / use-mappings >
    <!-'public and remote' or just 'remotely' methods to be called->
    < method access level > distance < / access method-level >
    < / access >

    < property cases >
    <! - the property names of CFCs - >
    < force-cfc-tiny > false < / force-cfc-lowercase >
    <! - query column names - >
    < force-query-tiny > false < / force-query-lowercase >
    <! - the struct keys - >
    < force-struct-tiny > false < / force-struct-lowercase >
    < / property cases >
    < / properties >
    < / destination >

    < / service >
    < / services >

    <>channels
    < channel-definition id = "my-cfamf" class = "mx.messaging.channels.AMFChannel" >
    "" < endpoint uri = ' http://{server.name}:{server.port}{context.root}/flex2gateway/ ' class="flex.messaging.endpoints.AMFEndpoint"/ >
    Properties of <>
    > extension of the poll < false < / mark-enabled >
    < serialization >
    false < instantiate-types > < / instantiate types >
    < / serialization >
    < / properties >
    < / channel-definition >
    < / channels >

    < record >
    < class = "flex.messaging.log.ConsoleTarget target" level = "All" > "
    Properties of <>
    [Flex] < prefix > < / prefix >
    < includeDate > false < / includeDate >
    < includeTime > true < / includeTime >
    < includeLevel > true < / includeLevel >
    < includeCategory > true < / includeCategory >
    < / properties >
    <!--
    possible values:
    DataService.General
    DataService.Transaction
    DataService.Hibernate
    DataService.coldfusion
    Message.*
    Message.General
    Message.Data. *.
    Message.Data. (-name of the operation)
    where the name of the operation is one of create, extra, get, update, remove, batch,
    page, County, get_or_create, create_and_sequence, multi_batch, processed, get_sequence_id,.
    association_add, association_remove, fillids, refresh_fill, update_collection
    Message.Command. *.
    Message.Command. (-name of the operation)
    where the operation name is a subscribe, unsubscribe, poll, poll_interval, client_sync,.
    server_ping, client_ping, cluster_request, login, logout
    Message.RPC
    Message.ColdFusion
    Service. *
    Service.Cluster
    Service.HTTP
    Service.Message
    Service.Remoting
    Endpoint.*
    Endpoint.General
    Endpoint.Deserialization
    Endpoint.AMF
    Endpoint.HTTP
    Endpoint.RTMP
    Security
    MessageSelector
    Configuration
    Resources
    ->

    < filter >
    < model > Endpoint.* < / pattern >
    < model > service. * < / pattern >
    < model > Configuration < / pattern >
    < model > Message.* < / pattern >
    < / Filters >
    < / target >
    < / recording >

    <>System
    < / system >

    < / services-config >


    "Any idea why I get: Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: failed '?

    Thanks in advance

    I discovered that I have to add - context-root /cfusion the additional compiler arguments.

    See http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=583&threadid = 1210639

  • Need to get Max Value day in a table with hourly data of SQL

    I have a table "tmp" with these columns:

    ID, date, time, value

    I want to get the 'time' when 'value' max is reached in each 'day '.

    the query:

    "SELECT id, day, hour, max (value) from group tmp by id, date, time"
    does not return the desired lines.

    You have an idea to get what I want?

    Maybe this:

    with tmp as
    ( select 1 id, trunc(sysdate) day, 10 hour, 100 value from dual union all
      select 2 id, trunc(sysdate) day, 11 hour, 110 value from dual union all
      select 3 id, trunc(sysdate) day, 12 hour, 120 value from dual union all
      select 4 id, trunc(sysdate) day, 13 hour, 130 value from dual union all
      select 5 id, trunc(sysdate-1) day, 10 hour, 100 value from dual union all
      select 6 id, trunc(sysdate-1) day, 11 hour, 90 value from dual union all
      select 7 id, trunc(sysdate-1) day, 12 hour, 150 value from dual union all
      select 8 id, trunc(sysdate-1) day, 13 hour, 100 value from dual )
    Select ID, Day, Hour, Value
    From Tmp
    Where (Day, Value) IN (
    Select Day, Max(Value)
    From Tmp
    Group by Day)
    

    Results:

            ID DAY             HOUR      VALUE
    ---------- --------- ---------- ----------
             7 08-DEC-08         12        150
             4 09-DEC-08         13        130
    
    2 rows selected.
    

    Kind regards
    Miguel

  • Enter DAQ Signal kept rising and if stop Max voltage when it is run with nothing attached

    I just installed card PCI-6229 and a BNC-2110 (Labview 8.6V). When I started entry DAQ signal kept rising and stop at the max voltage (10V) operating with nothing attached (instead of changing to 0 all about). I was wondering what is the problem with him and how to solve. Configuration of terminal was "differential".

    I just created a DAQ entry with range and loop watch. Please let me know if I did something wrong

    Thank you

    I just reread your original post.  Why do you have the terminal setting to differential?  This looks like one configuration over for me.  Change the terminal setting in CSR.  With a differential setting. you need connect an AI1 source and another source to AI9.  The difference between the two will be reported.  With CSR, will count only AI1 and tension concerning the ground will be reported.  Make sure you have your AO ground related to your soil to HAVE.

  • Max and Min of successive summits with a different amplitude

    Hello

    I have a signal having different successive Max and Minima.ie each pic + / is having a different value.

    I wanted to get successive + / maximum values of the. CSV file.

    I'm done with the chart from .csv file, but I am not able to get values of crete please help.

    What function can I use?

    How about waveform peaks?

    Check it out. Heres where it is:
    Programming > Waveform > Analog Waveform > waveform measures > waveform monitoring

    This is peaks and valleys (maxs and mn).

    It will then display locations (x-value) and amplitue (value y) point.

  • I could remove these items with my Disk Clean Up?

    What would be in temporary files, Internet files temporary Client/Publisher, compress old files, the catalog for content indexing files?   Could I removed these items using Disk Clean Up.  I already removed temporary Internet, Recycle Bin, the files offline web sites. I have a Windows XP home edition.

    You can, but use with caution.  Some may be necessary.

    Unless there is a compelling reason (and you have a back up), I wouldn't.

  • See exhibit items with errors?

    In APEX 4.2.6 (and or 5 that we would need to ensure its proper functioning after upgrade), is there an available view that provides a list of all the elements that contain validation errors associated with them please?  We owe this to use in a plugin that we use.

    Thank you

    Phil

    Hi Patrick,

    Unfortunately, using

    apex_plugin_util.get_element_attributes(....)
    

    Does not return something different usage

    p_item.element_attributes
    

    Where p_item is of type apex_plugin.t_page_item.

    None of these methods include anything else 'error' bound when the plugin page element does not have an inline validation.

    The only way that we managed to achieve the 'apex-page-point-error' class added to the element is to run the following:

    l_item_errored := apex_040200.wwv_flow_error.has_page_item_errors(p_item.name);
    
    IF l_item_errored THEN
     l_item_err_cls := 'apex-page-item-error';
    ELSE
     l_item_err_cls := NULL;
    END IF;
    

    Of course, it's not ideal because we will now have to change this when we upgrade to 5 ApEx in the future.

    Do you know why the function "has_page_item_errors" was not included in the public package "apex_error", and can you think of another (easier) way to do the above?

    See you soon,.

    CJ

  • Need help with script java folder level for silent registration with unique file name

    That's what I'm trying to do

    1. when a person completes the request on one of our computers in the office, there will be a button send at the bottom of the application.

    2 submit the application on is automatically stored on the local server with the file name determined by the fields name and surname on the application.

    example - John Doe Application.pdf

    Saved in the folder C:\Users\Station1\Desktop\FinishedApplication.jpgApplications

    3. This is the example of code I found, but I don't know how to enter which fields determine save name and where to save it to.

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html

    Thank you!

    Lol this is the part that you need as a script to the folder level:

    var lcbSaveAs = app.trustedFunction (function (vDoc, vPath) {}

    app.beginPriv ();

    vDoc.saveAs ({cPath: vPath});

    app.endPriv ();

    });

    This is the code you use in your file:

    lcbSaveAs (, "/ C/users/specialisee1/Desktop/result /" + this.getField("FirstName").valueAsString + "" + this.getField("LastName").valueAsString + "Application.pdf");

    lcbSaveAs is the name of the function of trust.

    vDoc.saveAs is the Document object, call the saveAs method.

    I don't know what oDoc.SaveAs is, or where you got it.

Maybe you are looking for