Handling log messages in procedure

Hi All,
Which is the best way to handle log messages in procedures or packages.When I run a procedure it is taking long time and getting cunfuse it is running or not.Please let me know how to handle log messages other than dbms_ouput and inserting values to log table.
Thanks & Regards,
Rajasekhar

It really depends on what you want.
If you want to see what stage of a procedure you are at, then DBMS_application_info is the way to go.
You set the name and text in the package and the current state seT can be seen in v$SESSION
Of course it helps if you remember to set it to finished before it ends.
The other alternative I like is to have an autonomous procedure which logs the steps.
You just pass a call to the procedure.
The benefit of this is that the commits are effectively in another session, so won't affect your existing procedure.
You can also code this in such a way that it is off by default but you can turn it on eg by changing a value in a db column.
If I did this, I would have it so that each individual procedure/function within a package could be turned on as necessary.
This means that you can turn your tracing on just for a specific problem even for a production system without affecting the vast majority of users.
Edited by: Keith Jamieson on Jan 6, 2009 11:10 AM
FIXED TYPO:

Similar Messages

  • Help to create log message for the failure of procedure

    Hi,
    I want to create a log message ,if my stored procedure stops executing or gets hanged due to some reasons.
    Can any one guide me how can i include this log message in some external file so as each time my stored procedure fails a message will be logged in the file that the procedure has failed or hanged.
    pls help
    regds
    debashis

    I'm afraid I don't understand what you're trying to accomplish here. What is "command is successfully executed" intended to represent in your CREATE statement and in the anonymous PL/SQL block.
    What do you mean "it should occur in row by row order" and "success message of execution should be displayed in the log file"?
    Why are you trying to log to an external file rather than a table in the database? When you start talking about "row by row" and "success message", that starts to imply that you're going to be logging a lot of stuff. Logging a lot of data to an external file is going to be a substantial performance burden. Are you sure that is what you want to accomplish?
    Justin

  • Handling Fault Messages for JDBC Receiver (Syn Inbound)

    Dear Freinds,
    Can we handle fault messages for JDBC Receiver which is synchronous.
    OB Proxy Syn  <>  IB JDBC Syn
    1. How to handle the same ? Please give some examples.
    2. Should we use Stored Procedures at Oracle side to handle the fault messages and send back as response to the Proxy Response. Will it work.
    Thanks & Regards
    K.Ramesh

    Dear Friend,
    I have 2 interfaces where Proxy is OB & JDBC is IB. In the first interface both sender and Receiver are synchronous and in the second one it is Async.
    In the first interface i have to send one field from R/3 table along with Native SQL query string to XI and the response of the SELECT query is sent back to the sender.
    Assume if no fields are selected based on the field sent then proper error message has to be sent instead of the response message.
    In the second interface i will be using UPDATE query at Asyn JDBC receiver.
    How to do this if you are having JDBC Receiver.
    I saw in many blogs where they had mentioned that we cannot handle fault messages in the Receiver JDBC.
    KIindly explain.
    Thanks
    K.Ramesh

  • Best practices for handling large messages in JCAPS 5.1.3?

    Hi all,
    We have ran into problems while processing larges messages in JCAPS 5.1.3. Or, they are not that large really. Only 10-20 MB.
    Our setup looks like this:
    We retrieve flat file messages with from an FTP server. They are put onto a JMS queue and are then converted to and from different XML formats in several steps using a couple of jcds with JMS queues between them.
    It seems that we can handle one message at a time but as soon as we get two of these messages simultaneously the logicalhost freezes and crashes in one of the conversion steps without any error message reported in the logicalhost log. We can't relate the crashes to a specific jcd and it seems that the memory consumption increases A LOT for the logicalhost-process while handling the messages. After restart of the server the message that are in the queues are usually converted ok. Sometimes we have however seen that some message seems to disappear. Scary stuff!
    I have heard of two possible solutions to handle large messages in JCAPS so far; Splitting them into smaller chunks or streaming them. These solutions are however not an option in our setup.
    We have manipulated the JVM memory settings without any improvements and we have discussed the issue with Sun's support but they have not been able to help us yet.
    My questions:
    * Any ideas how to handle large messages most efficiently?
    * Any ideas why the crashes occur without error messages in the logs or nothing?
    * Any ideas why messages sometimes disappear?
    * Any other suggestions?
    Thanks
    /Alex

    * Any ideas how to handle large messages most efficiently? --
    Strictly If you want to send entire file content in JMS message then i don't have answer for this question.
    Generally we use following process
    After reading the file from FTP location, we just archive in local directory and send a JMS message to queue
    which contains file name and file location. Most of places we never send file content in JMS message.
    * Any ideas why the crashes occur without error messages in the logs or nothing?
    Whenever JMSIQ manager memory size is more lgocialhosts stop processing. I will not say it is down. They
    stop processing or processing might take lot of time
    * Any ideas why messages sometimes disappear?
    Unless persistent is enabled i believe there are high chances of loosing a message when logicalhosts
    goes down. This is not the case always but we have faced similar issue when IQ manager was flooded with lot
    of messages.
    * Any other suggestions
    If file size is more then better to stream the file to local directory from FTP location and send only the file
    location in JMS message.
    Hope it would help.

  • Oracle 10G JMS error : Failed to handle dispatch message ... exception ORABPEL-05002

    Hi All,
    We are using a JMS adapter as partner link in a BPEL process to produce messages to JMS Queue.
    We are getting an error while producing a message to a JMS Queue.
    The error comes for 1 or 2 instances among 5 to10 intsances. (all these instances ran with in 1 or 2 seconds).
    We are using Oracle 10G SOA suite.
    This error is getting in the Production environment.
    The error is as follows (took error from server log).
    Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{summary=file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection.
    file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: oracle.j2ee.connector.proxy.ProxyInterceptException: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: null [Caused by: RollbackException: Transaction has been marked for rollback: null]
    ; nested exception is:
    ORABPEL-12511
    Adapter Framework unable to create outbound JCA connection.
    I tried the below JMS tunings with differnt combination, but no improvement.
                <property name="useJCAConnectionPool">true</property>
                <property name="maxSizeJCAConnectionPool">500</property>
                <property name="retryMaxCount">10</property>
                <property name="retryInterval">60</property>
    Please let me know if any other logs or any other information is required.
    Thanks,
    Pershad

    sorry, I forgot the below things which I tried to tune the JMS.
    <property name="retryMaxCount">10</property>
    <property name="retryInterval">60</property>
    <property name="useJCAConnectionPool">true</property>
    <property name="maxSizeJCAConnectionPool">500</property>
    Thanks.

  • Handling inbound messages

    Hi,
    We would like to handle incoming messages. The problem appears when we send an e-mail to SAP system. I can see some of SMTP transaction traces in log file, but some of them are not. Also, I cannot see any e-mail notification in SOIN transaction. I applied all the steps respectfully, indicated in OSS note# 455140, but couldn't help us. Please find the handler table, below;
    E-posta     *     *     ZCL_MAIL_INBOUND_SYS_CHECK     1
    E-posta     *     ICS     CL_APPOINTMENT_REPLY     3
    Can anyone give a suggestion about it? Why I cannot see incoming e-mails on SOIN?
    Thank you
    Orkun Gedik

    I found the solution. Just need a patch.
    Best regards,
    Orkun Gedik

  • Re: Remove log messages from loop

    CURSOR cur_item_rev_child IS
    SELECT ffv.flex_value, --org code
    mp.organization_id
    FROM fnd_flex_values ffv,
    fnd_flex_value_sets ffvs,
    mtl_parameters mp
    WHERE ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'EMR Add Spec Org' -- Changed by WIPRO on 01-OCT-12 (SR # 1078990 )--
    AND NVL(ffv.enabled_flag, 'N') = 'Y'
    AND ffv.flex_value = mp.organization_code
    AND mp.master_organization_id = v_num_master_org;
    CURSOR cur_item_rev (i_num_organization_id NUMBER)
    IS
    SELECT /*+ index(xvasd XXINV_VLVS_ADD_SPEC_DETAILS_N1 )*/mirb.inventory_item_id,
    mirb.organization_id,
    MAX(mirb.revision) item_revision,
    msib.segment1, -- Added by Infosys on 19-May-09
    xvasd.spec_revision spec_revision -- Added by Infosys on 19-May-09
    FROM xxinv_vlvs_add_spec_details xvasd,
    xxinv_vlvs_item_add_spec xvias,
    mtl_parameters mp,
    mtl_system_items_b msib,
    mtl_item_revisions_b mirb
    WHERE xvasd.spec_number = xvias.spec_number
    AND xvasd.spec_type = xvias.spec_type
    AND xvias.spec_type = v_chr_spec_type
    AND xvasd.spec_status='ACTIVE'
    AND xvias.inv_item_id = msib.inventory_item_id
    AND mirb.inventory_item_id=msib.inventory_item_id
    AND xvias.organization_id = msib.organization_id
    AND msib.organization_id = mirb.organization_id
    AND mirb.organization_id = mp.organization_id
    AND mp.organization_id = i_num_organization_id
    --AND LPAD (xvasd.spec_revision, 3, 0) LPAD (b.revision, 3, 0)
    GROUP BY mirb.inventory_item_id,
    mirb.organization_id,
    msib.segment1,
    xvasd.spec_revision;
    BEGIN
    o_chr_errbuf := 'Program Completed Successfully';
    o_num_retcode := 0;
    fnd_file.put_line(fnd_file.output,
    fnd_file.put_line(fnd_file.output,
    ' EMR INV Item Revisions Update Program VLVS');
    fnd_file.put_line(fnd_file.output,
    fnd_file.put_line(fnd_file.output, '');
    --Starting the Program
    fnd_file.put_line(fnd_file.LOG,
    fnd_file.put_line(fnd_file.LOG,
    ' EMR INV Item Revisions Update Program VLVS');
    fnd_file.put_line(fnd_file.LOG,
    fnd_file.put_line(fnd_file.LOG, '');
    fnd_file.put_line(fnd_file.LOG, 'Input Parameter');
    fnd_file.put_line(fnd_file.LOG, '---------------');
    fnd_file.put_line(fnd_file.LOG, 'Debug Mode: ' || v_chr_debug_mode);
    fnd_file.put_line(fnd_file.LOG, '');
    fnd_file.put_line(fnd_file.LOG,
    -- Get the value of the spec type from the lookup. If no value is set then display the error message and raise exception
    IF v_chr_spec_type IS NULL
    THEN
    fnd_file.put_line(fnd_file.LOG,
    'Error: Set a value for the profile: XXINV : Additional Spec Type VLVS');
    RAISE excp_user;
    ELSE
    fnd_file.put_line(fnd_file.LOG,
    'Processing for the addition spec item type: ' ||
    v_chr_spec_type);
    END IF;
    -- Select all the eligible records for processing
    FOR rec_cur_item_rev_child IN cur_item_rev_child
    LOOP
    FOR rec_cur_item_rev IN cur_item_rev (rec_cur_item_rev_child.organization_id)
    LOOP
    -- v_chr_spec_rev := NULL;
    -- v_chr_item_number := NULL; Commented by Infosys on 19-May-09
    /* BEGIN --Start of comments by Infosys on 19-May-09
    SELECT segment1
    INTO v_chr_item_number
    FROM mtl_system_items_b
    WHERE inventory_item_id = rec_cur_item_rev.inventory_item_id
    AND organization_id=rec_cur_item_rev.organization_id;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    v_chr_item_number := NULL;
    fnd_file.put_line(fnd_file.LOG,'Item Number not found in MTL_SYSTEM_ITEMS_B Table for the inv item id '
    ||rec_cur_item_rev.inventory_item_id);
    WHEN OTHERS THEN
    v_chr_item_number := NULL;
    RAISE excp_loop;
    END;*/--End of comments by Infosys on 19-May-09
    /*BEGIN --Start of comments by Infosys on 19-May-09
    SELECT MAX(spec_revision)
    INTO v_chr_spec_rev
    FROM xxinv_vlvs_add_spec_details xvasd,
    xxinv_vlvs_item_add_spec xvias
    WHERE xvasd.spec_number = xvias.spec_number
    AND xvasd.spec_type = xvias.spec_type
    AND xvias.spec_type = v_chr_spec_type
    AND xvias.inv_item_id =rec_cur_item_rev.inventory_item_id
    AND organization_id=rec_cur_item_rev.organization_id
    GROUP BY xvias.inv_item_id,
    organization_id,
    xvias.spec_type;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    v_chr_spec_rev := NULL;
    fnd_file.put_line(fnd_file.LOG,'Spec Revision not found in Additional Specs Table for the inv item id '
    ||rec_cur_item_rev.inventory_item_id);
    WHEN OTHERS THEN
    v_chr_spec_rev := NULL;
    RAISE excp_loop;
    END;*/--End of comments by Infosys on 19-May-09
    IF LPAD (rec_cur_item_rev.spec_revision, 3, 0) LPAD (rec_cur_item_rev.item_revision, 3, 0)
    THEN
    BEGIN
    v_num_total_cnt := v_num_total_cnt + 1;
    --to take count of the total records processed
    v_chr_error_flag := 'N'; reset the error flag to N before processing each record
    v_num_revision_id := NULL;
    IF v_num_total_cnt = 1
    THEN
    v_chr_output_hdr := 'ORG CODE' ||
    RPAD('|ITEM NUMBER', 51, ' ') ||
    '|ITEM REV' || '|SPEC REV' ||
    '|ERROR REASON';
    END IF;
    -- Check if the revision on the spec is greater that the revision on the item
    IF LPAD (rec_cur_item_rev.spec_revision, 3, 0) > LPAD (rec_cur_item_rev.item_revision, 3, 0)
    THEN
    BEGIN
    SELECT mtl_item_revisions_b_s.NEXTVAL
    INTO v_num_revision_id
    FROM DUAL;
    EXCEPTION
    WHEN OTHERS THEN
    v_chr_temp_msg := 'Error when getting the new revision id from the sequence MTL_ITEM_REVISIONS_B_S: ' ||
    SQLERRM;
    RAISE excp_loop;
    END;
    -- begin block for assigning values and calling API to update the item revisions
    BEGIN
    v_rec_item_revision.inventory_item_id := rec_cur_item_rev.inventory_item_id;
    v_rec_item_revision.organization_id := rec_cur_item_rev_child.organization_id;
    v_rec_item_revision.revision_id := v_num_revision_id;
    v_rec_item_revision.revision := rec_cur_item_rev.spec_revision;--v_chr_spec_rev;
    v_rec_item_revision.revision_label := rec_cur_item_rev.spec_revision;--v_chr_spec_rev;
    v_rec_item_revision.revision_reason := 'Updated the Item Revision';
    v_rec_item_revision.implementation_date := v_dte_sysdate;
    v_rec_item_revision.effectivity_date := v_dte_sysdate;
    v_rec_item_revision.attribute_category := NULL;
    v_rec_item_revision.attribute1 := NULL;
    v_rec_item_revision.attribute2 := NULL;
    v_rec_item_revision.attribute3 := NULL;
    v_rec_item_revision.attribute4 := NULL;
    v_rec_item_revision.attribute5 := NULL;
    v_rec_item_revision.attribute6 := NULL;
    v_rec_item_revision.attribute7 := NULL;
    v_rec_item_revision.attribute8 := NULL;
    v_rec_item_revision.attribute9 := NULL;
    v_rec_item_revision.attribute10 := NULL;
    v_rec_item_revision.attribute11 := NULL;
    v_rec_item_revision.attribute12 := NULL;
    v_rec_item_revision.attribute13 := NULL;
    v_rec_item_revision.attribute14 := NULL;
    v_rec_item_revision.attribute15 := NULL;
    v_rec_item_revision.description := NULL;
    v_rec_item_revision.creation_date := v_dte_sysdate;
    v_rec_item_revision.created_by := v_num_user_id;
    v_rec_item_revision.last_update_date := v_dte_sysdate;
    v_rec_item_revision.last_updated_by := v_num_user_id;
    v_rec_item_revision.last_update_login := v_num_login_id;
    v_rec_item_revision.request_id := v_num_request_id;
    v_rec_item_revision.program_id := v_num_program_id;
    v_rec_item_revision.program_application_id := v_num_prog_appln_id;
    mtl_item_revisions_util.insert_row(p_item_revision_rec => v_rec_item_revision,
    x_rowid => v_chr_ret_rowid);
    v_num_succ_cnt := v_num_succ_cnt + 1;
    COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    v_chr_temp_msg := 'Error when updating the revisions: ' ||
    SQLERRM;
    RAISE excp_loop;
    END;
    ELSE -- LPAD (cur_item_rev.spec_revision, 3, 0) < LPAD (cur_item_rev.item_revision, 3, 0)
    v_chr_temp_msg := 'Item Revision is greater than the Spec Revision';
    o_num_retcode := 1;
    v_num_err_cnt := v_num_err_cnt + 1;
    ROLLBACK;
    fnd_file.put_line(fnd_file.LOG, '');
    fnd_file.put_line(fnd_file.LOG,
    'Organization Code: ' ||
    rec_cur_item_rev_child.flex_value); -- added on 05-May-09 by infosys --
    fnd_file.put_line(fnd_file.LOG,
    'Item Number: ' ||
    rec_cur_item_rev.segment1);
    fnd_file.put_line(fnd_file.LOG,
    'Item Revision: ' ||
    rec_cur_item_rev.item_revision); -- v_chr_item_revision_child -- -- added on 05-May-09 by infosys --
    fnd_file.put_line(fnd_file.LOG,
    'Spec Revision: ' ||
    rec_cur_item_rev.spec_revision);
    fnd_file.put_line(fnd_file.LOG,
    'Error: ' ||
    v_chr_temp_msg);
    fnd_file.put_line(fnd_file.LOG,
    v_chr_output_msg := v_chr_output_msg ||
    RPAD(rec_cur_item_rev_child.flex_value, -- added on 05-May-09 by infosys --
    8,
    ' ') || '|' ||
    RPAD(rec_cur_item_rev.segment1,
    50,
    ' ') || '|' ||
    RPAD(rec_cur_item_rev.item_revision, v_chr_item_revision_child, added on 05-May-09 by infosys --
    8,
    ' ') || '|' ||
    RPAD(rec_cur_item_rev.spec_revision,
    8,
    ' ') || '|' ||
    v_chr_temp_msg ||
    CHR(10);
    v_chr_mail_body := v_chr_mail_body ||
    RPAD(rec_cur_item_rev_child.flex_value, -- added on 05-May-09 by infosys --
    8,
    ' ') || '|' ||
    RPAD(rec_cur_item_rev.segment1,
    50,
    ' ') || '|' ||
    RPAD(rec_cur_item_rev.item_revision, v_chr_item_revision_child added on 05-May-09 by infosys --
    8,
    ' ') || '|' ||
    RPAD(rec_cur_item_rev.spec_revision,
    8,
    ' ') || '|' ||
    v_chr_temp_msg ||
    -- Display the statistics details in the output file
    fnd_file.put_line(fnd_file.output, '');
    fnd_file.put_line(fnd_file.output,
    'Number of items selected for update: ' ||
    v_num_total_cnt);
    fnd_file.put_line(fnd_file.output,
    'Number of items updated: ' || v_num_succ_cnt);
    fnd_file.put_line(fnd_file.output,
    'Number of items not updated: ' || v_num_err_cnt);
    fnd_file.put_line(fnd_file.output, '');
    fnd_file.put_line(fnd_file.output, v_chr_output_hdr);
    * Print out the output message from CLOB variable "v_chr_output_msg"
    * Substr each line whenever we find the separator CHR(10)
    * Print each line with fnd_file.output function
    BEGIN
    v_num_offset := 1;
    v_num_instr := 0;
    LOOP
    EXIT WHEN v_num_offset > dbms_lob.getlength(v_chr_output_msg);
    -- Get the position of CHR(10) when first time appearence.
    v_num_instr := dbms_lob.instr(v_chr_output_msg,
    CHR(10),
    v_num_offset,
    1);
    v_num_line_length := v_num_instr - v_num_offset + 1;
    -- Substr the each line and print it out
    fnd_file.put_line(fnd_file.output,
    dbms_lob.substr(v_chr_output_msg,
    v_num_line_length - 1,
    v_num_offset));
    v_num_offset := v_num_offset + v_num_line_length;
    END LOOP;
    END;
    END IF; -- LPAD (cur_item_rev.spec_revision, 3, 0) < LPAD (cur_item_rev.item_revision, 3, 0) --
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    fnd_file.put_line(fnd_file.LOG,
    'Porcessing next record as a Error occured in cursor loop cur_item_rev : ' ||
    SQLERRM);
    END;
    END IF;
    END LOOP; -- cur_item_rev --
    END LOOP; -- cur_item_rev_child --
    -- calling the mail procedure --
    IF v_num_err_cnt > 0
    THEN
    BEGIN
    fnd_file.put_line(fnd_file.LOG, '');
    fnd_file.put_line(fnd_file.LOG,
    'Calling send_notification Procedure...');
    send_notification(o_chr_ret_code => v_chr_status,
    o_chr_ret_mesg => v_chr_temp_msg,
    i_chr_subject => 'EMR INV Item Revisions Update Program VLVS - ' ||
    v_dte_sysdate,
    i_chr_body => v_chr_mail_body);
    EXCEPTION
    WHEN OTHERS THEN
    v_chr_temp_msg := 'Error when calling Procedure send_notification .';
    fnd_file.put_line(fnd_file.LOG,
    'Error details : ' || v_chr_temp_msg ||
    ' - ' || SQLERRM);
    RAISE excp_user;
    END;
    END IF;
    EXCEPTION
    /*WHEN excp_loop THEN
    ROLLBACK;
    o_chr_errbuf := o_chr_errbuf ||
    'Program completed with error when getting the max revision';
    o_num_retcode := 2;*/
    WHEN excp_user THEN
    ROLLBACK;
    o_chr_errbuf := o_chr_errbuf || 'Program completed with error';
    o_num_retcode := 2;
    WHEN OTHERS THEN
    ROLLBACK;
    fnd_file.put_line(fnd_file.LOG,
    'Error in Item Revisions Update Program: ' ||
    SQLERRM);
    o_chr_errbuf := o_chr_errbuf || 'Program completed with error';
    o_num_retcode := 2;
    END update_item_revision;

    I need to remove the log messages from loop...As currently log file printing is in loop....Can you please tell how to remove log file messages from loop.

  • Is JMS adapter can handle text message ?

    Hi all,
    In my scenario we have to take the data from Mainframe, CIS the data will come may in the form of text. If the data comes with text format ,is our JMS (DB2 drivers) can handle the messages in queue if yes is there any explicit configuration need to done. Till now we did message processsing of xml files but if the queue contains text message how to handle if it is not possible what procedure need to do any adpater module we have to write explicitly can some body explain?

    Hi,
    Refer these links
    http://static.springframework.org/spring/docs/2.5.x/reference/jms.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    http://help.sap.com/bp_bpmv130/Documentation/Planning/XIUnicodeGuide030411.pdf
    http://help.sap.com/saphelp_nw04s/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a05b2347-01e7-2910-ceac-c45577e574e0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/482aae19-0301-0010-3485-8efd618818d0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/604e2b64-e689-2910-64b3-ffd650f83756
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00982670-748c-2a10-3985-cdd42fb43e50
    and also blogs
    Triggering XI Alerts from a User Defined Function
    How to send any data (even binary) through XI, without using the Integration Repository
    Regards,
    Surya

  • Problems with using System.Diagnostics.EventLog to retrieve event log messages

    Hi
    In my app I am retrieving error and critical events from application and system log - but for some reason what it is returning doesn't tally with what I see in event viewer
    For example:-
    1) Source is SideBySide and shows in event viewer with Event ID of 33 - but in my app it is returning an event ID of 3238068257 - all other details such as message are correct - other event sources show fine
    2) A lot of the system event log messages are showing wrong error message - in event log it shows correctly but in my app it is retrieving messages like this "The description for Event ID '41' in Source 'Microsoft-Windows-Kernel-Power' cannot be
    found. The local computer may not have the necessary registry information or message DLL files to display message, or you may not have permission to access them" - I am running the app with admin rights?, so not sure why not showing same message as it
    shows in event viewer i.e "The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly."
    Darren Rose

    Private Sub btnCheckEventLog_Click(sender As Object, e As EventArgs) Handles btnCheckEventLogs.Click
    ' get event logs
    ' APPLICATION LOG
    ' variables for adding to the listview application log
    Dim ListEventlogApp As ListViewItem
    Dim arrayEventlogApp(5) As String
    ' Clear existing items from list
    lvwEventLogApp.Clear()
    ' Create columns and set width
    lvwEventLogApp.Columns.Add("Date/Time", 120)
    lvwEventLogApp.Columns.Add("Type", 50)
    lvwEventLogApp.Columns.Add("Source", 150)
    lvwEventLogApp.Columns.Add("ID", 100)
    lvwEventLogApp.Columns.Add("Message", 1000)
    ' get event log (application) error entries
    Dim eventLogAppError As New System.Diagnostics.EventLog("Application")
    Dim eventCntr1 As Integer = 1
    Dim numberofeventstoshow1 As Integer = 1
    For i As Integer = eventLogAppError.Entries.Count - 1 To 0 Step -1
    Dim eventLogAppErrorEntry As EventLogEntry = eventLogAppError.Entries(i)
    If eventLogAppErrorEntry.EntryType.ToString = ("Error") Then
    arrayEventlogApp(0) = (eventLogAppErrorEntry.TimeGenerated)
    arrayEventlogApp(1) = (eventLogAppErrorEntry.EntryType.ToString)
    arrayEventlogApp(2) = (eventLogAppErrorEntry.Source)
    arrayEventlogApp(3) = (eventLogAppErrorEntry.InstanceId)
    arrayEventlogApp(4) = (eventLogAppErrorEntry.Message)
    ListEventlogApp = New ListViewItem(arrayEventlogApp)
    lvwEventLogApp.Items.Add(ListEventlogApp)
    eventCntr1 = eventCntr1 + 1
    If numberofeventstoshow1 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow1 = numberofeventstoshow1 + 1
    End If
    Next
    ' SYSTEM LOG
    ' variables for adding to the listview application log
    Dim ListEventlogSys As ListViewItem
    Dim arrayEventlogSys(5) As String
    ' Clear existing items from list
    lvwEventLogSys.Clear()
    ' Create columns and set width
    lvwEventLogSys.Columns.Add("Date/Time", 120)
    lvwEventLogSys.Columns.Add("Type", 50)
    lvwEventLogSys.Columns.Add("Source", 150)
    lvwEventLogSys.Columns.Add("ID", 100)
    lvwEventLogSys.Columns.Add("Message", 1000)
    ' get event log (system) critical entries
    Dim eventLogSystemCritical As New System.Diagnostics.EventLog("System")
    Dim eventCntr2 As Integer = 1
    Dim numberofeventstoshow2 As Integer = 1
    For i As Integer = eventLogSystemCritical.Entries.Count - 1 To 0 Step -1
    Dim eventLogSysCriticalEntry As EventLogEntry = eventLogSystemCritical.Entries(i)
    If eventLogSysCriticalEntry.EntryType.ToString = ("0") Then
    arrayEventlogSys(0) = (eventLogSysCriticalEntry.TimeGenerated)
    arrayEventlogSys(1) = ("Critical")
    arrayEventlogSys(2) = (eventLogSysCriticalEntry.Source)
    arrayEventlogSys(3) = (eventLogSysCriticalEntry.InstanceId)
    arrayEventlogSys(4) = (eventLogSysCriticalEntry.Message)
    ListEventlogSys = New ListViewItem(arrayEventlogSys)
    lvwEventLogSys.Items.Add(ListEventlogSys)
    eventCntr2 = eventCntr2 + 1
    If numberofeventstoshow2 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow2 = numberofeventstoshow2 + 1
    End If
    Next
    ' get event log (system) error entries
    Dim eventLogSystemError As New System.Diagnostics.EventLog("System")
    Dim eventCntr3 As Integer = 1
    Dim numberofeventstoshow3 As Integer = 1
    For i As Integer = eventLogSystemError.Entries.Count - 1 To 0 Step -1
    Dim eventLogSysErrorEntry As EventLogEntry = eventLogSystemError.Entries(i)
    If eventLogSysErrorEntry.EntryType.ToString = ("Error") Then
    arrayEventlogSys(0) = (eventLogSysErrorEntry.TimeGenerated)
    arrayEventlogSys(1) = (eventLogSysErrorEntry.EntryType.ToString)
    arrayEventlogSys(2) = (eventLogSysErrorEntry.Source)
    arrayEventlogSys(3) = (eventLogSysErrorEntry.InstanceId)
    arrayEventlogSys(4) = (eventLogSysErrorEntry.Message)
    ListEventlogSys = New ListViewItem(arrayEventlogSys)
    lvwEventLogSys.Items.Add(ListEventlogSys)
    eventCntr3 = eventCntr3 + 1
    If numberofeventstoshow3 = 10 Then Exit For ' amend if you want to show more than 10 events
    numberofeventstoshow3 = numberofeventstoshow3 + 1
    End If
    Next
    End Sub
    Darren Rose

  • Not displaying Log Message

    Hi All,
    I facing problem in displaying the log message.
    Here is what I am doing.
    I have created a RDF Report, In that In Before Report Trigger I have called Packaged.Procedure.
    (Packaged.Procedure has all code that  is needed.
    I have used the
    fnd_file.put_line(fnd_file.log,'Message') to display message in log.
    But when I ran the report I am getting the expected output. But when in Log I am not seeing the Message.
    Please help me how to display message. Or is there any way to display message in Log.
    Note: I didn't register the package as Concurrent Program. I have Concurrent program of type Oracle Report.
    In package I didn't use parameter ERRBUFF and RETCODE, since it is necessary only if we register as Concurrent program.
    Thanks in advance.
    Regards,
    Uva.

    Hi!
    Lets try these once again even if u followed previously....
    1. First go to SXI_CACHE and do cache refresh once inorder to reflect the IR and ID Objects once again....
    2. Also do Adapter Cache refresh once again some times adapters may not reflect the updated changes and then now make some changes in the SUBject and save and activate it..
    3. THis Point is Optional Suppoe if you are using any FTP FILE ADAPTER
    Check the source and destination folders are same as give in your channel and FTP also please check the file name mentioned is exactly same and make sure there may not be any spaces
    4. If possible if u r admin do once J2EE Soft Restart instead of restarting entire server..or else instead of doing hard restart..
    5. After making changes and saving and activating try the scenario once aand also go to Run time work bench and communication channel Monitoring onceagain check the status...
    6. Most important thing is Go To RWB--> Message Monitoring--> Check the status of the message in both Integration Engine and Adapter ENgine so that you can get where it is failing and also where it was strucked....whether in Integration server side or else Adapter Engine side...
    7. Also please check one again SXMB_MONI, SMQ1 and SMQ2 and ST01 ( which is used to Trace the message by using this ST01),,,
    I hope it works....also check once mapping side once again...
    Regards:
    Amar Srinivas Eli

  • "Application has not registered to handle incoming messages on the Signaling Session," Diagnostic ID 24041

    Hi
    We have set up a Lync with connection to pbx. From our scenario we used the Lync 2013 Mobile client (android) to call to our ip phone, but when the ip phone answered, the call drops. We received this error from our Lync diagnostic report "Application
    has not registered to handle incoming messages on the Signaling Session," Diagnostic ID 24041. Hope you can help us to interpret this error and suggest any possible solution.
    thank you

    Hi Edison,
    Looks like REFFR is not supported between the gateway and mediation server.
    You can try to disable REFFER support and test the issue.
    In addition, to better understand the issue, you should check the logs.
    Also double check Lync server configuration item for CSMobilityPolicy and CSTrunkConfiguration .
    Best regards,
    Eric

  • Databsase log messages are not written to custom OutputStream

    I am using BDB 2.3.10 via Java API.
    I've enabled BDB log messages and could see them output fine to the console, but I couldn't output these messages into a file.
    Here is what I am doing:
    EnvironmentConfig envConfig = EnvironmentConfig.DEFAULT;
    envConfig.setErrorStream( new FileOutputStream ( errorLogFile ) );
    envConfig.setMessageStream( new FileOutputStream ( messageLogFile ) );
    XmlManager.setLogCategory( XmlManager.CATEGORY_ALL, true );
    XmlManager.setLogLevel( XmlManager.LEVEL_DEBUG, true );
    Environment env = new Environment(new File( dbLocation ), envConfig );
    XmlManager xmlManager = new XmlManager(env, xmlManagerConfig );
    All log messages are going to the console, instead of going to messageLogFile and errorLogFile .
    What am I doing wrong?

    Hi Basil,
    Exception handling and debugging for DBXML applications is explained in chapter 2 in the guide here:
    http://www.oracle.com/technology/documentation/berkeley-db/xml/gsg_xml/java/BerkeleyDBXML-JAVA-GSG.pdf
    Did you check your code so that you catch any exception that may be thrown ? Is there any exception thrown at all ?
    It may be more helpful if you post the small piece of code that demonstrates the issue. Put the code within pre tags surrounded by square brackets ([ pre ] <code here> [ /pre ] eliminate the spaces inside the brackets).
    Regards,
    Andrei

  • Event Handling for messages

    I would like to know how to handle events for messages i maintained in zmesg01.
    messages are follow:    when gv_spfli is initial
                                 "No such flight available.
                                when  gv_scarr is initial.
                                  "Flight name not available          with help of raise event ?
    pls suggest.
    *       CLASS lcl_mytestclass DEFINITION
    class lcl_mytestclass definition.
    public section.
       data: gt_spfli type table of spfli initial size 20,
               gt_scarr type table of scarr initial size 20.
       methods: get_data.
       events: data_not_found.
    endclass.                    "lcl_mytestclass DEFINITION
    *       CLASS lcl_mytestclass IMPLEMENTATION
    class lcl_mytestclass implementation.
    method: get_data.
       select * from spfli into table gt_spfli.
       if ( sy-subrc <> 0 ).
         raise event data_not_found.
         endif.
    select * from scarr into gt_scarr
    for all entries in gt_flight where  carrname = gt_spfli-carrname.
    if sy-subrc  <> 0.
    " How to call event for flight_name_not_found ?"
    raise event flight_name_not_found.
      endmethod.                    "get_data
      endclass.                    "lcl_mytestclass IMPLEMENTATION
    *       CLASS handler DEFINITION
    class handler definition.
    public section.
       methods handle_event
               for event data_not_found of lcl_mytestclass.
    endclass.                    "handler DEFINITION
    *       CLASS handler IMPLEMENTATION
    class handler implementation.
    method handle_event.
       write: / 'Data not found'.
    endmethod.                    "handle_excess
    endclass.                    "handler IMPLEMENTATION
    data: oref type ref to lcl_mytestclass,
         h1   type ref to handler.
    start-of-selection.
    create object: oref, h1.
    set handler h1->handle_event for all instances.
    call method oref->get_data.
    Thanks in advance.
    Anee.

    Hello Anee
    Events are not used for this kind of message handling.
    If you want to collect all messages then use a message handler (see sample report ZUS_SDN_ABAP_OO_MSG_HANDLING ).
    Alternatively, you may define an exception class and raise a class-based exception which contains the detailed error message.
    The following sample report is based on the more elaborate Wiki posting
    [Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
    *& Report  ZUS_SDN_ABAP_OO_MSG_HANDLING
    *& Thread: Event Handling for messages
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1052131"></a>
    REPORT  zus_sdn_abap_oo_msg_handling.
    TYPE-POOLS: abap.
    *       CLASS lcl_mytestclass DEFINITION
    CLASS lcl_mytestclass DEFINITION.
      PUBLIC SECTION.
        DATA: gt_spfli TYPE TABLE OF spfli INITIAL SIZE 20,
                gt_scarr TYPE TABLE OF scarr INITIAL SIZE 20.
        METHODS: constructor.
        METHODS: get_data
                       IMPORTING
                     value(id_carrid) TYPE s_carr_id.
        METHODS: has_messages
                   RETURNING value(rd_result)  TYPE abap_bool.
        METHODS: display_messages.
        EVENTS: data_not_found.
      PROTECTED SECTION.
        DATA: mo_msglist    TYPE REF TO if_reca_message_list.
    ENDCLASS.                    "lcl_mytestclass DEFINITION
    *       CLASS lcl_mytestclass IMPLEMENTATION
    CLASS lcl_mytestclass IMPLEMENTATION.
      METHOD constructor.
        me->mo_msglist = cf_reca_message_list=>create( ).
      ENDMETHOD.                    "constructor
      METHOD has_messages.
        IF ( me->mo_msglist->is_empty( ) = abap_false ).
          rd_result = abap_true.
        ENDIF.
      ENDMETHOD.                    "has_messages
      METHOD display_messages.
    * define local data
        DATA:
          ld_handle           TYPE balloghndl,
          lt_log_handles      TYPE bal_t_logh,
          ls_profile          TYPE bal_s_prof.
        " Get log handle of collected message list
        ld_handle = me->mo_msglist->get_handle( ).
        APPEND ld_handle TO lt_log_handles.
    *   get a display profile which describes how to display messages
        CALL FUNCTION 'BAL_DSP_PROFILE_DETLEVEL_GET'
          IMPORTING
            e_s_display_profile = ls_profile.  " tree & ALV List
    *   set report to allow saving of variants
        ls_profile-disvariant-report = sy-repid.
    *     when you use also other ALV lists in your report,
    *     please specify a handle to distinguish between the display
    *     variants of these different lists, e.g:
        ls_profile-disvariant-handle = 'LOG'.
        CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
          EXPORTING
            i_s_display_profile          = ls_profile
            i_t_log_handle               = lt_log_handles
    *       I_T_MSG_HANDLE               =
    *       I_S_LOG_FILTER               =
    *       I_S_MSG_FILTER               =
    *       I_T_LOG_CONTEXT_FILTER       =
    *       I_T_MSG_CONTEXT_FILTER       =
    *       I_AMODAL                     = ' '
    *     IMPORTING
    *       E_S_EXIT_COMMAND             =
          EXCEPTIONS
            profile_inconsistent         = 1
            internal_error               = 2
            no_data_available            = 3
            no_authority                 = 4
            OTHERS                       = 5.
        IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDMETHOD.                    "display_messages
      METHOD: get_data.
        SELECT * FROM spfli INTO TABLE gt_spfli
          WHERE ( carrid = id_carrid ).
        IF ( sy-subrc NE 0 ).
    **      RAISE EVENT data_not_found.
          IF 1 = 2. MESSAGE e154(bc_datamodel_service). ENDIF.
    *   Flight not found (table SFLIGHT)
          CALL METHOD me->mo_msglist->add
            EXPORTING
    *          is_message   =
              id_msgty     = 'E'
              id_msgid     = 'BC_DATAMODEL_SERVICE'
              id_msgno     = '154'
    *          id_msgv1     =
    *          id_msgv2     =
    *          id_msgv3     =
    *          id_msgv4     =
              id_detlevel  = '1'
    *        IMPORTING
    *          es_message   =
        ENDIF.
        IF ( gt_spfli IS INITIAL ).
        ELSE.
          SELECT * FROM scarr INTO TABLE gt_scarr
          FOR ALL ENTRIES IN gt_spfli
            WHERE  carrid = gt_spfli-carrid.
        ENDIF.
        IF ( gt_scarr is initial ).
          " How to call event for flight_name_not_found ?"
    **        RAISE EVENT flight_name_not_found.
          IF 1 = 2. MESSAGE e159(bc_datamodel_service) WITH '&all'. ENDIF.
    *   Airline & not found
          CALL METHOD me->mo_msglist->add
      EXPORTING
    *          is_message   =
        id_msgty     = 'E'
        id_msgid     = 'BC_DATAMODEL_SERVICE'
        id_msgno     = '159'
        id_msgv1     = '&all'
    *          id_msgv2     =
    *          id_msgv3     =
    *          id_msgv4     =
        id_detlevel  = '2'
    *        IMPORTING
    *          es_message   =
        ENDIF.
      ENDMETHOD.                    "get_data
    ENDCLASS.                    "lcl_mytestclass IMPLEMENTATION
    *       CLASS handler DEFINITION
    CLASS handler DEFINITION.
      PUBLIC SECTION.
        METHODS handle_event
                FOR EVENT data_not_found OF lcl_mytestclass.
    ENDCLASS.                    "handler DEFINITION
    *       CLASS handler IMPLEMENTATION
    CLASS handler IMPLEMENTATION.
      METHOD handle_event.
        WRITE: / 'Data not found'.
      ENDMETHOD.                    "handle_excess
    ENDCLASS.                    "handler IMPLEMENTATION
    DATA: oref TYPE REF TO lcl_mytestclass,
         h1   TYPE REF TO handler.
    PARAMETER:
      p_carrid    TYPE s_carr_id DEFAULT 'AA'.
    START-OF-SELECTION.
    START-OF-SELECTION.
      CREATE OBJECT: oref, h1.
    **  SET HANDLER h1->handle_event FOR ALL INSTANCES.
      CALL METHOD oref->get_data( p_carrid ).
      IF ( oref->has_messages( ) = abap_true ).
        oref->display_messages( ).
      ENDIF.
    END-OF-SELECTION.
    Regards
      Uwe

  • Auditing / logging scheduler external procedures?

    Hi ,
    I'm wondering if there's any way to audit the alter/execution of scheduler jobs which launch external procedures.
    I've got some external procedures that are altered dynamically in the application. I can track down WHEN was executed the stdout and stderr in DBA_SCHEDULER_JOB_LOG and dba_scheduler_job_run_details views, and the results in $ORACLE_HOME/scheduler folder. But I cannot see WHAT was executed (i.e. the job_action parameter and/or the argument_value if there are arguments).
    How can I achieve this?
    Regards

    If you can open a file from your external procedure written in C you can definitely write log messages.
    1) Check the permissions on the directories the external procedure will be opening file and writing messages.
    2) Create a test log file when you execute, if you do not give the path the file should get create in oracle software directories probably {ORACLE_HOME} path..
    Let me know if this solution works
    SS

  • System.log coreservicesd[55]: *** process 55 exceeded 500 log message per second limit

    I have a number of logs that suggest there is something not working correctly.  This error is generated on start.
    coreservicesd[55]: *** process 55 exceeded 500 log message per second limit  -  remaining messages this second discarded ***
    Any ideas on what might be happening?
    Mar  4 10:53:59 TJBs-MacBook-Pro mds[39]: (Error) Server: ==== XPC handleXPCMessage XPC_ERROR_CONNECTION_INVALID
    Mar  4 10:53:59 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] ([0x0-0x15015].com.apple.AppleSpell[193]): Exited: Killed: 9
    Mar  4 10:53:59 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] (com.apple.mdworker.pool.0[508]): Exited: Terminated: 15
    Mar  4 10:53:59 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] (com.apple.quicklook.ui.helper[463]): Exited: Killed: 9
    Mar  4 10:53:59 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] (com.apple.talagent[138]): Exited: Killed: 9
    Mar  4 10:53:59 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] ([0x0-0x51051].com.apple.QuickTimePlayerX[464]): Exited: Killed: 9
    Mar  4 10:53:59 TJBs-MacBook-Pro loginwindow[42]: DEAD_PROCESS: 42 console
    Mar  4 10:54:00 TJBs-MacBook-Pro airportd[646]: _doAutoJoin: Already associated to “9868LT1”. Bailing on auto-join.
    Mar  4 10:54:00 TJBs-MacBook-Pro shutdown[649]: reboot by MASTER:
    Mar  4 10:54:12 localhost bootlog[0]: BOOT_TIME 1330883652 0
    Mar  4 10:54:24 localhost UserEventAgent[11]: starting CaptiveNetworkSupport as SystemEventAgent built May 25 2011 12:27:35
    Mar  4 10:54:14 localhost com.apple.launchd[1]: *** launchd[1] has started up. ***
    Mar  4 10:54:23 localhost com.apple.launchd[1] (com.apple.sandboxd): Unknown value for key POSIXSpawnType: Interactive
    Mar  4 10:54:24 localhost UserEventAgent[11]: WirelessAirPortDeviceNameCopy(): no BSD interface name found for object 12551
    Mar  4 10:54:24 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptiveSCCopyWiFiDevices:388 WiFi Device Name == NULL
    Mar  4 10:54:28 localhost com.apple.pfctl[32]: No ALTQ support in kernel
    Mar  4 10:54:28 localhost com.apple.pfctl[32]: ALTQ related functions disabled
    Mar  4 10:54:29 localhost com.apple.ucupdate.plist[25]: ucupdate: Checked 1 update, no match found.
    Mar  4 10:54:31 localhost mDNSResponder[35]: mDNSResponder mDNSResponder-320.14.0 (Nov 16 2011 01:16:56) starting OSXVers 11
    Mar  4 10:54:32 localhost mds[34]: (Normal) FMW: FMW 0 0
    Mar  4 10:54:34 localhost com.apple.usbmuxd[24]: usbmuxd-263 on Nov 14 2011 at 18:58:10, running 64 bit
    Mar  4 10:54:34 localhost airportd[65]: _processDLILEvent: en1 attached (down)
    Mar  4 10:54:36 localhost mds[34]: (/.Spotlight-V100/Store-V2/E6A82D50-3EA4-4011-B64F-87EB86ACF9E3)(Normal) IndexGeneral in openReverseStore:Shadowing reverse store on open
    Mar  4 10:54:37 localhost UserEventAgent[11]: CaptiveNetworkSupport:CreateInterfaceWatchList:2788 WiFi Devices Found.
    Mar  4 10:54:37 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - PreProbe
    Mar  4 10:54:37: --- last message repeated 2 times ---
    Mar  4 10:54:37 localhost configd[14]: bootp_session_transmit: bpf_write(en1) failed: Network is down (50)
    Mar  4 10:54:37 localhost configd[14]: DHCP en1: INIT-REBOOT transmit failed
    Mar  4 10:54:37 TJBs-MacBook-Pro configd[14]: setting hostname to "TJBs-MacBook-Pro.local"
    Mar  4 10:54:37 TJBs-MacBook-Pro configd[14]: network configuration changed.
    Mar  4 10:54:38 TJBs-MacBook-Pro UserEventAgent[11]: ServermgrdRegistration cannot load config data
    Mar  4 10:54:38 TJBs-MacBook-Pro systemkeychain[61]: done file: /var/run/systemkeychaincheck.done
    Mar  4 10:54:38 TJBs-MacBook-Pro UserEventAgent[11]: get_backup_share_points no AFP
    Mar  4 10:54:38 TJBs-MacBook-Pro configd[14]: network configuration changed.
    Mar  4 10:54:38: --- last message repeated 1 time ---
    Mar  4 10:54:38 TJBs-MacBook-Pro mDNSResponder[35]: D2D_IPC: Loaded
    Mar  4 10:54:38 TJBs-MacBook-Pro mDNSResponder[35]: D2DInitialize succeeded
    Mar  4 10:54:38 TJBs-MacBook-Pro loginwindow[37]: Login Window Application Started
    Mar  4 10:54:38 TJBs-MacBook-Pro rpcsvchost[86]: sandbox_init: com.apple.msrpc.netlogon.sb succeeded
    Mar  4 10:54:39 TJBs-MacBook-Pro netbiosd[90]: Unable to start NetBIOS name service:
    Mar  4 10:54:39 TJBs-MacBook-Pro airportd[65]: _doAutoJoin: Already associated to “9868LT1”. Bailing on auto-join.
    Mar  4 10:54:40 TJBs-MacBook-Pro loginwindow[37]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
    Mar  4 10:54:40 TJBs-MacBook-Pro com.apple.launchctl.LoginWindow[99]: com.apple.findmymacmessenger: Already loaded
    Mar  4 10:54:40 TJBs-MacBook-Pro airportd[65]: _doAutoJoin: Already associated to “9868LT1”. Bailing on auto-join.
    Mar  4 10:54:40 TJBs-MacBook-Pro loginwindow[37]: Login Window Started Security Agent
    Mar  4 10:54:40 TJBs-MacBook-Pro SecurityAgent[105]: Echo enabled
    Mar  4 10:54:41 TJBs-MacBook-Pro WindowServer[85]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Mar  4 10:54:41 TJBs-MacBook-Pro configd[14]: network configuration changed.
    Mar  4 10:54:41 TJBs-MacBook-Pro UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - Probe
    Mar  4 10:54:41 TJBs-MacBook-Pro UserEventAgent[11]: CaptiveNetworkSupport:CNSPreferences:60 Creating new preferences
    Mar  4 10:54:41 TJBs-MacBook-Pro UserEventAgent[11]: CaptiveNetworkSupport:CaptiveStartDetect:2343 Bypassing probe on 9868LT1 because it is protected and not on the exception list
    Mar  4 10:54:41 TJBs-MacBook-Pro UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - Unknown
    Mar  4 10:54:41 TJBs-MacBook-Pro configd[14]: network configuration changed.
    Mar  4 10:54:47 TJBs-MacBook-Pro SecurityAgent[105]: User info context values set for MASTER
    Mar  4 10:54:49 TJBs-MacBook-Pro SecurityAgent[105]: Login Window login proceeding
    Mar  4 10:54:49 TJBs-MacBook-Pro loginwindow[37]: Login Window - Returned from Security Agent
    Mar  4 10:54:49 TJBs-MacBook-Pro loginwindow[37]: USER_PROCESS: 37 console
    Mar  4 10:54:49 TJBs-MacBook-Pro airportd[65]: _doAutoJoin: Already associated to “9868LT1”. Bailing on auto-join.
    Mar  4 10:54:49 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] (com.apple.ReportCrash): Falling back to default Mach exception handler. Could not find: com.apple.ReportCrash.Self
    Mar  4 10:54:49 TJBs-MacBook-Pro com.apple.launchctl.Aqua[130]: load: option requires an argument -- D
    Mar  4 10:54:49 TJBs-MacBook-Pro com.apple.launchctl.Aqua[130]: usage: launchctl load [-wF] [-D <user|local|network|system|all>] paths...
    Mar  4 10:54:49 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] (com.apple.launchctl.Aqua[130]): Exited with code: 1
    Mar  4 10:54:49 TJBs-MacBook-Pro UserEventAgent[11]: CaptiveNetworkSupport:CNSServerRegisterUserAgent:187 new user agent port: 14347
    Mar  4 10:54:50 TJBs-MacBook-Pro talagent[137]: CoreDockMinimizeItems failed (-4959)
    Mar  4 10:54:50 TJBs-MacBook-Pro com.apple.dock.extra[147]: Could not connect the action buttonPressed: to target of class NSApplication
    Mar  4 10:54:50 TJBs-MacBook-Pro com.apple.dock.extra[147]: 2012-03-04 10:54:50.423 com.apple.dock.extra[147:1707] Could not connect the action buttonPressed: to target of class NSApplication
    Mar  4 10:54:50 TJBs-MacBook-Pro com.apple.dock.extra[147]: Could not connect the action buttonPressed: to target of class NSApplication
    Mar  4 10:54:50 TJBs-MacBook-Pro com.apple.dock.extra[147]: 2012-03-04 10:54:50.424 com.apple.dock.extra[147:1707] Could not connect the action buttonPressed: to target of class NSApplication
    Mar  4 10:54:50 TJBs-MacBook-Pro com.apple.dock.extra[147]: Could not connect the action buttonPressed: to target of class NSApplication
    Mar  4 10:54:50 TJBs-MacBook-Pro com.apple.dock.extra[147]: 2012-03-04 10:54:50.425 com.apple.dock.extra[147:1707] Could not connect the action buttonPressed: to target of class NSApplication
    Mar  4 10:54:50 TJBs-MacBook-Pro com.apple.dock.extra[147]: Could not connect the action buttonPressed: to target of class NSApplication
    Mar  4 10:54:50 TJBs-MacBook-Pro com.apple.dock.extra[147]: 2012-03-04 10:54:50.426 com.apple.dock.extra[147:1707] Could not connect the action buttonPressed: to target of class NSApplication
    Mar  4 10:54:50 TJBs-MacBook-Pro coreservicesd[55]: *** process 55 exceeded 500 log message per second limit  -  remaining messages this second discarded ***
    Mar  4 10:54:51 TJBs-MacBook-Pro Finder[139]: kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 28
    Mar  4 10:54:51 TJBs-MacBook-Pro Finder[139]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Mar  4 10:54:51 TJBs-MacBook-Pro Finder[139]: kCGErrorIllegalArgument: CGSRemoveSurface: Invalid window 0x1c
    Mar  4 10:54:51 TJBs-MacBook-Pro Dock[136]: kCGErrorIllegalArgument: CGSSetWindowTags: Invalid window 0x1c
    Mar  4 10:54:51 TJBs-MacBook-Pro Dock[136]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Mar  4 10:54:51 TJBs-MacBook-Pro Dock[136]: kCGErrorIllegalArgument: CGSClearWindowTags: Invalid window 0x1c
    Mar  4 10:54:51 TJBs-MacBook-Pro Dock[136]: kCGErrorIllegalArgument: CGSOrderWindowList
    Mar  4 10:54:51 TJBs-MacBook-Pro talagent[137]: kCGErrorIllegalArgument: CGSGetWindowPresenter
    Mar  4 10:54:51 TJBs-MacBook-Pro talagent[137]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Mar  4 10:54:51 TJBs-MacBook-Pro talagent[137]: kCGErrorIllegalArgument: CGSOrderWindowListWithGroups: invalid window ID (28)
    Mar  4 10:54:51 TJBs-MacBook-Pro talagent[137]: kCGErrorIllegalArgument: CGSOrderWindowList: NULL list pointer or empty list
    Mar  4 10:54:51 TJBs-MacBook-Pro talagent[137]: CGSConnectionRelinquishWindowRights(cid, newWindowNumber, reservedRights): CGError 1001 on line 619
    Mar  4 10:54:53 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] ([email protected][161]): Exited with code: 1
    Mar  4 10:54:54 TJBs-MacBook-Pro com.apple.launchd.peruser.89[118] (com.apple.mdworker.pool.0): Throttling respawn: Will start in 4 seconds
    Mar  4 10:54:55 TJBs-MacBook-Pro com.apple.launchd.peruser.501[119] (com.apple.mdworker.pool.0): Throttling respawn: Will start in 3 seconds
    Mar  4 10:54:53 TJBs-MacBook-Pro ntpd[21]: proto: precision = 1.000 usec
    Mar  4 10:55:06 TJBs-MacBook-Pro coreservicesd[55]: *** process 55 exceeded 500 log message per second limit  -  remaining messages this second discarded ***
    Mar  4 11:00:28 TJBs-MacBook-Pro firefox[219]: -_scrollPhase is deprecated for NSScrollWheel. Please use -momentumPhase.
    Mar  4 11:00:28 TJBs-MacBook-Pro firefox[219]: -_continuousScroll is deprecated for NSScrollWheel. Please use -hasPreciseScrollingDeltas.
    Mar  4 11:00:28 TJBs-MacBook-Pro firefox[219]: -deviceDeltaY is deprecated for NSScrollWheel. Please use -scrollingDeltaY.
    Mar  4 11:00:28 TJBs-MacBook-Pro firefox[219]: -deviceDeltaX is deprecated for NSScrollWheel. Please use -scrollingDeltaX.

    I was able to identify the cause. Wrote in this thread the solution:
    http://discussions.apple.com/message.jspa?messageID=13160082#13160082

Maybe you are looking for