Who called a CFC

is there a way to find out who invoked a CFC? I would like to
check and log who the calling .CFM or .CFC file is from within the
CFC being invoked. Sort of like back in the Custom Tag days, I need
to know which templated called me. I am looking at the
GetMetaData() and GetPageContext() functions but nothing stands out
yet as how to do what I need to do.
Thanks All for the Posts below,
This is a pretty tough one, and I wish I could diagram it to
help explain.
cfc1
cfc2
cfc55
In any of these CFC's, we have code wraped in try/catch
statements. When an exception is thrown, the catch statements kick
in. in the catch blocks, I invoke a cfc called myErrorCFC.cfc..
err = createObject("component", "myError");
From there inside of the catch block I am invoking a method
(see below) which performs legancy handling/logging.
err.parseException(cfcatch.Message);
What I now need to do is extend that method to log who thrown
the exception. Yes the simple way is to pass the name of the cfc or
cfm page as an argument, but changing the code which invokes the
err cfc is out of my control. So I am left with trying to solve
this the hard way.
So far this is where I am at (in my "myErrorCFC.cfc", invoked
from within the catch blocks) which is not currently working:
tmp = getPageContext().getException();
This does not work but it may clearify the approach I am
taking. Does anyone have any good ideas on how to return the error
object from the JRun/jsp/java side of things. "getPageContext()"
returns a "coldfusion.runtime.NeoPageContext" object. The end
result I am trying to achieve is simply (ha ha) to find out which
cfc or cfm page that the exception was thrown and having access to
any additional info would be benificial as well.
Any help will be appriciated greatly.
Thank you,
Erik

Thx for your response, passing an argument would idealy be
the simplest approach but in the context of the problem it would
not be posible. I am working with a VERY large application and to
do so would mean modifying hundreds of lines of code where the CFC
I'm invoking is called from throughout the system. With large
legancy systems as you know, it's always exceptable to make
sweeping changes through sensitive code. If I end up not being able
to find a method in which to find who invoked the CFC I am
modifying I will just have to live with the fact. Idealy I want to
be able to track and log who it was that initiated the CFC. That
can come from a number of model cfm files or cfc's.

Similar Messages

  • How do i find out who called while i was on another call?

    When I am on a call I will hear beeps and know someone else is calling (ie - call waiting) but I can't see who called. I've checked the call log and specifically the missed calls log but it's not there. Can anyone tell me what I am doing wrong?

    That has nothing to do with OS X or your iMac, if you think someone has been using your Internet connection then you need to turn on the security on your WI-FI router. Please look in the owners manual of your router for instructions.

  • Why does my phone no longer show who calls me?

    Up until about two months ago my phone was fine. (I've had it for a few months) But recently, my phone won't show who called me, contacts or not. Two people will show up but no one else will show up. I don't know how to fix this or if I just have to deal with it.

        Let's bring all caller IDs back to your phone! What's your phone model?
    AntonioC_VZW
    Follow us on Twitter at www.twitter.com/VZWSupport

  • I updated my Iphone4S this week to the newest IOS 7.1 and now everyone who calls me says the calls are not clear, muffled.  Is there something I can do to clear this?  4 people in 4 different states that called me all said the same thing.

    I updated my Iphone4S this week to the newest IOS 7.1 and now everyone who calls me says the calls are not clear, muffled.  Is there something I can do to clear this?  4 people in 4 different states that called me all said the same thing.

    Settings > General > Reset > Reset Network Settings
    Contact the carrier to troubleshoot.

  • How can i find out who called me

    I had a message left on my phone this morning but they didn't leave a number for me to call back. I called 1471 but someone else had rung after the message. Is there any way of finding out who called my number today?

    The CALL LIST will contain the last 50 calls along with the numbers if available ie not with held I think is about page 29 in the manual titled Caller display and call lists
    If any post helps tick the star box on the left
    Just cause Im paranoid dont mean they are not out to get me

  • When I'm in a call, I can hear beeping like I'm getting another call but the name doesn't show up and the only way I can see who called is if they leave a voicemail

    I have an employee who has an issue when on calls. When he is in a call with someone, he can hear another call beeping in but no name shows up. The only way he can see who called is if they leave a voicemail. He says the phone is up to date with software. Wondering if anyone can help me figure out what is going on.

    Morning katesnazzy,
    Thanks for using Apple Support Communities.
    There are different methods for enabling and using the following features, depending on your wireless carrier's network technology
    For more information on this, take a look at this article:
    iPhone: Understanding phone features
    http://support.apple.com/kb/HT4515
    Best of luck,
    Mario

  • Changing user who calls Enterprise Service dynamically

    Hello all,
    I'd like to call Enterprise Service as Portal logon user.
    As you know Enterprise Service is implemented on ECC, it always requires ECC's user/password when I access it.
    Off the top of my head I may use logon ticket, but it does not work well for Enterprise Service.
    I've already done the system configuration to use logon ticket - setting profile parameters of ECC, importing client certification and so on.
    What I tried:
    1. Create Destination at "Web Services Configuration: WS Destination"with following parameters:
      Destination Type: WSDL
      URL: http://<hostname>:<port>/sap/bc/srt/xip/sap/ECC_SALESORDERCRTRC?sap-client=800&wsdl=1.1
      Authentication: HTTP Authentication, Logon Ticket
    2. Try to test ES at "WS Navigator"
      -> When I search ES in destination which I created, the following error occurred:
    Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<hostname>:<port>/sap/bc/srt/xip/sap/ECC_SALESORDERCRTRC?sap-client=800&wsdl=1.1"
    When I changed destination's settings as follows, testing ES at "WS Navigator" succeeded.
      Authentication: HTTP Authentication, User ID/Password(Basic), apply fixed user
    But I'd like to change user who calls ES dynamically, because I want to set the user who creates sales order to Portal logon user.
    Could you give me any advice?
    Ikue

    hi lkue,
    Please see my weblog @ https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7891. [original link is broken] [original link is broken] [original link is broken]  When you create SM59 HTTP destination, select "send logon ticket" or "logged in user id /password" . This will automatically use logged in user id dynamically.
    Hope it helps you and solves your problem.
    Regards,
    Arul

  • RPC fault when calling a CFC from flex

    Hello there,
    I'm having some startup problems getting Flex and Colfusion 8
    to play nice with FDS. I'm using Flexbuilder 2.0.1 and Coldfusion 8
    developer edition on IIS on a windows box (XP professional).
    I use a very simple test CFC in my coldfusion site with just
    one function called 'getstring' which, surprise, surprise returns a
    string. I want to show this string on a label in my Flex frontend
    by using <mx:remoteobject>, the whole thing compiles
    perfectly, I use this mxml:
    <mx:RemoteObject id="TestService"
    source="cfc.DataTest"
    destination="ColdFusion"
    concurrency="multiple"
    makeObjectsBindable="true"
    showBusyCursor="true">
    <mx:method name="getString"
    result="doResult(event.result)" fault="doFault(event.fault)"/>
    </mx:RemoteObject>
    but after calling the remote method I get this error back:
    [RPC Fault faultString="coldfusion.xml.rpc.CFCServlet cannot
    be cast to coldfusion.runtime.CFPage" faultCode="Server.Processing"
    faultDetail="null"]
    Which is the same type of error I get when I call a CFC
    directly through the address bar in my browser, for example
    http://localhost/cfc/datatest.cfc
    I tried googling the error message but so far found nothing
    that indicated what I'm doing wrong...
    I'd really appreciate some help here, if you need more info
    let me know...
    thanx in advance

    Ok, nevermind, I figured out what I was doing wrong. I had
    accidentally setup my application.cfc in a wrong way, I had set all
    of the onrequest en onapplication event handlers to
    access="package" instead of "public", this generated an error
    ofcourse...
    I'll just go bang my head against a wall for a while
    now....

  • I have a sign of a little lock on the top of my iPhone 4 screen and therefore I am not able to hear from the people who call me unless that I switch the speaker on. What should I do

    I have a sign of a little lock on the top of my iPhone 4 screen and therefore I am not able to hear from the people who call me unless that I switch the speaker on. What should I do

    The little lock has nothing to do with speaker volume.  It means you have locked the rotation on your iPhone.
    Have you tried using the volume control on the side of the iPhone to raise the volume when someone calls?

  • Who calls doget() method of servlet

    hello all,
    i have typical customized webserver.
    the problem i have with that is when i configure it with IP address and when i send a request through browser using HOST NAME ,its not recognizing.
    the same happens vice versa
    that is : set up host name in the http server, and when try a request through IP Address using a web browser.
    can any body clear me who calls the doGet() method of servlet. if it is USER AGENT of web browser, is there any operation executes between
    USER AGENT - DoGet() method of servlet?
    regards
    R
    Message was edited by:
    LoveOpensource

    The servlet is on the server, the browser is on the client, so, do it think it possible (unless the browser is written in Java and does it's browsing with RMI, which is patently absurd) that the browser call doGet()?
    It is rather obvious, that the browser sends an HTTP request to the Application Container (or a web server such as apache which then uses some module to communicate with the Application Container, but the end effect is the same), and that Application Container calls the doGet() method.
    Edit: And man am I slow and "wordy".

  • When I click on phone icon to check who called me, I can't-- details below

    It's bizarre. Instead, when I click the green phone icon, I go into a window as if I'm calling my brother. (It's always this number, one of the few numbers I've called since getting the phone.) Up top is his name, the time 00:00, and the red End button is available to click on. It's as if I'm calling him but the phone doesn't ring, and there's no way to get to the list of who called me, no way to listen to voicemails. If I click the End button up top is reads "call ending..." endlessly.
    I just bought this phone like 2 weeks ago; don't understand. Anybody have any ideas what's going on? Thank you!

    Did you do any of the basic troubleshooting described it the User Guide - restart, reset, restore?

  • No matter who calls me on Skype the caller ID show...

    When someone calls my phone using Skype, the caller ID pops up as one person (my ex gf).  However it always appears as this number no matter who calls me via Skype.  The only commonality I can find is the people calling me are doing so from an International #.  Obviously this is disconcerting to me.  Why is this happening and how can I fix?

    I am getting calls that the ID says are from my name and number, but no msg is ever left and it is not possible for me to call myself like that.  I posted a few days ago about this but never got a reply.

  • My iphone4 disconnecting calls after 3 rings and show these calls as "missed calls" while the person who calls me still hear a dial ring. this started to happend after i upgraded to ios 7.0.4 please advise

    my iphone4 disconnecting calls after 3 rings and show these calls as "missed calls" while the person who calls me still hear a dial ring. this started to happend after i upgraded to ios 7.0.4 please advise
    this is really frustrating since i cant pick up calls with only 3 rings and i always miss them
    i tried to restore like 3-4 times, didnt help
    even tried to set the iphone as a "new iphone" on itunes and it didnt help

    Generally, when going out of the country and using a foreign SIM, carrier files can be changed. Go to Settings>General>About>and look at Carrier? What does it say? You may have to perform a restore. You can try a restore from a backup, that would reinstall the iOS, and would provide the latest AT&T carrier file as well. See if this will fix the problem.

  • Finding out who called on skype phone number

    I have received a few calls from a skype ph no. How do i find out who called. Is there a directory of phone numbers?

    Did you ever find out who it was>? I had a call from this same number from someone i was "internet dating" with and then he just disappears, im trying to locate him.

  • Calling a cfc through a udf

    Is it possible to call a cfc function through a udf, or maybe im just looking at this the wrong way but here is what im ultimately trying to do.
    I have the following table:
    tbl_users
    =====================
    uid                         name
    =====================
    1                         John
    2                         Steve
    3                         Joe
    4                         Bob
    Then throughout the program i am given a few of the uid, and i have to loop through them and get the names, so im trying to figure out a way to make a function so i can call it like this and it checks the db and gives me the name:
    getName(uid) = returns name
    Is there any easy way of doing something like this?

    case 1: user-defined function alone
    <cffunction name="getNameFromId">
        <cfargument name="id" default="1">
        <cfset var selectedUser = "">
        <cfset user = arrayNew(1)>
        <cfset user[1] = "John">
        <cfset user[2] = "Steve">
        <cfset user[3] = "Joe">
        <cfset user[4] = "Bob">
        <cfset selectedUser = user[arguments.id]>
        <cfreturn selectedUser>
    </cffunction>
    <cfoutput>#getNameFromId(3)#</cfoutput>
    case 2: (a) content of CFM page userName.cfm
    <cfset userObject = createobject("component", "User")>
    <cfoutput>#userObject.getNameFromId(2)#</cfoutput>
    <!--- Alternative, using cfinvoke --->
    <!---
    <cfinvoke component="User" method="getNameFromId" returnVariable="userName">
        <cfinvokeargument name="id" value="2">
    </cfinvoke>
    <cfoutput>#userName#</cfoutput>
    --->
    (b) The user-defined function is in a component saved as User.cfc in the same directory as the page userName.cfm
    <cfcomponent displayname="User">
    <cffunction name="getNameFromId">
        <cfargument name="id" default="1">
        <cfset var selectedUser = "">
        <cfset user = arrayNew(1)>
        <cfset user[1] = "John">
        <cfset user[2] = "Steve">
        <cfset user[3] = "Joe">
        <cfset user[4] = "Bob">
        <cfset selectedUser = user[arguments.id]>
        <cfreturn selectedUser>
    </cffunction>
    </cfcomponent>

Maybe you are looking for

  • Looking for a sample of the Flash Export from Encore CS3

    I am close to upgrading to the CS3 Production Premium and one of the features that intrigues me is the Flash export from Encore CS3. I have searched the Adobe site without success for a sample of what an exported project looks like and functions on t

  • IPod Touch not recognised on Windows 8 and will not appear as connected in iTunes.

    Usually when I plug my iPod Touch (4th Gen) into my laptop (Windows 8) it appears automatically on iTunes for me to sync. However, when I tried to do this today, iTunes did not recognise that a device was connected and this was confirmed after I did

  • Stuck with problems and no help

    hi, We are stuck with the following set of problems. Repeated entries to this forum have not fetced any response. If anybody can help us on any of these issues, please reply - 1. We are not able to define any custom validator. We made our own validat

  • Can we hide the 'Create Contract' button in SOCO ?

    Hi SRM Gurus, I'm currently working with SRM_SERVER 500(SAPKIBKS09) release, and I want to know if it's possible to easly hide the "Create Contract" button in Sourcing Cockpit (SOCO) work area. Thx - Rafi.

  • Workflow trigger

    As i m new in abap workflow.....i want to trigger my workflow for sap standard tcode..for eg suppose when new enquire is created in sd one mail should be generate via workflow.....