Event Notifications for Deadlock Graphs

So, I was trying to setup emailing of deadlock graphs using event notifications. I followed the information I found in Jonathon Kehayias PASS information, but it appears (and maybe I am wrong) that event notifications and queues only work on
the database you create them under??? I see it says in BOL: http://msdn.microsoft.com/en-us/library/ms189453.aspx that it applies to the instance, but when I manually create a deadlock,
the queue only gets an entry if the deadlock was created accessing an object in the database where the queue was created. If I switch to another database, it does not add to the queue at all. Is that right? Or did I possibly configure something wrong? I can't
believe that events would be restricted to only fire in the database scope of the queue. That just sounds like it would essentially make this tool kind of useless for broader scoping work, like, anything actually instance related. Does anyone know? 
John M. Couch

Wow, I have a bunch of other stuff in there that maybe I don't need. I actually created a separate database. I am guessing that because you used MSDB that you did not have to enable the service broker using the code below:
-- Enable Service Broker
alter database [SysAdm]
set enable_broker;
go
I also noticed you did not create a route ? 
create route [CaptureDeadlockRoute] with service_name = 'CaptureDeadlockService', address = 'LOCAL';
go
And this appears to be where I screwed up. I did not pull the GUID and use it in the Event Notification creation, I simply used Current Database. 
-- Now query the sys.databases for the service_broker_guid of the msdb database.
SELECT service_broker_guid FROM sys.databases WHERE name = 'msdb';
In MSDB, create event notification using the GUID from above:
CREATE EVENT NOTIFICATION evnDeadLock_Graph
ON SERVER
WITH FAN_IN
FOR DEADLOCK_GRAPH
TO SERVICE 'svcDeadLock_Graph'
, '8D785814-2D75-490C-B07D-7303363A9B6B'; -- the GUID for msdb goes here
And I noticed you did not use the mail cert as in his code. Did it not work, or did you just skip it?
-- Create a certificate to sign stored procedures with
create certificate [dbaMailCert] encryption by password = 'dhsfosjf' with subject = 'Certificate for Sending Email via Stored Procedure';
go
-- Backup certificate so it can be create in master database
backup certificate [dbaMailCert] to file = 'R:\Path\dbaMailCert.CER';
go
-- Add Certificate to Master Database
use [master]
go
create certificate [dbaMailCert] from file = 'R:\Path\dbaMailCert.CER';
go
-- Create a login from the certificate
create login [dbaMailLogin] from certificate [dbaMailCert];
go
-- The Login must have Authenticate Sever to access server scoped system tables
-- per http://msdn.microsoft.com/en-us/library/ms190785.aspx
grant authenticate server to [dbaMailLogin]
go
-- Create a MSDB User for the Login
use [msdb]
go
create user [dbaMailLogin] from login [dbaMailLogin]
go
-- Add msdb login/user to the DatabaseMailUserRole
exec msdb.dbo.sp_addrolemember @rolename = 'DatabaseMailUserRole', @membername = 'dbaMailLogin';
go
John M. Couch

Similar Messages

  • Getting event notifications for calendar I'm no longer subscribed to

    Since updating to iOS 6, my iPhone has been giving me reminder notifications (with sound) for a calendar that I'm no longer subscribed to (a Meetup calendar). The events don't show up in iCal or my iPhone Calendar app, just when the notification happens... and when I swipe to look at the notification, it says it's from "untitled calendar". I can delete the event at that time, after the notification alert, but that's not helpful.
    I've looked in iCloud and on my phone's settings, but I can't find this "untitled calendar" anywhere and so can't delete it or the ghost events.

    I found why I don't receive the notifications into my calendar.
    I don't know how this is possible, but the notifications are sended to another apple user ID that belongs to me.
    I cleaned the contact information on the cloud and on the local contacts app. in my mac, my wife mac and all my ios devices.
    Still I don't receive the notifications.
    I managed to receive the an email for every notification since I changed the options on the icloud calendar preferences advanced tab.
    But now, I put it back to in app notification, now I still get an email, but now I get two instead of one, one that informing that I refused the invitation and one for the invitation.
    Any suggestions?

  • Event notification for merge\compare\split doccument\s.

    Hi,
    I want my acrobat plugin should get notified about application events like "merge\compare\split doccuments" or "create portfolio".
    Please let me know whether it is possible to observe these events using AVAppRegisterNotification, or there is any other mechanism to achieve this.
    I also want to access data [Interested in document names which are participating in above highlighted actions]. Is it possible to manipulate application flow for above actions.
    Any help about this is highly appreciated.
    Thanks in advance,
    Vijay

    I think you will get more and better responses in the Acrobat SDK forum.

  • Custom Event Notification (email) for Approval Tasks in OIM 11g

    Hi,
    how to create event notification for approval tasks in OIM 11g. I mean how to send email notification to user who sholuld accept or reject approval task?
    best
    mp
    Edited by: J23 on 2011-05-30 04:08

    Here is the documentation http://download.oracle.com/docs/cd/E21764_01/integration.1111/e10224/bp_notif.htm#SOASE548
    Search for SOA BPEL Email Notifications for more information:
    http://soa-bpel-esb.blogspot.com/2010/01/email-notification-in-bpel.html
    http://download.oracle.com/docs/cd/B31017_01/core.1013/b28764/bpel013.htm
    There are many more search links that can help you out.
    -Kevin

  • Notification for reconciliation events.

    I have configured the task in the Design console for receiving the email notification for the recon events (insert and update) for xellerate User process form.
    The steps that I followed are:
    In the Design Console add the email notification information in the Reconciliation Insert Received (or Reconciliation Update Received) process task for Xellerate User:
    a. Open Process Management - Process Definition and query for "Xellerate User"
    b. Double-click on the box to the left of the task "Reconciliation Insert Received" (or "Reconciliation Update Received").
    c. In the pop-up window, click on the Assignment tab and configure to use the default rule, target type User, and set the "User" column to the login of the user who should receive the email notifications.
    d. Click on the Notification tab and check the "Assignee" checkbox, set the status to "C" for Completed, and then set the Email column to the email template to send.
    I have setup the Email Server IT Resource as well as the email Ids.Still I am not receiving any emails for the events.
    Am i doing something wrong in the design console configuration?
    Any help is appreciated.Thanks

    In Assignment tab - As you have configured assignment of this user to some user, you can configure email as follow
    Scroll right - provide email template name under "Email Name", click on check box "Send Email"
    Run PurgeCache.sh after these changes.

  • How can I stop notifications for calendar events in a shared calendar?

    I have a shared iCal calendar in iCloud. I share it with my wife, so she can see my work schedule. It is a bit annoying though that her iPhone keeps doing all my reminders and notifications for calendar events. I want her to able to see and edit my calendar but she'd like very much not to have her phone buzzing all the time.

    Andrei1,
         So are you saying that if I, rather than assigning a uint to the column and row number for each tile, just assigned a string to each one in the form "#_#" then I could actually just assign the "adjacent" array directly to it instead of using a generic object to hold those values? In this case, my click event would simply check the indexes, one at a time, of all tiles currently stored in my "selectArr" array against the column/row string in the currently selected tile. Am I correct so far? If I am then let's say that "selectArr" is currently holding five tile coordinates (the user has clicked on five adjacent tiles thus far) and a sixth one is being evaluated now:
    Current "selectArr" values:
           1_0
           1_1, 2_1, 3_1
                  2_2
    New tile clicked:
           1_0
           1_1, 2_1, 3_1
                  2_2
                  2_3
    Coordinate search:
           1_-1
    0_0, 1_0, 2_0, 3_0
    0_1, 1_1, 2_1, 3_1, 4_1
           1_2, 2_2, 3_2
                  2_3
         Essentially what is happening here is that the new tile is checking all four coordinates/indexes belonging to each of the five tiles stored in the "selectArr" array as it tries to find a match for one of its own (which it does for the tile at coordinate 2_2). Thus the new tile at coordinate 2_3 would be marked as valid and added to the "selectArr" array as we wait for the next tile to be clicked and validated. Is this correct?

  • How to Generate Event on change in Plot Legend for XY Graph

    Hi,
    I have two XY graphs on the front panel and would like to maintain a common plot legend such that any change in the plot legend affects both graphs.
    Objective: I would like any value change in plot legend to fire an event.
    How do I program that?
    I know of value change event for the graph but am unable to find something specific to the plot legend. Other option is to have the user press a "refresh" button that will fire the event.
    Feel free to share thoughts on other elegant methods to achieve the same objective.
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hi Sarah,
    Looks like you are talking of exactly what I want!
    I have attached a sample VI to try achieve what I want. But it still has some issues which are:
    1) I am unable to configure a Plot Attribute Change Event. I have used a mouse leave event instead. How does one configure a Plot Attribute Change Event?
    2) Is there no single property which will transfer all the settings of plot legend from one graph to plot legend of another graph? In my sample VI, I have to read each property of the master graph and feed it into the slave graph.
    Kindly note I am using LV FDS 7.1 on Win2000
    Thanks,
    Gurdas
    Message Edited by Gurdas on 03-27-2006 11:51 PM
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu
    Attachments:
    Graph_PlotLegend_Event.vi ‏45 KB

  • Multiple recipients for event notifications/alarms

    Is it possible to send event notifications to mutiple email address.
    We use Convergence with latest patch level and Calendar Server 6.3
    Thanks for any hints or howtos
    Edited by: toni1988 on 30.04.2013 08:52

    I believe Calendar Server 6 supports only one notification address. CS7 supports multiple.

  • Calendar-notifications for events in the past

    Since iOS 7, my notifications for an calendar-event in the notification center are gone, if i'm checking them to late. Is it possible to change the settings, so I can see them, until I'm going to delete them?
    If not, is there an alternative calendar-app with push notifications I can use instead?
    Thanks for an answer.

    Hello Ryan,
    I created a small demo which could make the scenario: the event mesage could be delayed:
    using System;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.Linq;
    using System.Text;
    using System.Threading;
    using System.Threading.Tasks;
    namespace P20150409
    class Program
    static void Main(string[] args)
    EventLog myNewLog = new EventLog("Application", ".", "dotNET Sample App");
    myNewLog.EntryWritten += new EntryWrittenEventHandler(MyOnEntryWritten);
    myNewLog.EnableRaisingEvents = true;
    while (true)
    System.Threading.Thread.Sleep(3000);
    string EventWriteTime = DateTime.Now.ToString();
    Console.WriteLine("Log is written at" + EventWriteTime);
    myNewLog.WriteEntry("Test message written at" + EventWriteTime + " " + System.Threading.Thread.CurrentThread.ManagedThreadId, EventLogEntryType.Information);
    Console.WriteLine();
    Console.ReadLine();
    private static void MyOnEntryWritten(object sender, EntryWrittenEventArgs e)
    System.Threading.Thread.Sleep(6000);
    Console.WriteLine("EntryWritten event is fired at" + DateTime.Now.ToString());
    Console.WriteLine("Log time is" + e.Entry.Message);
    Console.WriteLine();
    This is the result:
    As we can see that the interval between event fired time and the current written time is bigger and bigger, so it could be that an event is fired 2 year later...And for reason, we can see that it is becuase i set the event sleep 6s whenever it
    is fired. So i am wondering in your event, there is a similar feature which causes this delay.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Event Notifications: insufficient system memory

    I'm looking for a sanity check.  Service broker and Event Notifications are new to me, so it is possible I'm either abusing or incorrectly using the technology.  I'm experimenting with using Event Notifications and Server Broker to log error messages.  The process works pretty well as long as I don't do something stupid such as stressing the process by calling raiserror in a loop of a 100000 - twice.  It processed for a while, but eventual either SQL Server terminates (sev 25) or I had to force the SQL service to stop by killing it's process via task manager.  I could not connect to SQL Server or stop the service normally.  
    I have several general questions.  I think they are good questions.  Any thoughts or suggestions would be appreciated. 
    1) I'm looking into generating deadlock and blocking email alerts.  It appears that Event Notification is the way to go since there are very few events and I can respond to the event with an email.  Is there a better method to automate blocking and deadlock email alerts that include event details? 
    2) If I wanted to retain some history of errors for the developers, should Event Notifications be avoided if a high number of errors can be generated by a badly formed T-SQL?  Avoid TRC_ERRORS_AND_WARNINGS and USER_ERROR_MESSAGE?  (I could tell the developers not to be stupid, but why would that stop them if it does not stop me?)
    3) Is there a way to efficiently filter a Event Notification from entering the queue before the Receive statement is called?  I get some events that I throw away after receiving them.  For example, perhaps I want all events from all non-system databases without having to add a notification for each single non-system database.  Or I want all errors with severity 11-17 only? 
    4) Is there a trick to filter out events from the procedure activated by the event.  I tried using raiserror to debug a procedure without thinking.  The result was that the queue never was empty because the processing produced more events to process.  As a result, I don't use raiserror and use a try-catch to avoid raising errors in the procedure activated. 
    5) I can receive one message at a time using local variables or receive a batch of messages using a local table.  Is a small batch the best way even if there is memory pressure? 
    6) In the activated procedure I continue processing in a loop until there are no more messages.  This seems to be the most efficient.  Is this always the case?  Should I exit the procedure after a set number (large) of messages have been received?  The procedure would activate again to continue processing? 
    7) Is there any point to using the MAX_QUEUE_READERS setting when processing event notifications?  Should it be 1? 
    8) I currently get the next conversation group id and process its messages within a transaction.  Is this a bad idea with event notifications?  Should I just call Receive and get the next batch?  I don't really care if I lose some messages if things are going badly.  Should I avoid wrapping the receive in a transaction? 
    9) I could run a trace that starts with SQL Server; however, I think my only choice is to log to a file.  Is there a way to trace to a table using SQLTrace without running profiler?  I would like to automate the process and have the data in a table so that it can be easily queried and parsed for each database/team. 
    10) Is there a way to fix my process and handle 100000 messages a minute?  Is there a way to skip messages when it gets to busy?  Can the query generating the messages get throttled - perhaps along with the query designer - before the server gets into trouble?  Query the memory used by a queue and drop/create the queue with a delay if there is an issue? 
    I'm using a single CPU test machine with only 1 GB and 2 GB pagefile and a single disk.  OS: Windows 2003 R2 SP2.  SQL: 9.0.3054 and on 9.0.3228 (update package 6 just came out today).  I could add memory, but I think that would just permit me to queue more message before running into trouble. 
     I'll add code shortly - length limit.

    Here is the activation procedure to "receive" the messages.  I won't bother including the scripts for the two tables.  The 50000 char limit is trouble. 
    CREATE PROCEDURE [monitor].[prReceiveEventNotificationQueue]
    AS
    SET XACT_ABORT ON;
    BEGIN TRY
    WHILE 1=1
    BEGIN
    BEGIN TRANSACTION;
    WAITFOR(GET CONVERSATION GROUP @conversation_group_id
    FROM DBA.monitor.EventNotificationQueue), timeout 10000;
    IF @conversation_group_id IS NULL
    BEGIN
    ROLLBACK;
    BREAK;
    END;
    DELETE FROM @EventNotification;
    RECEIVE TOP (100)
    queuing_order,
    [conversation_group_id],
    message_sequence_number,
    NULLIF([service_name], @service_name_expected),
    service_id,
    NULLIF(service_contract_name, @service_contract_name_expected),
    service_contract_id,
    NULLIF(message_type_name, @message_type_name_expected),
    message_type_id,
    validation,
    CASE WHEN validation = 'X' THEN CAST(message_body AS XML)
    WHEN validation = 'E' THEN CAST('<empty />' AS XML)
    WHEN validation = 'N' THEN CAST('<binary><![CDATA['
    + CAST(message_body as varchar(MAX)) + ']]></binary>' AS XML)
    END,
    NULL,
    --NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    0
    FROM DBA.monitor.EventNotificationQueue
    INTO @EventNotification
    WHERE conversation_group_id = @conversation_group_id;
    SELECT @rowcount = @@ROWCOUNT
    IF @rowcount = 0
    BEGIN
    ROLLBACK;
    BREAK;
    END;
    -- preprocess some fields in the XML used in filtering and statistics
    -- insert new messages into the EventNotification table
    INSERT INTO monitor.EventNotification (
    queuing_order,
    [conversation_group_id],
    message_sequence_number,
    [service_name],
    service_id,
    service_contract_name,
    service_contract_id,
    message_type_name,
    message_type_id,
    validation,
    message_body,
    post_time,
    database_name,
    event_type,
    severity,
    error
    SELECT
    queuing_order,
    [conversation_group_id],
    message_sequence_number,
    [service_name],
    service_id,
    service_contract_name,
    service_contract_id,
    message_type_name,
    message_type_id,
    validation,
    message_body,
    post_time,
    database_name,
    event_type,
    severity,
    error
    FROM @EventNotification
    WHERE ignore = 0;
    COMMIT
    -- Gather statistics
    WAITFOR DELAY '0:00:00:01'
    END;
    END TRY
    BEGIN CATCH
    IF NOT(XACT_STATE() = 0)
    ROLLBACK;
    INSERT INTO DBA.monitor.ErrorLog (
    [number],
    error_message()
    END CATCH;
    RETURN 0;

  • Windows 8.1 - Windows Couldn't connect to the System Event Notification Service service

    I have an issue that has been bothering me for a while on new 8.1 computers. Standard users are not able to log into the computer on the first try consistently. They receive the error message: Group Policy client service failed the sign-in access is
    denied. They are stuck at the logon screen.
    If an administrator logs in (local or domain), they can log in but get a black desktop with two error messages. The first is Location is Not available - C:\Windows\system32\config\systemprofile\Desktop is unavailable. The second error message is a popup
    balloon. It states "Failed to Connect to a Windows service. Windows couldn't connect to the System Event Notification Service service."
    When a standard user attempts to log in, event viewer records three warnings. They are listed in order from oldest to newest
    The winlogon notification subscriber <Profiles> was unavailable to handle a critical notification event. -Logged 9:14:44
    The winlogon notification subscriber <GPClient> failed a critical notification event. - Logged 9:14:44
    The winlogon notification subscriber <Profiles> was unavailable to handle a notification event. - Logged 9:14:49
    After a reboot, users still have the issue. I noticed that the user profile services and system event notification service are not running though their startup type is automatic. They start after a minute or two.

    Hi Joseph__Moody,
    Based on your description ,I assume it is a domain environment .First of all ,I would suggest you to try to update all the machine .
    "I have an issue that has been bothering me for a while on new 8.1 computers"
    Do you mean all the Windows 8.1 machine share the same symptom or just a specific one ?Did the machine work correctly before ?When did the issue start to occur ?Have you installed any third party software before ?Can we operate the machine when we login with
    an administrator account ?
    If the issue occurred with the specific machine :
    "The first is Location is Not available - C:\Windows\system32\config\systemprofile\Desktop is unavailable."
    Please try the following suggestions if we can operate the machine when we login with the administrator account :
    Open Windows Explorer and navigate to: C:\Windows\system32\config\systemprofile and verify if it has the Desktop folder there.If the folder doesn`t exit, we can copy from C:\users\Default\Desktop location(This folder is hidden by default).
    We also can try the following suggestions to have a troubleshoot :
    1.Run "sfc /scannow"or "dism /online /cleanup-image /restorehealth" to check the health of the system files.
    2.Perform a full scan with an antivirus software.
    3."They start after a minute or two."
    I suspect there is a third party service confilct here. Please perform a clean boot to verify whether there is a third party conflict here .
    How to perform a clean boot in Windows
    https://support.microsoft.com/en-us/kb/929135
    If the issue occurred with multiple machines in the domian ,I would suggest you to check whether you have configured any logon scripts and logon group policy .We can remove the machine from the domain to have  a troubleshoot .
    If the issue occurred recently ,we can perform a system restore to recover the machine to a previous normal point.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].

  • Alert/Email notification for contract getting expired and threshold limit

    Hello All,
    For Central Contract management SRM 7.0 we have a requirement where an alert or e-mail notification is to be sent to a group of purchaser if following occurs.
    u2022     The validity period of a contract is about to expire
    u2022     The greatest possible release quantity will soon be reached
    u2022     A new contract has been released
    u2022     A purchaser has moved within the organization
    u2022     The processing time for a contract has been exceeded
    Currently one purchaser is responsible for more than one purchasing group hence whenever a contract reaches it threshold limit a notification mail should be send to a group of Purcahser.
    If any one has any one taken care of this type of requirement then please let me know the configuration of how this can be achieved.
    Thanks,
    Yatin

    Hello Massa,
    Thanks for the input.
    We checked with BBP_ALERTING badi and although the communication type could be changed in debugging mode still the final output is that the system checks for the RML set up in SU01 user profile of the recepient.
    For this we took 2 users one with INT setting and other with RML setting.
    Contract created with these two user and the expiry date is less than the threshold limit as a result alert got triggered.
    In Debugging mode, event ( BBP_EVENTS_DET_RECIPIENTS) for both the user the communicaiton type was coming as blank, we forcefully changed the setting to INT.
    But the final result is that the program is checking the SU01 default setting while sending mail, and it send to one user via INT and for other via RML method which should not be the case.
    Can you please let me know exactly where I can do the changes, this is really critical for the project as commnunication type change involves a Global change which business people are relecutant to do so.
    Thanks,
    Yatin
    Edited by: yatendra rawat on Oct 1, 2010 11:48 AM

  • Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this

    Lion 10.7.2 On both mac book pro and iMac, both with Lion 10.7.2, obtain repeated iCal event notifications from calendar or address book.  Cannot turn these off.  They repeat several times per session and every time computer is used.  How to diagnose this?

    First, uninstall "SuperTV" (whatever that is) according to the developer's instructions. It isn't working and it's filling the log with noise.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Post the messages logged before the boot, while the system was unresponsive or was failing to shut down. Please include the BOOT_TIME message at the end of the log extract.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    PLEASE DO NOT INDISCRIMINATELY DUMP THOUSANDS OF LINES FROM THE LOG INTO A MESSAGE. If you do that, I will not respond.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • My boss is receiving notifications for every employee's calendar. How do I make it stop?

    The company that I work for uses google calendar for scheduling appointments, meetings, ect. Each employee has their own calendar. Additionally there is a "master" calendar that is maintained by our office assisstant. The calendars are shared and everyone in the company can see each calendar. The issue that my boss has described to me is that he is receiving notifications for each of our calendars and the master calendar. For example... when we have our Monday morning meetings and all employees are scheduled to be there there is a meeting posted on all of our calendars as well as the master. An hour before... he receives eleven notifications of the Monday morning meeting. I have both my personal google cal and work google cal synced with my iPhone and I do not experience this problem. Neither do the two other gentlemen in the office that I have approached with this issue.
    Here is what I know:
    I have two google accounts added to my iPhone including my work account and do not receive multiple notifications of an event.
    My boss has five accounts, not all of them google, in his iPhone. One of them appears to be set up as a google sync account.
    I double checked his notification settings in google cal and he does not have notifications/reminders set for any calendar other than his own in the calendar settings.
    He has shared notifications turned off on both his device and on his iCal.
    I would appreciate any advice or guidance on this issue. Thanks in advance!!

    There's a fault with the blocklist.xml file which was updated on Friday, it should be fixed on Monday and you should get the updated file on Monday or Tuesday.

  • JComboBox event notification when select first entry in pop-up menu JDK 6

    I recently began testing a Java GUI, I originally developed with JDK 1.5.0_11, with JDK 1.6.0_3. I have used the JComboBox in several applications developed using JDK 1.3.x and 1.4.x over the years. In every one of these earlier JDKs the JComboBox widgets all behaved the same. When you select the JComboBox widget, the pop-up menu appears and you can select any of the items from the menu list. Having made the selection with either a mouse click or a key press, an event notification is sent. Typically, an ActionEvent as well as either a mouse click event or a keypressed event may be sent. When testing with 1.6.0_x versions of the JDK and JRE, I can't account for any event notification being sent when selecting the first item at the top of the pop-up menu as the initial selection. If I select some other item on the list and then the first item, it works as it is supposed to work, but only after selecting another item first.
    I've placed the JComboBox in a JDialog and a JPanel. There are NO AWT widgets in any containers of the application. The same behavior seems to exist regardless of what other containing Swing component I place the JComboBox in. I'm running these applications on Windows XP, service pack 2. The system is an AMD 64 bit dual processor with 4Gb of RAM. The essential code follows:
    private JComboBox getJcboAlias()
        /* Note here that I am using a defaultComboModel as I have always done */
       jcboAliases = new JComboBox(urls);
       *jcboAliases.setEditable(false);*                               // Note here that the JComboBox is NOT editable
       jcboAliases.addActionListener(new ActionListener()   // ActionListener only receives a notification if the second or
       {                                                                            // another item in the pop-menu list is selected...but never the
          public void actionPerformed(ActionEvent ae)           // first item in the list
             String s = (String) jcboAliases.getSelectedItem();
             for (int i = 0; i < connections.size(); i++)
                conAlias = (String[]) connections.get(i);
                if (s.equals(conAlias))
    isSelected = true;
    break;
    jlblName.setVisible(true);
    jlblAlias.setVisible(true);
    jlblUID.setVisible(true);
    jlblPWD.setVisible(true);
    jtxtName.setText(conAlias[0]);
    jtxtName.setVisible(true);
    jtxtAddress.setText(conAlias[1]);
    jtxtAddress.setVisible(true);
    jtxtUID.setText(conAlias[2]);
    jtxtUID.setVisible(true);
    jtxtPWD.setVisible(true);
    jtxtPWD.setText("");
    jtxtPWD.requestFocus();
    return jcboAliases;
    }    I'm using a non-editable JComboBox because there is a pop-up menu with this and not with the JList widget.  JComboBox behaves more like the JList MicroSoft counterpart.  Another code snippet follows in which the JComboBox is editable.  The same errant behavior occurs when selecting the first item from the pop-up menu: private JComboBox getJcboPCMember()
    jcboPCMember = new JComboBox(PCViewerCustom.getCurrentMembers());
    jcboPCMember.setBounds(250, 103, 180, 20);
    jcboPCMember.setToolTipText("PATHCHECK(ER) member name - Example: CKPPTHCK");
    jcboPCMember.setSelectedIndex(Integer.valueOf(PCViewerCustom.getCurrentHost(3)));
    jcboPCMember.setEditable(true); // Note here that this JComboBox IS editable
    jcboPCMember.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    if (ae.getActionCommand().equals("comboBoxEdited"))
    boolean copy = false;
    for (int i = 0; i < jcboPCMember.getItemCount(); i++)
    if (jcboPCMember.getSelectedItem().equals(jcboPCMember.getItemAt(i)))
    copy = true;
    break;
    if (!copy)
    if (jcboPCMember.getItemCount() > 0)
    if (jcboPCMember.getItemAt(0).equals("No Entries"))
    jcboPCMember.removeItem("");
    jcboPCMember.removeItem("No Entries");
    jcboPCMember.insertItemAt((String) jcboPCMember.getSelectedItem(), 0);
    else
    jcboPCMember.removeItem("");
    jcboPCMember.addItem((String) jcboPCMember.getSelectedItem());
    enableJbtnOK();
    else
    if (jcboPCMember.getSelectedIndex() >= 0)
    PCViewerCustom.setCurrentHost(3, Integer.toString(jcboPCMember.getSelectedIndex()));
    enableJbtnOK();
    else
    JOptionPane.showMessageDialog(null, "Name not selected", "Error", JOptionPane.ERROR_MESSAGE);
    return jcboPCMember;
         I am able to add a new entry to the JComboBox, however, I am still unable to select the first item from the pop-up menu and fire any kind of notification event.  I have not seen this behavior before in any earlier versions of the JDK and it's playing havoc with my ability to deploy the application into a JDK or JRE V6 environment, without adding a bunch of additional code to pre-select the first item on the list, which pretty much defeats the purpose of the JComboBox.  I'll be the first to admit I've done something wrong, but i've built a number of test scenarios now on two systems runing Win XP SP2 and I get the same errant behavior.  I've also added in event listeners for a MouseListerner, a KeyListener and an ItemListener.  Still no event notification on this first item in the list.  Again, however, if I select one of the other items from the pop-up menu list and then select the first item, all is well.  Imagine selling that method of operation to a user....  It occurs to me that this must be a bug in the V6 JComboBox.  I wanted to post this here first, however, in order to determine if this is, in fact, a bug - in other words, am I the only one seeing this, or is this a more widespread issue?  Any assistance in making this determination is greatly appreciated.
    David Baker
    Edited by: Galstuk on Nov 27, 2007 12:21 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    here is the other file as well:
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    VI2.vi ‏5 KB

Maybe you are looking for

  • I can't batch print to any printer on any of my iMacs

    I have 5 iMacs 2.4 GHz Intel Core 2 Duo,  4 GB 667 MHz DDR2 SDRAM, on 10.10.2 Yosemite. Before this week, I could open a PDF file, select any amount, 1-1000, drag into my print queue and all my files print, in correct format, on my printers. I use th

  • Interactive Reporting and Custom SQL

    I have SQL that works in TOAD and I'd like to copy it directly into IR; however, it appears that the custom SQL feature only allows you to "customize" the FROM, WHERE, etc parts of the SELECT statement and not the database fields that are directly af

  • File Content Conversion for Multi Hierarchical Structure for Sender Adapter

    Hi Gurus, My text file is coming as Header,filed1,field2(Occurrence=1) Content,field3,field4(Occurrence =1-Unbounded) Detail,field4,field5(Occurrence = 1-unbounded) Trailer,fieldN(Occurrence=1) My requirement is to write a file content conversion, so

  • Formatting HD before installing

    Hi all, I've just downloaded the new Mac OS X Mountain Lion. Since my hard drive was pretty full I backed up the files I want to keep and expected, while installing Mountain Lion, an option "to install with formatting hard drive before". This is what

  • VGA and HDMI

    I am going to buy a new monitor. My firend suggested me to buy a TV instead. I have an ipad 4 and a macbook air. I also have lightning to VGA and mini display to VGA. Most of the TVs have HDMI input not VGA. I am planning to get a VGA to HDMI convert