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.

Similar Messages

  • Log messages from multiple instances in single file.

    Hi!
    I have a requirement that i need to log messages from muliple instances of the same object in a file. The new file will be created every day. Likewise, multiple objects might have various instances each.
    One class
    ->multiple instances
    -> log message stored in single file.
    Note :
    I am using the Message driven bean. I need to log from the bean class. JDK 1.3
    If u could help me out that would be great.

    As long as they are all from the same OS program (a single Java VM), that's OK - you can use Log4j, and use a rotating file logger.
    If you point two different virtual machine processes at the same file, one may have it open when the other is trying to rotate it, and your rotation may fail (at best) and/or you may lose the old log (the worst case).
    If you need to collect log messages from multiple processes (or even multiple machines), use a syslog-based logger (Log4j has a SyslogAppender) or use Log4j's SocketAppender to write to a log4j-builtin log listener (SocketNode).

  • Weblogic 10.3 Not Removing Expired Messages from JMS Queues

    Dear All,
    We have an application that is running on Weblogic 10.3.
    This application (let us call this application Y) receives messages on a JMS queue. These messages are placed on the queue by another application (let us call this application X). We would like to have these messages expire within a certain amount of time (i.e. 90000 ms) if they are not consumed.
    Now when application X places the messages onto the queue for application Y to consume, the JMS producer sets the time to live to 90000 ms. We can see that expiration time has been set appropriately in the weblogic console. If a message sits on the queue for longer than 90000 ms the state string of the message is changed to "receive expired". What we don't understand is why the expired messages still end up being consumed from the queue.
    We understand that Weblogic is supposed to have an 'Active Message Expiration' thread that will remove expired messages from the queue. The Expiration Scan Interval for the JMS Server is set to 30 (seconds).
    Can anyone tell us why our expired messages don't seem to be deleted from the queues?
    Tim

    Thank you for the response Rene.
    We have set up both the active expiration scan and the message expiration policy. The active expiration scan is set for every 30 seconds. The message expiration policy is set to "discard". However, the expired messages are still being consumed. Is it possible we are doing something wrong? See a portion of our configuration files below.
    We have set up the expiration scan time interval. See a portion of our config.xml below:
    <jms-server>
    <name>brokerJMSServer</name>
    <target>AdminServer</target>
    <persistent-store xsi:nil="true"></persistent-store>
    <store-enabled>true</store-enabled>
    <allows-persistent-downgrade>false</allows-persistent-downgrade>
    <hosting-temporary-destinations>true</hosting-temporary-destinations>
    <temporary-template-resource xsi:nil="true"></temporary-template-resource>
    <temporary-template-name xsi:nil="true"></temporary-template-name>
    <message-buffer-size>-1</message-buffer-size>
    *<expiration-scan-interval>30</expiration-scan-interval>*
    <production-paused-at-startup>false</production-paused-at-startup>
    <insertion-paused-at-startup>false</insertion-paused-at-startup>
    <consumption-paused-at-startup>false</consumption-paused-at-startup>
    </jms-server>
    <jms-system-resource>
    <name>broker-jms</name>
    <target>AdminServer</target>
    <sub-deployment>
    <name>EhrBrokerRequestQueue</name>
    <target>brokerJMSServer</target>
    </sub-deployment>
    <descriptor-file-name>jms/broker-jms.xml</descriptor-file-name>
    </jms-system-resource>
    <admin-server-name>AdminServer</admin-server-name>
    We have set up the message expiration policy in our jms descriptor. See a portion below:
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-jms xmlns="http://www.bea.com/ns/weblogic/weblogic-jms" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-jms http://www.bea.com/ns/weblogic/weblogic-jms/1.0/weblogic-jms.xsd">
    <queue name="EhrBrokerRequestQueue">
    <delivery-params-overrides>
    <redelivery-delay>-1</redelivery-delay>
    </delivery-params-overrides>
    <delivery-failure-params>
    <redelivery-limit>-1</redelivery-limit>
    *<expiration-policy>Discard</expiration-policy>*
    </delivery-failure-params>
    <jndi-name>EhrBrokerRequestQueue</jndi-name>
    </queue>
    </weblogic-jms>
    What could we be doing wrong?
    Kind Regards,
    Tim

  • How do i remove recovered messages from my email

    I need help removing recovered messages from my email.

    I posted a very similar question.  The answers I received here did not help.  For anyone else looking, here is the solution that finally worked. My son found it via a Goolge search:
    Best answer - Sarah (Google Employee) Go to this answer
    chessop
    Please follow below steps.
    1.Take your gmail account offline from Mail and delete the recovered messages folder.
    2. Download the widget to show the hidden files fromhttp://www.apple.com/downloads/dashboard/developer/hiddenfiles.html
    3. Go to UserName/Library/Mail/IMAP-<username>@[email protected]/.OfflineCache
    4. Delete all the data under .OfflineCache folder - DO NOT DELETE the folder.
    5. Close Mail application and reopen.
    This should do the job.
    Best regards,
    Aadi
    338 of 359 people found this answer helpful. Did you? Sign in to vote. Report abuse
    See the answer in context

  • Removing superseded messages from the queue

    Does JSMQ provide any way for a producer to remove a message from the queue which it queued some time ago but which it no longer wishes to send?
    I am investigating the use of JSMQ in a military battlemap application connecting nodes over low bandwidth/unreliable connections. The reason we want to be able to remove messages is as follows: Say a producer sends a low priority message to the queue regarding a unit's position. Later on the same producer sends an update regarding the same unit to the queue. If the first message is still present in the queue (ie has not been sent yet) then we want the producer to be able to remove it as it is now superseded by the new message and we don't want to waste bandwidth sending the old message first.
    I know we can set an expiry time on messages, but this doesn't really solve our problem. We want the original message to stay in the queue indefinately (until it is read by the consumer) unless it is superseded by a new message in which case we want to remove it.
    Thanks
    Roger

    Hi Roger,
    JMS does not support the removal of messages from a queue
    as you described. I can't think of a way to not deliver the old
    message once it was already sent.
    Alternatives I can think of:
    - Adjust the interval at which the consumer reads the messages
    off the queue and/or the number of messages that are read;
    so that the consumer will see the old and new messages
    and can decide which one to use. This does not address the
    bandwidth issue but allows the consumer to behave smarter.
    - Similar to above, but on the producer side. The producer waits
    for some interval before sending a message, in case an
    updated position of a unit arrives at the producer. This might not
    be good if a consumer needs to know the location of a unit as
    soon as it is available.
    - Use a topic instead of a queue. When using queues, old
    messages (containing old positions) sent to a queue are kept
    until the consumer reads it. With topics, if no consumers are
    around, the message is tossed. However, if you really need old
    messages to lie around (e.g. need to know last position of
    unit), this won't suit your needs.
    Sorry I don't have a straight answer for you, hope this helps
    somewhat.
    -i
    http://wwws.sun.com/software/products/message_queue/index.html

  • Remove faces messages from context

    Hi,
    I am using below code to remove messages from context.
    But unable to remove messages.
    Please any one help me how to remove faces messages from context.
    Iterator iterator = FacesContext.getCurrentInstance().getMessages();
    while (iterator.hasNext()) {
            iterator.remove();
    }Thanks,
    sivareddy
    Edited by: sweetreddy2001 on Aug 26, 2009 6:56 PM

    Check the topic right below yours in the topic listing. The same question was asked and answered some hours ago.

  • WAP371: Log message from AP

    Hi, 
    I constantly have this log message comming from my wifi access point. How can I do to fix this issue.
    Most of the LAN devices are Phone, Tablet that goes in sleep mode. I read previous message that says that the WAP371 device has difficuty to manage those devices (Phone, Tablet...).
    How to desable those messages without giving up log and service continuity?
    Thanks.
    Vandman
    The log are under this message.
    Log Message from AP (IP OF the WAP371 device)
     TIME                Priority  Process Id                Message
    ========================================================================
    Apr 27 2015 09:3       3        hostapd[1757]           trying to update accounting statistics, station (MAC addresse of a device) not found

    Hi Kuba,
    The following works fine for adding messages in the trace, but ONLY when the trace string (the first argument in the trace method) is currently active (see System Administration screen).
    For the example below to show up in your trace files, the active trace section should be (at least) "someTraceString".
    Report.trace( "someTraceString", "some message", e );
    Logging something with Report.info() should write the message to the UCM log files (@ $domain_home/ucm/cs/weblayout/groups/secure/logs/).
    Fabian

  • How to remove duplicate messages from Mail in Mavericks (POP)

    Hello
    I'm having some significant problems with Apple Mail, and despite having researched widely, I haven't been able to find a solution yet. Here is my tale of woe...
    My set up is that I use Mail with 5 separate accounts, downloading all messages using POP. I keep all my mail so that I have a permanent record of all conversations, going back more than 10 years - this is about 250,000 emails. I'm running the latest version of Mavericks on a 2010 MBP. I have no intention of moving to IMAP - I need to keep a local archive of all my mail.
    A few months ago I was having problems with Mail being very slow to load and search emails. I decided to rebuild the mailboxes, but afterwards discovered that thousands of messages in the inbox of one of my accounts (and some of the sub-folders) had disappeared. Once I realised I tried to go back to a recent Time Machine back up, but, for whatever reason, that part of the back up hadn't worked properly and I was unable to recover the previous status. Ileft it while I decided what to do, and had time to deal with it.
    The last 2 years worth of emails on that account were still archived on gmail, so last week I decided to try redownloading the whole lot (something like 72,000 messages), and then uplanned to use one of the scripts I was aware of to remove the duplicates to the trash, and then remove any duplicates in the trash forever. That ought to mean I at least had an archive of the last two years of missing messages, even if I had no record of which ones had been flagged or replied to, etc.
    The downloading took about 24 hours to complete, and I now have almost 70,000 messages in the inbox of that account. However, I hadn't figured on two things:
    1. Mail 'hides' duplicate messages, meaning that all of the messages I've downloaded are showing as unread, and I can't differentiate the ones I already had in my Inbox, and the new downloads. When I click on those apparently unread messages I can see if they have been replied to or forwarded, etc, but there's no obvious way for me to remove the ones I have already dealt with to the trash, without going through them all manually, which is clearly impossible.
    2. The scripts I'd found for removing duplicates don't work. Andreas Amann's Remove Duplicates script doesn't work under Mavericks, and he has abandoned the project. I've also tried the remove-duplicate-messages.scpt made by Jolly Roger (http://jollyroger.kicks-***.org/software/), and while it *sometimes* works on individual subfolders on my Mac (but as far as I can tell removes the duplicate in that folder, rather than the newly downloaded version), mostly it doesn't work at all - it creates a 'Remove Duplicate Messages' folder on my desktop, a log inside it and a folder for removed messages, but nothing appears in the duplicates folder.
    So, I'm left in a position where I have 70,000 apparently unread messages in my Inbox, a massively bloated Mail library (which has pretty much doubled in size), a slow and unresponsive Mail program. I figure I have a number of options. Either I could abandon the last week's efforts and revert to the version of

    Apologies, this was posted here in error. Please find updated post here: https://discussions.apple.com/message/27261965#27261965

  • Log Messages from Transaction Event Logger

    I have 4 instances of MII v12.1 and within a transaction I want to add a message to the log when the transaction runs so I can view it through the message logger. All 4 MII instances were installed by the same consultant a few years ago so there "should" be no differences in the log configs. On 3 of the instances this is working fine - I have created a very simple transaction with one Event Logger action configured with a message "Test Message" and when I execute the transaction I see the correct entry in the log viewer. On the fourth however, although the transaction executes without error I am not seeing anything in the viewer for this event. I am using the standard "last 24 hours" log viewer with no filters and no specific log locations selected, and no customisations. I am seeing other system generated messages. I found some documentation about logging and the viewer and I found the Netweaver log config but as far as I can see it looks consistent between the instance which is working and the one which is not working. Is there some other config which needs to be done to enable Event Logging from transactions? My user has the same access across all instances. Any guidance would be appreciated. I attach a screen shot of what I am expecting to see (taken from one of the instances which is working).

    Hi Partha
    Many thanks for your reply. I have tried this and unfortunately it makes no difference. I also checked on the other instances and found they have their tracing levels all set to error, not Info. I have also noticed that on the instance which is working, in the System Configuration section at the bottom of the Log Config page - for Applications and all sub categories I see the entry .\log\applications_00.log in the Pattern column. On the instance which is not working I see that entry for the Applications root but not for any of the sub categories (even after selecting Copy to subtree). I cannot see where I can set this value (there is no modify function available, even under Administrator login).
    Also, when I look at the log messages which have generated when setting the Event Type to Error on the instance which is not working, it shows one entry and the Category and Location columns show <com.sap.xmii.bls.executables.action.logging.LoggingActions>. When I generate an event with type Error on the instance which is working I get 2 log messages, one with the Category and Location <com.sap.xmii.bls.executables.action.logging.LoggingActions> and the other with Category /Applications/XMII/Xacute/Event and Location <com.sap.xmii.bls.executables.action.logging.LoggingActions>.
    I guess that the .\log\applications_00.log should be showing for all subtree items under Applications and because it is not then the messages are not going into any application log. Not sure how to fix this however.
    I have also reset to the default configuration and it does not change the above.
    Best Rgds
    Richard

  • Lots of system log messages from nsurlstoraged, also systemstatsd

    I'm running Yosemite (10.10.2) on an old Mini (details below).  I am not having particular problems with slowness, crashes, etc., but I'm seeing repeated messages in the System Log which seem to be errors:
    nsurlstoraged[300]: ERROR: shrinkDB - shrink of file system cache did not fully complete.  Result: 11
    systemstatsd[1286]: assertion failed: 14C1514: systemstatsd + 3283 [A886B71F-3A31-3324-9B30-5143FDF4ECCB]: 0xb
    For at least the past 2 days, the systemstatsd messages have the exact same values.  When the computer is in active use, I get 2 of them every 3 to 4 minutes.
    The nsurlstoraged messages are a little more frequent but don't have such a clear pattern.  Some other messages from that source which are interspersed with the above message include the following:
    nsurlstoraged[1263]: realpath() returned NULL for /var/root/Library/Caches/ocspd
    nsurlstoraged[1263]: The read-connection to the DB=/var/root/Library/Caches/ocspd/Cache.db is NOT valid.  Unable to determine schema version.
    nsurlstoraged[1263]: ERROR: unable to determine file-system usage for FS-backed cache at /var/root/Library/Caches/ocspd/fsCachedData. Errno=13
    Should I be concerned about resolving these, or can I just ignore them?  I did run the string of commands provided in the forum by Linc which are intended to reset the privileges on everything in my home directory to the default values, and I also ran the password reset process via the recovery partition to reset the ACLs.
    Just a few quick notes about my system:
    - the volume My Mac system (external) is not the system or boot disk.  It has most of my image files (including iPhoto libraries) plus the iTunes Media folder.  I did not run any commands there to reset file/directory permissions.
    - the volume Macintosh HD is the system disk and contains my home directory.
    - I am planning to upgrade from to 4 GB to 8 GB RAM.
    Thanks very much for any insight into these messages!
    Dave
    EtreCheck version: 2.1.8 (121)
    Report generated April 7, 2015 at 9:11:16 PM EDT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        Mac mini (Early 2009) (Technical Specifications)
        Mac mini - model: Macmini3,1
        1 2.26 GHz Intel Core 2 Duo CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        NVIDIA GeForce 9400 - VRAM: 256 MB
            Acer P191W 1440 x 900 @ 60 Hz
    System Software: ℹ️
        OS X 10.10.2 (14C1514) - Time since boot: one day 22:49:30
    Disk Information: ℹ️
        Hitachi HTS543225L9SA02 disk0 : (250.06 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            disk0s2 (disk0s2) <not mounted> : 249.20 GB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        OPTIARC DVD RW AD-5670S
    USB Information: ℹ️
        Generic Mass Storage Device
        Logitech Trackball
        Newer Tech miniStack Classic 2 TB
            disk2s1 (disk2s1) <not mounted> : 210 MB
            disk2s2 (disk2s2) <not mounted> : 249.25 GB
            My Mac Time Machine (disk2s3) /Volumes/My Mac Time Machine : 1.50 TB (831.73 GB free)
        Canon iP4300
        Apple Computer, Inc. IR Receiver
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
    Firewire Information: ℹ️
        OWC Mercury Elite Pro Quad USB 3 800mbit - 800mbit max
            EFI (disk1s1) <not mounted> : 210 MB
            Macintosh HD (disk1s2) / : 319.21 GB (96.14 GB free)
            Recovery HD (disk1s3) <not mounted>  [Recovery]: 650 MB
            My Mac system (external) (disk1s4) /Volumes/My Mac system (external) : 499.46 GB (174.98 GB free)
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/TechTool Pro 7.app
        [not loaded]    com.micromat.driver.spdKernel (1 - SDK 10.8) [Click for support]
        [not loaded]    com.micromat.driver.spdKernel-10-8 (1 - SDK 10.8) [Click for support]
            /Library/StartupItems/BRESINKx86Monitoring
        [not loaded]    com.bresink.driver.BRESINKx86Monitoring (9.0) [Click for support]
            /System/Library/Extensions
        [loaded]    com.microsoft.driver.MicrosoftKeyboard (8.2) [Click for support]
            /System/Library/Extensions/MicrosoftKeyboard.kext/Contents/PlugIns
        [loaded]    com.microsoft.driver.MicrosoftKeyboardBluetooth (8.2) [Click for support]
        [not loaded]    com.microsoft.driver.MicrosoftKeyboardUSB (8.2) [Click for support]
            /Users/[redacted]/Downloads/LCC Installer.app
        [not loaded]    com.Logitech.Control Center.HID Driver (3.5.1 - SDK 10.0) [Click for support]
    Startup Items: ℹ️
        Executor: Path: /Library/StartupItems/Executor
        Startup items are obsolete in OS X Yosemite
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.CallHistorySyncHelper.plist
        [killed]    com.apple.cmfsyncagent.plist
        [killed]    com.apple.coreservices.appleid.authentication.plist
        [killed]    com.apple.EscrowSecurityAlert.plist
        [killed]    com.apple.sbd.plist
        [killed]    com.apple.scopedbookmarkagent.xpc.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        [killed]    com.apple.xpc.loginitemregisterd.plist
        9 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.ctkd.plist
        [killed]    com.apple.ifdreader.plist
        [killed]    com.apple.nehelper.plist
        [killed]    com.apple.softwareupdate_download_service.plist
        [killed]    com.apple.xpc.smd.plist
        [killed]    org.cups.cupsd.plist
        6 processes killed due to memory pressure
    Launch Agents: ℹ️
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.micromat.TechToolProAgent.plist [Click for support]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.bombich.ccc.plist [Click for support]
        [running]    com.crashplan.engine.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [running]    com.micromat.TechToolProDaemon.plist [Click for support]
        [failed]    com.nalpeiron.netpro.plist [Click for support]
        [loaded]    com.prosofteng.DriveGenius.locum.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
    User Launch Agents: ℹ️
        [failed]    com.adobe.ARM.[...].plist [Click for support]
        [failed]    com.amazon.cloud-player.plist [Click for support]
        [running]    com.amazon.music.plist [Click for support]
        [failed]    [email protected]
        [failed]    com.citrixonline.GoToMeeting.G2MUpdate.plist [Click for support] [Click for details]
        [failed]    com.google.GoogleContactSyncAgent.plist [Click for support]
        [failed]    com.plexapp.helper.plist [Click for support]
        [failed]    com.yahoo.YahooContactSyncAgent.plist [Click for support]
        [loaded]    net.jonstovell.keepMinasTirithdata(external)Spinning.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    Application Hidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        MiniUsage    Application  (/Applications/MiniUsage.app)
        Alfred    Application  (/Applications/Alfred.app)
        OpenDNS Updater    Application Hidden (/Applications/OpenDNS Updater.app)
        CrashPlan menu bar    Application  (/Applications/CrashPlan.app/Contents/Helpers/CrashPlan menu bar.app)
        OneDrive    Application  (/Applications/OneDrive.app)
    Internet Plug-ins: ℹ️
        Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 [Click for support]
        FlashPlayer-10.6: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        EPPEX Plugin: Version: 4.1.0.0 [Click for support]
        Flash Player: Version: 17.0.0.134 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        Silverlight: Version: 5.1.20125.0 - SDK 10.6 [Click for support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
    User internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
        Picasa: Version: 1.0 [Click for support]
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
    Safari Extensions: ℹ️
        feedly
        Add to Google Reader
        FlickrPlus
        Ultimate Status Bar
        Exposer
        Evernote Web Clipper
        InvisibleHand
        Turn Off the Lights
        The New York Times
        Procrastinate
        Better Facebook
        Save to Pocket
        Print Plus
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        Microsoft Keyboard  [Click for support]
        TechTool Protection  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: OFF
        Auto backup: NO - Auto backup turned off
        Volumes being backed up:
            My Mac system (external): Disk size: 499.46 GB Disk used: 324.48 GB
            Macintosh HD: Disk size: 319.21 GB Disk used: 223.07 GB
        Destinations:
            My Mac Time Machine [Local]
            Total size: 1.50 TB
            Total number of backups: 59
            Oldest backup: 2013-12-04 08:43:17 +0000
            Last backup: 2015-04-05 15:12:17 +0000
            Size of backup disk: Too small
                Backup size 1.50 TB < (Disk used 547.55 GB X 3)
    Top Processes by CPU: ℹ️
             4%    top
             2%    WindowServer
             2%    systemstatsd
             1%    Safari
             0%    MiniUsage
    Top Processes by Memory: ℹ️
        266 MB    CrashPlanService
        112 MB    Mail
        86 MB    Finder
        82 MB    Console
        69 MB    Safari
    Virtual Memory Information: ℹ️
        106 MB    Free RAM
        983 MB    Active RAM
        895 MB    Inactive RAM
        870 MB    Wired RAM
        17.28 GB    Page-ins
        506 MB    Page-outs
    Diagnostics Information: ℹ️
        Apr 6, 2015, 08:15:21 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.MailServiceAgent_201 5-04-06-201521_[redacted].crash
        Apr 5, 2015, 10:35:53 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/QuickLookSatellite_2015-04-05- 223553_[redacted].crash
        Apr 5, 2015, 10:35:52 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/QuickLookSatellite_2015-04-05- 223552_[redacted].crash
        Apr 5, 2015, 10:16:51 PM    Self test - passed
        Apr 5, 2015, 03:58:09 PM    /Library/Logs/DiagnosticReports/CrashPlanService_2015-04-05-155809_[redacted].c pu_resource.diag [Click for details]

    I switched over to an early 2008 20-inch iMac (booting from same external disk) and the "ERROR:shrink DB" and "assertion failed" messages are continuing, so I doubt that it is related to the hardware unless it's the external drive itself or the Firewire cable.
    Any help would be appreciated...

  • GUI receiving log messages from JMS

    Hi,
    I have three classes: GUI, EventListener and JMSListener. What I want to do is to create a login dialog. The user enters his username and password, presses the login button and waits (as this process can take a while). While waiting, he can see log messages sent via JMS.
    I set up a TextListener (in my case a JMSListener) and a subscriber like it is described here: http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client.html#1027256.
    But the JMSListener never gets any message although the connection is set up correctly (this is just a guess as no exception is thrown). I think that this is a GUI problem. Because if only the JMSListener is running, it does receive messages. Is it possible that the GUI blocks somehow?
    Here is some code... First the class that holds the main method:
    package de.dtnet.client.run;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    import de.dtnet.client.gui.SWDemoGUI;
    import de.dtnet.client.listener.SWDemoEventlistener;
    public class SWDemoClient {
        private static SWDemoGUI swdemo = null;
         * @param args
        public static void main(String[] args) {
            swdemo = new SWDemoGUI();
            SWDemoEventlistener listener = new SWDemoEventlistener(swdemo);
            swdemo.registerEventlistener(listener);
    }The code from the GUI (only the important parts):
    package de.dtnet.client.gui;
    import de.dtnet.client.listener.SWDemoEventlistener;
    public class SWDemoGUI extends JFrame implements Serializable {
        private static final long serialVersionUID = 1L;
         * Default constructor
        public SWDemoGUI() {
            initialize();
         * Creates widget objects and puts everything together
        public void initialize() {
            // GUI with JTextPane for log messages
        public void logOK(String msg) {
            log(OK, msg);
        public void logInfo(String msg) {
            log(INFO, msg);
        public void logWarning(String msg) {
            log(WARNING, msg);
        public void logError(String msg) {
            log(ERROR, msg);
        public void log(String level, String msg) {
            StyledDocument doc = messagesTextPane.getStyledDocument();
            try {
                doc.insertString(doc.getLength(), msg + "\n", doc.getStyle(level));
            } catch (BadLocationException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            messagesTextPane.setCaretPosition(doc.getLength());
        public void registerEventlistener(SWDemoEventlistener listener) {
            loginBtn.addActionListener(listener);
            usernameTxt.addFocusListener(listener);
            passwordField.addFocusListener(listener);
    }The enventlistener:
    package de.dtnet.client.listener;
    // imports
    public class SWDemoEventlistener implements ActionListener, FocusListener {
        private SWDemoGUI gui = null;
        private String logLevel = null;
        private String logMessage = null;
        private TopicConnectionFactory conFactory = null;
        private TopicConnection connection = null;
        private TopicSession topicSession = null;
        private Topic topic = null;
        private TopicSubscriber subscriber = null;
        public SWDemoEventlistener(SWDemoGUI gui) {
            this.gui = gui;
            initJMS();
        private InitialContext getInitialContext() {
            // set the properties for the InitalContext
            Properties env = new Properties( );
            env.put("java.naming.provider.url",
                    "jnp://localhost:1099");
            env.put("java.naming.factory.initial",
                    "org.jnp.interfaces.NamingContextFactory");
            env.put("java.naming.factory.url.pkgs", "org.jnp.interfaces");
            try {
                // initalize and return the InitalContext with
                // the specified properties
                return new InitialContext(env);
            } catch (NamingException ne) {
                System.out.println("NamingException: " + ne);
            return null;
        private void initJMS() {
            try {
                // Obtain a JNDI connection
                InitialContext jndi = getInitialContext();
                Object ref = jndi.lookup("ConnectionFactory");
                // Look up a JMS connection factory
                conFactory = (TopicConnectionFactory) PortableRemoteObject.narrow(
                        ref, TopicConnectionFactory.class);
                // Create a JMS connection
                connection = conFactory.createTopicConnection();
                // Create a JMS session objects
                topicSession = connection.createTopicSession(
                        false, Session.AUTO_ACKNOWLEDGE);
                // Look up a JMS topic
                topic = (Topic) jndi.lookup("topic/testTopic");
            } catch (NamingException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (JMSException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() == gui.getLoginButton()) {
                // Do some authentication stuff etc.
                /* Now awaitening messages from JMS */
                subscribe(sessionID);
        public void subscribe(Long sessionID) {
            String selector =  "SessionID='" + sessionID.toString() + "'";
            gui.logInfo("Selector: " + selector);
            try {
                //subscriber = topicSession.createSubscriber(topic, selector, true);
                subscriber = topicSession.createSubscriber(topic);
                JMSListener listener = new JMSListener(gui);
                subscriber.setMessageListener(listener);
                connection.start();
                gui.logOK("Verbindung zu JMS erfolgreich");
            } catch (JMSException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    }and finally the JMSListener:
    ackage de.dtnet.client.listener;
    public class JMSListener implements MessageListener {
        private SWDemoGUI gui = null;
        private String logLevel = null;
        private String logMessage = null;
        public JMSListener(SWDemoGUI gui) {
            super();
            this.gui = gui;
        public void onMessage(Message incomingMessage) {
            System.out.println("You got message!");
            try {
                MapMessage msg = (MapMessage) incomingMessage;
                logMessage = msg.getString("Message");
                logLevel = msg.getString("Level");
            } catch (JMSException e) {
                e.printStackTrace();
            Runnable logTopicMessage = new Runnable() {
                public void run() {
                    System.out.println("Now updating the GUI");
                    gui.log(logLevel, logMessage);
            SwingUtilities.invokeLater(logTopicMessage);
            System.out.println("Message fully retrieved!");
    }I spent a whole day on this and I'm really becoming desperate as I can't see where the problem is and my time is running out (this is for my diploma thesis)! Does anyone of you? Please!
    Thank you!
    -Danny

    Hello Veronica4468,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning Messages and SMS:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Best practices for logging results from Looped steps

    Hi all
    I would like to start a discussion  to document best practices for logging results (to reports and databases) from Looped Steps 
    As an application example - let's say you are developing a test for one of NI's analog input or output cards and need to measure a voltage across multiple inputs or outputs.
    One way to do that would be to create a sequence that switches the appropriate signals and performs a "Voltage Measurement" test in a loop.    
    What are your techniques for keeping track of the individual measurements so that they can be traced to the individual signal paths that are being measured?
    I have used a variety of techniques such as
    i )creating a custom step type that generates unique identifiers for each iteration of the loop.    This required some customization to the results processing . Also the sequence developer had to include code to ensure that a unique identifier was generated for each iteration
    ii) Adding an input parameter to the test function/vi, passing loop iteration to it and adding this to Additional results parameters to log.   

    I have attached a simple example (LV 2012 and TS 2012) that includes steps inside a loop structure as well as a looped test.
    If you enable both database and report generation, you will see the following:
    1)  The numeric limit test in the for loop always generates the same name in the report and database which makes it difficult to determine the result of a particular iteration
    2) The Max voltage test report includes the paramater as an additional result but the database does not include any differentiating information
    3) The Looped Limit test generates both uniques reports and database entries - you can easily see what the result for each iteration is.   
    As mentioned, I am seeking to start a discussion for how others handle results for steps inside loops.    The only way I have been able to accomplish a result similar to that of the Looped step (unique results and database entry for each iteration of the loop) is to modify the process model results processing.  
    Attachments:
    test.vi ‏27 KB
    Sequence File 2.seq ‏9 KB

  • Dequeue with OCCI does not remove the message from the queue

    Hey there,
    I have this problem where no matter what dequeue option I try the messages never seem to be removed from the queue... I tried looking around and found only a similar un-answered question...
    Thanks in advance...
    void TryAnydataDequeue(oracle::occi::Connection * conn)
         try
              std::cout << "Dequeue Commence..." << std::endl;
              Consumer cons(conn);
              //Settings de dequeue
              cons.setCorrelationId("SPPC");
              cons.setQueueName("Anydata_queue");
              cons.setConsumerName("SNOOP");
              cons.setDequeueMode(cons.DEQ_REMOVE);
              //cons.setDequeueMode(cons.DEQ_LOCKED);
              std::cout << "Reception du message..." << std::endl;
              Message m2 = cons.receive(Message::ANYDATA);
              AnyData any(conn);
              any = m2.getAnyData();
              if(!any.isNull())
                   oracle::occi::TypeCode type = any.getType();
                   if(type == OCCI_TYPECODE_VARCHAR2)
                        std::string msg = any.getAsString();
                        std::cout << "Message Reçu: ";
                        std::cout << msg << std::endl;
                   else
                        std::cout << "Format du message invalide..." << std::endl;
                   std::cout << "Fin du message... (Press a key)" << std::endl;
              else
                   std::cout << "Message invalide..." << std::endl;
              System::String * theInput = System::Console::ReadLine();
         catch(SQLException ex)
              std::cout << "Exception: " << ex.getErrorCode() << " - " << ex.getMessage() << std::endl;
              System::String * tnput = System::Console::ReadLine();
    }

    The message from the queue will be removed when you do a commit after a successful dequeue call, depending upon your message retention settings.
    After you have done this processing and successfully performed a commit, what is the output of the following query:
    SQL> connect AQADMIN/password
    SQL> select msg_state from aq$<your_queue_table_name_goes_here> ;?
    If it is PROCESSED, check your queue retention settings.
    Additionally, make sure that the init.ora parameter AQ_TM_PROCESSES is set to a NON-ZERO value for this to happen.

  • Removal of messages from persisted store

              Hi,
              If I'm using a JDBC store for my JMS server, are the messages removed from the
              DB when they are acknowledged? Are there config settings which play into this?
              Thanks,
              Bob
              

    Elias Sinderson wrote:
              > Tom Barnes wrote:
              >
              >> An acknowledge deletes the associated
              >> messages from the store, whether
              >> it is a JDBC store or a file store. There is no config
              >> setting to turn off this behavior - and you are the first
              >> customer to ever ask if there was such a beast.
              >
              >
              > Actually, I looked for such a configuration but have been put in the
              > position of archiving JMS messages myself as this option is not provided
              > out of the box...
              Ah. Yes, I understand this use case. We are keeping it in mind
              for the future. The future solution may involve simply sending
              a duplicate message to another destination in the same
              transaction. The adminstrative interface might simply
              be something like an "ArchiveDestination" parameter on the
              original destination's configuration. Would that be sufficient?
              >
              > There are a number of reasons one may want to do wuch a thing, ranging
              > from record retention to simply allowing an end user to browse through
              > the set of delivered messages.
              I agree.
              > Personally, I believe that it is a
              > shortcoming of the JMS specification that it does not address this issue.
              Well pub/sub can address this issue. The drawback is that a durable
              subscriber is not the same as a queue - only one consumer can use
              it a time.
              >
              > The long and the short of it, in my case, is that I've now reimplemented
              > a good portion of the JMS specification on top of BEAs implementation.
              With WL, you can use standard JMS pub/sub to replicate messages
              and then use a messaging bridge to forward a subscription to a queue.
              This, of course, does not give great performance, but many applications
              are not sensitive to JMS performance.
              Another approach is to have senders send two messages, one to a
              pub/sub "monitoring" topic and one to the queue. Optionally
              using a transaction to ensure that it is atomic. Again, this is
              not a great performer.
              >
              >
              > Elias
              >
              Tom, BEA
              

  • Remove success message from VA01

    Hola buenos días,
    what i am looking for if it is possible to remove sucess message after calling transaction with call transaction abap statement, in the case i am asking for is to remove from status bar the message "Successfully sales order XXXXXX created", i do not see that posiibility in any of the options of this statement.
    Correct answer will be apprecciate.
    Saludos.

    Did you try
    Overwrite with your own blank message
    Replace the CALL TRANSACTION with FM ABAP4_CALL_TRANSACTION starting another task and waiting til completion (jackhammer to crack a nut...)
    Aaything else ?
    Regards,
    Raymond

Maybe you are looking for