Invoking CFCs that extend mapped CFCs through the flex2gateway

Hello all,
I’ve run into an issue with my CFCs and I’m hoping someone can tell me why this is happening.
Here is my setup in this scenario:
I have a mapping for my CFCs on my local CF Server where Logical Path /CFC maps to C:\ColdFusion8\common\CFC
The folder C:\ColdFusion8\common\CFC contains one file test.cfc.  The file test.cfc is an empty component (<cfcomponent></cfcomponent>)
I have a proxy CFC in my webroot’s proxy folder at C:\ColdFusion8\wwwroot\proxy\pxTestMapping.cfc  pxTestMapping.cfc extends CFC.Test which uses the logical path CFC referenced above pointing specifically to the file test.cfc. 
I have created a service in Flex that works with pxTestMapping.cfc  On load of the application I run a method HelloWorld from pxTestMapping.cfc.  The helloWorld method just returns the string “Hello World”.  I have a button that you can click to see the resulting string in Flex.
I can load the method directly in the browser and it works, I can also test and confirm that the Flex application works and the expected string does alert when the button is clicked.  If I then go into the pxTestMapping.cfc file and update the string returned to read “Hello World Updated” and hit save, the CFC will error the next time I run the flex application.  The error message states “Unable to invoke CFC – Could not find the ColdFusion Component or Interface CFC.Test”.  If I then run the Hello World Method directly in the browser (http://localhost:8500/proxy/pxTestMapping.cfc?method=HelloWorld) The component does not error, instead it returns the expected string.  From that point forward the flex app will also work, until I make another change to pxTestMapping at which time I will receive the above message until I manually access the webservice through a web browser.  I have duplicated this issue on both my local development environment and on my staging server.
How can I get the CFC to invoke correctly after modification without having to directly access the webservice in my browser?
Thanks,
Christine

I started with an empty Data/Services view and clicked the link "Connect to Data/Service"  I selected ColdFusion, browsed to the CFC in the ColdFusion Component section and used the default service name and package that it created.  I clicked next, entered my login information and clicked Finish on the screen that showed the operations in the service.
I tried this with the original beta SDK, 4.0.0.10434 and 4.0.0.4904
The original issue described used the original beta SDK
4.0.0.4904 & 4.0.0.10434 errored with VerifyError #1014: Class IVisualELement could not be found, ReferenceError: #1065: Variable CrossFade_CrossFadeShaderClass is not defined,  ReferenceError: #1065: Variable Wipe_WipeShaderClass is not defined, and ReferenceError: Error #1065: Variable _2e124f77eedc07babaa6f5d7b8f173c364f54221c2a0cd01c6886c90f93a6fbf_flash_display_Sprite is not defined.  Additionally, every time I edited anything, the Flash Builder app returned an error that said "An internal build error has occurred.  Right-click for more information" which seems to require a restart of Flash Builder to resolve.
I didn't have time to continue trying to figure out what about my code, setup or plugin was causing all those problems with the SDKs, so I gave up with testing in them.
I attached the MXML file I used and the cfc I used in my tests.
Thanks!
Christine

Similar Messages

  • [svn] 3048: Always map urls through the rootURL property, even for the non-proxy case.

    Revision: 3048
    Author: [email protected]
    Date: 2008-08-29 15:40:17 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Always map urls through the rootURL property, even for the non-proxy case. This might
    change the behavior slightly if you set rootURL on HTTPService for the non-proxy case
    as that would have been ignored in the current code path but it seem less consistent.
    If rootURL is not set, it defaults to the swf's URL which should give the same relative
    URL semantics we get today by default when rootURL is not set.
    blazeDS checkintests pass
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as

    Of the second and third scripts, the latter could perhaps be deemed the "most secure"; however, it might block more than you want. If you really want to use one of those, then I'd suggest using the second script. Otherwise, I'd recommend that you take a look here. (I only slightly examined the first script.... I do not understand the language of the comments, and I'm no iptables whiz. )
    Also, note that you don't have to use an actual script to set up the rules; rather, you can save the rules you want to a file that will be read by iptables automatically (/etc/iptables/iptables.rules). Here's a modified version of mine:
    # /etc/iptables/iptables.rules
    # These rules (and the commented instructions) derived from:
    # http://ubuntuforums.org/showthread.php?t=159661
    *nat
    :PREROUTING ACCEPT [163:50538]
    :POSTROUTING ACCEPT [40:2451]
    :OUTPUT ACCEPT [40:2451]
    COMMIT
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    :FIREWALL - [0:0]
    :TRUSTED - [0:0]
    -A INPUT -j FIREWALL
    -A FORWARD -j DROP
    -A FIREWALL -m state --state RELATED,ESTABLISHED -j ACCEPT
    -A FIREWALL -i lo -j ACCEPT
    -A FIREWALL -j TRUSTED
    -A FIREWALL -j DROP
    # put your own exceptions here, like so (replacing <tcp/udp> with either "tcp" or
    # "udp" -- minus the quotes -- and <port number> with the port you'd like to open):
    # -A TRUSTED -p <tcp/udp> -m <tcp/udp> --dport <port number> -j ACCEPT
    COMMIT
    Of course, there are benefits to keeping the rules in a script. For instance, you could then easily set the default iptables rules, allow all traffic, etc. Plus, some firewall-related things (such as the various echo commands in the scripts you provided) cannot (to my knowledge) be done by iptables alone.
    If you already have a script that sets up the rules you would like to use, you can save yourself the hassle of creating a rules file by following the directions outlined here.
    Last edited by ssjlegendx (2008-08-06 20:17:00)

  • I set up an account including approval for paypal billing but every time I try to sign in to make a purchase for download I get a message that takes me back through the process of settin up my account. Help!

    I just set up an account at the I tunes store including authorization to charge my pay pal abount. I have also received e-mail confirmation that the account is set up, but every time I try to make a purchase I get a message that says apple ID has not yet been used with the I Tunes Store and it takes me back through the process of authorizing my paypay account. Help!

    Once you purchase or download an app it will always be associated with the Apple ID used to download it. When that app requires and update you must use the Apple ID and password used to download it in the first place. The only way around this is to delete the apps the require the old Apple ID and download or purchase them again with the new Apple ID.

  • TS1398 My iPhone 4 is connected to wi-fi when i am home, but when i leave, i do not get any of my whatssapp messages. When i get back home again I get all the messages that has been send through the day. We do have 3G on network. Why is this?

    MY iPhone4 is connected to wi-fi, and all is fine at home. When i leave home, i do not get any of my whatsapp messages. When i return home, i get all the messages than was send during the day. Why does my phone not use the cellular network to get my whatsapp messages as my Nokia N8 did?
    This is my first iPhone, so i am having some troubles setting everything up!

    Please make sure that you are connected to the internet. There sould be a "3G or LTE or 4G or E symbol on the top left corner of the screen, if data is available to you.
    Whatsapp uses data services to send and receive messages. You need to be connected to the internet for that.

  • I can't purchase anything through ITunes. It keeps coming up with the message that I must connect through the Australian store. All my settings are already set to Australia. Help!

    Thanks for the responses. They have not resolved my issue...in fact now I can't even connect to any ITunes Store. Just getting an error message

    You only need to post once. Check your previous post.

  • How can I change my VPN configuration so that not everything goes through it?

    So I generally connect my laptop through my WiFi connection, which is set as priority number 1. For connecting to certain servers at my office (I work remote) I need to VPN in. Now, I'd like to be able to stay connected to VPN without ALL my internet data going through it. My understanding of the network priority list was that it would attempt the higher connection and then go lower. But I have WiFi at the top of my list and VPN at the bottom, yet everything is going through the VPN. I know this because I did a traceroute and every URL I hit is going through my work servers. I disconnect VPN and try again, they go through the comcast DNS server.
    So my previous understanding of the priority list was that it would try through the highest priority, and then only if that didn't work it through go through lower priorities in order. Is that wrong? Is there actually a way I can get it to do what I want? Thanks.

    With VPN software installed on your Mac all connections to the net will go through that VPN. you have to shut the VPN down for your normal traffic to go directly out to the net. That is just how it works.
    Let me add that is the point of a VPN. So everything done on the computer goes through a Virtual Private Network to your workplace. Otherwise your computer could expose the work network to malware you might get from the Net on your computer.

  • CRM survey through the (service SICF) webgui

    Hello,
    I am facing a problem with the questionnaire.
    when we are activating the service webgui through sicf and access the questionnaire in the activity there is an error ..
    Problem: I have a questionnaire that i have defined through the CRM_SURVEY_SUITE and have assigned the questionnaire to a transaction type " Activity " now in this Questionnairei have the push button of " SAVE" and " RESET"
    When i access this questionnaire through the SAP GUI on pressing the SAVE button in the questionnaire the version number is generated and on saving the transaction the transaction number gets generated.
    However when i am accessing the same through the web gui on pressing the SAVE Button in the questionnaire there is an error message saying " page cannot be displayed"
    Pls suggest what needs to be done to resolve this error
    Rds
    DP

    Sorry for the delay in reply!
    I tried the solution mentioned but did not work.
    Let me tell you one more thing that the CRM On Demand environment i am using has recently moved from R16 to R17. I tried with the same xml in R16 and could login but not able to do it in R17. So does this have any effect on this. What change i have to do for R17?
    Thanks

  • Commas not correctly processed when values are passed through the URL!!!!!!

    I think this is a bug. Any information about this will be greatly appreciated. Here's the scenario:
    There's a single page with 2 regions. The first region contains a simple SQL report. The second region is and HTML region that contains text and date form elements. The SQL report has a column link "Edit" that when pressed it populates form elements in the HTML region. The population of the form elements is done by passing the column values of the select row as variables along the URL. The problem is that commas within column value text are processed as delimiters in the URL. From my understanding and documentation, variables and their values are supposed to look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:1234,,5678
    where MY_ITEM1 will be set to 1234, MY_ITEM2 will be set to null and MY_ITEM3 will be set to 5678 (The URL was copied directly from the Apex 3.0 documentation without modification).
    However if the first value is text (lets say "some,thing") that contains a comma, then MY_ITEM1 will be set to the text preceding the comma in the first value (some), the MY_ITEM2 will be set to the text that comes after the comma in the first value (thing) NOT null and MY_ITEM3 will be set to null NOT 5678. Clearly, one would think that the comma in the first value should be escaped given that commas are used as delimiters of values in this URL scheme.
    The URL looks like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing%2C%2C5678
    However the URL should look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing,,5678
    where MY_ITEM1 is set to "some,thing", MY_ITEM2 is null and MY_ITEM3 is set to 5678
    What does all this mean? This means that the escaped commas (%2C) are used as delimiters for the values. Additionally, any information that is passed that contains a comma will have it's comma escaped as well AND still considered as delimiters for values in the URL. Not to mention it's inconsistent with the official documentation.

    Never mind... problem solved.
    In the Apex docs says that you can embed commas if used within backslashes like: \123,45\.
    So in order to pass text that has a comma through the URL, one must force Apex to code the URL like this (assuming that the text is coming from a report):
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:\#A_COLUMN#\,,5678
    Sorry... no bug. :)

  • My iphone 3G has been dying and acting funny.  Today is prompted me to plug it into my computer and open itunes.  When I did it took me to through the steps to restore my phone.  Now ALL of my contacts are gone, as well as some other things.  Help

    My phone died randomly and prompted me to plug it in and open itunes.  When I did that it took me through the steps to restore my iphone.  Now all of my contacts are gone as well as any text messages since May 19th (since my last sync), and most of my apps.  How do I get it back to the way it was before?

    Restore it from a back up. But I understand your last one is may 19 th...

  • How can I turn off the Ipod 5g speaker so it just plays through the headphones?

    How can I turn off the Ipod 5g speaker so that it just plays through the headphones?

    First make sure your headphones are plugged all the way in, meaning no silver from the headphones plug can still be seen.
    If that's not the issue, try a hard reset of the Nano.  To do this, press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    B-rock

  • Assigning ThreadGroup to a Class that Extends Thread

    How can i assign a thread group to a class running as a thread that extends thread without changing the class to implement Runnable?
    An Example of the application format:
    public class Application implements Runnable
    private ThreadGroup main = new ThreadGroup("Main");
    private Thread mainThread = null;
    public Application()
    public void start()
    if (mainThread == null)
    mainThread = new Thread(main,"main")
    mainThread.start();
    public void run()
    Thread current = Thread.currentThread();
    while(current != null)
    while(something to do)
    AThread a = new AThread();
    a.start();
    String aData = a.getData();
    BThread b = new BThread(data);
    b.start();
    String bData = b.getData();
    class AThead extends Thread
    public AThread()
    //What to do with AThread to assign it to a thread group?
    public void run()
    Basically the application works form a main constructor class running the application class as a thread. The application class will then launch AThread and BThread as subthreads. I would like to be able to count how many of each type of thread is running for the AThread and BThread. I tried using AThread and BThread implementing Runnable to create a thread under a group but it wouldn't work. The application class needs to get information from the AThread and BThread threads once the thread was done, but if the AThread and BThread was implementing Runnable, the Applicaiton Class can't get the data or run methods. Is there some way i can assign what thread group AThread and BThread will run as in thier class files and not the Application class?

    See: http://java.sun.com/j2se/1.4/docs/api/java/lang/Thread.html#Thread(java.lang.ThreadGroup, java.lang.String)
    I think this does what you want:
    public class Application implements Runnable
    private ThreadGroup main = new ThreadGroup("Main");
    private ThreadGroup aThreads = new ThreadGroup("AThreads"); // Added a thread group for all AThread objects
    private Thread mainThread = null;
    public Application()
    public void start()
      if (mainThread == null)
        mainThread = new Thread(main,"main")
        mainThread.start();
      public void run()
        Thread current = Thread.currentThread();
        while(current != null)
          while(something to do)
            AThread a = new AThread(aThreads);  // Create an AThread that will belong to aThreads ThreadGroup
            a.start();
            String aData = a.getData();
            BThread b = new BThread(data);
            b.start();
            String bData = b.getData();
    class AThead extends Thread
      public AThread(ThreadGroup group)
        super(group, "AThread"); // This will make a new Thread that belongs to ThreadGroup group, see link above
      public void run()
    }

  • My 6th gen nano has started relaying song info over and over again through the songs, any ideas?

    The nano just interupts each song with the title and album of the song, and then more obscure stuff. Almost as if some deaf-function has been turned on, is there such a thing?

    Seemed to be working properly this morning.  I think the real problem was when I tried to skip forward/back some tracks, it lost its place and then kind of "fell into" the shuffle mode.  But it's playing the tracks in order now, as it should be per the settings shown on the screen.  As long as it's doing that, I'll be happy and will deal with any other issues as they come up.
    So I guess another question is - if I have it in "continuous" play mode (oval arrows highlighted in blue) and then navigate to the "albums" screen and call up the album being played, should it show the "continuous" play mode at the top of the track listing?  Because currently, it shows the shuffle mode at the top of the track liting - "X" arrows, but *NOT* highlighted in blue.
    I think that's part of what confused me - I expected that the current play mode would display at the top of the track listing, and if I tapped that, it would toggle through the options until it got to the one I wanted.  But of course, with only shuffle mode displayed there at the top of the track listing, when I tapped it, it went right into shuffle mode and started shuffling the tracks on that album.
    Hope this makes sense....
    Thanks.

  • Altering a textframe that wasn't created through a variable by getByName

    Hello all
    Does anyone know how to alter a preexisting textframe within illustrator using extendscript. I can see how to do it after using ".add" and then referring to the variable and altering the contents, but I can't seem to find the answer to altering the contents of a textframe that wasn't created through the script:
    I've come across "TextFrameItems.getByName," but I can seem to get it to work. Any help would be appreciated.
    var doc = app.activeDocument;
      var Ref = doc.textFrames.add();
    var myContent = Ref.contents = "blah";

    var doc = app.activeDocument;
    // add 3 frames and have their contents read "blah"
    var Ref1 = doc.textFrames.add();
    var Ref2 = doc.textFrames.add();
    var Ref3 = doc.textFrames.add();
    var myContent = "blah";
    Ref1.contents = Ref2.contents = Ref3.contents = myContent;
    // now give the second frame a name, the name that shows in the Layers palette
    Ref2.name = "frame2";
    // get second frame (already in the document) and change its contents
    doc.textFrames.getByName ("frame2").contents = "blah blah blah";

  • Why does my website jerk when I switch through the pages?

    I just built my website using Adobe Muse CS6 and I am noticing that as I navigate through the pages the menu bar at the bottom of my pages jerks and at times the background image takes a bit to reload. I also notice on my CONTACT US page, the form that I inserted, which I created using Adobe's Form Central, does the same thing.
    Can anyone help?
    www.juliamarinphotography.com
    Thank you!
    Julia

    Hello,
    Whenever you add an HTML on the page, it takes some time to load as it fetches data from other sources.
    Like  in this case, if you notice, it is the Facebook Like and Send buttons which takes time to load and while  loading makes the menu flicker.
    Same is in the case of Form Central form.
    Regards,
    Sachin

  • Yesterday I purchased a new ipod classic to replace one that had worn out. The price was $179. I wonder if I am eligible for the extended warranty for $59. Can't seem to navigate through the apple support option to get answer. Anyone know?

    yesterday I purchased a new ipod classic to replace one that had worn out. The price was $179. I wonder if I am eligible for the extended warranty for $59. Can't seem to navigate through the apple support option to get answer. Anyone know?

    Put in the serial number but was not offered an extended apple care plan. I guess if you purchase a new one because your old one is out of warranty you get a deal for $179 but you don't get a chance for an extended warranty. You don't get a new box or earbuds, just a brand new iPod. Good deal but since my first died under warranty, got a new one for free, second one I smashed the screen and got a new one for (I don't remember) and now the hard drive went and I paid $179 for a new one, I was hoping to get an extended warranty. But I guess not...
    Thank you!

Maybe you are looking for

  • Error in release procedure

    Hi Im facing an error in the release of PO. When item 0010 in the purchase order is either blocked or deleted the release indicator is not set in the ALV list of ME28. The PO is visible in the list but it is not possible for the users to release the

  • PO mass closing

    Dear Experts, Plz suggest me the path of mass closing of PO's, i want to delete all the PO's made before 31st Dec'2009. I want to put either Delivery completed indicator or else deletion indicator for all the line items.

  • Sorting problem in TreeMap, please help urgent :-((

    Hi Following is a program, please execute it to see the problem. I am adding four elements in the TreeMap. The problem is when I add the elements it never compares the newly added element with the first element. I was sick of it so to test the TreeMa

  • DPS Viewer for Android mobiles

    Since we launched our publication on the IPAD and the IPhone, we have been receiving alot of requests from customers to launch the publication on android devices. After doing some survey, most of the requests are coming from people with Samsung S2, S

  • Automatic Shutdown of DS

    I am running DS 6.3 and every couple of days, the service shuts down and has to be manually restarted. The directory server is installed on a V245 with Solaris 10 SPARC operating system. In the error log file I am seeing an error that says the gle pl