Re: Method name and/or line number available from withinForte?

To my knowledge there is no such capability with forte, and for sure it
would be nice. Short
of storing all that metadata at runtime, a compile-time substitution such
as is done with
most C preprocessors would work as well.
However, I believe the solution you've identified falls short in a deployed
fashion - I think
all that method name/line number stuff is only available from the workshop...
-J
At 02:54 PM 10/27/98 -0600, [email protected] wrote:
I'm sure this question has been asked many times, but I don't know that I've
ever heard the answer. Is there any way from Forte to access the method
name of the currently executing method? What about the current line number?
I'm sure you all know what I'm getting at by now -- when raising your own
custom exceptions or logging messages we'd like to be able to not hard-code
method names and line numbers into them. I know these are available with
log flags so this information is stored somewhere -- is there an API to
access it on an agent, the task, or the environment? The only way I can
think of doing this (which is not-so-elegant) is to force a Forte exception
to be raised (like access a method on a null TextData or something), then
immediately catch it and extract the method and line number from it. Is
there a more elegant way?
-J.C.
J.C. Hamlin, Senior Consultant, Forte National Practice
Born Information Services Group, Wayzata, MN
Ph: (612) 404-4000 Ph2: (612) 783-8270 FAX: (612) 404-4441
<[email protected]> <[email protected]>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>**************************************
John L. Jamison
Vice President and Chief Technology Officer
Sage IT Partners, Inc.
415 392 7243 x 306
[email protected]
The Leaders in Internet Enabled Business Change
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Method task.TraceBack () returns a string suitable for shoving on the error
stack, and representing a call trace. The method
method TomW_RaiseException.RaiseException
begin
ge : GenericException = New ();
ge.SetWithParams (SP_ER_USER, task.TraceBack ());
task.ErrorMgr.AddError (ge);
Raise ge;
end method;
produces the following when called from the display method of the window in
which it is embedded.
USER ERROR:
Traceback:
TomW_RaiseException.RaiseException at line 2
TomW_RaiseException.Display at line 4
TomW_RaiseException. at offset 13
C++ Method(s)
UserApp.Run at offset 96
Class: qqsp_Exception
Last TOOL statement: method TomW_RaiseException.RaiseException, line 3
Error Time: Wed Oct 28 08:28:34
Exception occurred (locally) on partition "TomW_Test_CL0_Client",
(partitionId = AA6475E0-3DD2-11D2-B582-04228BFFAA77:0x117f:0x6,
taskId =
[AA6475E0-3DD2-11D2-B582-04228BFFAA77:0x117f:0x6.34]) in application
"FTLaunch_cl0", pid 195 on node SPNMXSHOP7 in environment SFDEVL.
I suppose that a sufficiently determined person could parse the results of
TraceBack () and extract the
method and line from it. But I know of no method that explicitly returns
the name of the calling method.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Similar Messages

  • About package name and transport request number

    Hello Gurus,
            I know when doing some changes in the sap bw system, and performing activation subsequently , you are prompted to save the changes into some package and transport request. my question is:
            in the real project, where does those package name and transport request number come from?   make up by myself or provided by project management, or someone else?  if doing by youself, how to make up package name and transport request number ?
    Many thanks.

    package is like a folder in windows.. u create package for a project and than collect all the relevant transports in it.
    to create package u use SE80.. Transport req number are configured by basis team.. its usually source system ID and running serial number...
    package name can be decided by tech architect or by ur team manager..

  • Report GL Account Line Item with vendor name and VAT registration number

    Hi,
    Is there any standard SAP report/inquiry for GL Account Line Item like FBL3N, with information vendor name and VAT Registration Number (field STCEG) without using ABAP.
    Thanks.

    Hi,
    We can get purchase register through T.Code: 'J1I2' by specifying condition types and tax codes.
    We can't get 100% report from this T.Code.
    Check it once.
    Regards,
    Padmaja N.

  • HT4489 I am trying to import vcards, they are very simple - a name and contact phone number.  No pic, no ancillary information, but I get an error then directed to this completely unhelpful page.  The vcards are standard exports from another phone.

    I am trying to import vcards, they are very simple - a name and contact phone number.  No pic, no ancillary information, but I get an error then directed to this completely unhelpful page.  The vcards are standard exports from another phone.

    Try creating the vCard with the app My Contacts Backup, email it to yourself, then open it on your phone and tap the attachment to import the contacts.

  • How to read line number text from PDF using plugin?

    Hi, I would like to know how to read line number text from PDF using plugin?
    Thanks in advance.

    Ok, some background reading of the PDF Reference will help you understand why this is so difficult. PDF files are not organised into lines. It is best to think of each word or character on the page as being a graphic with its own position. The human eye sees lines where a series of graphics (words) are roughly in the same horizontal region.
    In the general case it is difficult or even impossible to answer this. You may have columns with different spacing (but the PDF stores no information on what is a column). You may have subscripts and superscripts. You may have text in graphics coinciding with other text. Commonly, there may be titles, headings or page numbers which are just ordinary text and might count as lines.
    That said, what you need to do is extract the text on the page and its positions. The WordFinder APIs are the way to do that. Now, sort all the words out, using the Y coordinates and size to try and guess what makes a "line". Now you are in a position to find the text (divided into words, not strings) and report the "line number" you have estimated.

  • How do I find the report server name, and then run paper report from forms?

    How do I find the report server name, and then run paper report from forms?
    I am having a problem running report 9i from forms 9i (see below thread). How do I find out the name of the report server? I checked my C:\ids\reports\conf directory but don't see anything that gives me the name of the reports server. I also don't have a iashome directory.
    Also, I just want to run the paper report (not the web version).
    Thanks.

    Hi,
    please read teh Forms / Reports integration paper in teh Collateral section for Oracle9i Forms at otn.oracle.com/products/forms
    In summary, you have to create an external Reports Service that you can then give a name.
    Frank

  • Show the object and the line number, where the error happens in Forms

    Hi!
    Al lot of our programmer use the ugly when others clause to raise messages like "error <sqlcode> happens in ....". Often this hides the really error in some underlying procedures. Is it possible to call the error stack from forms like in 10g database dbms_utility.format_error_backtrace? Actually FRM-40735 hides all this information. This should be work for client and database pl/sql errors!
    With kind regards

    First of all, send every programmer in your organization a message to STOP doing that. I am afraid there is nothing you can do when you have to call some stupid code from your form that contains the when others then... sequence.
    Below is an email I sent out just two months ago. I'll share it with you:
    Hi _______,
    I looked over the _________ package to try to determine why it was so difficult to find the source of the problem. The problem was that the line number reported when the job failed was line 326, which is the Raise command at the end of the __xyz__ procedure.
    When someone writes:
          exception when others then raise;it causes line number reporting to fail when an unexpected Oracle error is encountered. Furthermore, the line does absolutely no good, because Oracle will automatically raise unhandled errors without that code.
    The only thing that code does is cause problems when someone looks for the source of a failure. Without that code, job failures can be located in just a few minutes.
    That same code sequence is repeated three times in the _________ package. The problem may also exist in the __abc___... functions that the _______.lookup_xxxl function calls, since no line numbers were reported from there, either. It would be very helpful if you would remove the problem code, and PLEASE instruct everyone on your staff to never use that sequence anywhere.
    - - - - - - - - - - - - - - - - - - - - - - end of email - - - - - - - - - - - - - - - - - - - - - -
    Now, in addition, you can trap FRM-40735 in your on-error trigger and then display the message found in DBMS_ERROR_TEXT. In fact, you might try the format_error_backtrace from there, too.

  • I want to ask why my invoice lost header title..in my mac i can see my invoice title..but when i open file lost my office name and address on number

    my invoice got my company name and address..when i see in my macbook can see the title..but when i open file to edit lost my title.many customer ask me why..
    i just know lost title.i did't change other setting in my number..hope can gv me answer..last week i use still ok..now lost it.

    Possible problem: You designed the invoice using Numbers '09 but you are now editing it in Numbers 3.  The company name and address are in a page header or footer, something Numbers 3 does not have so it deletes it from the document.
    Possible solution: Return to using Numbers '09.  It should still be in the Applications forlder on your computer.
    Another Possible Solution: Use a text box for your company name and address.
    If you are trying to use Numbers 3, you might want to see if your invoice will print correctly (with or without the company name and address)

  • Oracle SQL Developer and Errors (Line Number Incorrect)

    First, I wanted to state that Oracle SQL Developer 2 is a standout job.
    I wanted to report, though, that when Oracle SQL Developer 2 can't compile a block of code or a simple SQL statement has invalid syntax, it does not have an option to accurately go to the line of code in question. GOING TO the erroneous line of code doesn't need to be a feature, but often times the line no. REPORTED by Oracle SQL Developer is incorrect by 50+ lines.
    Is this something I could fix on my end? I have five other developers griping about this.
    Thank you!

    I don't know if this is the situation you are talking about, but line numbers for errors in SQL in a SQL Worksheet are not line numbers within the statement but rather line numbers in the worksheet. For example, with the following SQL in the worksheet:
    select * from dual;
    select * from dual;
    select * from dual;
    select from dual;Running the "select from dual;" statement (as either statement based on cursor position, selected statement or as script), the error is reported on Line 4, Column 7. As I show line numbers (Tools | Preferences | Code Editor | Line Gutter | Show Line Numbers), this makes sense. Without line numbers showing or having the option to go to the error and with more realistic examples with SQL statements scrolling off the page, I can see that the line number in the errors wouldn't be helpful.
    I think -K- is talking about the PL/SQL code editors not reporting the correct line number based on the error line not counting the "create or replace" line at the start of a package (and more for triggers).
    theFurryOne

  • Server proxy method name and interface operation name

    Hi all,
    I have successfully used inbound server proxies on several occasions.  Each time, without thinking about it, I took the default option where the OPERATION name == the SERVICE INTERFACE name.  When the proxy is generated, the ABAP method is the OPERATION name and everything works nicely.
    This time however, I tried something different and built a service interface (PMNotification, as example) with the operation name 'Create', thinking that I could also have a second operation 'Update' (for example).  The ABAP proxy method then becomes CREATE, but I then get 'NO IMPLEMENTING CLASS....' errors. If I change the operation name to match the interface name and regenerate, everything works again.
    SO, my question is this : Is is true that the OPERATION name MUST equal the INTERFACE name for an inbound server proxy ??
    If this is the case, then a (inbound) service interface can only have one operation; this doesn't seem right.
    Looking forward to any insight.
    Guy

    If this is the case, then a (inbound) service interface can only have one operation; this doesn't seem right.
    Open your service interface in ESR and press F7....if the proxy cannot be generated you would probably get an information on this....inbound SI can have multiple operations but then it seems to be a limitation in case of proxy.
    Also if your operations have different types of messages (combinations of message type and external definitions etc) then you face such limitations.
    Some reference from Michal's blog: The specified item was not found.
    Now the method that you need to call from to send an ABAP Proxy message has exactly the same name as a method
    inside the Service Interface objects in Enterprise Service Repository (ESR is a successor of Integration Repository - IR) like
    shown in the picture below:
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jan 17, 2011 10:08 AM

  • Method names and transactions

    I'm having several problems with transactions using WLS 6.0
              I believe I have isolated it to the name of the method.
              I have a Session bean method called removePerson() and another one called
              deletePerson()
              My descriptor is below:
              <container-transaction>
              <method>
              <ejb-name>PersonService</ejb-name>
              <method-intf>Remote</method-intf>
              <method-name>*</method-name>
              </method>
              <trans-attribute>Required</trans-attribute>
              </container-transaction>
              When I invoke these methods I can see my transaction count increase when I
              invoke the deletePerson method
              However, when I invoke the removePerson method the transaction count does
              nothing. Both method do the nothing except
              immediately return.
              Am I missing something ???
              I have looked for some type of method name restrictions but I have not found
              any for the remote interface that would lead me to
              understand why this occurs.
              

    Thanks Rob,
              I added the parm and re-ran the test
              Here is the weblogic.log file
              "Rob Woollen" <[email protected]> wrote in message
              news:[email protected]...
              > Can you add -Dweblogic.ejb.deployer.debug to the server start-up and post
              the
              > debug messages here?
              >
              > -- Rob
              >
              > Ed Lorenz wrote:
              >
              > > I'm having several problems with transactions using WLS 6.0
              > > I believe I have isolated it to the name of the method.
              > > I have a Session bean method called removePerson() and another one
              called
              > > deletePerson()
              > > My descriptor is below:
              > > <container-transaction>
              > > <method>
              > > <ejb-name>PersonService</ejb-name>
              > > <method-intf>Remote</method-intf>
              > > <method-name>*</method-name>
              > > </method>
              > > <trans-attribute>Required</trans-attribute>
              > > </container-transaction>
              > >
              > > When I invoke these methods I can see my transaction count increase when
              I
              > > invoke the deletePerson method
              > > However, when I invoke the removePerson method the transaction count
              does
              > > nothing. Both method do the nothing except
              > > immediately return.
              > >
              > > Am I missing something ???
              > > I have looked for some type of method name restrictions but I have not
              found
              > > any for the remote interface that would lead me to
              > > understand why this occurs.
              >
              [weblogic.log]
              

  • What is MS SQL DB host name and DB port number ?

    i just installed HP quality center and ms sql 2008.Now hp quality center need to connect to my my ms sql database its asking me for database host name and data base port number.please help me out how can i find that.
    Thanks

    Click Start >> Run
    For SQL Server 2005 Type "SQLServerManager.msc" and click OK
    For SQL Server 2008 Type "SQLServerManager10.msc" and click OK
    This will Open the SQL Server Configuration Manager for you.
    Now in the Left Pane, expand "SQL Server Network Configuration" and click on "Protocols for <InstanceName>"
    Now In the right pane, right-click on the "TCP/IP" protocol and go to properties - In the bottom there is TCP port - 1433(This is default) if your sql instance is other than default it will be dynamic port.
    For host name RUN>>CMD>hostname>> this will provide host name of the server.

  • Reading MS Project column names and data on the fly from a selected View

    Hi guys,
    I have several views on my project file (MSPROJECT 2010) and I want to build a macro so that;
    1. User can select any view ( Views can have diffrent columns and the user may add new columns as well)
    2. User runs the Macro and all the coulmns along with the tasks displayed in the view will be written to a excel file. ( I don't want to build several macro's for each view, I'm thinking of a common method which would work for any selected view)
    The problem I'm facing is that how will i read the column names and data for a particular view on the fly without hard coding them inside the vba code ?
    The solution needs to work on a master schedule as well.
    Appreciate your feedback.

    Just to get you started the following code writes the field name and data for the active task to the Immediate window.
    Sub CopyData()
    Dim fld As TableField
    For Each fld In ActiveProject.TaskTables(ActiveProject.CurrentTable).TableFields
    If fld.Field >= 0 Then
    Debug.Print Application.FieldConstantToFieldName(fld.Field), ActiveCell.Task.GetField(fld.Field)
    End If
    Next fld
    End Sub
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Why the list of known errors and patches is not available from BEA (or maybe it is)

    If there is some page on beasys where one can check what patches for
    Tuxedo are available and what errors do they correct, please refer me to
    it and ignore the rest of this letter. But as far as I know, there is no
    such a page.
    During recent years a couple of times I or my colleagues had such a
    experience:
    - while testing our Tuxedo based software we observe some problems/errors
    - we spend some time (from a few hours to more than a week) to diagnose
    the problem, find that it is related to Tuxedo, create the problem
    description and contact support
    - the support replies that the bug is known and we can download the
    patch from some ftp (valid for 1-2 days)
    Why can't we just check whether there are known problems for our
    platform and patches we need for it before we face them? Why every
    customer must independently face the same problem? Why even the
    information what is the newest patchlevel currently available is not
    accessible publically?

    Hello,
    Please try using the following option at the BEA Website:
    Services-->Customer Support-->WebSUPPORT
    HTH
    rgds
    MS

  • How to find proc/func name from package name and line number?

    Hi,
    We are using the pl/sql call stack dump (dbms_utility.format_call_stack) for some debugging purposes. But in the case of a package body execution, the dump does not return the name of the procedure/function that is being executed, but only the name of the package and the line number being executed. So, we have a requirement wherein we need to extract the type and name of a package subunit from the package name and line number.
    e.g.
    From the information package 'A', line number 739
    we should be able to deduce that line 739 is a part of *'function A.f'*
    Does the oracle database provide any native mechanism (PL/SQL packages or otherwise) to support such functionality? If it does not, how can we achieve the desired result?
    Thanks in advance,
    Shashank

    The approach we are currently planning to take up is this :
    1. Write PL/SQL code to parse the entire source (user_source) and build a database table with a structure like this :
    PACKAGE_NAME | UNIT_TYPE | UNIT_NAME | START_LINE | END_LINE
    =============================================
    A | PROCEDURE | P1 | 20 | 345
    A | FUNCTION | F1 | 347 | 629
    etc..
    2. Start PL/SQL package execution.
    3. Keep dumping call stack snapshots whenever a custom debug procedure is called.
    4. Dump the package name and line number to a log file.
    5. Using the package name and line number, query the table built in step 1 and build the final report which shows the control flow in a readable form.
    What we want is to get rid of step 5 and by some means get the logic to extract the unit type and name in step 4 itself.
    Keep them coming..
    Thanks and regards,
    Shashank

Maybe you are looking for

  • Data Back Up Plan

    Hi, My internal hard drive, 320 GB, 'fully loaded', on my 2 year old imac crashed 10 days ago. Since I had the extended warranty, the 'local' Apple store replaced the internal drive within hours at no charge and even loaded Snow Leopard and iLife. Wi

  • Is it possible to do two online requests in single button on click?

    Hi Experts,    I am developing an app with oracle function that procedure is in this link in Hybrid application SMP2.3.    http://scn.sap.com/thread/3543528     upto this is working fine.   In this i am login with username and password that is checki

  • Cannot Create a new ToDo...iCal freezes, and Calendars do not appear anymor

    Hi. In iCal, I have recently tried to create a new ToDo, and when I do, iCal freezes, I have to ForceQuit iCal, and the next time I open iCal, my calendars no longer appear in the left as they normally do. Someone suggested deleting the file for iCal

  • Spyder pro, spyder elite or eye one display 2

    hello folks, i have a macbook pro5,3 with the glossy screen and editing with Aperture 3. i'm wondering which brand works best for the macbook pro or the most "mac friendly". i'm willing to spend the $200 for either the spyder elite or the eye one dis

  • "Error occuredduring submit process, unknown failure"

    I have adobe 9.1.3 and have tried downloading a locked document from my school. However I just got this message and my school says it is something to do with adobe. I did not purchase the product so I can not get any support. I need help!! Thanks