Breakpoint are not respected on cvi 2013 under w8.1

Dear all,
I am using Labwindows/CVI 2013 on windows 8.1, and I have a strange behavior on breakpoints. Indeed, my program is not stopping on some breakpoints which I have set.
Randomly, the breakpoints are respected, which means that the program stops correctly on these breakpoints. Randomnly also, the breakpoints are not respected, which means that the program do not stop on the setted breakpoints, event that the program runs the instructions where the breakpoints are set.
I use the debug mode, and the instructions were the breakpoints are set are not comments, they are instructions.
I do not have this behavior when I run cvi 2012, under w 7. I do not know if the issue come from w8.1 or cvi2013, or...,
I would like that this issue wil be fixed.
Thank you for any help.
Cheers,

Hi hapiest,
Thank you for posting on this thread.
Can you share a simplified code that reproduces the behaviour and that I could run on my computer without any hardware and the .cws file ?
Also :
- What  version of CVI are you using (SP ?)
- Does the berakpoints that are ignored still appread in the breakpoint listing box ?
- If you creates a project from scratch, does it reproduces the issue ?
Best Regards,
Isabelle G.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
Été de LabVIEW 2014
12 présentations en ligne, du 30 juin au 18 juillet

Similar Messages

  • HT202774 Captions are not respected when turned off under Accessibility and still appear in the native player, how do I turn of captions?

    Captions are not respected when turned off under Accessibility and still appear in the native player, how do I turn of captions for the native player?

    Restart your computer while holding down left mouse key. That will eject the CD and your Mac will start as normal.
    Lupunus

  • [SOLVED] Xfce composite settings are not respected

    I have come across a problem with the Xfce composite manager. I enable this primarily to have conky draw transparently on the desktop wallpaper, but then found shadows and transparency did not cause much more impact on performance after enabling composite effects in the first place.
    But now I'm experiencing that some settings in the Tweaks settings menu are not respected. For instance, I've enabled transparency both when moving and resizing windows, but they only turn transparent when moving them. Also, I've enabled transparency for notifications, which to my understanding includes the desktop right-click menu, but they are opaque. Anybody else experience this? I've tried turning composite effects off, logging out and back in and turning them on again. No luck there. Also, if you should know where these settings are stored (text file somewhere/Xconf...) I'd be happy to inspect them
    Thank you!
    Last edited by mariusmeyer (2011-08-02 14:12:37)

    stqn wrote:Uh? I really don't see why the desktop right-click menu would be using notifications' opacity setting... Anyway here it works as expected (notifications are transparent, not the menu.)
    Now it does for me as well. The reason I thought the menu was a part of it was because it became transparent when I enabled notification transparency the first time but this behaviour went away after a logoff-login I think.
    The big problem I'm struggeling with now is still the fact that xfwm does not respect the settings as found in Xfconf / Settings -> Tweaks. The shadows on the borders won't go away no matter what I do; however and I'm able to turn off the resize/move transparency in-session. When I log out and back in again, the behaviour reverts, although the settings as I set them remain unchanged =_=
    If anything, does anybody know how to return all of xfwm's settings to the default, so I can start over? All I really need compositing for is transparent conky anyways....
    EDIT: Okey, it seems this has something to do with the xfwm theme I use :s after switching to other themes in the list I am suddenly in control of the composite effects again... Does this mean that the theme I use stores info on what composite effects it should use??
    Last edited by mariusmeyer (2011-08-02 14:08:17)

  • Microsof VX 3000 or 6000 Webcam does not work with Lync 2013 under Windows 8.1

    Hi,
    The problem is that i cannot use the Microsoft VX-3000 or VX-6000 with Lync 2013 under Windows 8.1.
    If i go in settings under Video i can see the preview from the webcam just fine, so it works there no problem.
    Wenn i try to enable my camera in a conference it does not work, i get an error: Your video cannot be started.
    Now, there are no Windows 8.1 drivers for the Webcam so i installed the latest Windows 7 drivers. Because of that this webcam does not work with apps, that is fine i understand the driver problem and the way the new apps work.
    But this Webcam works with skype under Windows 8.1 and it works with Lync 2010 client.
    The same Webcam works just fine with Lync 2013 under Windows 7.
    Is there anything i could do so that i get this Webcam to work with Lync 2013 desktop client under Windows 8.1?
    Thanks

    Hi,
    According to your description, it may be caused by driver.
    You can try to install the latest version of Display Driver to fix the display issue.
    Since there is no driver for Windows 8.1, I suggest you wait for updating.
    You can also post a case on Windows 8 forum, thank you for your understanding:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=W8ITProPreRel%2Cw81previtpro&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Leave Request work items are not showing in SBWP TCODE under OUTBOX .

    Hi
    Friends
    I used work flow 12300111 for leave request process and I activated that work flow.
    I applied leave through ESS from portal(Employee login)employee sends a leave request sends good,
    and I got  Leave request(work items) Managers in box(uwl in Manager Login in portal).
    Manger Approve the leave request has been approved successfully.
    can I check whether leave request is processed in R/3.
    in tcode se38-RPTARQDBVIEW - UNDER leave request(Leave)->STATUS>COMPLETED,
    But in r/3 i execute the Tcode SBWP...
    here is no work items are not showing in outbox..
    Please help me
    Rafi Shaik

    it wont be shown in outbox of SBWP
    you need to check via SWIA or rptarqdbview or SWI5 for the user
    these are java based tasks so will be done in UWL. you can see only the tasks but after approval they are disappeared.
    The outbox shows the last 30 days by default. This default cannot be
    changed. This 30 days selection period is always set when you enter
    the outbox. However, the user can change the selection period by
    clicking the button 'Change selection period' on top of the grid
    control but this as you know will be reset once you log out.
    This is how the mapping from the
    backend workplace folders to the UWL tabs should work:
    UWL tab                        Backend folder
    Notifications                  Deadline Messages
    Tasks-> Completed Tasks        Outbox -> Workitems executed by me
    Tracking -> My Requests        Outbox -> Started Workflows
    Tracking -> Forwarded          Outbox -> Forwarded workitems
    Edited by: Siddharth Rajora on Aug 5, 2011 10:04 AM

  • Hana view column descriptions are not showing in Crystal 2013

    Hello All,
    I have a hana calculation view which has the column name and label defined perfectly. When I use the HANA view in Crystal Report 2013, the column labels are not showing up in the field explorer even after enabling the show both name and description. Please help.

    hi
    is anyone has answer for this question.
    thanks...!!!!

  • WDK8 Templates are not loaded to VS 2013 Ultimate automatically?

    I have installed the WDK8.1 and checked that a "Windows Kits" folder was created with all respective files in it.
    However, in Visual Studio 2013 Ultimate the templates are still the same!
    Do I need to configure them manually or what could be the problem?
    PS: Platform Windows 7 64 bits, Visual Studio was installed before installing the WDK.

    Hi,
    Welcome to MSDN forum.
    But I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Please restart VS2013 then check whether the driver template appears under Visual C++ template. If still no driver template, one possible reason is WDK8.1 was not installed well, and maybe we need to configure something else to get the driver template, but
    I am not WDK expert, I don’t know whether we need do something else in order to get driver template in VS2013, in order to resolve your issue better, I suggest you to consult on
    Windows Hardware WDK and Driver Development forum like this similar thread:
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/0b91281d-4f90-4546-94c0-53a7b06729da/how-can-i-get-windows-driver-templates-to-show-in-visual-studio-2012?forum=wdk .
    Thank you for your understanding.
    Best 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.

  • Appointment Details are not shown in Outlook 2013 Calendar Schedule View

    In Outlook 2013 Calendar one has got five standard views to view appointments and meetings:
    Day, Work Week, Week, Month and Schedule view.
    When hovering with the mouse over an appointment the details are shown in Day, Work Week, Week and Month view but
    not in Schedule view.
    Is there any configuration setting to turn this feature on in Schedule view?
    Remarks:
    - In Outlook 2010 this problem does not occur.
    - Within the scheduling assistant, the details are shown in Outlook 2013 when hovering with the mouse.

    Hi,
    I tested on my Outlook 2013 and got the same result. When hovering over an appointment, the details are shown in Day, Work Week, Week, Month, but it's not shown in Schedule View.
    I haven't found such a setting to change this, it seems to be a product limitation so far.
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • 20 mb excel file are not open in excel 2013

    Dear Microsoft,
    We are facing the  problen in excel 2014. When i open my  20 mb excel sheet ....it goes hang & showing the error..that Microsoft excel stop working .Please provide a setting solve this Issue.?

    Hi,
    Did the issue only occur with the 20MB Excel file or all the Excel file? Which file format are you using? XLS or XLSX? Did the file has some formula or macro?
    If only the special file encounter the issue, it may be caused by the file itself. We may try to clean the hidden options.
    Steps: Home tab>Find & Select>Go to> Object> Delete.
    If the file has some formulas or macros with large data, the issue may be related to the PC's performance. The machine cannot do the calculation/operation at the moment.
    If all the file has the issue, please refer to the following method and check if they are helpful:
    Method 1: Verify/install the latest updates
    Method 2: Start Excel in safe mode
    Method 3: Investigate possible issues with add-ins
    Method 4: Check whether your antivirus software is up to date or is conflicting with Excel
    Method 5: Make sure that Excel is not being used by another process
    Method 6: Check whether your file is being generated by a third party
    Method 7: Test by using a new local or network profile
    Method 8: Perform a selective startup to determine whether a program, process, or service conflicts with Excel
    Method 9: Repair or reinstall your Office program
    For more detail information, please refer to the following link:
    http://support.microsoft.com/kb/2758592/en-us
    Regards,
    George Zhao
    TechNet Community Support

  • Outlook 2010 or earlier versions are not recognized in PSE 9 under Windows 7 64 Bit

    Hello, is there any info available "to convince" Photoshop Elements to recognize a installed Outlook 2010 and to work with Outlook 2010 in a WIN 7 64 Bit system?
    In my Photoshop elements 7 and 9 versions it is not possible withinPSE 9 or PSE 7 under  windows 7 64 Bit  to select  Outlook as a valid parameter under the otion settings within Elements to handle emails functions within PSE properly.....

    Yep. I agree with the above comments. Other users have reported issues while working with outlook 64 bit. Here is one such discussion http://forums.adobe.com/message/3289324 .
    Thanks

  • Lync 2013 client is deployed but user accounts are not migrated from OCS to Lync 2013 Server - how to open Lync meetings automatically in the Lync Web Plug-in

    We have in our enterprise the following scenario:
    1 - Lync 2013 client is installed
    2 - User accounts are not migrated to Lync 2013 Server, users are using Office Communicator as their main tool
    3 - Users receive Lync 2013 meeting requests but when try to access them, Lync 2013 client launches and shows error. Users will need to open the browser and paste the URL to the address bar but this still open
    4 - We cannot use the workaround of adding "?SL=1" to the Lync 2013 meeting URL as the user base is large and manual workaround is not accepted
    5 - Question: is there any automated way, via egistry key or GPO setting, so that users temporarily (until their accounts are migrated to Lync 2013 server) can bypass Lync 2013 client completely and automatically open all Lync 2013 meetings
    on the browser, using Lync Web Plug-in?

    Thanks for the response,
    First, I should have mentioned clearly that users have Office Communicator 2007 client and Lync 2013 client installed in their machines. Their accounts are not migrated yet to Lync 2013 server.
    Second, we are using IE9 and IE10. The issue is that users CAN join Lync 2013 meetings with their browsers but have to paste the URL manually to browser and add "?SL=1" otherwise, if they just click at the "Join Online Meeting" or "Join
    Lync Meeting" URL it launches Lync 2013 client which shows error because is not configured yet, as they are using OCS client and migrating slowly to Lync 2013 server.
    Is there a Group Policy setting or a registry key from Microsoft that can be turned on to these users machines and make will all Lync meeting requests to be opened in IE browser instead of Lync 2013 client. We need a way to ignore
    Lync 2013 client until user accounts are migrated to Lync 2013 Server. Manually typing URLs is not an option in a big organization, can't explain thousands of users of different levels what to do.
    We are regretting the decision not to separate Lync 2013 from Office 2013 package we deployed recently. If Lync 2013 is uninstalled then all Lync meeting requests are opened in browser without an issue.

  • Outlook 2013 sent emails are not available

    Hi Support,
    We are using outlook 2013 POP account for our organization.We are using Google (Gmail account) for our email server which is hosted in Tata communications.
    Due to issue in the laptop,we are not using outlook 2013.We are using the web of Gmail to access our official email account.We have sent more than 50 official emails in web interface of Gmail account during the issue of laptop.
    Once the issues are resolved in the laptop,mails are automatically downloading in outlook 2013 and there is no issue. But what are all the official emails sent in Web Gmail is not showing in outlook 2013.
    Approximately 60 emails which are sent in Gmail web interface are not showing in outlook 2013.There is also no option available to take the backup of Gmail account.Through outlook 2013 only we are taking the backup of our official emails in PST.
    Is there
    available in POP account how to get the sent emails in outlook 2013
    Your support is highly appreciated.
    We are not able to get the sent emails in outlook 2013 for the past one week.Whatever the email sent in web interface for the past one week is there but in outlook 2013 it is not there.
    Today i have sent an email in outlook 2013,it is showing the today mails sent and an just looking for past one week email in outlook 2013 is not there but in gmail webinterface is is there.
    Is there any tool available to synchronize the POP account for both inbox & sent email items.
    Any update for the above request.
    Regards
    Pradeep.R

    Click Send\Receive all folders in Outlook Send\Receive tab.
    Create a new Outlook profile and set up the Gmail account again.

  • Why ScheduledThreadPoolExecutor is not respecting the delay?

    I have a Customized implementation for ScheduledThreadPoolExecutor using which I am trying to execute a task for continuous execution. The problem I have faced here with the implementation is, some tasks executed continuously where as two of them are not respecting the delay and executed continuously. I am using the scheduleWithFixedDelay method.
    Even I have tried reproducing, but I couldn't.
    Here is my customized implementation.
    package com.portware.utils.snapmarketdata.test;
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Set;
    import java.util.concurrent.Executors;
    import java.util.concurrent.Future;
    import java.util.concurrent.RejectedExecutionHandler;
    import java.util.concurrent.ScheduledFuture;
    import java.util.concurrent.ScheduledThreadPoolExecutor;
    import java.util.concurrent.ThreadFactory;
    import java.util.concurrent.ThreadPoolExecutor;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicInteger;
    import com.indigo.utils.Log;
    * To schedule the tasks in timely manner.
    public class TestScheduledExecutorService  {
      private static String CLASS_NAME = TestScheduledExecutorService.class.getName();
      protected final ThreadPoolExecutor executor;
      static int totalCount = 0;
      public static void main(String[] args) throws InterruptedException {
        TestScheduledExecutorService executorService = new TestScheduledExecutorService("Test", 10, null);
        final AtomicInteger integer = new AtomicInteger();
        final Set<Integer> testSet = new HashSet<Integer>();
        for (int i = 0; i < 10; i++) {
          testSet.add(i);
        Iterator<Integer> iterator = testSet.iterator();
        synchronized (testSet) {
        while(iterator.hasNext()) {
          integer.set(iterator.next());
          executorService.submitTaskForContinuousExecution(new Runnable() {
          @Override
          public void run() {
              System.out.println(Thread.currentThread().getName()+" Hello : "+integer.get() + " count value is:"+totalCount++);
        }, integer.toString());
        while (true) {
          synchronized (TestScheduledExecutorService.class) {
            TestScheduledExecutorService.class.wait();
      private static class MyRunnableTask implements Runnable{
        ScheduledFuture<?> future;
         * The task to be run.
        private Runnable runnable;
         * The number of attempt.
        private int count;
         * Maximum attempts configured under TCA configuration.
        private int maximumAttempts;
        private String id;
        public MyRunnableTask(Runnable runnable, int maximumAttempts, String id) {
          this.runnable = runnable;
          this.maximumAttempts = maximumAttempts;
          this.id = id;
        @Override
        public void run() {
          if (count >= maximumAttempts) {
            this.future.cancel(true);
            System.out.println("Cancelling the task with id :"+id+" after count :"+count);
            return;
          count++;
          this.runnable.run();
         * Return the number of attempt.
         * @return
        public int getCount() {
          return count;
      private void submitTaskForContinuousExecution(Runnable runnable, String id){
        int numOfAttempts = 10;
        MyRunnableTask runnableTask = new MyRunnableTask(runnable, numOfAttempts, id);
        int interval = 1;
        ScheduledFuture<?> scheduleWithFixedDelay = this.scheduleWithFixedDelay(runnableTask, 0, TimeUnit.SECONDS.toMillis(interval), TimeUnit.MILLISECONDS);
        if(id != null) {
          /*System.out.println("Submitted the task for continuous execution for the ticket id :"+id+"  with maximum attempts : "+numOfAttempts
              + " and interval : "+ interval);*/
          runnableTask.future = scheduleWithFixedDelay;
       * Creates an Executor Service to provide customized execution for tasks to be scheduled.
       * @param threadName is the name that shows in logs.
       * @param maximumThreads is the number of threads can be created.
       * @param rejectedExecutionHandler is if the Queue reaches it's maximum capacity and all the executor gives
       * the tasks to rejectedExecutionHandler.
      public TestScheduledExecutorService(String threadName, int maximumThreads, RejectedExecutionHandler rejectedExecutionHandler) {
        this.executor = createExecutor(threadName, maximumThreads, rejectedExecutionHandler);
      protected ThreadPoolExecutor createExecutor(String threadName, int minimumThreads, RejectedExecutionHandler rejectedExecutionHandler) {
        ThreadPoolExecutor threadPoolExecutor = new ScheduledThreadPoolExecutor(minimumThreads)
          @Override
          protected void beforeExecute(Thread t, Runnable r) {
            TestScheduledExecutorService.this.beforeExecute(t, r);
            this.purge();
          @Override
          protected void afterExecute(Runnable r, Throwable t) {
            TestScheduledExecutorService.this.afterExecute(r, t);
        if(rejectedExecutionHandler != null) {
          threadPoolExecutor.setRejectedExecutionHandler(rejectedExecutionHandler);
        }else{
          threadPoolExecutor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
        threadPoolExecutor.setThreadFactory(new TestThreadFactory(threadName, threadPoolExecutor));
        threadPoolExecutor.setKeepAliveTime(120, TimeUnit.SECONDS);
        threadPoolExecutor.allowCoreThreadTimeOut(true);
        return threadPoolExecutor;
       * Executes the task repeatedly with the given delay
       * @param task
       * @param initialDelay
       * @param delay
       * @param unit
       * @return
      public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, int initialDelay, long delay, TimeUnit unit) {
        return ((ScheduledThreadPoolExecutor)executor).scheduleWithFixedDelay(task, initialDelay, delay, unit);
       * To provide threads with specific features.
      protected static class TestThreadFactory implements ThreadFactory {
        private ThreadFactory threadFactory = Executors.defaultThreadFactory();
        private ThreadPoolExecutor threadPoolExecutor;
        private String groupName;
        public TestThreadFactory(String groupName, ThreadPoolExecutor threadPoolExecutor) {
          this.groupName = groupName;
          this.threadPoolExecutor = threadPoolExecutor;
        @Override
        public Thread newThread(Runnable r) {
          Thread thread = threadFactory.newThread(r);
          int activeCount = this.threadPoolExecutor.getPoolSize();
          activeCount++;
          thread.setName(this.groupName+"-"+activeCount);
          thread.setDaemon(true);
          return thread;
       * Performs initialization tasks before starting this thread.
       * @param thread
       * @param runnable
      protected void beforeExecute(Thread thread, Runnable runnable){
       * Performs tasks after execution of this runnable.
       * @param thread
       * @param runnable
      protected void afterExecute(Runnable runnable, Throwable t){
       * Initiates an orderly shutdown in which previously submitted
       * tasks are executed, but no new tasks will be
       * accepted. Invocation has no additional effect if already shut
       * down.
      public void shutdown() {
        if(this.executor != null) {
          Log.notice(CLASS_NAME, "shutdown", "Shutting down Executor Service");
          this.executor.shutdown();
       * Attempts to stop all actively executing tasks, halts the
       * processing of waiting tasks, and returns a list of the tasks
       * that were awaiting execution. These tasks are drained (removed)
       * from the task queue upon return from this method.
       * <p>There are no guarantees beyond best-effort attempts to stop
       * processing actively executing tasks.  This implementation
       * cancels tasks via {@link Thread#interrupt}, so any task that
       * fails to respond to interrupts may never terminate.
      public List<Runnable> shutdownNow() {
       if(this.executor != null) {
         Log.notice(CLASS_NAME, "shutdownNow", "Immediately shutting down Executor Service");
         try {
          return this.executor.shutdownNow();
        } catch (Exception e) {
          Log.notice(CLASS_NAME, "shutdownNow", e.getMessage());
       return Collections.emptyList();
       * Returns a Future for the given runnable task.
      public Future<?> submit(Runnable runnable) {
        if(this.executor != null) {
          return this.executor.submit(runnable);
        return null;
    Is there any possibility for the continuous execution or not?

    I have a Customized implementation for ScheduledThreadPoolExecutor using which I am trying to execute a task for continuous execution. The problem I have faced here with the implementation is, some tasks executed continuously where as two of them are not respecting the delay and executed continuously. I am using the scheduleWithFixedDelay method.
    Even I have tried reproducing, but I couldn't.
    Here is my customized implementation.
    package com.portware.utils.snapmarketdata.test;
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Set;
    import java.util.concurrent.Executors;
    import java.util.concurrent.Future;
    import java.util.concurrent.RejectedExecutionHandler;
    import java.util.concurrent.ScheduledFuture;
    import java.util.concurrent.ScheduledThreadPoolExecutor;
    import java.util.concurrent.ThreadFactory;
    import java.util.concurrent.ThreadPoolExecutor;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicInteger;
    import com.indigo.utils.Log;
    * To schedule the tasks in timely manner.
    public class TestScheduledExecutorService  {
      private static String CLASS_NAME = TestScheduledExecutorService.class.getName();
      protected final ThreadPoolExecutor executor;
      static int totalCount = 0;
      public static void main(String[] args) throws InterruptedException {
        TestScheduledExecutorService executorService = new TestScheduledExecutorService("Test", 10, null);
        final AtomicInteger integer = new AtomicInteger();
        final Set<Integer> testSet = new HashSet<Integer>();
        for (int i = 0; i < 10; i++) {
          testSet.add(i);
        Iterator<Integer> iterator = testSet.iterator();
        synchronized (testSet) {
        while(iterator.hasNext()) {
          integer.set(iterator.next());
          executorService.submitTaskForContinuousExecution(new Runnable() {
          @Override
          public void run() {
              System.out.println(Thread.currentThread().getName()+" Hello : "+integer.get() + " count value is:"+totalCount++);
        }, integer.toString());
        while (true) {
          synchronized (TestScheduledExecutorService.class) {
            TestScheduledExecutorService.class.wait();
      private static class MyRunnableTask implements Runnable{
        ScheduledFuture<?> future;
         * The task to be run.
        private Runnable runnable;
         * The number of attempt.
        private int count;
         * Maximum attempts configured under TCA configuration.
        private int maximumAttempts;
        private String id;
        public MyRunnableTask(Runnable runnable, int maximumAttempts, String id) {
          this.runnable = runnable;
          this.maximumAttempts = maximumAttempts;
          this.id = id;
        @Override
        public void run() {
          if (count >= maximumAttempts) {
            this.future.cancel(true);
            System.out.println("Cancelling the task with id :"+id+" after count :"+count);
            return;
          count++;
          this.runnable.run();
         * Return the number of attempt.
         * @return
        public int getCount() {
          return count;
      private void submitTaskForContinuousExecution(Runnable runnable, String id){
        int numOfAttempts = 10;
        MyRunnableTask runnableTask = new MyRunnableTask(runnable, numOfAttempts, id);
        int interval = 1;
        ScheduledFuture<?> scheduleWithFixedDelay = this.scheduleWithFixedDelay(runnableTask, 0, TimeUnit.SECONDS.toMillis(interval), TimeUnit.MILLISECONDS);
        if(id != null) {
          /*System.out.println("Submitted the task for continuous execution for the ticket id :"+id+"  with maximum attempts : "+numOfAttempts
              + " and interval : "+ interval);*/
          runnableTask.future = scheduleWithFixedDelay;
       * Creates an Executor Service to provide customized execution for tasks to be scheduled.
       * @param threadName is the name that shows in logs.
       * @param maximumThreads is the number of threads can be created.
       * @param rejectedExecutionHandler is if the Queue reaches it's maximum capacity and all the executor gives
       * the tasks to rejectedExecutionHandler.
      public TestScheduledExecutorService(String threadName, int maximumThreads, RejectedExecutionHandler rejectedExecutionHandler) {
        this.executor = createExecutor(threadName, maximumThreads, rejectedExecutionHandler);
      protected ThreadPoolExecutor createExecutor(String threadName, int minimumThreads, RejectedExecutionHandler rejectedExecutionHandler) {
        ThreadPoolExecutor threadPoolExecutor = new ScheduledThreadPoolExecutor(minimumThreads)
          @Override
          protected void beforeExecute(Thread t, Runnable r) {
            TestScheduledExecutorService.this.beforeExecute(t, r);
            this.purge();
          @Override
          protected void afterExecute(Runnable r, Throwable t) {
            TestScheduledExecutorService.this.afterExecute(r, t);
        if(rejectedExecutionHandler != null) {
          threadPoolExecutor.setRejectedExecutionHandler(rejectedExecutionHandler);
        }else{
          threadPoolExecutor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
        threadPoolExecutor.setThreadFactory(new TestThreadFactory(threadName, threadPoolExecutor));
        threadPoolExecutor.setKeepAliveTime(120, TimeUnit.SECONDS);
        threadPoolExecutor.allowCoreThreadTimeOut(true);
        return threadPoolExecutor;
       * Executes the task repeatedly with the given delay
       * @param task
       * @param initialDelay
       * @param delay
       * @param unit
       * @return
      public ScheduledFuture<?> scheduleWithFixedDelay(Runnable task, int initialDelay, long delay, TimeUnit unit) {
        return ((ScheduledThreadPoolExecutor)executor).scheduleWithFixedDelay(task, initialDelay, delay, unit);
       * To provide threads with specific features.
      protected static class TestThreadFactory implements ThreadFactory {
        private ThreadFactory threadFactory = Executors.defaultThreadFactory();
        private ThreadPoolExecutor threadPoolExecutor;
        private String groupName;
        public TestThreadFactory(String groupName, ThreadPoolExecutor threadPoolExecutor) {
          this.groupName = groupName;
          this.threadPoolExecutor = threadPoolExecutor;
        @Override
        public Thread newThread(Runnable r) {
          Thread thread = threadFactory.newThread(r);
          int activeCount = this.threadPoolExecutor.getPoolSize();
          activeCount++;
          thread.setName(this.groupName+"-"+activeCount);
          thread.setDaemon(true);
          return thread;
       * Performs initialization tasks before starting this thread.
       * @param thread
       * @param runnable
      protected void beforeExecute(Thread thread, Runnable runnable){
       * Performs tasks after execution of this runnable.
       * @param thread
       * @param runnable
      protected void afterExecute(Runnable runnable, Throwable t){
       * Initiates an orderly shutdown in which previously submitted
       * tasks are executed, but no new tasks will be
       * accepted. Invocation has no additional effect if already shut
       * down.
      public void shutdown() {
        if(this.executor != null) {
          Log.notice(CLASS_NAME, "shutdown", "Shutting down Executor Service");
          this.executor.shutdown();
       * Attempts to stop all actively executing tasks, halts the
       * processing of waiting tasks, and returns a list of the tasks
       * that were awaiting execution. These tasks are drained (removed)
       * from the task queue upon return from this method.
       * <p>There are no guarantees beyond best-effort attempts to stop
       * processing actively executing tasks.  This implementation
       * cancels tasks via {@link Thread#interrupt}, so any task that
       * fails to respond to interrupts may never terminate.
      public List<Runnable> shutdownNow() {
       if(this.executor != null) {
         Log.notice(CLASS_NAME, "shutdownNow", "Immediately shutting down Executor Service");
         try {
          return this.executor.shutdownNow();
        } catch (Exception e) {
          Log.notice(CLASS_NAME, "shutdownNow", e.getMessage());
       return Collections.emptyList();
       * Returns a Future for the given runnable task.
      public Future<?> submit(Runnable runnable) {
        if(this.executor != null) {
          return this.executor.submit(runnable);
        return null;
    Is there any possibility for the continuous execution or not?

  • File Systems are not shown in CCMS Monitoring

    Hi Gurus,
    We have installed all SAP components in Solaris 10 zones including Solution Manager.
    Solaris File Systems are not shown in CCMS Monitoring under FileSystem. It looks like SAPOSCOL is not sending the OS data to CCMS. It does not show file systems in OS06 also.
    The probles exists on Systems runnig in Solaris 10 zones only and NOT on systems running on individual Servers. [without Solaris zones]
    Thanks,
    Pj

    Hi,
    You need take some special considerations while installing SOLMAN on SOLARIS 10 zones. Check these notes
    Note 870652 - Installation of SAP in a Solaris 10 zone
    Note 724713 - parameter settings for Solaris 10
    Hope this will solve your problem.
    --Ragu

  • Sent faxes are not saved in "Faxes" folder

    Does anyone know where the "sent" faxes are stored? They are not in the "Faxes" folder under "users". In fax prefs, the "Save" box is checked but dimmed. Does this save only received faxes? How can I save "sent" faxes so I can see cover sheet messages?

    Does anyone know where the "sent" faxes are stored?
    Nowhere.
    They are not in the "Faxes" folder under "users".
    Correct.
    In fax prefs, the "Save" box is checked but dimmed.
    That's because you must have at least one of the three options checked. The Print & Fax preference panel won't let you uncheck all of them. As soon as you check another option, you'll be able to uncheck any of them -- but not all.
    Does this save only received faxes?
    Yep.
    How can I save "sent" faxes
    so I can see cover sheet messages?
    After choosing File > Print > Fax PDF... and filling in all the fields, click the Preview button located at the bottom left. In Preview choose File > Save As... and there you go...
    iMac G5 17" (iSight)   Mac OS X (10.4.4)  

Maybe you are looking for

  • Having trouble getting my online albums saved onto my hardrive . . .

    I am a new user for the Photoshop Elements 8 and I have also just recently purchased a new computer and a new camera.  All these new things are not making for very easy time for me!  I did manage to get all of my pictures onto the PE8 but when I firs

  • Address book how do i add an attachment an image of a sign

    i want to be able to add an attachment to an address book entry, how can i do this

  • T530 Display Crash w/Corrupted Screen

    Got my T530 2359CTO delivered on 6/28 on an order placed 6/12. This one may be going back as defective. It has an intermittent, but spectacular, hardware failure. I think it's a problem with the mobo. I'm attaching screen shots of how it goes down. A

  • Forgot userid/password

    I set up my Blackberry 7250, and set it up with my POP email server.  That is working fine, and it connects to my third party POP server fine, and I can browse the internet as well.  BUT I don't know the userid or password.  I guess it's working beca

  • Infopackage groups to process chain conversion

    HI Gurus, I am doing Infopackage Groups to Process chain conversion by using procss chain maintanence icon in scheduler place of Info package group.If I am doing conversion I am getting all infopackages  as parallel manner. I need to make it as seria