Applet start() running twice, in Microsoft IE 5.5.

It seems to me that that the Applet start() method is running twice, on Microsoft IE 5.5, Microsoft Java (with no service pack�s). Does someone reconice this problem ?
(I know that people should not use Microsoft Java, but I cannot control the behavior of the users).
Best Regards.

Well, you can live with it if stop is not being called
between both start calls. You could simply set a flag
on the start and if it's set return from start.. and
reset the flag in stop.
static boolean started = false;
public void start() {
if(started) return;        
started = true;
super.start();
... rest of start 
public void stop() {-------------------------------------
** Don't do this. It is unsafe and will crash.
See http://java.sun.com/docs/books/tutorial/post1.0/preview/threads.html
super.stop(); --------------------------------------
started = false;
Otherwise the Javascript idea would work. ------------------------------------------------------------------------------
Hello,
the old NS 1.1.5 JVM did this as well. The cause is a race and even worse,
stop/start/run can be called in multiple and erronious succession.
Use the Runnable interface and synchronize to force startup serialization.
public class MyClass implements Runnable
boolean initialized = false; // Same concept.
Object waitObject = new Object();
Thread task = null;
public synchronized void init()
if(!initialized)
// Do your initialization
initialized = true;
notifyall();
public synchronized void start()
task = new Thread(this);
task.start();
notifyAll();
public synchronized void stop()
task = null;
notifyAll();
public void run()
Thread controlThread = Thread.currentThread();
// Force synch with start / stop
synchronized(this)
notifyAll();
while(controlThread == task)
// Do your stuff. I fyou have nothing to do, then
// lazily do a wait() NOT a sleep.
synchronized(waitObject)
try
waitObject.wait(1000); // 200 or 5 X a second
} // is an unnoticable and responsive
catch(InterruptedException ie) // poll time If you find a second too slow.
What this does.
It not only forces serialization of start, stop, and run, but it also uses the Sun Engineer's
recommendations pertaining to the deprecation of stop.
I have mentioned this before but some people didn't belive me.
Then again some people just like to argue :)
Because of the deprecation of stop, some JVMs versions handled it differently, and
you should overwrite overwrite it as prescribed in the aformentioned link.
(T)

Similar Messages

  • Sun.applet.appletPanel.run() is invoked twice when applet is loaded.

    When I am loading my applet in the browser, sun.applet.appletPanel.run() function is invoked 2 times according to JProfiler.
    How can we solve this problem to reduce the number of calls to one???
    TIA
    Ashish

    Anyone having slightest of idea about this problem please reply....

  • I can't get applets to run - I messed up machine

    This is not a programming question, just an "I want to see an applet" question.
    2 months ago, I downloaded the JDK 1.3.1_02 because I was/am taking a programming class. I set the path variable to the BIN. I then had 2 runtime environments 1.3.1 and 1.3.1_02 and everything was fine. Last week, however, applets wouldn't load or would load only after a very long delay (not necessarily my applets, just applets when we surfed the net). I twice received errors that my "client was corrupted."
    I have a Windows ME machine. I removed the 1.3.1 runtime environment (pre-installed on machine), thinking that, well... I was just thinking stupid thoughts. I now only have the 1.3.1_02 environment. NOW, no applets will run.
    I'm guessing I need to point something to 1.3.1_02, but don't know what that would be. I checked IE options and it thinks it's looking to 1.3.1_02. I looked at the advanced tab of the Java plug-in and it's set to default. I changed it to 1.3.1_02 and that had no effect, so I returned it to default. I have the latest version of VM.
    Should I reinstall Java and the runtime environment?
    Thanks in advance Janie

    Hi,
    I've also encountered a problem in running applets and what I did are the following:
    - Try reinstalling your Java and then restart your machine.
    - After that, Go to Start -> Settings -> Control Panel -> Java Plug-in 1.3.1_02 to open the Java
    Console Window.
    - On the Browser tab, uncheck the "Microsoft Internet Explorer" and click OK.
    - Try to open a new browser and open pages with applets and see if this works.
    Hope this can help.
    Cleo

  • Applet Not Running in IE. Need IE settings for running applet.

    Hi
    I am facing a problem with Applet while running in IE-6. The problem is very simple; Applet is not running in IE-6, not even a simple applet which displays just a Label.
    I am using Java Version 1.4
    Settings for IE is as follows
    Java (Sun)
    CHECKED Use Java 2 v1.4.0 for <applet>
    Microsoft VM
    CHECKED Java console enabled
    NOT CHECKED Java logging enabled
    CHECKED JIT compiler for virtual machine enabled
    The applet is running in Appletviewer and run in IE in some other machine. The problem is in my browser and Java versions.
    If I start the applet in IE it is not showing even Jave Console (which is enabled).
    In Java Plugin (Control Panel) I enabled Show Console and set MSIE checked.
    What should I do to solve such a stupid problem with my IE. I have updated my JVM and IE twice but yet to wait for solution.
    Your help is worshipfully appericated.
    with love Vijay

    I got some reasonable solution from some other forum.
    The Problem is with the VM. The JVM is crashed with MS VM.
    That is why the browser diplays class not found error.
    This is because the MS VM is not allowing the JVM to look for .class files.
    This will happen for java 1.4.x .
    If you use HTML converter (converting the applet to object) it will work.
    But the Optimal solution is compile your applet file with -target option.
    e-g
    javac target 1.1 HelloWorld.java
    It is the most efficient way to avoid such problems with IE while running the applets.
    I Thank you all for your solutions.
    with love Vija

  • My Macbook Pro started running really slow

    This week my Macbook Pro started running super slow, taking ages to open programs and giving me the color wheel alllll the time. I've never had problems like this before! I'm not running many applications or doing anything unusual but it's just running extra slow. Once or twice it has also totally gone to sleep while I was in the middle of using it, and I had to wake it back up. It has also been getting really hot and the battery life seems worse...! This is all new, I'm using my computer just as I always have but it suddenly has issues.
    The only thing it has been doing for a while is sometimes the screen will go blue - this either corrects itself within a few seconds or if I close my Macbook and then reopen it, the screen is back to normal. This is very rare though and I don't know if it's related to the slowness problem.
    What can I do to fix this??
    Mac OS X 10.6.8
    2 GHz Intel Core i7
    4 GB 133 MHz DDR3
    I just ran EtreCheck -
    Hardware Information:
        MacBook Pro (15-inch, Early 2011)
        MacBook Pro - model: MacBookPro8,2
        1 2 GHz Intel Core i7 CPU: 4 cores
        4 GB RAM
    Video Information:
        AMD Radeon HD 6490M - VRAM: 256 MB
        Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
        Mac OS X 10.6.8 (10K549) - Uptime: 1 day 3:59:13
    Disk Information:
        Hitachi HTS725050A9A362 disk0 : (465.76 GB)
            (null) (disk0s1) <not mounted>: 200 MB
            Macintosh HD (disk0s2) / [Startup]: 465.44 GB (235.1 GB free)
        MATSHITADVD-R   UJ-898 
    USB Information:
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
        Apple, Inc. MacBook Pro
    Kernel Extensions:
        com.digidesign.iokit.DigiDal    (8.0.3f1)
        com.paceap.kext.pacesupport.snowleopard    (5.7.2)
    Startup Items:
        DigidesignLoader: Path: /Library/StartupItems/DigidesignLoader
        M-AudioFastTrack: Path: /Library/StartupItems/M-AudioFastTrack
        PACESupport: Path: /Library/StartupItems/PACESupport
    Problem System Launch Daemons:
        [System]    org.samba.winbindd.plist 3rd-Party support link
    Launch Daemons:
        [System]    com.adobe.fpsaud.plist 3rd-Party support link
        [System]    com.google.keystone.daemon.plist 3rd-Party support link
        [System]    com.microsoft.office.licensing.helper.plist 3rd-Party support link
        [System]    org.eyebeam.SelfControl.plist 3rd-Party support link
        [System]    PACESupport.plist 3rd-Party support link
    Launch Agents:
        [System]    com.google.keystone.agent.plist 3rd-Party support link
        [System]    com.hp.help.tocgenerator.plist 3rd-Party support link
        [System]    com.m-audio.mobilepremkii.helper.plist 3rd-Party support link
    User Launch Agents:
        [not loaded]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
        [not loaded]    com.facebook.videochat.[redacted].plist 3rd-Party support link
        [not loaded]    com.spotify.webhelper.plist 3rd-Party support link
    User Login Items:
        Flux
        iTunesHelper
        RescueTime
    Internet Plug-ins:
        o1dbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
        Unity Web Player: Version: UnityPlayer version 3.5.2f2 - SDK 10.6 3rd-Party support link
        RealPlayer Plugin: Version: Unknown
        Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
        FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
        QuickTime Plugin: Version: 7.6.6
        Flash Player: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
        googletalkbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
        SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 3rd-Party support link
        AdobePDFViewer: Version: 10.1.1 3rd-Party support link
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Outdated! Update
    iTunes Plug-ins:
        Quartz Composer Visualizer: Version: 1.2
    3rd Party Preference Panes:
        Flash Player  3rd-Party support link
        Growl  3rd-Party support link
        M-AudioFastTrack  3rd-Party support link
        M-Audio MobilePre  3rd-Party support link
    Old Applications:
        None
    Time Machine:
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU:
             7%    firefox
             3%    WindowServer
             3%    EtreCheck
             2%    hidd
             0%    coreservicesd
    Top Processes by Memory:
        397 MB    firefox
        106 MB    mds
        82 MB    WindowServer
        82 MB    Mail
        49 MB    quicklookd
    Virtual Memory Information:
        1.04 GB    Free RAM
        1.04 GB    Active RAM
        1.03 GB    Inactive RAM
        907 MB    Wired RAM
        467 MB    Page-ins
        0 B    Page-outs

    The startup drive is failing, or there is some other internal hardware fault. The "etrecheck" output is irrelevant.
    Back up all data on the drive immediately if you don't already have a current backup. There are ways to back up a computer that isn't fully functional — ask if you need guidance.
    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
    Keeping your confidential data secure during hardware repair
    Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.
    *An SSD doesn't need to be zeroed.

  • Using an Applet to run another application

    To anyone that can help.
    Simply, can I have an applet that runs an PC application?
    More detail:
    I am relatively new to the Java Development environment, but so far have put together a reasonable intranet web application that takes user input and writes to an Oracle database. From this information, I have then invoked Microsoft Word and populated a template with information to create a document.
    All fine and good, but I am running everything under W2000 so I have server and client all in the one place. I am using Tomcat 4 as my server, the application is written using JSP and my own Beans.
    The principle of how the Word link works is: within the JSP information is written to a Bean, which creates a file and then executes a WordAPI using:
    cmd = "WordAPI.exe";
    try {
    Runtime.getRuntime().exec(cmd);
    This is OK with everything on one machine, but I now need to set it up on a server and this will not invoke Word on the client. I thought that if I turned the bean into an applet then it would run at the client end and that would resolve the problem, but it doesn't work. Am I breaking some rules or trying to do the impossible?
    Thanks for any help

    I think it boils down to a matter of security. An applet generally runs in what is known as a sandbox. Since you're talking about an intranet and you didn't say anything about Netscape browser, I'll assume that you're only interested in IE. In IE, you can start by testing to see if your application will work if you click:
    Tools-->Internet Options-->Security-->Trusted sites-->sites
    and add the intranet URL to make it a trusted site.
    If that doesn't work, you may have to sign the applet and put it in a .cab file. To do this you'll need to use the cabarc command (if you can't find the command on your system, search www.microsoft.com web site for a download). After having signed the applet, you still have to make sure that the client's IE security settings are just right for what you needed to do. For this, you'll have to look at:
    Tools-->Internet Options-->Security-->Local intranet-->Custom Levels...
    Good Luck!
    V.V.

  • EEM Run Twice an hour

    I configured the EEM applet to run every hour, but it turns out that it run 2 times per hour. Right after the applet finish, it starts again for one more time. I suspect the cron is not configured properly. I checked the crontab documentation and I can't find any wrong with it.
    ACMGJC_Router1#sh event manager policy registered
    No.  Class     Type    Event Type          Trap  Time Registered           Name
    2    applet    user    timer cron          Off   Thu Jul 1 16:48:22 2010   HourlyLog
    name {EveryHour} cron entry {0 0-23 * * *}
    maxrun 60.000
    action 1.0 cli command "enable"
    action 2.0 cli command "show process cpu history | redirect flash:/dailylog"
    action 2.1 cli command "show interface fastethernet 0/0 | append flash:/dailylog"
    action 2.2 cli command "show interface fastethernet 0/1 | append flash:/dailylog"
    action 2.3 cli command "show ip nat statistics | append flash:/dailylog"
    action 2.4 cli command "show ip nat translations | append flash:/dailylog"
    action 2.5 cli command "copy flash:/dailylog scp://username:password@SCP IP/ACMGJC_Router1-Log" pattern "SCP IP"
    action 2.6 cli command "SCP IP" pattern "username"
    action 2.7 cli command "username" pattern "ACMGJC_Router1-Log"
    action 2.8 cli command "ACMGJC_Router1-Log-$_event_pub_sec"
    action 3.5 cli command "delete flash:/dailylog" pattern "dailylog"
    action 3.6 cli command "dailylog" pattern "confirm"
    action 3.7 cli command "y"
    ACMGJC_Router1#
    ACMGJC_Router1#    
    Jul  2 16:00:00.012: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : CTL : cli_open called.
    Jul  2 16:00:00.036: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1>
    Jul  2 16:00:00.036: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1>enable
    Jul  2 16:00:00.048: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:00.052: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show process cpu history | redirect flash:/dailylog
    Jul  2 16:00:00.612: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT :
    Jul  2 16:00:00.612: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:00.612: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show interface fastethernet 0/0 | append flash:/dailylog
    Jul  2 16:00:01.028: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT :
    Jul  2 16:00:01.028: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:01.028: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show interface fastethernet 0/1 | append flash:/dailylog
    Jul  2 16:00:01.456: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT :
    Jul  2 16:00:01.456: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:01.456: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show ip nat statistics | append flash:/dailylog
    Jul  2 16:00:01.796: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT :
    Jul  2 16:00:01.796: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:01.796: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show ip nat translations | append flash:/dailylog
    Jul  2 16:00:05.823: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:05.823: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#copy flash:/dailylog scp://username:password@SCP IP/ACMGJC_Router1-Log
    Jul  2 16:00:05.935: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Address or name of remote host [SCP IP]?
    Jul  2 16:00:05.935: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : SCP IP
    Jul  2 16:00:05.947: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Destination username [username]?
    Jul  2 16:00:05.947: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : username
    Jul  2 16:00:05.959: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Destination filename [ACMGJC_Router1-Log]?
    Jul  2 16:00:05.959: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1-Log-1278086400
    Jul  2 16:00:17.026: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Writing ACMGJC_Router1-Log-1278086400 !!
    Jul  2 16:00:17.026: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : 270152 bytes copied in 11.016 secs (24524 bytes/sec)
    Jul  2 16:00:17.026: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:17.030: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#delete flash:/dailylog
    Jul  2 16:00:17.042: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : delete flash:/dailylog
    Jul  2 16:00:17.042: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Delete filename [dailylog]?
    Jul  2 16:00:17.042: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : dailylog
    Jul  2 16:00:17.054: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : dailylog
    Jul  2 16:00:17.054: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Delete flash:dailylog? [confirm]
    Jul  2 16:00:17.054: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : y
    Jul  2 16:00:17.270: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : y
    Jul  2 16:00:17.270: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:17.270: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:00:17.270: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : CTL : cli_close called.
    Jul  2 16:01:00.006: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : CTL : cli_open called.
    Jul  2 16:01:00.034: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1>
    Jul  2 16:01:00.034: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1>enable
    Jul  2 16:01:00.050: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:00.050: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show process cpu history | redirect flash:/dailylog
    Jul  2 16:01:00.602: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT :
    Jul  2 16:01:00.602: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:00.606: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show interface fastethernet 0/0 | append flash:/dailylog
    Jul  2 16:01:01.022: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT :
    Jul  2 16:01:01.022: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:01.022: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show interface fastethernet 0/1 | append flash:/dailylog
    Jul  2 16:01:01.298: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT :
    Jul  2 16:01:01.298: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:01.298: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show ip nat statistics | append flash:/dailylog
    Jul  2 16:01:01.562: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT :
    Jul  2 16:01:01.562: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:01.562: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#show ip nat translations | append flash:/dailylog
    Jul  2 16:01:05.654: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:05.654: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#copy flash:/dailylog scp://username:password@SCP IP/ACMGJC_Router1-Log
    Jul  2 16:01:05.766: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Address or name of remote host [SCP IP]?
    Jul  2 16:01:05.766: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : SCP IP
    Jul  2 16:01:05.778: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Destination username [username]?
    Jul  2 16:01:05.778: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : username
    Jul  2 16:01:05.790: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Destination filename [ACMGJC_Router1-Log]?
    Jul  2 16:01:05.790: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1-Log-1278086459
    Jul  2 16:01:16.645: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Writing ACMGJC_Router1-Log-1278086459 !!
    Jul  2 16:01:16.645: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : 266007 bytes copied in 10.816 secs (24594 bytes/sec)
    Jul  2 16:01:16.645: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:16.649: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : ACMGJC_Router1#delete flash:/dailylog
    Jul  2 16:01:16.661: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : delete flash:/dailylog
    Jul  2 16:01:16.661: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Delete filename [dailylog]?
    Jul  2 16:01:16.661: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : dailylog
    Jul  2 16:01:16.673: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : dailylog
    Jul  2 16:01:16.673: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : Delete flash:dailylog? [confirm]
    Jul  2 16:01:16.673: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : IN  : y
    Jul  2 16:01:16.885: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : y
    Jul  2 16:01:16.889: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:16.889: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : OUT : ACMGJC_Router1#
    Jul  2 16:01:16.889: %HA_EM-6-LOG: HourlyLog : DEBUG(cli_lib) : : CTL : cli_close called.       
    ACMGJC_Router1#

    This sounds like CSCsz12460 in which cron events can run twice in the same minute (if NTP is being used).

  • SQL server jobs run showing run twice

    I have one production server which is SQL server 2012 Enterprise. I found something really strange.
    1. For server jobs, once a while the job history showing running twice.
    2. One of the job run duration is positive which is correct. Another job run duration is negative which is not correct obviously. Does someone see this problem before? What is the root course for this? What is the approach to troubleshoot this problem?
    Any suggestions or ideas would be appreciated.

    For some reasons, I was not allowed to past image here. Here are text info instead:
    Date  5/12/2014 4:15:00 PM
    Log  Job History (Coupa_PaymentProcess)
    Step ID  1
    Server  HAL-HOU01-SQL11
    Job Name  Coupa_PaymentProcess
    Step Name  Coupa_PaymentProcess_SSIS
    Duration  00:02:43
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed 
    Operator Net sent 
    Operator Paged 
    Retries Attempted 0
    Message
    Executed as user: HALCONRESOURCES\Svc.ogsys.sql. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  4:15:00 PM  Error:
    2014-05-12 16:16:20.83     Code: 0xC0019004     Source: Coupa_Payment_Process      Description: The expression for variable "PaymentArchPath" failed evaluation. There was an error in the expression. 
    End Error  DTExec: The package execution returned DTSER_SUCCESS (0).  Started:  4:15:00 PM  Finished: 4:17:43 PM  Elapsed:  163.661 seconds.  The package executed successfully.  The step succeeded.
    Date  5/12/2014 4:15:00 PM
    Log  Job History (Coupa_PaymentProcess)
    Step ID  1
    Server  HAL-HOU01-SQL11
    Job Name  Coupa_PaymentProcess
    Step Name  Coupa_PaymentProcess_SSIS
    Duration  -3976.20:33:55
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed 
    Operator Net sent 
    Operator Paged 
    Retries Attempted 0
    Message
    Executed as user: HALCONRESOURCES\Svc.ogsys.sql. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  4:15:00 PM  Error:
    2014-05-12 16:16:23.20     Code: 0xC0019004     Source: Coupa_Payment_Process      Description: The expression for variable "PaymentArchPath" failed evaluation. There was an error in the expression. 
    End Error  DTExec: The package execution returned DTSER_SUCCESS (0).  Started:  4:15:00 PM  Finished: 4:12:17 PM  Elapsed:  163.926 seconds.  The package executed successfully.  The step succeeded.

  • Macbook Pro just started running insanely slow

    Hello there,
    From my research I can't figure out why my mac all of a sudden started running so slow. I've looked at the CPU, memory, startup and a lot of other suggestions I read here and am at a lost.
    I bought a external  back up drive and it was going very slow too, I forgot to keep my machine plugged in overnight and it  turned off so the backup didn't complete.
    Do I just restart the external backup turning the Time Machine on?
    I did a test on EtreCheck and I only saw one thing that I think could be a problem but I really have no clue here.
    That was this:
    User Launch Agents:
      [failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
    Below is the entire test and Thanks so much!
    EtreCheck version: 1.9.12 (48)
    Report generated July 5, 2014 at 12:29:20 PM PDT
    Hardware Information:
      MacBook Pro (13-inch, Mid 2012) (Verified)
      MacBook Pro - model: MacBookPro9,2
      1 2.9 GHz Intel Core i7 CPU: 2 cores
      8 GB RAM
    Video Information:
      Intel HD Graphics 4000 - VRAM: (null)
      Color LCD 1280 x 800
    System Software:
      OS X 10.9.4 (13E28) - Uptime: 0 days 2:48:20
    Disk Information:
      TOSHIBA MK7559GSXF disk0 : (750.16 GB)
      EFI (disk0s1) <not mounted>: 209.7 MB
      Macintosh HD (disk0s2) / [Startup]: 749.3 GB (624.35 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
      HL-DT-ST DVDRW  GS31N 
    USB Information:
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Computer, Inc. IR Receiver
      Apple Inc. FaceTime HD Camera (Built-in)
    Thunderbolt Information:
      Apple Inc. thunderbolt_bus
    Gatekeeper:
      Mac App Store and identified developers
    Launch Daemons:
      [loaded] com.adobe.fpsaud.plist Support
      [loaded] com.google.keystone.daemon.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
      [running] com.prosoftnet.idrivedaemon.plist Support
      [running] com.prosoftnet.idsyncdaemon.plist Support
      [running] com.prosoftnet.idwebdaemon.plist Support
    Launch Agents:
      [loaded] com.google.keystone.agent.plist Support
    User Launch Agents:
      [failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
      [loaded] com.citrixonline.GoToMeeting.G2MUpdate.plist Support
    User Login Items:
      iTunesHelper
      Dropbox
      TextExpander
      IDriveMonitor
      RoboFormIcon
    Internet Plug-ins:
      Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 Support
      FlashPlayer-10.6: Version: 14.0.0.125 - SDK 10.6 Support
      QuickTime Plugin: Version: 7.7.3
      Flash Player: Version: 14.0.0.125 - SDK 10.6 Support
      Default Browser: Version: 537 - SDK 10.9
      o1dbrowserplugin: Version: 5.4.2.18903 Support
      SharePointBrowserPlugin: Version: 14.3.8 - SDK 10.6 Support
      googletalkbrowserplugin: Version: 5.4.2.18903 Support
      Silverlight: Version: 5.1.20513.0 - SDK 10.6 Support
    Safari Extensions:
      RoboForm: Version: 1.8.4
    Audio Plug-ins:
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 2.0 - SDK 10.9
      AppleAVBAudio: Version: 203.2 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
      Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
      CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 Support
      Picasa: Version: 1.0 - SDK 10.4 Support
    3rd Party Preference Panes:
      Flash Player  Support
      Flip4Mac WMV  Support
    Time Machine:
      Mobile backups: OFF
      Auto backup: NO - Auto backup turned off
      Volumes being backed up:
      Macintosh HD: Disk size: 697.84 GB Disk used: 116.37 GB
      Destinations:
      Seagate Backup Plus Drive [Local] (Last used)
      Total size: 2 
      Total number of backups: (null)
      Size of backup disk: Adequate
      Backup size 2  > (Disk used 116.37 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU:
          3% WindowServer
          0% Folder Actions Dispatcher
          0% IDriveDaemon
          0% aosnotifyd
    Top Processes by Memory:
      336 MB firefox
      172 MB Finder
      131 MB softwareupdated
      115 MB mds_stores
      98 MB com.apple.WebKit.WebContent
    Virtual Memory Information:
      4.79 GB Free RAM
      1.88 GB Active RAM
      463 MB Inactive RAM
      897 MB Wired RAM
      366 MB Page-ins
      0 B Page-outs

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or later and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
      Mac OS X Snow Leopard and malware detection
      OS X Lion- Protect your Mac from malware
      OS X Mountain Lion- Protect your Mac from malware
      About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • SPItemEventReceiver ItemAdded running twice

    I have searched the web to find a way to start workflows on items created by anonymous users. The consensus seems to be to create an event receiver fired on the ItemAdded event. I have managed to get my code to cancel the workflow created by the anonymous
    user and then start the workflow as the system admin. I do this with a
    RunWithElevatedPrivileges section.
    I noticed when debugging that for some reason the code inside the ItemAdded event runs twice. This was having the effect of creating two instances of the workflow when I was starting the workflow synchronously. When I changed it to Asynchronous it creates
    an instance and then throws an exception when trying to create a second instance. So at least this gives me my desired effect of just having one instance of workflow started. But I would like to know why it fires twice and how I can stop it.
    site.WorkflowManager.StartWorkflow(item, wf, string.Empty, SPWorkflowRunOptions.Asynchronous);
    Any ideas/help greatly appreciated.

    Hi,
    Theoretically it's not possible to create the same list item twice. Can you check the list item id? Are their IDs same for first and second ItemAdded event? Also does the workflow creates another list item, which might cause to fire Item Add event again?
    Are you trying to run SharePoint 2013 workflow or SharePoint 2010? As I know you can't use RunWithElevatedPrivileges to run SharePoint 2013 workflow. You need a valid user (not system) account. Possibly you can try to use 'app step' as described at
    http://msdn.microsoft.com/en-us/library/office/jj822159(v=office.15).aspx. As described in he link:
    You need to create an app-level permission (full control)
    wrap your code block in 'app step' which will use 'full control' permission irrespective of current logged in user
    And it'll work win non-app sites (as long as you have app service application configured)
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • I am having problems with my Mac Book Pro, as it has started running very slowly.  Please find a copy of the etrecheck report - can anyone help.

    I am having trouble with my Mac Book Pro which I bought in August 2012.  It has suddenly started running very slowly every time I try to poen something.  I have completed an etrecheck report - can anyone help?
    Thank you
    Hardware Information:
              MacBook Pro (13-inch, Mid 2012)
              MacBook Pro - model: MacBookPro9,2
              1 2.5 GHz Intel Core i5 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 4000 - VRAM: 384 MB
    System Software:
              Mac OS X 10.7.5 (11G63b) - Uptime: 0 days 0:21:48
    Disk Information:
              TOSHIBA MK5065GSXF disk0 : (500.11 GB)
                        disk0s1 (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 499.25 GB (410.81 GB free)
              HL-DT-ST DVDRW  GS31N 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple, Inc. MacBook Pro
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [loaded] com.microsoft.office.licensing.helper.plist Support
              [running] com.MyBusinessWorks.backup.plist Support
    Launch Agents:
              [running] com.MyBusinessWorks.status.plist Support
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist Support
              [loaded] com.citrixonline.GoToMeeting.G2MUpdate.plist Support
    User Login Items:
              iTunesHelper
              Dropbox
              AdobeResourceSynchronizer
    Internet Plug-ins:
              Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 Support
              FlashPlayer-10.6: Version: 12.0.0.44 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.7.1
              AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 Support
              Flash Player: Version: 12.0.0.44 - SDK 10.6 Outdated! Update
              AdobePDFViewer: Version: 11.0.06 - SDK 10.6 Support
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 Support
              JavaAppletPlugin: Version: 14.1.0 - SDK 10.7 Mismatch! Oracle recommends Java 7 Update 55
    Safari Extensions:
              Slick Savings: Version: 1.0
              Searchme: Version: 1.3
              Amazon Shopping Assistant: Version: 1.1
              Ebay Shopping Assistant: Version: 1.1
              AllMyTube: Version: 5.0.0.1
    Audio Plug-ins:
              iSightAudio: Version: 7.7.1 - SDK 10.7
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.3 - SDK 10.7
    User Internet Plug-ins:
              CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 Support
    3rd Party Preference Panes:
              Flash Player  Support
              Flip4Mac WMV  Support
              MyBusinessWorks  Support
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                   3%          WindowServer
                   2%          MyBusinessWorksBackup
                   1%          PluginProcess
                   1%          mdworker
                   0%          Microsoft PowerPoint
    Top Processes by Memory:
              197 MB          Safari
              152 MB          WebProcess
              131 MB          Finder
              131 MB          mds
              94 MB          MyBusinessWorksBackup
    Virtual Memory Information:
              1.67 GB          Free RAM
              1.34 GB          Active RAM
              343 MB          Inactive RAM
              670 MB          Wired RAM
              327 MB          Page-ins
              0 B          Page-outs

    It may be running slow because your backup program, MyBusinessWork, is running: running] com.MyBusinessWorks.backup.plist.

  • Stored Proc running twice using DBMS_Scheduler

    Hello all,
    I have a vb front end that calls a main stored proc which submits scheduler jobs to execute several stored procs asynchronously. Everything is working, except the part that the several stored procs are running twice. In the troubleshooting, I have eliminated the front end from being the culprit and the stored procs themselves. Essentially, when I call the stored proc using dbms_scheduler.create_job, it runs twice, even manually. I am about at wits end trying to figure out why: Using Oracle 11gR2
    I started off setting up the programs
    begin
    --create program
    dbms_scheduler.create_program
    ( program_name => 'prog_name'
    ,program_type => 'STORED_PROCEDURE'
    ,program_action => 'usp_sub_proc_1'
    ,number_of_arguments => 8
    ,enabled => FALSE
    dbms_scheduler.DEFINE_PROGRAM_ARGUMENT
    ( program_name=> 'prog_name'
    ,argument_position=>1
    ,argument_name => 'name'
    ,argument_type=>'VARCHAR2'
    /*the remaining 7 arguments are in code but not display for space reasons*/
    dbms_scheduler.enable('prog_name');
    end;Then the main stored proc executes this code:
    declare v_job_name varchar2(100);
        v_1 varchar(50) := 'All';
        v_2 varchar(50) := 'All';
        v_3 varchar(50) := 'All';
        v_4 varchar(50) := 'All';
        v_5 varchar(50) := 'TEST';
        i_6 integer := 1;
        v_7 varchar(50) := 'TEST_NE';
        ts_8 timestamp := current_timestamp;
    begin
        v_job_name := 'uj_dmo_1';
    dbms_scheduler.create_job (v_job_name
                                            ,program_name => 'prog_name'
                                            ,job_class => 'UCLASS_1'
                                            ,auto_drop => TRUE
    --set parameters
    dbms_scheduler.set_job_argument_value(v_job_name,1, v_1);
    dbms_scheduler.set_job_argument_value(v_job_name,2, v_2);
    dbms_scheduler.set_job_argument_value(v_job_name,3, v_3);
    dbms_scheduler.set_job_argument_value(v_job_name,4, v_4);
    dbms_scheduler.set_job_argument_value(v_job_name,5, v_5);
    dbms_scheduler.set_job_argument_value(v_job_name,6, to_char(i_6));
    dbms_scheduler.set_job_argument_value(v_job_name,7, v_7);
    dbms_scheduler.set_job_argument_value(v_job_name ,8, to_char(ts_8));
    --enable job
    dbms_scheduler.enable(v_job_name);
    --execute job
    dbms_scheduler.run_job(job_name => v_job_name , use_current_session => FALSE);
    end;
    ...And this is where I get the double execution of the job, but I am just not seeing it in my syntax, dba_scheduler_jobs, logging, etc. Any help is greatly appreciated, thanks!!

    Well apparently I will not win any Captain Obvious awards;
    With 34MCA2K2's response with "what doesn't work" for some reason turned the light on. After some more testing here is what I found.
    This code works as expected :
    Exhibit A
    begin
    dbms_scheduler.create_job (job_name =>'TESTER'
                                   ,job_type => 'PLSQL_BLOCK'
                                   ,job_action => 'declare test1 integer := 1; begin test1 := test1 + 5; end;'
                                   ,auto_drop => True
       /*dbms_scheduler.enable('TESTER');   */
       dbms_scheduler.run_job(job_name => 'TESTER', use_current_session =>FALSE);   
    end;As does this:
    Exhibit B
    begin
    dbms_scheduler.create_job (job_name =>'TESTER'
                                   ,job_type => 'PLSQL_BLOCK'
                                   ,job_action => 'declare test1 integer := 1; begin test1 := test1 + 5; end;'
                                   ,auto_drop => True
       dbms_scheduler.enable('TESTER');  
      /*dbms_scheduler.run_job(job_name => 'TESTER', use_current_session =>FALSE);    */
    end;Exhibit A will create the job and is visible in the schedulerjobs view, and the RUN_JOB will execute it even when not enabled, but the pl/sql will not drop the job.
    Exhibit B will create the job and once enabled, executes the job and then drops from schedulerjobs view.
    Therefore, my desired results for running the jobs once asynchronously and dropping immediately is....
    begin
        v_job_name := 'uj_dmo_1';
    dbms_scheduler.create_job (v_job_name
                                            ,program_name => 'prog_name'
                                            ,job_class => 'UCLASS_1'
                                            ,auto_drop => TRUE
    --set parameters
    dbms_scheduler.set_job_argument_value(v_job_name,1, v_1);
    dbms_scheduler.set_job_argument_value(v_job_name,2, v_2);
    dbms_scheduler.set_job_argument_value(v_job_name,3, v_3);
    dbms_scheduler.set_job_argument_value(v_job_name,4, v_4);
    dbms_scheduler.set_job_argument_value(v_job_name,5, v_5);
    dbms_scheduler.set_job_argument_value(v_job_name,6, to_char(i_6));
    dbms_scheduler.set_job_argument_value(v_job_name,7, v_7);
    dbms_scheduler.set_job_argument_value(v_job_name ,8, to_char(ts_8));
    /*enable job*/
    dbms_scheduler.enable(v_job_name);
    /*execute job (Do not execute the code below, it will lead to multiple executions)
    dbms_scheduler.run_job(job_name => v_job_name , use_current_session => FALSE); */
    end;

  • DBMS scheduler jobs running twice

    Hi,
    I have 4 DBMS scheduler jobs , which checks for a specific job status in DB and sends an email , when i started the schedule for the first week the jobs executed fine from next week I am getting two emails from each job , when i check the logs USER_SCHEDULER_JOB_RUN_DETAILS I see only one run , which seems weird to me so i disabled one job and left the three jobs in schedule , next time i got two emails from 3 jobs and one from disabled job . After checking logs i see that there is no entry of the disabled job execution . I am not sure where is the problem i can't find any log from where the disabled job executing. Please help me
    Job schedule is to run every Saturday
    Interval setup :
    start_date => trunc(SYSDATE)+ 8.5/24,
    repeat_interval => 'TRUNC(LEAST(NEXT_DAY(SYSDATE,''SATURDAY'') )) + 8.5/24'
    Suresh

    Hi,
    I tried to schedule the same jobs using DBMS_JOB but i still get the same problem , I created the procedure with all code in and scheduled it using dbms job , first day it run once second day it run twice ( sending two emails) Inow i am not sure if issue is with my code or scheduler
    Procedure
    Declare
    v_count number;
    v_Recipient VARCHAR2(400) := '[email protected]';
    v_Subject VARCHAR2(80) := 'TEST_Email';
    v_Mail_Host VARCHAR2(30) := 'localhost';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    BEGIN
    select count(*) into v_count from TEC_CODERETURN@RPRD where interface like 'FOR002B' and trunc(rundate) =trunc(sysdate);
    if v_count = 0
    then
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Rcpt(v_Mail_Conn, '[email protected]');
    UTL_SMTP.OPEN_DATA(v_Mail_Conn);
    utl_smtp.WRITE_RAW_DATA(v_Mail_Conn, UTL_RAW.CAST_TO_RAW(
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || UTL_TCP.CRLF ||
    'From: ' || '[email protected]' || UTL_TCP.CRLF ||
    'Subject: '|| v_Subject || UTL_TCP.CRLF ||
    'To: ' || v_Recipient || UTL_TCP.CRLF ||
    'This is a test Alert'|| UTL_TCP.CRLF
    UTL_SMTP.CLOSE_DATA(v_mail_conn);
    utl_smtp.Quit(v_mail_conn);
    end if;
    EXCEPTION
    WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    DBMS job creation
    DECLARE
    jobno NUMBER;
    BEGIN
    DBMS_JOB.submit
    (job => jobno,
    what => 'TEST_ALERT;',
    next_date => trunc(sysdate)+0.1/24,
    interval => 'SYSDATE + 1',
    no_parse => TRUE );
    DBMS_OUTPUT.put_line ('Created Job - the job number is:' || TO_CHAR (jobno));
    COMMIT;
    END;
    Suresh

  • My internet has started running extremely slowly for no apparent reason. Please help?

    The internet on my Macbook suddenly started running very slowly, it can take 5-10 minutes to load a page. This isn't a problem with my internet connection as our other devices are working fine. I have tried installing updates but seems to be too slow for them to install and have also reset Safari.
    Appreciate your help!

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • My MacBook Pro suddenly started running slow

    Hi,
    My MacBook Pro started running extremely slow a couple of days ago. I tried to search for help and found this forum where people had the same problem. I see that people are advised to check with etrecheck software and post it here to have further instructions. So I did mine and below are my results. I have opened the back of my laptop, cleaned up everything including the dirty fan and reseated the hard drive (which I had problem with loose cable in the past). It seems to fix the slow problem at the moment but the problem keeps appearing once in a while. So I hope someone could help me out. Thanks a lot in advance.
    Hardware Information:
              MacBook Pro (13-inch, Mid 2009)
              MacBook Pro - model: MacBookPro5,5
              1 2.53 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 9400M - VRAM: 256 MB
    System Software:
              Mac OS X 10.6.8 (10K549) - Uptime: 0 days 0:10:41
    Disk Information:
              Hitachi HTS545025B9SA02 disk0 : (232.89 GB)
                        (null) (disk0s1) <not mounted>: 200 MB
                        Macintosh HD (disk0s2) / [Startup]: 232.57 GB (67.16 GB free)
              HL-DT-ST DVDRW  GS23N 
    USB Information:
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    Thunderbolt Information:
    Kernel Extensions:
              [not loaded] com.Immersion.driver.ImmersionForceFeedback (1.0.7) Support
              [not loaded] com.acard.driver.ACard6280ATA (1.0.5) Support
              [not loaded] com.acard.driver.ACard62xxM (2.0.6) Support
              [not loaded] com.acard.driver.ACard67162 (2.0.3) Support
              [not loaded] com.acard.driver.ACard671xSCSI (2.0.1) Support
              [not loaded] com.acard.driver.ACard6885M (2.0.6) Support
              [not loaded] com.acard.driver.ACard68xxM (2.0.5) Support
              [kext loaded] com.cisco.nke.ipsec (2.0.1) Support
              [not loaded] com.logitech.driver.LogitechForceFeedback (1.0.3) Support
    Startup Items:
              CiscoVPN: Path: /System/Library/StartupItems/CiscoVPN
              MATLABLmgr: Path: /Library/StartupItems/MATLABLmgr
    Problem System Launch Daemons:
              [not loaded] org.samba.winbindd.plist Support
    Problem System Launch Agents:
              [failed] com.apple.Kerberos.renew.plist
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [loaded] com.bombich.ccc.plist Support
              [loaded] com.google.keystone.daemon.plist Support
    Launch Agents:
              [loaded] com.adobe.CS4ServiceManager.plist Support
              [loaded] com.google.keystone.agent.plist Support
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist Support
              [running] com.spotify.webhelper.plist Support
              [failed] com.zeobit.MacKeeper.Helper Support
    User Login Items:
              MacShield
              iTunesHelper
              QuickTime Player 7
              Mail
              Dropbox
              ExpanderDaemon
    Internet Plug-ins:
              Flip4Mac WMV Plugin: Version: 2.3.6.5 Support
              FlashPlayer-10.6: Version: 13.0.0.206 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.6.6
              Flash Player: Version: 13.0.0.206 - SDK 10.6 Support
              AdobePDFViewer: Version: 9.5.5 Support
              DivXBrowserPlugin: Version: 2.0 Support
              o1dbrowserplugin: Version: 5.3.1.18536 Support
              Google Earth Web Plug-in: Version: 7.1 Support
              googletalkbrowserplugin: Version: 5.3.1.18536 Support
              Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
              JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.2
    User Internet Plug-ins:
              WebEx64: Version: 1.0 - SDK 10.5 Support
              WebEx: Version: 1.0 Support
    3rd Party Preference Panes:
              DivX  Support
              Flash Player  Support
              Flip4Mac WMV  Support
              TeXDistPrefPane  Support
    Top Processes by CPU:
                  65%          mdworker
                   1%          hidd
                   1%          WindowServer
                   1%          Safari
                   0%          fontd
    Top Processes by Memory:
              184 MB          Safari
              111 MB          WebProcess
              82 MB          Dropbox
              66 MB          Mail
              41 MB          PubSubAgent
    Virtual Memory Information:
              2.40 GB          Free RAM
              776 MB          Active RAM
              219 MB          Inactive RAM
              391 MB          Wired RAM
              177 MB          Page-ins
              0 B          Page-outs

    Hi dippypants and dominic23,
    Thanks for your help. I followed dippypants' advice and checked the Activity Monitor. Most of the processess that occupy my CPU and memory are Safari and Safari Web Content. Sometimes when these go down to low, I still have the same problem with computer running super slow.
    I then followed dominic23's advice to look for MacKeeper not only in Applications but my whole laptop but I could not find it any where. Yet it still shows when I do the etrecheck. Do you guys think I might have some malware problem?
    Thanks! Any help is much appreciated.
    Below is the latest check using etrecheck software.
    Hardware Information:
              MacBook Pro (13-inch, Mid 2009)
              MacBook Pro - model: MacBookPro5,5
              1 2.53 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 9400M - VRAM: 256 MB
    System Software:
              Mac OS X 10.6.8 (10K549) - Uptime: 0 days 0:12:7
    Disk Information:
              Hitachi HTS545025B9SA02 disk0 : (232.89 GB)
                        (null) (disk0s1) <not mounted>: 200 MB
                        Macintosh HD (disk0s2) / [Startup]: 232.57 GB (67.07 GB free)
              HL-DT-ST DVDRW  GS23N 
    USB Information:
              Apple Internal Memory Card Reader
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Built-in iSight
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    Thunderbolt Information:
    Kernel Extensions:
              [not loaded] com.Immersion.driver.ImmersionForceFeedback (1.0.7) Support
              [not loaded] com.acard.driver.ACard6280ATA (1.0.5) Support
              [not loaded] com.acard.driver.ACard62xxM (2.0.6) Support
              [not loaded] com.acard.driver.ACard67162 (2.0.3) Support
              [not loaded] com.acard.driver.ACard671xSCSI (2.0.1) Support
              [not loaded] com.acard.driver.ACard6885M (2.0.6) Support
              [not loaded] com.acard.driver.ACard68xxM (2.0.5) Support
              [kext loaded] com.cisco.nke.ipsec (2.0.1) Support
              [not loaded] com.logitech.driver.LogitechForceFeedback (1.0.3) Support
    Startup Items:
              CiscoVPN: Path: /System/Library/StartupItems/CiscoVPN
              MATLABLmgr: Path: /Library/StartupItems/MATLABLmgr
    Problem System Launch Daemons:
              [not loaded] org.samba.winbindd.plist Support
    Problem System Launch Agents:
              [failed] com.apple.Kerberos.renew.plist
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [loaded] com.bombich.ccc.plist Support
              [loaded] com.google.keystone.daemon.plist Support
    Launch Agents:
              [loaded] com.adobe.CS4ServiceManager.plist Support
              [loaded] com.google.keystone.agent.plist Support
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist Support
              [running] com.spotify.webhelper.plist Support
              [failed] com.zeobit.MacKeeper.Helper Support
    User Login Items:
              MacShield
              iTunesHelper
              QuickTime Player 7
              Mail
              Dropbox
              ExpanderDaemon
    Internet Plug-ins:
              Flip4Mac WMV Plugin: Version: 2.3.6.5 Support
              FlashPlayer-10.6: Version: 13.0.0.206 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.6.6
              Flash Player: Version: 13.0.0.206 - SDK 10.6 Support
              AdobePDFViewer: Version: 9.5.5 Support
              DivXBrowserPlugin: Version: 2.0 Support
              o1dbrowserplugin: Version: 5.3.1.18536 Support
              Google Earth Web Plug-in: Version: 7.1 Support
              googletalkbrowserplugin: Version: 5.3.1.18536 Support
              Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
              JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.2
    User Internet Plug-ins:
              WebEx64: Version: 1.0 - SDK 10.5 Support
              WebEx: Version: 1.0 Support
    3rd Party Preference Panes:
              DivX  Support
              Flash Player  Support
              Flip4Mac WMV  Support
              TeXDistPrefPane  Support
    Top Processes by CPU:
                  44%          Finder
                  22%          Mail
                   2%          WindowServer
                   2%          hidd
                   0%          Activity Monitor
    Top Processes by Memory:
              246 MB          Safari
              147 MB          Microsoft Word
              115 MB          WebProcess
              98 MB          Mail
              82 MB          Dropbox
    Virtual Memory Information:
              2.26 GB          Free RAM
              999 MB          Active RAM
              124 MB          Inactive RAM
              403 MB          Wired RAM
              238 MB          Page-ins
              0 B          Page-outs

Maybe you are looking for

  • Photoshop crashing on opening

    Photoshop crashes immdeiately after opening.  I installed cleanmymac a few days ago and after suffering numerous problems, decided to use timemachine to go back to before the cleanmymac install. Since then photoshop crashes on opening. Other cc produ

  • How do I get my tabs back after firefox was updated.

    My v6 of Firefox was crashing so I updated to v24.0. I had a lot of tabs (65) open before the update and now they are gone, but my bookmarks are all there. Can I get my tabs back or are they all "gone with the wind"? TIA.... [running Win XP Pro]

  • Get the filter value in the Modify Table interface

    Dear Colleages, I use a Table Interface in order to get aditional values in a web template from a table, but I need the filter value used in the query. I can get it with "get parameter" sentence: GET PARAMETER ID '/BI0/OCALMONTH' FIELD MES1 But I can

  • Problems After Snow Leopard Graphics Update 1.0

    Hi Mac Users, I recognised some problems with graphic on Mc OS X 10.6.4 after software update SL Graphics Update 1.0 for example: - expose extra blue square for window of the application, - iPhoto photo preview frame became transparent grey and it co

  • Save information about travel plan

    Hi! I´m looking for the cluster or table where system save the information about travel plan, someone kows it??. On the other hand, I wold like to know if it´s possible to control the following case: One employee have booked a plain but in serch resu