Retreiving Parameters From The Call Stack

I'm trying to solve the following:
I have a procedure:
procedure widget1(parm1 in varchar2)
which calls:
procedure widget2;
Is there any way that widget 2 can look at a call stack to find out the value of parm1 that was passed to widget 2? If so, how?
Effectively, widget1 is a procedure invoked by oracle application server, and widget2 is a generic error handler that should log the function that was called and the values of the paramters that were provided. I can get the function off the FORMAT_CALL_STACK routine, but I don't know how/where to find the parameter values.

Hi,
You can use SY_CPROG -  caller in external procedures, bye using this u can get the progam name.
Regards,
kavitha.k

Similar Messages

  • How to get the report name from the call stack

    Hi,
    I have a question about how to get the caller information dynamically in a function module.
    For example.
    ZGET_CALLER_INFORAMTION,
    get the caller name -- how ??
    Thanks in advance
    Best Regards,
    Johnney

    Hi,
    You can use SY_CPROG -  caller in external procedures, bye using this u can get the progam name.
    Regards,
    kavitha.k

  • Moving a method down the call stack

    This is partially a blazeds question as well, which I have already inquired about there.
    My situation is that I have a consumer.subscribe followed by the rpc, followed by the consumer expected to handle the results of the rpc.  What seems to be happening is a race condition between the subscribe and the rpc call - with the results being returned back before some of teh consumers have finished subscribing.  This is all being handled in one method.  For the most part, it needs to be encapsulated like this because we're using the parsley IoC container.  By creating a new context on a button click, it automatically instantiates and initalizes the consumers.  A retrievedataevent is then fired straight away.
    Is there anyway around this?  I noticed that if i create a Timer and set it to 1 millisecond, it somehow fixes itself.  Does timer somehow drop the current method down the callstack?  Or deprioritize it?
    Thanks in advance.  I'm banging my head against the wall here

    This is the way that Aperture works by design - you just need to get comfortable with album picks, every album can have a different album pick from the same stack, it will be the image that shows up at when the stack is closed.
    These may help
    [Aperture Organization|http://photo.rwboyer.com/2008/07/apple-aperture-21-organization>
    [Aperture Stacks and Albums|http://photo.rwboyer.com/2008/09/aperture-2-organization-tip-more-on-sta cks-and-albums>
    [Aperture Album picks and image versions|http://photo.rwboyer.com/2008/12/aperture-2-quick-tip-album-picks-and- image-versions>
    Maybe even this that explains how Aperture stacks work vs. Lightroom stacks
    [Aperture vs Lightroom stacks|http://photo.rwboyer.com/2008/10/aperture2-vs-lightroom2-stacks>
    RB

  • How to print the call stack of a thread?

    I would like to print out the call stack of a thread, something that looks like the output of pstack.
    From within the thread itself, I suppose I can fork1() to duplicate the thread and fork another process to run pstack on the duplicated thread.
    I would much rather use some api to print out the stack directly. Any pointer would be appreciated.

    Hi,
    The code below will do what you want.
    All that needs to be done is to call csprintstack() from within
    your application. Remember to link in the dynamic linking library,
    libdl.so, as dynamic library functions are used.
    Cheers.
    Jon Haslam<br>
    Developer Technical Support<br>
    Sun Microsystems<br>
    <pre>
    #include <ucontext.h>
    #include <sys/frame.h>
    #include <dlfcn.h>
    #include <setjmp.h>
    #include <sys/procfs_isa.h>
    #include <stdio.h>
    #if defined(sparc) || defined(__sparc)
    #define FRAME_PTR_REGISTER REG_SP
    #endif
    #if defined(i386) || defined(__i386)
    #define FRAME_PTR_REGISTER EBP
    #endif
    struct frame *
    csgetframeptr()
    ucontext_t u;
    (void) getcontext(&u);
    return (((struct frame *)
    u.uc_mcontext.gregs[FRAME_PTR_REGISTER])->fr_savfp);
    void
    cswalkstack(struct frame * fp, int (*operate_func)(void *, void *),
    void * usrarg)
    void * savpc;
    struct frame * savfp;
    while (fp &&
    (savpc = (void*)fp->fr_savpc) &&
    (*operate_func)(savpc, usrarg) == 0) {
    fp = fp->fr_savfp;
    static int
    csprintaddress(void pc, void usrarg)
    Dl_info info;
    char * func;
    char * lib;
    if(dladdr(pc, & info) == 0) {
    func = "??";
    lib = "??";
    else {
    lib = (char *) info.dli_fname;
    func = (char *) info.dli_sname;
    fprintf((FILE *) usrarg,
    "%s:%s+0x%x\n",
    lib,
    func,
    (unsigned int)pc - (unsigned int)info.dli_saddr);
    return(0);
    void
    csprintstack(FILE * f)
    cswalkstack(csgetframeptr(), csprintaddress, (void *) f);
    </pre>

  • Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

    Hi,
    I am trying to run a long running process, by redirecting to the LongRunningView using the code below. But its throwing exception Can anyone please help
    string strCurrentUrl = SPUtility.OriginalServerRelativeRequestPath;
    strCurrentUrl = strCurrentUrl + "?ListName=" + strListName;
    ////Initiates the Excel Import
    if (ObjdtExcel != null && ObjdtExcel.Rows.Count > 0)
    ExcelImportJob objJob = new ExcelImportJob(strTabName, ObjdtExcel, strFileExt, SPContext.Current.Site.ID, SPContext.Current.Web.ID, strWorkflow, strListName);
    objJob.Title = "Excel Import Job";
    //// Redirect the user to another page when finished.
    objJob.RedirectWhenFinished = false;
    //// Specify if the user can cancel this.
    objJob.UserCanCancel = false;
    //// Specify the refresh rate of the job, here, the page polls every 5 seconds for completion.
    objJob.MillisecondsToWaitForFinish = 15000;
    //// Finally, start the job on a web.
    objJob.Start(SPContext.Current.Web);
    string strUrl = string.Format("{0}?JobId={1}&Source={2}", PROGRESS_PAGE_URL, objJob.JobId, strCurrentUrl);
    SPUtility.Redirect(strUrl, SPRedirectFlags.Default, HttpContext.Current);
    The exception being "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
    Arjun Menon U.K

    Hi Arjun,
    Any update?
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • When I am on a call in my car I can play and hear the music on my iPhone but when I hang up from the call the music reverts back to my iPhone speaker.

    when I am on a phone call in my car I can play and hear my iPhone music thru the car speakers but when I hang up from the call, the sound reverts to my iPhone speaker and longer plays thru the car speaker.

    Hello, Jordanali. 
    Thank you for visiting Apple Support Communities. 
    I understand that your car will not resume playing music after accepting a call.  Here is a troubleshooting article that I would recommend going through when experiencing this issue.   
    Get help using your iPhone, iPad, or iPod touch with your car stereo
    http://support.apple.com/en-us/HT203412
    Cheers,
    Jason H.

  • Getting the call stack up to a certain location.

    Dear friends,
    I am searching for a function or method that can give me
    the call stack(like in debug mode).
    If you know of a function that provides this information
    please let me know, its very urgent.
    Thanks in advance,
    Eitan Illuz.

    Hello Eli
    You may have a look at thread:
    [Get the name of a function module within a function module|Get the name of a function module within a function module;
    Sample coding to retrieve the calling function module:
    data:
      lt_callstack TYPE abap_callstack.
    CALL FUNCTION 'SYSTEM_CALLSTACK'
      IMPORTING
        callstack = lt_callstack.
    READ TABLE lt_callstack
      WITH KEY blocktype = 'FUNCTION'
        blockname = 'CRM_ORDER_COPY_SINGLE_OW'
      TRANSPORTING NO FIELDS.
    CHECK sy-subrc NE 0.
    Reference: [http://martins.de/call_stack_lesen.html]
    Regards
      Uwe

  • Accessing objects in the Call Stack

    Hi all,
    is there any way to access in your ABAP program, objects in the previous levels of the call stack (the way we can display them in the debugger using the (program)object syntax).
    Thanks,
    Z

    I got the solution.
    I tried out the (program)object syntax with different kinds of statements.
    The one with field-symbols works:
      ASSIGN ('(ZTESTPROGRAM)LS_OBJ') TO <fs>.
    Where ZTESTPROGRAM contains the object LS_OBJ

  • How to retreive String from the Connection object

    hi all,
    I am using HttpConnection to Connect to the server.I want to retreive string from the Connection.
    As like Connection.openInputStream() is there any method to get the String from the connection.In the server side also i want to send the String not the stream .
    Thanks in advance
    lakshman

    Just read the string from the stream.

  • How to Remove the appropriate extent parameters from the command

    Hi friends
    I am altering one B-tree index
    alter index employees_last_name_idx storage(next 400k maxextents 100);
    I am getting error
    Ora-25150:-Remove the appropriate extent parameters from the command
    How I can remove it
    Plz help me
    Best regards
    Raza
    Edited by: user8021439 on Dec 8, 2009 1:35 AM

    If the tablespace has been created with EXTENT MANAGEMENT LOCAL UNIFORM or EXTENT MANAGEMENT LOCAL AUTOALLOCATE, you cannot change the NEXT and MAXEXTENTS parameters of segments (tables or indexes) after having created them.
    Check the tablespace parameters in DBA_TABLESPACES for the tablespace that index has been created in.
    Why do you want to change those parameters anwyay ? Such changes were sometimes used in Tablespaces that are Dictionary Managed -- pre 8i/9i
    Hemant K Chitale

  • Get the parameters from the URL

    Hi all,
    In my applet I need to know the parameters that are in the URL. But I don't know how to do this.
    I started with this:
    String URL=getDocumentBase().toString();So URL has the full url, like: http://127.0.0.1./test.html?Testparam1=hello
    What I could think of is to use :
    int i = URL.getindexof("?Testparam1");
    String value =URL.substring(i);But that is not very handy when using more parameters.
    Is there an other way to get the parameters from the URL?

    You could use a regex or a StringTokenizer, but I'll bet there's a library somewhere that'll do it for you. Probably something in Apache Jakarta Commons. As far as I know there's nothing in the standard library that'll fully parse query strings for you, although you can use java.net.URLDecoder to decode the url-encoding (the %xx encoding).
    If you don't want to find a specialized library, then probably a regular expression is the easiest approach.

  • Has anyone had trouble with the LG 3 Cosmos when a call comes in; I am not able to hear from the caller, but, they can hear me?  The volumn is turned up but I can't seem to resolve the issue?  Thanks

    Has anyone had trouble with the LG 3 Cosmos when a call comes in; I am not able to hear from the caller, but, they can hear me?  The volumn is turned up but I can't seem to resolve the issue?  Thanks

    Oh no, Robinbird18! This is not what we like to hear about your cell phone. It makes it pretty hard to have a conversation with someone when you can't hear them. If you make a phone call out are you able to have a conversation with someone without any issues? How long has this been going on? Have you tried to use the phone on speaker phone to see if that works at all? Please keep us posted.   KevinR_VZW Follow us on Twitter @VZWSupport If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • How to access Dynamic Region parameters  from a called taskflow?

    HI,
    i have i dynamic region embedded into a page.
    The region points to a bounded task flow. I want to pass parameters to the taskflow and doing that by specifying region params.
    <taskFlow id="dynamicRegion1" taskFlowId="${test.dynamicTaskFlowId}"
    xmlns="http://xmlns.oracle.com/adf/controller/binding">
    <parameters>
    <parameter id="inputParameter0" value="#{backing.comp1.value}"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"/>
    </parameters>
    </taskFlow>
    But for me is not clear, how can i acces them from a taskflow that i called (to which points region)
    Regards,
    Krasimir

    Hi,
    check out my blog http://biemond.blogspot.com there are some examples even about dymanic region and refreshing region
    Edwin

  • How does we store messageId from the caller.

    Hi,
    I have service call pattern like : A->B->C->D->E->F->A . The second call to A from F should be for the same instance of A that called B initially. Normally we achieve this using correlations in SOA 11g Bpel. (Where B,C,E,F services are OSB Proxy/Business request/response Services and D is a external decision service.)
    I know that we can copy the soap header variable's contents(like replyTo) from initial call A till all way to D. How can we copy the message Id ?
    I tried doing <wsa:MessageId>$header/wsa:MessageId</MessageId> while routing from B(proxy) to C(business svc) where $header is soap header of A's initial call.
    But the problem is $header/wsa:MessageId is just being considered the the text "$header/wsa:MessageId" and not actually returning their value.
    Appreciate if someone call help me here.
    Thanks and Regards,
    Sri.

    Posted the question in SOA Suite forum. Sorry for spamming here . I am not sure how to move the thread.

  • Missing some error messages from the error stack

    Hi all,
    We use some PL/SQL code to load data in to the database.
    One value was to large for a column.
    I got the errors below, but there are some messages missing from the alert file and from the trace file.
    Error messages:
    ORA-06502: PL/SQL: numeric or value error
    ORA-01401: inserted value too large for column
    That's it, noting else. I can't see anything else in the alert log either.
    No trace files either.
    Can someone please explain to me why am i missing the rest of the error stack, like the column name where the issue occurs?
    Thanks.

    Peter,
    No your code won't work the same in 10g as it would in 9i and earlier. The -1401 exception is not secretly catching -12899 now. So that means it could be an upgrade issue: you'd have to manually change the code when upgrading to 10.
    Here is a little test on 10.2.0.1:
    SQL> create table t
      2  ( id number(2)
      3  , name varchar2(2)
      4  )
      5  /
    Tabel is aangemaakt.
    SQL> declare
      2    my_exception exception;
      3    pragma exception_init(my_exception,-1401);
      4  begin
      5    insert into t values (99,'AAA');
      6  exception
      7  when my_exception then
      8    dbms_output.put_line('my error message');
      9  end;
    10  /
    declare
    FOUT in regel 1:
    .ORA-12899: waarde te groot voor kolom "RWIJK"."T"."NAME" (huidige waarde: 3, maximumwaarde: 2)
    ORA-06512: in regel 5Regards,
    Rob.

Maybe you are looking for

  • Cannot access pdf document with other software

    hello had someone design something for my business they used adobe photoshop and the commercial printer cannot pull it off the cd to print it. I assume they are using differant software. Does anyone know how to fix this?

  • Non Domain Computers Becoming Master Browser

    Hello, I am troubleshooting an issue with the master browser service when an external user connects his workgroup laptop to our domain network and wins the election. The network consists of a domain controller which has the following registry setting

  • No orageneric9 in java.library.path on Win2000

    I have installed Instant Client on Win2000 by creating a directory, unzipping the archive to it, and adding it to my path. I get an UnsatisfiedLinkError when I try to connect to the database. "Exception in thread "main" java.lang.UnsatisfiedLinkError

  • Looping a movie in Encore

    How do I create an automatic loop for a DVD I want to show play over and over in Encore? thanks for your help! 

  • Check DB Error in BW system

    Hello All, Check DB job ends with following error Microsoft SQL Server  2000 - 8.00.2282 (Intel X86)      Dec 30 2008 02:22:41      Copyright (c) 1988-2003 Microsoft Corporation      Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2) M