Thread is running even after calling iterrupt

Hi,
I have a strange problem in Oracle Full Suite 10.1.3. I have a thread class which is having a private attribute as keepAlive. Start methode of this file is calling another method and this method is checking value of keepAlive. Here is the sample
private void setupOTPConnector(CommunicationMethodsDetails comDet){
               while(keepAlive){
                    try {
                         Thread.sleep(delay); // Wait 1000 milliseconds
                    }catch (InterruptedException e) {
                         log.debug("some debug logs");
                         keepAlive = false;
                    }// Ignore this exception
if(keepAlive)
//Some method I have
Now while stopping this process, we are calling another method from another ejb file. sample is
Thread[] threadArray = new Thread[Thread.activeCount()];
Thread.enumerate(threadArray);
try{
for (int i = 0; i < threadArray.length; i++)
String thread_group_name = ""+threadArray.getThreadGroup();
String thread_name = ""+threadArray[i].getName();
if (thread_group_name.indexOf("Connectors")>0 && thread_name.indexOf(communication_id)>-1){
log.debug("--- FOUND! --- Thread: "+threadArray[i].getName()+" in group: "+threadArray[i].getThreadGroup()+" will be terminated.");
System.out.println("--- FOUND! --- Thread: "+threadArray[i].getName()+" in group: "+threadArray[i].getThreadGroup()+" will be terminated.");
threadArray[i].interrupt();
threadArray[i].stop();
}catch(Exception nullp){
Now alll the debug logs for interrupting thread are showing, but still the first method is continueously running, same is not happenning for JBoss, its working properly (I mean stopping properly) in JBoss.
Any suggestions or clue?
Thanks in Advance.

Hi Dirk,
Thanks for your infomation. Infact, apart from this problem, i have the problem with saving the webtemplate. As it is taking much time to save a template after modifications, i had to terminate the wad process. It seems above 2 problems are related....any ideas?
Thanks
ravi
Message was edited by: Ravi Pasumarty

Similar Messages

  • Process Chain running even after end date

    Hi,
    We are scheduling month end PC to run every 2 hours and also we have given end date for today evening.but process chain runs even after end date for every 2 hours.so we have to manually remove it from scheduling.
    Any method how can PC stop on its own after end date .
    Any help highly APPRECIATED
    Thanks
    Nilesh Pathak

    There might be multiple release jobs for thie process chain.
    So check the same. Right click on process chain --> Display scheduled jobs --> Here all the jobs logs of the chain will be available.. So check the same here...
    As you have descheduled it now.. probably you may not be having it as the first release job might be moved to Schedule status as soon as the END date has reached and then second one might have gone when you have removed the chain from Schduling..
    Anyway check the same.. and also check in SM37 whether any other user has triggered it manually today or not?

  • EXCEL.EXE process is keep running even after closing all the handles

    I am using Excel Report Instrument functions  for creating excel application and sheet,workbook after reading/writing in to excel file am closing all the handles using CA_DiscardObjHandle (handle);     even after file is getting closed m checking it in TaskManager then one EXCEl.EXE process is keep running there,pls let me know how to deal with this....
    Solved!
    Go to Solution.

    A Kumar:
    Have you tried running the example program excelreportdemo.prj that ships with CVI?  It ends the excel process by discarding multiple handles, and it works even if you're editing a cell or have an Excel dialog open, etc.  Try running this without modification and verify that the excel process is closed when you quit the CVI app.
    Here's the Quit function from excelreportdemo.  It checks for and closes handles for the worksheet, chart, workbook, and excel application.
    int CVICALLBACK Quit (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
                if (worksheetHandle)
                    CA_DiscardObjHandle(worksheetHandle);
                if (chartHandle)
                    CA_DiscardObjHandle(chartHandle);
                if (workbookHandle)
                    ExcelRpt_WorkbookClose(workbookHandle, 0);
                    CA_DiscardObjHandle(workbookHandle);
                if (applicationHandle)
                    ExcelRpt_ApplicationQuit(applicationHandle);
                    CA_DiscardObjHandle(applicationHandle);
                QuitUserInterface (0);
                break;
        return 0;

  • Process chain is running even after the 'No Schedule After' date

    Hi Experts,
              On 19th sep, we scheduled a process chain where the scheduled start date is 20th sep, 07:30:00 and no start after date is 22 sep, 00:00:01. The periodic value is 'Daily' and there is no restrictions for this load.
             But yesterday the process chain ran at 7. We checked tbe jobs that triggered and found that the start date and no start after date is changed to 21 and 23 respectively.
            But the last changed date for the process chain is 19th sep only.
            Anyhow, we removed the process chain from schedule. But, I want to know the reason for this load that loaded even after the 'No start after' date.
           Please help me to know why this issue happened...
    Regards,
    Yokesh.

    I also have been caught by this option once : the "do not start after" is here to avoid problems of scheduling : let imagine your system can be stopped, for any reason, so the scheduling will be postponed. In this case, it avoid, for instance, to load data during the day. It's not for running a PC for only a certain period of time.

  • SAPgui.exe is running even after closing the GUI components

    Hello All,
    Even after closing the SAP GUI components like Bex, WAD or RSA1 etc... i am able to see these processes are running under the Task Manager--> Processes....
    even if i try to restart the system, error messages are occuring...saying that SAP is still opend...
    Why it is happening, any ideas?
    Thanks,
    Ravi

    Hi Dirk,
    Thanks for your infomation. Infact, apart from this problem, i have the problem with saving the webtemplate. As it is taking much time to save a template after modifications, i had to terminate the wad process. It seems above 2 problems are related....any ideas?
    Thanks
    ravi
    Message was edited by: Ravi Pasumarty

  • Let addon run even after browser window is closed.

    I want to use this addon - "Pushbullet" even after the browser window is closed. Such an option was available in Chrome when I used it last. I migrated to Firefox recently, and would like to know how to implement the same here.
    Thanks,
    Raj

    FredMcD, You have been here long enough to know there is a "Edit This Post" link on right of your posts as three posts in a row in short order is too much.
    Some Extensions if you can find the chrome url can be used in shortcut to start a Firefox process but only with the Extension running.
    The ChatZilla irc client extension for instance can or at least used to.

  • Does call forwarding work even after calling chang...

    I have a skype US premium account, All calls initiated from US skype id and forwaded to India Mobile number, is it still going to work even after implemeting "Changes affecting calling to landlines and mobiles within India"

    I have a skype US premium account, All calls initiated from US skype id and forwaded to India Mobile number, is it still going to work even after implemeting "Changes affecting calling to landlines and mobiles within India"

  • Connection remains opened even after calling conn.close

    i have a need to copy records from one table in a database (say db1) to another table in another database(say db2). I open connection to both databases, and get a Recordset (say rs1) by executing a query that contains all rows that i have to insert in the database db2. Next i get an empty recordset(rs2) on the table in the database db2 (with locktype batchoptimistic, clientside cursor). i loop on rs1 and for each row in rs1 i insert a row in rs2 and copy the fields. after all rows are done, i delete the rows from db2 that will be affected and do an updatebatch on rs2. then i close the recordsets and the connections
    everything works fine except that the connection with the db2 is not getting closed, neither is it throwing any exception. when i comment the updateBatch code the connection closes normally.
    can anyone please help me out, where am i going wrong.
    thanks
    Vijay Sharma

    Hi,
    There is one more thing that I want to add to the above question. After calling conn.close() I checked the status of the connection and it was not 'OPEN' but when I checked session information through DBA studio it was showing one connection. I enabled trace of Oracle provider for OLE DB. Trace showed that two sessions were opened but only one session was closed.
    Thanks,
    Vijay

  • When I make a connection to any sight the little cirlce, that is the indicator in Windows 7 that it is attempting to connect continues to "run" even after conne

    As I stated the connecting indicator continues to "run", even though I am successfully using the website I am connected to. Is this just an indicator that I am connected or do I have an issue?

    Most USB port do not supply enough current to charge the iPad.

  • Retain the entityState and postState of entities even after calling commit

    Dear all,
    I am using view objects based on programmatic entity objects in my application for which data is populated from an array using populateRow().
    I need to update the newly created/updated/deleted rows in this EO into the database using a stored procedure.
    The stored procedure needs the input as an array of only those records that are created/updated/deleted with indicators of whether each row in the array is inserted/updated/deleted.
    I have exposed a client interface method in the view object Impl class that calls the dbTransaction().commit() first and then calls the stored procedure.
    In the doDML(), I am constructing the array and keeping the values in a page flow scope which is then accessed in the voImpl method.
    In case if an exception occurs in the business logic inside the stored procedure, the data will not get posted in the database and the exception is displayed to the user in the UI.
    After calling the stored procedure, I am clearing the page flow scope irrespective of whether the data has been posted to DB or not.
    Consider the scenario,
    I have updated 2 records. Of these, I've updated one of the records with wrong values. As per my logic, on calling the save method, doDML() will construct the data array for these two records.
    Inside the stored procedure, the wrongly updated row is identified and exception is raised and the data will not get posted in the database.
    Now, on getting the exception, I update the worngly updated record with proper value.
    On calling the save method again, my doDML() is constucting the array with the currently updated record alone. But actually I need all the records (2 records in this case) that were modified.
    My understanding is, since I've called the commit() action, all the records that make my transaction dirty gets updated as status_unmodified subsequently.
    Hence, on calling commit the second time, only one record will be in modified state and that record alone is getting constructed in the array.
    If I am correct,
    1. Is there any way to make all those records with their status as they were before calling the commit.
    2. Should I construct my array in some other method instead of doing it in doDML().
    Thanks in advance.

    You may want to try calling setClearCacheOnRollback(false) and rollback instead when you get the exception from the stored procedure. I still haven't understood where the commit is done...
    You may want to consider using an Application Module variable to store your list if this helps.
    Cheers,
    Nick

  • Fresh install won't start - says it's already running even after reboot

    I've installed Firefox for the first time on this Windows 2008 machine.
    The installer quit complaining that Firefox was already in use. I've rebooted twice, and attempted to delete the parent.lock file, and it still won't open.
    I can't delete the parent.lock file as it's in use, even after a reboot.
    Anyone got any ideas how I fix this?

    edit
    I missed the post above. Partly no doubt the annoying lag on forum listings updates.
    Is the entry in the ''profiles.ini'' file sane and does it point at a location that has suitable read and write permissions. I am of course assuming if you rename ''profiles.ini'' in its current location that Firefox does recreate it.
    * http://kb.mozillazine.org/Profiles.ini_file
    Presumably after you delete or rename the profile folder Firefox does manage to recreate and populate the profile.
    If this is not happening do a clean reinstall of Firefox again, deleting all the Firefox program folders and files prior to the install.
    *[[Troubleshoot and diagnose Firefox problems#w_5-reinstall-firefox]]_5-reinstall-firefox

  • Running child thread till completion even after main thread is terminated

    I am running some task in background using Task and Service Api's. When the main application spawns few threads, can the main thread be terminated without terminating the child thread. Is it possible. Thanks.

    Read up on daemon threads.
    multithreading - What is Daemon thread in java - Stack Overflow
    Also read the
      Application Lifecycle section in the javadoc.

  • Not able to run Applet after calling JSP with a Servlet

    Dear Java-Community :)
    At first I want to say, that my English isn't the best.. so I hope you'll understand my problem ;)
    I'm running a J2EE-Application, packed in a EAR-File, on my JBoss with following directory-structur:
    /jaw6c/bin
    /jaw6c/build
    /jaw6c/common
    /jaw6c/ejb
    /jaw6c/sql
    /jaw6c/src
    /jaw6c/webapp
    /jaw6c/webapp/build
    /jaw6c/webapp/build/classes
    /jaw6c/webapp/build/classes/com
    /jaw6c/webapp/build/classes/com/jbossatwork
    /jaw6c/webapp/build/classes/com/jbossatwork/ControllerServlet.class<<<<<<<<
    /jaw6c/webapp/build/distribution
    /jaw6c/webapp/build/distribution/webapp.war
    /jaw6c/webapp/build/gensrc
    /jaw6c/webapp/compile-lib
    /jaw6c/webapp/lib
    /jaw6c/webapp/src
    /jaw6c/webapp/src/com
    /jaw6c/webapp/src/com/jbossatwork
    /jaw6c/webapp/src/com/jbossatwork/ControllerServlet.java
    /jaw6c/webapp/web
    /jaw6c/webapp/web/WEB-INF
    /jaw6c/webapp/web/WEB-INF/classes
    /jaw6c/webapp/web/buyCarForm.jsp
    /jaw6c/webapp/web/carForm.jsp
    /jaw6c/webapp/web/carList.jsp
    /jaw6c/webapp/web/copy_darstellungErgebnisse.jsp
    /jaw6c/webapp/web/darstellungErgebnisse.jsp<<<<<<<<<<<<<<
    /jaw6c/webapp/web/default.css
    /jaw6c/webapp/web/diag.jar
    /jaw6c/webapp/web/diagram.class<<<<<<<<<<<<<<<<<<<<<<<<
    /jaw6c/webapp/web/error.jsp
    /jaw6c/webapp/web/index.jsp
    /jaw6c/webapp/web/selectBewertungslaeufeList.jsp
    /jaw6c/webapp/build.xml
    /jaw6c/build.xmlThe applet should be loaded in my "darstellungErgebnisse.jsp"-File.
    Now the strange situation:
    When I access "darstellungErgebnisse.jsp" DIRECTLY by entering a URL like "localhost:8080/jaw/darstellungErgebnisse.jsp" , the applet is loading perfectly !
    But when my server is forwarding me to the JSP-Site with
    RequestDispatcher dispatcher =  getServletContext().getRequestDispatcher(destinationPage);
    dispatcher.forward(request, response);
    . . . . . . . ..I'll get a ""java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file diagram
    " -Error what means (referenced on the articles I've read here), that the diagram.class Is not found !
    I have tried to put the class file in a JAR, in different locations... using the codebase and archive tag but NOTHING solved my problem.
    So my question:
    Why I'm able to access the JSP-File directly and seeing the applet but after forwarding to the JSP-File via the Servlet, I'm not able to see anything.
    Would appreciate your help
    Thank you and best regards
    Edit:
    1) I'm able to download the diag.jar and diagram.class file from different locations
    2)I recognized, that after using the servlet, my url is changing from
    localhost:8080/jaw
    to
    localhost:8080/jaw/controller
    I tried added the class file to the position, where the controller-class file is, but without sucess.
    3)Opening the class-file with a hex-editor shows me, that
    the first bytes are
    "CAFEBABE0000002E02B9070002010007"
    (http://forum.java.sun.com/thread.jspa?threadID=648990&messageID=3820701)
    Message was edited by:
    Khaled01

    Hello everybody,
    I finaly have found the solution (after 16 hours).
    Like I mentioned before, I recognized (maybe a little to late), that my path is changing when I'm using the servlet :
    localhost:8080/jaw
    to
    localhost:8080/jaw/controller
    (made by url-pattern in my web.xml).
    So when my JSP tries to acces the class file, It's looking at:
    localhost:8080/jaw/controller/applet/diagram.class
    but the file is in:
    localhost:8080/jaw/applet/diagram.class
    So the solution is, to but a codebase-tag in my applet-declaration with following delcaration "basedir="../applet"
    I hope I'll help somebody with the same problems. It took me a day to find out, that the solution was two points and a slash..... lol
    Regards to everybody

  • Excel 2007 Macros do not run even after applying known "fixit" steps

    Good day everyone,
    By now, a lot of you here are already aware of the issue that began following the December 9th security update.  I experienced this issue at our offices and used the known fixes for it, which solved the problem for most of my users.
    To clarify, this is the specific issue I'm referring to:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2014/12/11/forms-controls-stop-working-after-december-2014-updates-.aspx
    However, I now have at least 5 users who are unable to use any macros.  When pressing the buttons, there is no reaction at all.  Windows Updates have been run, the relevant KB has been installed and I've run the fixit provided.  I even manually
    checked all of the relevant folders in order to make sure the .exd files have been wiped. 
    Yet when I try to run the macros, it still doesn't work.  Their Excel settings allow for macro execution.  In case, I tried setting it on the insecure option that allows everything and tried again, but without success.   I've also asked
    the person who coded the macros to recompile one of his spreadsheets after making a minor modification, as is mentioned in the support structure, but tests with that updated spreadsheet also failed.
    The issue seems machine-based as I am unable to run the macros myself if I use my login on that machine, however they work fine if I try doing so from my own computer.  This leads me to believe it could be a conflict caused by some other software installation
    and I'll look into this after I posted this message, but I'd be interested to hear any feedback you guys may have.
    Our users run Windows 7 Professional x64 and we have Office 2007 Professional Plus.
    Thanks in advance,

    Hi,
    We have definitely heard your frustration now, Microsoft understands the position our customers are in and we are actively working to find a solution besides a FixIt that can be deployed to remedy the issue. If we have any update, we'll post in this
    forum immediately.
    Thanks for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Full screen displays menu even after call to setUndecorated(true)

    I am trying to implement a full screen mode for my application. It still displays the menu in Windows, and in mac if I don't set apple.laf.useScreenMenuBar to true, even if I call setUndecorated(true).
    How do I hide that menu bar? I tried removing it, but then I lose my menu hotkey to toggle out of fullscreen.
    This is my sample code:
    import java.awt.GraphicsDevice;
    import java.awt.GraphicsEnvironment;
    import java.awt.Rectangle;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.KeyStroke;
    public class FullScreen extends JFrame {
        static JFrame window;
        public static void main(String argv[]) {
            if(System.getProperty("os.name").startsWith("Mac OS X"))
                System.setProperty("apple.laf.useScreenMenuBar", "true");
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    window = new FullScreen();
                    window.setVisible(true);
        private GraphicsDevice graphicsDevice;
        private boolean fullScreenMode;
        private Rectangle previousSize;
        private JMenuBar menus;
        private FullScreen(){
            JButton but= new JButton("switch");
            menus= new JMenuBar();
            JMenu menu = new JMenu("View");
            JMenuItem item = new JMenuItem("full screen");
            item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));
            item.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e) {
                    toggleFullScreen();
            this.setJMenuBar(menus);
            menus.add(menu);
            menu.add(item);
            but.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e) {
                    toggleFullScreen();
            this.add(but);
            //prep for fullscreen mode
            GraphicsEnvironment ge =
                GraphicsEnvironment.getLocalGraphicsEnvironment();
            graphicsDevice = ge.getDefaultScreenDevice();
            pack();
        public void toggleFullScreen() {
            if (fullScreenMode){
                this.dispose();
                this.setUndecorated(false);
                this.setResizable(true);
                this.setBounds(previousSize);
                graphicsDevice.setFullScreenWindow(null);
                this.setVisible(true);
            }else{
                if(graphicsDevice.isFullScreenSupported()){
                    this.dispose();
                    previousSize=this.getBounds();
                    this.setUndecorated(true);
                    this.setResizable(false);
                    graphicsDevice.setFullScreenWindow(this);
    //                drawingPanel.setPreferredSize(new java.awt.Dimension( this.getBounds().width, this.getBounds().height));
                    this.setVisible(true);
            fullScreenMode = !fullScreenMode;
    }Edited by: jstoner on Jun 14, 2009 10:36 PM

    if (fullScreenMode){
        menus.setPreferredSize(null);
        ...  //exit fullscreen mode
    }else {
        menus.setPreferredSize(new java.awt.Dimension());
        ... //enter fullscreen mode
    }

Maybe you are looking for

  • Missing namespace prefix in the soap body

    Hello The soap body that is produced along with soap header for my webservice. I am the client talking to a server. The first piece in RED color is what weblogic generates to send to the client but does NOT work. The one below though works fine which

  • Recovering mail from a server backup

    A bunch of messages have disappeared from an Imap mailbox, at the same time as the Time Machine backup disk at the client Mac has failed. So, I'm looking to recover the missing messages from my OS X Server Mac mini, which has a known good Time Machin

  • How can I get photos from imovie into iphoto?

    I downloaded the photos onto my desktop and made an imovie with the photos...but at some point I deleted the photos file AND I lost the original photo cd they were on.  The photos are in my imovie file, but I need to somehow get them to iphoto (or so

  • Integration problem of OAM and OSSO/Portal

    I have completed the OBE integration after having the issue resolved as reported in the thread: troubleshoot WebPass installation Here is the url for OBE http://www.oracle.com/technology/obe/fusion_middleware/im1014/oam-osso-portal/oam-osso-portal.ht

  • Updating leave records through an upload program

    Dear Friends In our organization, 24th December 2010 has been defined as a holiday in the holiday calandar.  Company has now decided to make this a half a day and NOT to change the Holiday Calandar. For the balance half a day employees are requested