How can we generate a Traceback?

When raising an exception, it is often useful to know which line of code
executed before the exception was raised. i.e., the message-send stack,
the Forte equivalent to a Smalltalk "walkback" window. We know such a
thing is possible because Forte generates one when you send a message to
the NIL object (see attachment). However, in our own code, Forte merely
recounts the line of code which raised our exception - not necessarily
useful.
Does anyone know how to make Forte print the Traceback, in a clean way?
That is, other than intentionally generating a run-time error such as
sending a message to NIL? Setting the severity level on the exception
makes no difference. Nor does using one of Forte's "System" exceptions
seem to help.
Example of a Traceback:
Note: "CastingTest.Levels at line 1" is the actual "culprit" code
=============================================
EagleOperationsMgr:Security
SYSTEM ERROR: Trying to invoke a method on a NIL object (qqsp_String,
55).
Traceback:
CastingTest.AbstractInstantiationTest at line 2
CastingTest.Levels at line 1
C++ Method(s)
InterfaceManager.RunRunner at offset 102
Class: qqos_SystemException
Error #: [901, 60]
Detected at: qqin_Interpret at 10
Last TOOL statement: method CastingTest.AbstractInstantiationTest,
line 2
Error Time: Tue Feb 25 12:36:06
Exception occurred (locally) on partition "Forte_cl0_Client",
(partitionId
= 732D9D45-3D64-11D0-BC65-4A0594FDAA77:0x14dc:0x1, taskId =
[732D9D45-3D64-11D0-BC65-4A0594FDAA77:0x14dc:0x1.4]) in
application
"Forte_cl0", pid 155 on node W133637 in environment EagleDev.
Example of a User-Generated SystemException - no Traceback:
Note: CastingTest.Levels at line 1 is not mentioned - difficult to debug
=============================================
EagleOperationsMgr:Security
USER ERROR: abc
Class: qqos_SystemException
Last TOOL statement: method CastingTest.ExceptionTest, line 4
Error Time: Tue Feb 25 12:39:45
Exception occurred (locally) on partition "Forte_cl0_Client",
(partitionId
= 732D9D45-3D64-11D0-BC65-4A0594FDAA77:0x14dc:0x1, taskId =
[732D9D45-3D64-11D0-BC65-4A0594FDAA77:0x14dc:0x1.4]) in
application
"Forte_cl0", pid 155 on node W133637 in environment EagleDev.

Why not
task.errormgr.showerrors(TRUE);
or am I missing something?
[email protected] writes:
> Francis Blesso/BOSTON/PART/CSC
> 02/25/97 08:01 PM
>
> In order to generate a traceback cleanly, I belive you'll have to wait
> until Forte release 3.
> The taskhandle class will have a method which returns a TextData object
> describing the
> stack trace.
>
> I've used the same trick of invoking a method on a nil object but only
> temporarily. Its ugly
> and makes it hard to handle the intended exception.
>
> If suppose you could also run your project from the debugger view the
> task's call
> stack once the exception is raised.
>
>
> Francis Blesso
>
> CSC Consulting and Systems Integration.
> [email protected]
>
> ///////////////////////////////////////////////////////////////////////////
> ///////////////
>
> When raising an exception, it is often useful to know which line of code
> executed before the exception was raised. i.e., the message-send stack,
> the Forte equivalent to a Smalltalk "walkback" window. We know such a
> thing is possible because Forte generates one when you send a message to
> the NIL object (see attachment). However, in our own code, Forte merely
> recounts the line of code which raised our exception - not necessarily
> useful.
>
> Does anyone know how to make Forte print the Traceback, in a clean way?
> That is, other than intentionally generating a run-time error such as
> sending a message to NIL? Setting the severity level on the exception
> makes no difference. Nor does using one of Forte's "System" exceptions
> seem to help.
>
>
>
> Example of a Traceback:
> Note: "CastingTest.Levels at line 1" is the actual "culprit" code
> =============================================
> EagleOperationsMgr:Security
> SYSTEM ERROR: Trying to invoke a method on a NIL object (qqsp_String,
> 55).
> Traceback:
> CastingTest.AbstractInstantiationTest at line 2
> CastingTest.Levels at line 1
> C++ Method(s)
> InterfaceManager.RunRunner at offset 102
>
> Class: qqos_SystemException
> Error #: [901, 60]
> Detected at: qqin_Interpret at 10
> Last TOOL statement: method CastingTest.AbstractInstantiationTest,
> line 2
> Error Time: Tue Feb 25 12:36:06
> Exception occurred (locally) on partition "Forte_cl0_Client",
> (partitionId
> = 732D9D45-3D64-11D0-BC65-4A0594FDAA77:0x14dc:0x1, taskId =
> [732D9D45-3D64-11D0-BC65-4A0594FDAA77:0x14dc:0x1.4]) in
> application
> "Forte_cl0", pid 155 on node W133637 in environment EagleDev.
>
>
> Example of a User-Generated SystemException - no Traceback:
> Note: CastingTest.Levels at line 1 is not mentioned - difficult to debug
> =============================================
> EagleOperationsMgr:Security
> USER ERROR: abc
> Class: qqos_SystemException
> Last TOOL statement: method CastingTest.ExceptionTest, line 4
> Error Time: Tue Feb 25 12:39:45
> Exception occurred (locally) on partition "Forte_cl0_Client",
> (partitionId
> = 732D9D45-3D64-11D0-BC65-4A0594FDAA77:0x14dc:0x1, taskId =
> [732D9D45-3D64-11D0-BC65-4A0594FDAA77:0x14dc:0x1.4]) in
> application
> "Forte_cl0", pid 155 on node W133637 in environment EagleDev.
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= Thor (David Thor Collard) | Be the tree rooted.
-= [email protected] | http://www.alta-oh.com/~thor/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= What no one seems to comprehend is that there is only one battle,
-= and that we are compelled by our nature and the nature of reality
-= to fight it again and again.
-= Rannulph Junah in "The Legend of Bagger Vance" by Steve Pressfield
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Similar Messages

  • How can I Generate two different reports from single execution of Test cases in NI teststand

    Hi,
    My requirement is to generate two different reports from NI teststand. One for the Logging of error descriptions and the other report is by default generated by the Teststand. How can i generate a txt file that contains error descriptions other than that mentioned in the default report?
    Solved!
    Go to Solution.

    Do you need to do that just for these two sequences but not for other sequences? I don't see a problem to use SequenceFilePostStepRuntimeError. Create this callback in both sequence files and configure them to log into the same file. SequenceFilePostStepRuntimeError callback is called after each step of the sequence file if it has runtime error. You can access the calling step error information via RunState.Caller.Step.Result.Error property. Take a look to attached example.
    The "other way" is useful if you need to log errors not for every step of the sequence file, but for some of them. This is more complex, because you need to create a custom step types for these steps. For the custom step you can create substeps (post-step in your case) which will be executed every time after step of this type executed. Then, this is you job to determine if error happened in the step, acces to step's error information is via Step.Result.Error property. 
    Also, be aware that step's post-expression is not executed in case of error in the step.
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    SequenceFilePostStepRuntimeError_Demo.seq ‏7 KB

  • How can I generate SSL Keys from a Oracle 9iAS server version 1.0.2.2.0

    How can I generate SSL Keys for use on Oracle 9iAS server
    version 1.0.2.2.0. I have tried using the open_ssl method but
    was unsuccessful.

    <?xml version="1.0" encoding="UTF-8" ?>
    <nodes>
    <node>
    <category_id>3</category_id>
    <parent_id>2</parent_id>
    <name>Mobile</name>
    <is_active>1</is_active>
    <position>1</position>
    <level>2</level>
    <children>
    <node name="Nokia" category_id="6" parent_id="3" is_active="1" position="1" level="3">
    <node name="Nokia N79" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    <node name="Nokia N95" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    <node name="Nokia N97" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    </node>
    <node name="Samsung" category_id="7" parent_id="3" is_active="1" position="2" level="3">
    </node>
    </children>
    </node>
    <node>
    <category_id>4</category_id>
    <parent_id>2</parent_id>
    <name>Laptop</name>
    <is_active>1</is_active>
    <position>2</position>
    <level>2</level>
    <children></children>
    </node>
    <node>
    <category_id>5</category_id>
    <parent_id>2</parent_id>
    <name>Monitor</name>
    <is_active>1</is_active>
    <position>3</position>
    <level>2</level>
    <children></children>
    </node>
    <node>
    <category_id>8</category_id>
    <parent_id>2</parent_id>
    <name>Camera</name>
    <is_active>1</is_active>
    <position>4</position>
    <level>2</level>
    <children></children>
    </node>
    </nodes>
    Is this correct format to create dynamic menu?

  • How can we generate the reports in html or text file formats?

    Hi,
    Is there any package that can help in creating HTMLDB reports in .txt files or .html files? (Similar to TEXT_IO in Oracle Forms)
    How can we generate the reports in html or text file formats from HTMLDB?
    Thanks in Advance
    Renjith

    Hello all.
    Bi Publisher is great, but has a very high price tag. It's even more expensive than Forms & Reports Services. We are considering APEX to replace Forms & Reports on the web, but the reporting limitations are still a problem.
    I wonder if there is another option.
    Thanks

  • How can we generate the report of backup,tablesapcefrom OEM / RMAN

    How can we generate the report of backup status,tablesapce(usedf,free space) for all the databases from OEM / RMAN
    1.)we need generate the report of tablespace used,free, archive...
    2.)How can we generate the Backup status report also

    user13584223 wrote:
    How can we generate the report of backup status,tablesapce(usedf,free space) for all the databases from OEM / RMAN
    1.)we need generate the report of tablespace used,free, archive...There are DBA_* views that expose the necessary information. They are documented in the Reference Manual.
    2.)How can we generate the Backup status report alsoThere are rman commands that give that. They are documented in the Backup and Recovery User's Guide.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to [url tahiti.oracle.com]tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • How can I generate a table of contents from bookmarks

    How can I generate a Table of Contents from bookmarks in Adobe Acrobat XI?

    Something to try.
    Rick Bostein  provided a "Create Bookmark Report" Acrobat Action.
    With this report as a PDF you could insert it at the start of your PDF document to serve as a "TOC". 
    Go here:
    https://acrobatusers.com/actions-exchange 
    Scroll down some.
    Be well...

  • How can I generate javadoc in PDF format?

    Hi,
    How can I generate javadoc in PDF format?
    Thanks,
    Fayezin

    HTML to PDF with Java, using OpenOffice.org - example here: [http://www.dancrintea.ro/html-to-pdf/|http://www.dancrintea.ro/html-to-pdf/]
    You can use OpenOffice.org, running as a server and command it remotely for document convertion.
    Besides HTML to PDF, there are also possible other convertions:
    doc --> pdf, html, txt, rtf
    xls --> pdf, html, csv
    ppt --> pdf, swf
    Code example:
    import officetools.OfficeFile; // this is my tools package
    FileInputStream fis = new FileInputStream(new File("c:/test.html"));
    FileOutputStream fos = new FileOutputStream(new File("c:/test.pdf"));
    // suppose OpenOffice.org runs on localhost, port 8100
    OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
    f.convert(fos,"pdf");
    -----------------------------------------------------------------------------------------------------------------------------------------

  • How can we generate result set report?

    how can we generate result set report ?means the out put of one query be the input of another query?how it is?

    Hi
    You have to use APD ( analysis process designer) to use results of one query as the input for the other queries.
    Check this link
    http://help.sap.com/saphelp_nw70/helpdata/en/49/7e960481916448b20134d471d36a6b/frameset.htm
    Regards

  • How can we generate a usage report

    Hi Friends,
    As my application is going to live, for that i want to usage report.
    how can we generate a usage reopts ?
    Thanks in advance

    Hi,
    Take a look at Usage Tracking; http://apex.oracle.com/pls/apex/f?p=44785:24:370475959673014::NO:24:P24_CONTENT_ID,P24_PREV_PAGE:4152,2
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • How can we generate proxies?

    Hi,
    I am doing one POC on ABAP client proxies. I am using WAS 6.20 as sender and receiver is XI server it self. If I use same XI System for both sender and receiver with different clients then I can generate proxies for sender using "SPROXY" transaction. But the sender is different system , how can I generate abap proxy in sender system?
    Do I need to export any things from XI server to Sender system to generate proxies? Please help me on this.
    Thanks in advance.

    Hi,
    I am doing one POC on ABAP client proxies. I am using WAS 6.20 as sender and receiver is XI server it self. If I use same XI System for both sender and receiver with different clients then I can generate proxies for sender using "SPROXY" transaction. But the sender is different system , how can I generate abap proxy in sender system?
    Do I need to export any things from XI server to Sender system to generate proxies? Please help me on this.
    Thanks in advance.

  • How can reduce generate trace file.

    Hi all,
    how can reduce generate trace file.
    frequently created sql trace file in oracle 10g
    approximate 5g in one day.
    and database size 10gb
    os windows

    If you cannot disable the tracing for some reason, consider setting maximum file size for the dump.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams116.htm#CHDIABEI

  • How can I generate data when the link is click on?

    i have written a stackoverflow question ,
    would like some input if you have any , thanks, i would like to stay away from using jquery
    http://stackoverflow.com/questions/23143436/how-can-i-generate-data-when-the-link-is-click -on/23143813?noredirect=1#23143813

    I think you need to rephrase your question and be more specific. Also for me the images you are referring to do not exist. From your question I am interpreting it as "how do I program?"

  • How can i generate xml like this?

    Hi all,
    How can i generate xml like this & i need to send it to via HTTP :
    <mms>
                 <subject>message subject</subject>
                 <url_image>http://image_url</url_image>
                 <url_sound>http://sound_url</url_sound>
                 <url_video>http://video_url</url_video>
                 <text>message text</text>
                 <msisdn_sender>6281XYYYYYY</msisdn_sender>
                 <msisdn_receipient>6281XYYYYYY</msisdn_receipient>
                 <sid>to be define later</sid>
                 <trx_id>Unique number</trx_id>
                 <trx_date>yyyyMMddHHmmss</trx_date>
                 <contentid>see note</contentid>
    </mms>& how can i get the value of the sid (for example)?
    I hav tried to generate that xml by using StringBuffer & append, but it's not what i mean...
    Anyone can help me?

    Ok...i got it. But i still hav some problems.
    This is the sample code that i used :
    public class XMLCreator {
         //No generics
         List myData;
         Document dom;
            Element rootEle, mmsEle, mmsE;
            StringWriter stringOut;
            mms mms;
         public XMLCreator(String subject, String image, String sound,
                    String video, String text, String sender, String recipient,
                    int id, String date, String contentid) {
              mms = new mms(subject, image, sound, video, text, sender,
                            recipient, id, contentid, date);
                    createDocument();
         public void run(){
              createDOMTree();
              print();
         private void createDocument() {
              //get an instance of factory
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              try {
              //get an instance of builder
              DocumentBuilder db = dbf.newDocumentBuilder();
              //create an instance of DOM
              dom = db.newDocument();
              }catch(ParserConfigurationException pce) {
                   //dump it
                   System.out.println("Error while trying to instantiate DocumentBuilder " + pce);
         private void createDOMTree(){
              //create the root element <Mms>
              rootEle = dom.createElement("mms");
              dom.appendChild(rootEle);
              createMmsElement(mms);
         private Element createMmsElement(mms b){
              Element subjectEle = dom.createElement("subject");
              Text subjectText = dom.createTextNode(b.getSubject());
              subjectEle.appendChild(subjectText);
              rootEle.appendChild(subjectEle);
              //create url_image element and author text node and attach it to mmsElement
              Element imageEle = dom.createElement("url_image");
              Text imageText = dom.createTextNode(b.getUrl_image());
              imageEle.appendChild(imageText);
              rootEle.appendChild(imageEle);
              // & etc....
              return rootEle;
          * This method uses Xerces specific classes
          * prints the XML document to file.
         private void print(){
              try
                   //print
                   OutputFormat format = new OutputFormat(dom);
                   format.setIndenting(true);
                            stringOut = new StringWriter();
                   //to generate output to console use this serializer
                   XMLSerializer serializer = new XMLSerializer(stringOut, format);
                   //to generate a file output use fileoutputstream instead of system.out
                   //XMLSerializer serializer = new XMLSerializer(
                   //new FileOutputStream(new File("mms.xml")), format);
                   serializer.serialize(dom);
              } catch(IOException ie) {
                  ie.printStackTrace();
            public String getStringOut() {
                return stringOut.toString();
    }when i tried to show the stringOut.toString() in my jsp, it's only showed string like this :
    The Lords Of The Ring http://localhost:8084/movie/lotr.3gp 6281321488448 6281321488448 123 0 20070220114851 LOTR.
    1. Why this is happen?i want to generate xml which its format is like above.
    2. How can i send this xml (put in msg parameter) using jsp (via web) without creating the mms.xml?
    3. if i want to set the msg parameter equal to mms.xml - means that msg = mms.xml, what is the data type for msg? is it an object or anything else?
    Thx b4 in advance...

  • How can i generate session.xml file?

    hello
    i am a beginner of toplink,i find that in my project,i must provide two xml format files,they are "session.xml" and a project xml file,to make the toplink works well,the project descriptor can be generated by using the mapping workbench,but how can i generate the "session.xml",now,what i can do is to modify the sample file that come with the toplink installation,i wonder if there is a graphic tool that can be used to generate it?
    thanks for any helps!

    Currently there is no UI support for creating or modifying sessions.xml. The DTD is provided in both the documentation as well as in the installed files (<TOPLINK_HOME>\core\sessions_4_5.dtd). The examples should also contain a variety of sessions.xml file to assist you.
    Doug Clarke
    Principal Product Manager, Oracle9iAS TopLink
    Oracle Corporation

  • How can we generate TDS Certificate in SAP

    Dear SAP Experts,
    Plz tell me how can we generate TDS Certificate in SAP. Thanks in advance

    Hi,
    Check the building block library under http://help.sap.com/bp_bblibrary/600/BBlibrary_start.htm  and filter on country india
    N70: External Financial Accounting Local
    Regards
    K.R

Maybe you are looking for

  • Null values not equal

    I'm writing some reports that are pulling possible duplicates out of a table. I have to base the query on several nullable columns in my table. I was tired of writting (a.column1 = b.column1 or (a.column1 IS NULL and b.column1 IS NULL)) for every col

  • Canvas.getHeight() and getWidth()

    Hi all, I'm completely stuck. I don't know what to do. I developed a complete MIDlet and now I'm running it to remove any kinks I put in while developing. And one kink I can not get out of my system. I'm running the code in the WIreless Toolkit from

  • How to identify which videos

    I took a dozen or so short clips of an event. I know which three I want to combine and edit. But I can't figure out how to identify which they are in imovie in order to put those clips in my project. It shows them all as consecutive clips or frames,

  • Is there a digital notepad that works with the ipad

    i got my ipad 2 recently but i dont like writing notes on it. i was looking for a digital notepad that you write on paper and it shows up on ipad just like a normal note. ive found the notepads, but i cant find one that works with ipad. please help

  • Flex 4 Premium reference to the Stage issue! width and height seem to be switched??

    So I am doing a very basic resize effect with a panel, but if I want it to fill the screen, I have to switch stage.stageWidth and stage.stageHeight. I have also traced them out and they come out as switched values. Anyone else having this issue? prot