Threading Issue, not being interrupted

Apparently I suck with threading. Take for example, this method.
public Thread process()
               return new Thread(){
          public void run()
               while(!Thread.interrupted())
                   try {
                         Thread.sleep(500);
                         display.asyncExec(new Runnable() {
                              public void run() { 
                                   pb.notifyListeners(SWT.Modify, new Event()); 
                    } catch (InterruptedException e) {
                         try {
                              Thread.currentThread().join();
                         } catch (InterruptedException e1) {
                              // TODO Auto-generated catch block
                              e1.printStackTrace();
                         e.printStackTrace();
          }When I attempt to do process().start(); the thread will kick off, but when I do process().interrupt(); the thread doesn't stop. No matter what I do i can't seem to stop the thread.

I just noticed that I am attempting to interrupt a different thread than I started, because everytime I call the method it returns a different thread. Teaches me to copy and paste code...
Thread t = process();
t.start();
t.interrupt();Edited by: sarcasteak on Oct 15, 2009 1:36 PM

Similar Messages

  • Multi-threaded agent not being used

    Solaris 9, Oracle 9.2.0.1
    The docs say the multi-threaded agent avoids processes starting every time a user opens a database connection. Except it doesn't seem to.
    I've started up the agent;
    ps -ef |grep hsodbc
    oracle 6193 1 0 14:21:07 ? 0:00 hsodbcMYSQL_R -mt
    But, when I establish 2 user connections across a database link, I see this;
    ps -ef |grep hsodbc
    oracle 6201 1 0 14:21:40 ? 0:00 hsodbcMYSQL_R (LOCAL=NO)
    oracle 6216 1 1 14:23:08 ? 0:00 hsodbcMYSQL_L (LOCAL=NO)
    oracle 6193 1 0 14:21:07 ? 0:00 hsodbcMYSQL_R -mt
    The multi-threaded agent isn't picking up and processing the connections as I would expect. Processes are being spawned in exactly the same way as when the mt agent is not running.
    I have checked the listener logs and the agent is registering ok at startup [and every 10 secs too!!!].
    Can anyone shed any light on why I am not seeing the benefits of the mt agent?
    TIA
    Steve

    Steve,
    MTA is not supported with Generic Connectivity.

  • Watching threads email not being received

    Has the auto email for watched threads & forums died again? Haven't received anything for 2 days.
    Bob

    I'm having the same issue - highlighted by this thread.
    Sorry people if I'm not getting back to you, I' try and scout though tonight to see what I should have replied to but haven't.
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Mail.app Conversation/Threading issues like RES: RES: RES:

    Hello,
    When using Gmail on Apple's mail, the conversations/threads are not being grouped properly when the subject field of the messages starts having many prefixes "RES" in the subject.
    Some email clients (e.g. Mail in iPad), adds a "RE:" or "RES:" prefix every time when a message is replied.
    This, causes some subject fields having something like: "RES: RES: RES: RES: Original Subject".
    When this situation happens, the conversations in Mail.app apparently break, that is, one email (or more) that should be grouped to a conversation is displayed as a different conversation.
    This is an example that causes problem for me:
    1) I send a message with subject "Test"
    2) I receive a reply with subject (sent from other email client) "RES: Test"
    3) I reply again (using Mail), then the subject becomes: "Re: RES: Test"
    4) I receive a reply with subject (sent from other email client), and the subject now comes as: "RES: RES: Test"
    At this point, I've got 3 different conversations where this should be grouped as one.
    If I open Gmail, the conversation works perfectly, but in Mail it doesn't.
    Is there anything I can do about it?
    Using Mail.app 6.3

    From Mail help:
    Show your original message:
    Replies to your messages sometimes don’t show your original message. To show it, click the See More link at the bottom-left corner of a message.
    Open Mail help and the link to Conversations is there.

  • Threads created by CFTHREAD in excess of this are not being queued.

    I am using CF9 on a 3 server cluster with JRUN running win2008 and IIS. I  have a scheduled task script which loops over a series of script paths to be executed in a cfhttp tag. The admin settings are currently set at 10 max simultaneous threads and maxium thread count of 20. The problem is my jobs do not queue if they exceed the maxium sessions. queue time out is set at 300 seconds. Most jobs take no more than a minute, there are a few that take about 15. All the jobs are wrapped around locks, so in the event a process is already running it will not run again.
    All the tasks the scheduler runs are in sound shape. when executed hourly the size of jobs will vary.
    1.) 7 of 11 jobs ran
    2.) 16 of 20 jobs ran
    3.) 8 of 10 jobs ran
    4.) 7 of 11 jobs ran
    I'm not sure why the threads aren't being queued... any ideas?? I haven't found any articles where queued threads isn't happening so I'm not sure.
    ** I think this may have still something to do with the queue time out.. as I am able to push 20 simple emails threaded w/o issue. **
    let me test this so more
    thanks!

    Dear Riaz,
    Thanks for your suggestion. I checked but DNS is working fine. we have two ADDC and both are syncing properly. I also tried to see any wrong entries but could not found. repadmin /syncall works without error on both ADDC. We are facing this issue few time
    a day for users. i.e. if a user's sends email to another user. 10 times it'll reach normaly while one time it wouldn't go. similarly if somebody from outside send's email to our user who is added as a contact in our AD domain but works outside office, his
    email some times rejected by exchange server with the same error
    "The domain name in the email address is incorrect. Check the address.
    554 5.4.4 SMTPSEND.DNS.NonExistentDomain; nonexistent domain".
    while he is using the same domain which our internal user's are using (as smtp addres).
    I have a doubt on our broadband internet as we changed it a few days before with a different ISP and after that it started happening.
    Although I checked the ISP router, it's firewall settings etc etc but everything looks fine.

  • Crystal Reports Excel Export Issue - page footer not being displayed

    We recently converted all Crystal Reports from Visual Studio 2003 to Visual Studio 2005 sp1, .NET 2.0, Crystal Reports for .NET.  I have the latest merge modules from business objects.  All reports & footers worked fine in VS2003 ... but now when I export to PortableDocumentFormat (PDF) or WordForWindows (DOC) the page footers appear correctly.  But, when I export to Excel (XLS) like the code below, the page footers do not appear.  We need to place a disclaimer at the bottom of every page of an exported excel document.  I checked the print preview, and I tested printing the document ... the the footer is not being utilized properly by the Crystal Reports export.
    System.IO.MemoryStream oStream = new System.IO.MemoryStream() ;
    oStream = (System.IO.MemoryStream) report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.Excel) ;
    Response.Clear() ;
    Response.Buffer = true ;
    Response.ContentType = "application/vnd.ms-excel" ;
    Response.BinaryWrite(oStream.ToArray()) ;
    Response.End();
    I have asked the question in msdn forum
    http://forums.msdn.microsoft.com/en-US/vsreportcontrols/thread/0ead9e34-bc45-4062-90dd-17f8f8ebf062

    fyi - if i hadn't mentioned it, problem occurs in all our environments (developer workstation, development server, testing server, production server, etc.)
    on my development workstation i found the file 3 times
    c:\program files\common files\business objects\1.0\bin\crxf_xls.dll
    has file version 9.1.1.557
    c:\program files\common files\business objects\2.7\bin\crxf_xls.dll
    has file version 10.2.0.1093
    c:\program files\common files\business objects\3.0\bin\crxf_xls.dll
    has file version 11.0.0.1937
    on my development server (and our other environment servers too)
    c:\program files\common files\business objects\2.7\bin\crxf_xls.dll
    has file version 10.2.0.1210
    so just from that i notice that the file versions in the 2.7 bin are different from my developer workstation to my development server ... but the issue still occurs in both places.

  • Samsung note II, known issue of aol mail not being received on phone

    I spent hours on the phone with Customer Service this past Wednesday & Thursday because my aol mail is not being received on my new phone. I just did some research online, and found out this has been an issue with AOL and Verizon since December 2012. The Customer Service rep told me this just happened the past week! What a bold faced lie!
    I purchased this phone on or about July 3, and the AOL mail was working fine until this past Wednesday.
    This is a know issue, and yet the lie right to your face about it.
    I had a C/S rep tell me he would call me back later in the day, before he left work. I told him, I have heard that before. Oh, no, I will call you. Of course he didn't call. Your C/S reps think they can say whatever they want, but the calls have been monitored or tracked someway by your computer system.
    I see many others have the same problem with the Samsung Note II and their email accounts.
    Since December this has been going on, don't you think it's time you fixed the problem?
    Two years ago, when I spent $200 on a phone, I said never again. But yet I wanted a 5.5" screen so I paid up! Never again!

    I FINALLY spoke to someone today who was able to solve my problem so far.
    In the PLAY STORE....look for K9 email app.....and download that...put in your AOL email address and password. You should now be able to receive your aol email on your phone.
    It seems he has a Note II also, and had the same problem.
    You would think that MANAGEMENT would tell all their C/S reps how to solve the problem. I guess they would rather lose a customer who has been with them for 10 yrs.

  • Release notes for 2.16 states that there was a fix for alerts not being modal. We are using 3.0.6 and are experiencing the same issue; was there a regression to the modal fix. What version needs to be used to make sure that alert messages are modal?

    Release notes for 2.16 states that there was a fix for alerts not being modal. We are using 3.0.6 and are experiencing the same issue; was there a regression to the modal fix. What version needs to be used to make sure that alert messages are modal?

    We are trying to determine why alert boxes are not modal
    The fix states it's for Firefox 2.0 - 3.7a1pre
    We are using 3.0.6 not the current version of 3.6.13.
    Add-on release notes 2.16.1
    https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/versions/
    Repeating 2.16 release notes since 2.16 was not made available for more than a couple of hours
    Fixed bug whereby some alert boxes weren't properly parented/owned. This led to some alerts not being properly modal
    with respect to the window/dialog that issued the alert.

  • Ocrfile is not being written to.  open file issues.  Help please.

    I've been troubleshooting an open file issue on our Test environment for quite a while now. Oracle has had me update to latest CRS bundle for 10.2.0.3, then upgrade to 10.2.0.4, then two more patches via OPatch to bring 10.2.0.4 RAC to it's most recent patch. None of these patches resolved our problem. We have ~8700 datafiles in the database and once the database is started, we're at ~11k on Production but on Test we're at ~37K or higher. It takes 1-2 days to hit the 65536 limit before it crashes. I have to 'bounce' the database to keep it from crashing. Yes, I could raise the ulimit but that isn't solving the problem.
    Over the weekend I noticed that on Production and DEV, the ocrfile is being written to constantly and has a current timestamp but on Test, the ocrfile has not been written to since the last OPatch install. I've checked the crs status via 'cluvfy stage -post crsinst -n all -verbose' and everything comes back as 'passed'. The database is up and running, but the ocrfile is still timestamped at April 14th and open files jump to 37k upon opening the database and continue to grow to the ulimit. Before hitting the limit, I'll have over 5,000 open files for 'hc_<instance>.dat, which is where I've been led down the path of patching Oracle CRS and RDBMS to resolve the 'hc_<instance>.dat bug which was supposed to be resolved in all of the patches I've applied.
    From imon_<instance>.log:
    Health check failed to connect to instance.
    GIM-00090: OS-dependent operation:mmap failed with status: 22
    GIM-00091: OS failure message: Invalid argument
    GIM-00092: OS failure occurred at: sskgmsmr_13
    That info started the patching process but it seems like there's more to it and this is just a result of some other issue. The fact that my ocrfile on Test is not being written to when it updates frequently on Prod and Dev, seems odd.
    We're using OCFS2 as our CFS, updated to most recent version for our kernel (RHEL AS 4 u7 -- 2.6.9-67.0.15.ELsmp for x86_64)
    Any help greatly appreciated.

    Check Bug... on metalink
    if Bug 6931689
    Solve:
    To fix this issue please apply following patch:
    Patch 7298531 CRS MLR#2 ON TOP OF 10.2.0.4 FOR BUGS 6931689 7174111 6912026 7116314
    or
    Patch 7493592 CRS 10.2.0.4 Bundle Patch #2
    Be aware that the fix has to be applied to the 10.2.0.4 database home to fix the problem
    Good Luck

  • When is the next ios update and will it fix/address the issue with photos not being shown in chronilogical order?

    when is the next ios update and will it fix/address the issue with photos not being shown in chronological order?

    All of us here are users just like you. We have no inside info of when Apple products or operating system updates/upgrades will be released. The next iOS may not even change the issue you have.
     Cheers, Tom

  • I have a MacBook Pro...I am having issues with being able to highlight any text from any program...it works intermittently...and then not at all...any suggestions?

    I have a MacBook Pro...I am having issues with being able to highlight text from different programs. It works intermittenantly and then sometimes not at all. Went to where bought it today and tested one of their MacBook Pro's and it was working fine. Any suggestions?

    I have a MacBook Pro...I am having issues with being able to highlight text from different programs. It works intermittenantly and then sometimes not at all. Went to where bought it today and tested one of their MacBook Pro's and it was working fine. Any suggestions?

  • I ran into the issue of the 32-bit file not being recognized in LR 5.6

    I ran into the issue of the 32-bit file not being recognized in LR 5.6 after it has been saved in PS. I tried every type of file I could save a file as in CC but none of them would be recognized or said it was corrupt.  I had exported 3 files to Merge in HDR Pro Photoshop as 32 bit files.  I then saved in PS and returned to LR 5.6, but it said the bit depth was not supported .  Is this a known issue with LR 5.6 / PS CC?

    Hi,
    this might help: Video Tutorial – 32-bit HDR TIFF files in LR 4.1 « Julieanne Kost's Blog (Only 32 bit TIFF is supported).

  • I am having issues with being kicked off the internet intermittently. ATT says its not an issue with their service. Does anyone have an idea?

    I am having issues with being kicked off the internet intermittently. ATT states its not an issue with their service. Any ideas?

    Yes it is NOT your internet service. It is Apples OSX. It seems to be happening to older computers trying to run the newer OSX ( Mavericks and newer). I have a 2009 iMac I bought with Leopard installed, I upgraded to Snow leopard 10.6.8 and my computer was running flawlessly. I upgraded to Mountain Lion and I noticed my computer running slower... kind of annoying having to wait longer for everything (start up, browsers opening up, apps opening up, mail opening up and so on) Mavericks came out for free and I was excited to get out of this issue. Well, everything went from bad to terrible! Fast user switching had a glitch with desktop picture resetting to the wave, mail rules didn't work properly and I kept getting kicked off the internet (Absolutely NOTHING wrong with my internet). No one could figure out what was going on or how to fix it, even senior Apple tech's! After 3-4 months of searching, troubleshooting and waiting for a fix, I looked at my Mac Pro running Tiger 10.4.11 with no issues what so ever... that is when I made an executive decision. GO BACK TO SNOW LEOPARD! Since May 2014 I have been running 10.6.8 on my 2009 iMac and it has been smoking fast with NO issues what so ever, especially since I maxed out my memory for Mavericks. So to sum it up: some people might get lucky with old machines running new operating systems, but for the most part, it seems older processors can't keep up with the new sophisticated operating systems. Mavericks... Yosemite... FREE UPGRADE! But you will pay the price

  • Is anyone having issues with imessages disappearing or not being delivered?

    Is anyone having issues with imessages disappearing or not being delivered?

    I too am experiencing this on my iPhone 4 after upgrading to 4.3.3. I am fairly convinced that it is a software issue. The last update seems jumpy. There appear to be more pauses and stuttering with screen changes too.  Sometime the button operates perfectely (even with repeated light touches). Other times, it doesn't matter how hard I press; it takes several presses. I notice it more when i am using a battery case or connected to an AT&amp;T MicroCell. I am having a hard time pinpointing problematic apps, although i suspect that mail with my work Exchange account may be a culprit. I suggest posting your issues on Apple's iPhone feedback page, www.apple.com/feedback/iPhone.html, to ensure that they are looking into this problem. If it is a hardware issue, I'll be pretty upset as I received my iPhone 4 on day 1 of availability and it is out of warranty. Hoping for a fix with an update. Please post on the feedback page.

  • I am not being able to send pictures via Bluetooth from my Samsung phone to my iPad mini and vice versa. So is there a setting or is it a compatibility issue ? Please help

    I am not being able to send pictures via Bluetooth from my Samsung phone to my iPad mini and vice versa. So is there a setting or is it a compatibility issue ? Please help

    You can also use a wireless flash drive.
    http://www.sandisk.com/products/wireless/flash-drive/

Maybe you are looking for

  • 1px is missing from text, but not in the stage area

    So my issue is this. I have some text, static, arial. The letter "F" has the top bar missing so it almost looks like a t. But this only looks like this when I render. In the staging area while viewing actual pixels the F looks perfectly fine. Is ther

  • How to improve the performance of adobe forms

    Hi, Please give me some suggestions as to how to improve the performance of adobe form? Right now when I' am doing user events it is working fine for first 6 or 7 user events. From the next one it is hanging. I read about Wizard form design approach,

  • Creation of PSA failed during activation of DTP

    Am I forgetting something, did I do something wrong? Problem: I get an error message when activating a new DTP that says: "Creation of PSA /BIC/B0005668 failed". That's it. It does not finish activation. No short dump, no SM21 log. Background: We are

  • New lines created in excel when displaying multi-line text item value

    Hi all, I put the value of a multi-line text-item into a csv file : DECLARE file_filter VARCHAR2(256) := 'Export Files (*.csv)/*.csv/All Files (*.*)/*.*/'; fExp VARCHAR2(256); in_file Text_IO.File_Type; linebuf VARCHAR2(4000); BEGIN fExp := get_file_

  • // Code Help need .. in Reading CSV file and display the Output.

    Hi All, I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion. I want to write a code which read the input from the CSV file and display the output in console application combinat