Problems using rpc between Flex and CF

Hello
I have a problem to send objects between Flex and Coldfusion using the gateway of the AUTHORITY of the new Version of Coldfusion.
The transfer of CFCS to Flex works, but I can't send a complex object to a CFC.

The Error Message is:
faultCode:Client.Message.Encoding faultString:' cannot create class of type 'flex. HotlineSystem.bin.cf.Category'. ' faultDetail: 'Type' flex. HotlineSystem.bin.cf.Category' not found. »

Im going totally nuts... the transfer of CF to Flex works very well, the mapping between category.cfc and category.as work of ist. But if I try to send a Flex object category to my CFC is not.

I hope someone can help.

Thank you!

CFC function:
< cffunction "insertCategory" access = "public" returntype = name = "Sub" output = "false" >
< cfargument = "category" type name = 'flex. HotlineSystem.bin.cf.Category"required ="true">

< cfquery name = "insertCategory" datasource = "hotline_system" >
INSERT INTO category (category_idCategory, name)
VALUES (#category.getCategory_IdCategory () #, ' #trim (category.getName ()) #')
< / cfquery >


Category.CFC:

< cfproperty displayname = 'Category' alias = 'flex. Index HotlineSystem.bin.cf.Category"=" I model a single category ">
< name cfcomponent = "idCategory" type = "numeric" default = "0" >
< name cfcomponent = "category_idCategory" type = "numeric" default = "0" >
< name cfcomponent = "name" type = "string" default = "" >

< cfscript >
Initialize the SWC with the default property values.
variables.idCategory = 0;
variables.category_idCategory = 0;
variables. Name = "";
< / cfscript >

< name cffunction = "init" output = "false" returntype = "flex. HotlineSystem.bin.cf.Category">
< cfreturn this >
< / cffunction >

< name cffunction output = "getIdCategory" = "false" access = "public" returntype = "any" >
< variable cfreturn. IdCategory >
< / cffunction >

< name cffunction output = "setIdCategory" = "false" access = "public" returntype = "Cancel" >
< name cfargument = "val" required = "true" >
< cfif (IsNumeric (arguments.val)) or (arguments.val EQ "") >
< cfset variables. IdCategory = arguments.val >
< cfelse >
< cfthrow message = "' #arguments.val #' is not a valid numeric" / >
< / cfif >
< / cffunction >

< name cffunction output = "getCategory_idCategory" = "false" access = "public" returntype = "any" >
< variable cfreturn. Category_idCategory >
< / cffunction >

< name cffunction output = "setCategory_idCategory" = "false" access = "public" returntype = "Cancel" >
< name cfargument = "val" required = "true" >
< cfif (IsNumeric (arguments.val)) or (arguments.val EQ "") >
< cfset variables. Category_idCategory = arguments.val >
< cfelse >
< cfthrow message = "' #arguments.val #' is not a valid numeric" / >
< / cfif >
< / cffunction >

< name cffunction = output "getName" = "false" access = "public" returntype = "any" >
< variable cfreturn. Name >
< / cffunction >

< name cffunction = output "setName" = "false" access = "public" returntype = "Cancel" >
< name cfargument = "val" required = "true" >
< cfset variables. Name = arguments.val >
< / cffunction >
< / cfproperty >

Category.As:

package classes
{
[Bindable]
[RemoteClass (alias = "flex. HotlineSystem.bin.cf.Category")]
dynamic public class
{
public var idCategory:int;
public var category_idCategory:int;
public var name: String;

public void category() {}

}

public void fill(idCategory:int,_category_idCategory:int,_name:String):void {}
this.idCategory = idCategory;
This.category_idCategory = category_idCategory;
myIdName = name;
}


public function getIdCategory (): int {}
Return this.idCategory;
}

public function setIdCategory (): void {}
this.idCategory = idCategory;
}

public function getCategory_IdCategory (): int {}
Return this.category_idCategory;
}

public void setCategory_IdCategory(category_idCategory:int):void {}
This.category_idCategory = category_idCategory;
}

public void setName(name:String):void {}
myIdName = name;
}

public function getName (): String {}
Return myIdName;
}
}
}

Problem solved:
Apparently, it is not possible to transfer an object from a class action script for coldfusion.

The solution is to encapsulate the object (in my example category) in a table.

Strange... but it works.

Best regards

Tags: Adobe LiveCycle

Similar Questions

  • Picture in picture book uses white between photos and filling when using "Adapt to the chassis" instead of the border color of page like in iPhoto

    I used the book of images to create a book in iPhoto several times because the line between the pictures and the filling when I use 'Adapt to the chassis', is the same color as the color chosen for the borders of homepage and text boxes.  It is seamless.

    I just tried to use the book of images in pictures but the line between the pictures and the fill to 'Adapt to the chassis' is white, and not same color I chose for the page border.  It is, therefore, very ugly.

    Is it possible to remedy this situation?

    first get a glimpse of your p = book - Preview a print project in Photos, iPhoto or Aperture to avoid problems - Apple Support - so you can see exactly what will be printed

    You cannot change how the program works so if the problem persists in the overview say Apple about the bug - http://www.apple.com/feedback/photos.html

    LN

  • HP Color LaserJet MFP M177 Pro: Problems of analysis between iMac and HP Color LaserJet Pro M177fw MFP

    Hello

    I had no wifi problems between my Imac and HP Color LaserJet M177fw MFP Pro to scan until recently - it can be related to operating system update to OSX 10.11.4 which was done yesterday however.

    I can scan is no longer docyuments from the top of the charger page - scan starts but just hangs and then I can not re - activate the scan function until I have to force it to quit.

    Can you suggest appropriate corrective measures to try please?

    Thank you very much.

    Hello

    Make sure you have the latest drivers installed:

    In the Apple menu, click about this Mac, and then software update.

    Click on the main menu store reload the Page, and then select allow for the update check completed and install any publicly traded Apple / HP update.

    Then install problems with the products HP LaserJet on OS X El Capitan of scanning HP Software Update to address documents (ADF) automatic feeder:

    http://FTP.HP.com/pub/softlib/software12/OSX/HP_Easy_Start/Essentials/S/HP-printer-Essentials-S-4_5_0.pkg

    Kind regards

    Shlomi

  • WRT600N advanced routing problems / use as Access Point and switch

    Firmware 1.01.36 build 4 The WRT600N is connected to an existing LAN and is really only used as a Wireless N access point. There is nothing plugged into the WAN port; only the LAN port. I have NAT disabled. All traffic from a client connected to the WRT600N wireless going very well for the gateway and the Internet router. The customer experience is very good. However, there are a few minor issues as follows.

    1] Setup > Advanced Routing tab has only the following options; to do this, * not * have a picker 'Mode '. NAT, static routing and dynamic routing (RIP).    IS this NORMAL, OR should HAVE a MODE (e.g. switch) AS REFERRED to IN THE HELP FILES?

    [2] even if a connection wireless or wired to the WRT600N works very well, the WRT600N himself is unable to connect to the internet. It cannot connect to NTP to set the time and I can't ping past the gateway router using the ping of the WRT600N diagnostic utility. I ping the gateway 192.168.1.4 port inside, but I can't use the diagnostic the WRT600N ping ping utility something beyond this gateway port. The routing of the WRT600N table is below. THE GATEWAY SHOULD NOT BE 192/168.1.4? HOWEVER THE WRT600N DON'T ME LETS NOT CHANGE IT.

    Destination LAN IP Subnet Mask gateway interface

    192.168.1.0 255.255.255.0 192.168.1.71 LAN & Wireless

    127.0.0.0 255.0.0.0 * LAN & Wireless

    Topic 1. Linksys, used to have a mode option to switch between the modes 'Bridge' and 'router '. The latest routers call it now better NAT power. Gateway mode means THAT NAT is enabled. Router mode means THAT NAT is disabled. The help files are probably a little bit over. But the option is still the same.

    Re 2. It's normal if you use it as only access point (i.e. do not use the WAN port). The router always takes into account that the internet connection via the WAN port, i.e. it will always use the default gateway on the WAN port. If nothing is connected to the WAN port on the router itself has no default gateway and therefore has no access to the internet. Generally, you are not able to establish the default route in either advanced routing page. It is a known limit of these routers if you do not use as a router.

  • Problems using the mask layer and B &amp; W in filter/fit option.

    I used to use the layer mask + black and white filter/adjustment. + using the eraser to do some simple setting highlight, but then after the first photo that I did today, it stopped working.

    I was wondering if anyone knew how to solve this problem, maybe I've touched a keyboard shortcut / cmnd that off, he'll do layers and layers of filter, turn the photo b & w, but when I go to delete, it does nothing.

    Thanks in advance!

    Eric Fields.

    Post edited by: EricRFields

    It would be easier if you use the Brush tool to paint on the layer mask.

    Paint with black to reveal the color and white to hide the color of the layer below.

    You can use the X key to move from one black and white as foreground color in the Toolbox.

  • What the difference between Flex and Air in RIA?

    Hello

    I want to learn how to build RIA, however, build them with Adobe Flex or Adobe Air or both? What we I first start learning?

    Also, which version of Flex is the best? Flex 3 or Flex 4.

    If someone can give me the basics of the where I should start first would be great.

    And I'm wrong assuming the Flex SDK kit and Air SDKS are free?

    Thank you

    Ghibli Lama

    Hi Ghibli,

    Flex is a framework for building applications that run in Flash Player.  AIR is a framework for deploying RIA on the desktop.  It can be used with Flex-based applications or it could be used for applications built using HTML/Javascript for example.  Basically, AIR allows you to use web languages and development practices to build cross-platform desktop applications.

    Software development kits are free and you can get them from here:

    Flex 4 - http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4

    AIR - http://www.adobe.com/cfusion/entitlement/index.cfm?e=airsdk

    I would recommend Flex 4 since this is the version currently in production.  Flash Builder 4 is the latest version of the Adobe IDE for developing Flex/AIR applications.  It is not free, but there is a free trial period.  There are other free options out there for a development environment, but I am not very familiar with any of them.  You can see Flash Builder 4 here - http://www.adobe.com/products/flashbuilder/

    Since the start, the net is full of info on these two topics and this forum is a good place to get info.  You can begin to familiarize themselves with what Flex is here - http://www.adobe.com/products/flex/overview/ and AIR - http://www.adobe.com/products/air/

    Good luck!

  • Problems using trigger cursor query and post.

    Hello

    I use a block non-base of data/model to query records in a database block. My form has a point text 'report No.' that will be used to enter a valid number of reports. Based on the number of this report, I hit a button to search (also from the same block of data non-base) to view records that have this "report No.' in the database block. I think I need to use a cursor in a post for this request but I am not able to operate :( Help, please! I really need this point that nobody is helping me to work:(la figure)

    My search button - button the trigger:
    DECLARE
    NUMBER OF CHOICES;
    BEGIN
    IF: DUMMY_BLK. NWTFR IS NULL THEN
    ALERTS. STOP_ALERT ("Start Date is required", choice);
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    go_block ('T_VESSEL_BLK');
    execute_query;
    END;

    My post_query:

    DECLARE
    cursor vessel_cur is
    SELECT VES_RPTNO, VES_SENDER, VES_SENDER_MBOX, VES_INTCTRL_REF, VES_NAME, VES_VOYNO, VES_ARRDT
    SHIP
    WHERE VES_RPTNO =: DUMMY_BLK. NWTFR;
    var_mot vessel_cur % ROWTYPE;
    BEGIN
    Open vessel_cur;
    LOOP
    extract the vessel_cur in var_mot;
    EXIT WHEN vessel_cur % NOTFOUND;
    END LOOP;
    close vessel_cur;
    END;

    instead of execute_query you do now

    Why do you offer me something like that? Replacing the standard behavior that you use forms must be well thought out, because you have to manage a large number of possible problems. You can easily get the desired using the standard logic behavior:

    -Create an item number IT_COUNT in a control block, assign 'calculation mode' to 'Summary', 'Synthesis function' to 'Count' "Down block" and your DB-bloc and "just point' a null-element not contained in this block. Last series the block 'Interrogate all folders' to 'Yes' in your databaseblock. Now, in your code, you can just checkl the value of this element of count, as

    ...
    EXECUTE_QUERY;
    IF :BL_CONTROL.IT_COUNT=0 THEN
      error
    END IF;
    
  • problem syncing notes between mac and iphone

    Suddenly 6 months ago my notes stopped sync between my mac and my iphone. Synchronization between the iphone and the ipad still works. I have 'unchecked' syncing notes in icloud on all units, even disconnected my mac completely and back on to see if it would work, but no. When I check my iclouds units on my ipad, it lists only the ipad and iphone. And when I login to icloud in safari, showing notes on my phone and pad, not from my mac. So it seems that my mac is out of the loop. How can I me in?

    BTW, everything is fine, it's just my notes.

    If you have upgraded to a mobile device from Apple iOS 9 or a later version and then synchronize the Notes database to iCloud, then you won't be able to synchronize the Notes on a Mac with the same iCloud account until it is upgraded to OS X 10.11 or later version.

    Only the notes in the iCloud category will synchronize with iCloud. If you have any comments on my Mac, or synchronized with another network service, that they don't synchronize.

    If note that synchronization are not, please open the iCloud pane in system preferences. Make sure that you are connected to iCloud with the good Apple ID and the Notes selected. Uncheck and check again.

  • problems of compatibility between mac and windows live

    Hi-

    I created a photo album and shared a link with some of my friends using windows live, but my friends who use a mac can not seem to view the photo albums.  How can I get the two systems to be compatible - pc to mac?

    Thank you

    Ask Windows Live Photo Gallery of the questions here: http://windowslivehelp.com/product.aspx?productid=20

  • Problems with etherchannel between 2970 and 3500xl

    3500xl:

    WC10 version 12.0 (5)

    2970:

    Version 12.1 (11) AX

    I have four ports physical configuration in Group 1.

    2970 CONFIG:

    interface GigabitEthernet0/21-24

    switchport mode access

    no ip address

    full duplex

    Speed 100

    channel-group mode 1 on

    3500XL CONFIG:

    interface FastEthernet0/45-48

    full duplex

    Speed 100

    Port 1 group

    SUMMARY ETHERCHANNEL 2970

    SH etherchannel summary

    Flags: D - low P - port-channel

    I have - autonomous s - suspended

    R - Layer 3 S - Layer2

    u - unfit to tied selling

    U - channel port in use

    Ports of Port-Channel Group

    -----+------------+-----------------------------------------------------------

    1 Po1 (SU) Gi0/21 (P) Gi0/22 (P) Gi0/23 (P) Gi0/24 (P)

    ETHERCHANNEL SUMMARY FOR 3500XL

    Flags: d - D - down failure

    I - in use

    Port group

    ----- -----

    1 Fa0/46 (D) Fa0/45 (Dd) Fa0/48 (D) Fa0/47 (D)

    Everything seems to work with 2970 and data are certainly going through. I'm Telnet via connection and servers are connected.

    3500xl watch interfaces are in decline and spanning tree protocols in State of block. I know the etherchannel works but the 3500 says that everything is down. Any help would be appreciated.

    Thank you

    Brett

    Hello

    That you have connected only 1 port so have u deleted the config port-port group on 3500xl 48. If you have so and yet shpwing down, then I tell stop you doen the port manually and do not close.

    also try to change the 350xl ports.

    Thank you

    Michael C

  • Exception handling between flex and java (BaseProxy)

    Hello

    In my plugin code, there are several calls between actionscript(Our View) and java(Service layer) along the lines of the example of chassis (createChassis/deleteChassis/editChassis, etc.). However, the only difference is that in our service layer, we can be thrown exceptions, and I don't see what is happening in the examples of chassis/Rack. If the reminder in actionscript gets called in an asynchronous way to update the user interface when a method returns, which is good; However, if something goes down into the java layer, I wonder how I can connect this exception to the wire on the side of the actionscript. The MethodReturnEvent reference is an event.error but which seems to have no knowledge about what really happened on the java service layer and I couldn't understand how to share this information with actionscript (in case of failure). Before you build another layer to manage exceptions, I was wondering if there was all recommendations of the team of webclient on how handle java exceptions and pass information from java to actionscript to handle additional failure in actionscript (perhaps show a dialog error saying something is is wrong and how remedy).

    Thank you.

    In this case, see the global services-ui and Global Services-service examples that are provided with the SDK. There examples you're looking for.

    See especially pass method and the call for return.

  • synchronization of the problems of media between iOS and Adobe Premiere

    I have tried sync, a test of Adobe video Adobe Premiere today iOS app project. Just added a few clips and sent to the first. How ever in trying to open the XML file in the creative files folder I just get the:

    "The project could not be loaded, it may be damaged or contain obsolete items.

    tried several times. I also put my Adobe project at 30 frames per second as the source media

    no luck

    Anyone who can guide me?

    TNX

    Hi Max,.

    This problem has been resolved, no need to return to 8.1.

    Best,

    Bronwyn

    Community Manager for Adobe Premiere Clip

  • Problem using a conditional branch and routing table

    Hello world

    I need to check the indicator of payload of my entry, depends on that I have to call one another operational branch for each conditional branch.

    For example: if my flag is 'E', then I have to call 2 different business services still have 2 different business services.
    If I use the routing table, I can't call operational management in it.


    I tried to skip logic and I get the following error: [BranchNode1] one branch conditional node specifies an invalid xpath: an error has been reported to compile the XPath: except for XQuery



    Can someone help me.

    Ok. With little understanding of your scenario, I guess you will call the same set of services on the basis of the IF and ELSE, but their internal processing would be different.

    What you can do is-

    Proxy main - if-> Proxy (local transport WSDL based)--> operational connection
    | - other---> Proxy B (WSDL based transport)--> operational connection

    To develop-

    Main proxy's proxy that would receive applications from the outside world. Using conditional branches, route the incoming request to either A proxy or A of the b. Proxy Proxy and Proxy B will be based on the same WSDL (WSDL according to type of proxy) and their transport must be selected as 'local' to keep them invisible to the outside world. Proxy now A and B of Proxy, you can have operational branch and provide the implementation you want.

    Kind regards
    Anuj

  • Problem of privacy between personal and professional pages

    I discovered that if I 'as' someone Facebook professional page of my professional page, they can click on my icon and access all my information from Facebook, even if I put it to "friends only". Microsoft is aware of this privacy issue? The only solution that I can determine is to make my information personal page visible by anyone else that me and then individually reset the settings for each post I do.

    www.Facebook.com/help are the only ones who could help you with this.

  • Problem with the help of Adobe Premiere Pro *.prproj files between PC and MAC?

    Hi, I have finally got myself a MAC with a grunt to replace my PC and installed first Pro CC of the cloud on the Mac.

    I copied the files on my PC, but when I try to open the first Pro CC (*.prproj files) I get the following error:

    "This project has been saved in a newer version of Adobe Premiere Pro and cannot be opened in this version"

    I don't understand, like the MAC and PC versions of first Pro CC have been downloaded from the cloud to Adobe.

    Can anyone offer advice please?

    Hi, Ashton,.

    There is no problem of incompatibility between Mac and PC files (files .prproj) project

    In your case, it is not updated to the version of Premiere Pro that is installed on your Mac. If the creative application cloud shows first as update, try updates to help Premiere Pro > updates... Menu.

    FYI: You should have first installed 2014.2 Pro BUILD 8.2.0 (65)

    Thank you

    Regalo

Maybe you are looking for

  • Disadvantages of the IOS10

    Hello I use the products apple quite a long time now n I most apple products. Recently updated iOS 10 I expect many advanced features and changes, but to my surprise, it became ugly compared to the earlier version. e; g your sensor iPhone earlier u o

  • iMessages appearing on the watch, but no iPhone

    My watch will be occasionally receive iMessages and appear in the notifications of the watch, but does appear on my iPhone not anyway. Even after reset of these two devices, my phone iMessages will not reflect the texts I have received on my watch. W

  • How will I know if I have a version of 32 or 64-bit Firefox?

    I know stupid question... but then the answer should be very easy for you to spend a minute of your time on, no?

  • Tecra A3: Install Driver Updates

    I have an old tecra a3-101 that I bought here in the Oman.I tried to install new Intel display drivers from the Intel website a week. However, there are some functions which are no longer works after that I did the update:1. the right click Desktop d

  • HP deskjet 2130: whenever I turn my computer off my HP deskjet printer is uninstalled.

    Whenever I turn my computer off my HP deskjet printer is uninstalled. Once again, I have to remove it from the Control Panel, reinstall it again and then use it. Its getting really heavy. Please help me.