Java Thread run some day then death ,use jstack check it,it  run again, is

hi all;
I write a java program run as linux daemon,
command line is >nohup java myclass &>/dev/null
it run some day ,then death, ,look like death lock ,but thread not exit
if i use jstack checke it ,it run again!
my env is
Linux version 2.4.20 ,redhat linux
jstack 14616
Attaching to process ID 14616, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 1.5.0_02-b09
my program like
commandline nohuo java StartUp >/dev/null &
public Class StartUp{
public static void main(String[] argv){
   Connection con = getDBConnection
     Thread t1 = new Thread(new MyRun(con));
  t1.start();
     Thread t2 = new Thread(new MyRun(con));
  t2.start();
  for(;;){
  Thread.sleep(100);
public class MyRun implements Runnable{
Connection con;
public MyRun(Connection c){con = c;}
public void run(){
     for(;;){
     object = readData(con);
     process(object);
     log.info("watch info ....");
     Thread.sleep(500);
}

Today i found my program hang, i use kill -SIGQUIT to print thead trace
but i can't find the bug,after send singal ,the thread run again!
another question
how to detect a thread is hang?and use another thread restart it?
thread dump
Full thread dump Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode, sharing):
"pool-1-thread-2" prio=1 tid=0x08447858 nid=0x5aa6 waiting on condition [0x4680f000..0x4681021c]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:118)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1772)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:359)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:470)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:674)
at java.lang.Thread.run(Thread.java:595)
"pool-1-thread-1" prio=1 tid=0x08392740 nid=0x5aa5 waiting on condition [0x4678f000..0x4678ff1c]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:118)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1772)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:359)
at com.ejet.mms.MmsSend.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
"Low Memory Detector" daemon prio=1 tid=0x080a18b0 nid=0x5a9f runnable [0x00000000..0x00000000]
"CompilerThread0" daemon prio=1 tid=0x080a0360 nid=0x5a9e waiting on condition [0x00000000..0x417e2c04]
"Signal Dispatcher" daemon prio=1 tid=0x0809f478 nid=0x5a9d waiting on condition [0x00000000..0x00000000]
"Finalizer" daemon prio=1 tid=0x080989e8 nid=0x5a9c in Object.wait() [0x413e4000..0x413e441c]
at java.lang.Object.wait(Native Method)
- waiting on <0x66c18420> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x66c18420> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=1 tid=0x08097cf8 nid=0x5a9b in Object.wait() [0x41364000..0x4136451c]
at java.lang.Object.wait(Native Method)
- waiting on <0x66c184a0> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:474)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x66c184a0> (a java.lang.ref.Reference$Lock)
"main" prio=1 tid=0x0805ae68 nid=0x5a98 waiting on condition [0xbfffc000..0xbfffc4f8]
at java.lang.Thread.sleep(Native Method)
at com.ejet.mms.MmsStartup.main(Unknown Source)
"VM Thread" prio=1 tid=0x08095218 nid=0x5a9a runnable
"VM Periodic Task Thread" prio=1 tid=0x080a2d40 nid=0x5aa0 waiting on condition

Similar Messages

  • Need to add some if then and set a check in EEM script

    OK the below script watches errors on a path. When it crosses the thresshold it sends a trap and changed the netmask on the path to prevent the route to the far node being used. on so this network is built as two seperate networks. For this lets call them network "A" and "B". the two networks do not touch. Even the OAM network to the router is on seperate vlans. so the chalange is to add inteligence to the script to not run if the router on the "B" network with this same script has dissabled the route so we do not end up with the "A" & "B" network isolated at the same time.
    Yes I can think of many other ways to do this, but this is what is in place.  So how would I set a varible or some flag that I could check to make sure an event has not taken the other path down?  Checking for a file or something on a remote box is my first thought. Anyway I am tossing this out to see what some fresh minds might come up with.
    event manager applet SNMP_RTT_Vlan1560_High-Delay
    event snmp oid "rttMonLatestJitterOperRTTSum.15600" get-type exact entry-op ge entry-val "1500" entry-type value poll-interval 5 maxrun 180
    action 10.0 snmp-trap intdata1 100 intdata2 200 strdata " ***HIGH PACKET DELAY Linkset SHUTDOWN*** some route >some other route Vlan1560"
    action 10.5 syslog msg "****EEM Interface SHUTDOWN-HIGH DELAY to re-enable change interface Vlan1560 ip address 10.224.159.233 255.255.255.248 **** description some route>some other route"
    action 100.0 cli command "enable"
    action 110.0 cli command "config terminal"
    action 130.0 cli command "interface Vlan1560"
    action 140.0 cli command "ip address 10.224.159.233 255.255.255.254"
    action 145.0 cli command "description ****EEM Interface SHUTDOWN-HIGH DELAY to re-enable change interface Vlan1560 ip address 10.224.159.233 255.255.255.248 **** description some route > some other route"
    action 180.0 cli command "no event manager applet SNMP_RTT_Vlan1560_High-Delay_Routing_Restore"
    action 200.0 cli command "event manager applet SNMP_RTT_Vlan1560_High-Delay_Routing_Restore"
    action 205.0 cli command "event timer countdown time 95 name Restore_timer_Vlan1560 maxrun 180"
    action 210.0 cli command "action 100.0 cli command $QUOTE enable $QUOTE "
    action 220.0 cli command "action 110.0 cli command $QUOTE config terminal $QUOTE "
    action 230.0 cli command "action 130.0 cli command $QUOTE interface Vlan1560 $QUOTE "
    action 240.0 cli command "action 140.0 cli command $QUOTE ip address 10.224.159.233 255.255.255.248 $QUOTE "
    action 250.0 cli command "action 145.0 cli command $QUOTE description Some route  > some other route $QUOTE "
    action 260.0 cli command "action 150.0 cli command $QUOTE end $QUOTE "
    action 280.0 cli command "action 170.0 snmp-trap intdata1 100 intdata2 200 strdata $QUOTE ***High packet delay Linkset RESTORED *** some route > someother route $QUOTE "
    action 290.0 cli command "action 180.0 syslog msg $QUOTE ****EEM RESTORED**** interface Vlan1560 IP address 10.224.159.233 255.255.255.248 description some route>some other route $QUOTE "
    action 400.0 cli command "end"
    action 410.0 cli command "disable"

    You could have the remote box send this box a trap that another EEM applet detects then creates a local environment variable that prevents the local router from executing this SNMP policy.  See https://supportforums.cisco.com/docs/DOC-11745 on how to create a customized trap.  The snmp-notification event detector can be used to detect this trap.

  • How to terminate a java thread from c++ code?

    Hi,
    I made a screensaver which loads a jvm, forks a thread running a java class, wait until user's action(i.e. mouse move/click keyboard input), then terminate the java thread.
    However, I met a problem, How to terminate a running java thread from c++ code?
    Here is my code, but it does not work: (even after the terminate is called, jvm throws an error)
    JNIEnv* env;
    JavaVM* jvm;
    HANDLE hThread; //handle for the startThread
    unsigned __stdcall startThread(void *arg)
         jclass cls;
         jmethodID mainId;
         jint          res;
         int threadNum = (int)arg;
         res = jvm->AttachCurrentThread((void**)&env, NULL);
    cls = env->FindClass( MAIN_CLASS);
         mainId = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
         // setup the parameters to pass to main()
         jstring str;
         jobjectArray args;
         int i=0;
         args = env->NewObjectArray(1, env->FindClass("java/lang/String"), 0); //only one input parameters
         str = env->NewStringUTF("localhost");
         env->SetObjectArrayElement(args, 0, str);
         env->CallStaticVoidMethod(cls, mainId, args); // call main()      
         if (env->ExceptionOccurred()) {
                   env->ExceptionDescribe();
         return TRUE;
    Here is the main method:
    First create the jvm and load the thread. then tries to terminate the thread, but failed here
    switch (msg)
    { case WM_CREATE:
              JavaVMOption options[NUMBEROFOPTIONS];
              JavaVMInitArgs vmargs;     
              jint rc;
              vmargs.version = JNI_VERSION_1_4; /* version 1.4 */
              vmargs.options = options;
              vmargs.nOptions = NUMBEROFOPTIONS;
              vmargs.ignoreUnrecognized = JNI_FALSE;          
              rc=JNI_CreateJavaVM( &jvm, (void **)&env, &vmargs ); /* create JVM */
              /* We pass the thread number as the argument to the invoked thread */
              unsigned int threadId = -1;
              // to initialize a thread-safe C runtime library
              hThread = (HANDLE)_beginthreadex(NULL, 0, &startThread, NULL, 0, &threadId );
    } break;
    case (WM_DESTROY):
              CloseHandle( hThread );
              jvm->DestroyJavaVM(); /* kill JVM */
              Debug("Destroy Java Virtual Machine\n");
    }break;
    Note, after the thread "startThread" runs, it has an infinite loop and will not terminate, until the user clicks to terminate.(I didn't call jvm->DetachCurrentThread();_endthreadex(0); in the "startThread" because the java thread will not terminate by itself)
    Thus, the only way to terminate the thread is to call closehandle(hthread) in the main thread, which may cause jvm to throw an error.
    Do you know how to terminate a java thread safely???
    Thanks a lot

    Assuming that your java thread is in a loop of some kind. Such as
    int i=1; /* I tried using a boolean, I just could not get my C++ env, to change this value. So i decided to use an int */
    run {
    while(i)
    isdfjsdfj
    void seti()
    i=0
    So, B/4, i call destroyVM in my C++ code, i call this seti(). so the loop terminates, therefore my thread finishes executing and ends.
    Hope this helps
    tola.

  • Matching Java thread IDs to Linux PIDs

    I have a rather complex java application running, which has on the order of 30 threads. While running some tests, I discovered (using top) that one of the java child processes was spinning. I know the offending process ID, how can I match this to a java thread id which I can obtain from a thread dump? There is an "nid" field in the dump which almost, but doesn't quite, match up with a Linux process. I am using Java 1.4.1_01 for Linux. Thanks!

    Well... this sorta works, but not really. I tried you code and added a bit more. First off, there are PIDs generated which don't seem to run for very long. Here is the java output:
    OUTPUT: PID
    OUTPUT: 18530
    OUTPUT: 19389
    OUTPUT: 19400
    And here is a ps listing (truncated):
    |-bash(18530)---java(19389)---java(19390)-+-java(19391)
    |-java(19392)
    |-java(19393)
    |-java(19394)
    |-java(19395)
    |-java(19396)
    |-java(19397)
    `-java(19405)
    PID 19400 isn't even listed. Also, I spawned some more threads and these never got recognized correctly either. PIDs taken from the "ps" the moment after the threads are created do not stay around; pstree done some time later shows the threads are not running.
    Besides, how is this supposed to be used in a production system to map PIDs to TIDs? Do a "ps -Topid" every time a new Thread is created anywhere in the system? Yuck! It looks like Sun really needs to provide this support in the threaddump.
    Thanks anyway.

  • Running sql or perl script using DBMS_JOB

    Hi,
    Is there a way to run a sql or perl script using DBMS_JOB procedures? I have a perl script which checks out the table usage and emails the report to specific users. I want to run this script in a job scheduler, where I am using dbms_job to add the job. Please help. Any suggestions are greatly appreciated. Thanks.
    -Kristine

    You cannot run sql or perl scrips using DBMS_JOBS. You can run only Oracle procedures, functions, packages with DBMS_JOBS. They have to be stored in the database. You will have to create a Pro*C program that is listening on the pipe and push data to that pipe by using dbms_pipe. Then you can execute anything you want.

  • Fire Fox jams after a few seconds of youtube running. Only then.

    as far as I know I have the latest Fire Fox, You tube Adobe Flash. You Tube runs and stops, Then I get Fire fox is already running and have to reboot computer to work again. Used to work fine only recently started doing this. [Since update?] Google is full of suggestions for users with the same problem, but none of their suggestions work.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, or hardware acceleration, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • UNIX: problem running an DEV & QA environment using form/report servlets

    UNIX: problem running an DEV & QA environment using form/report servlets
    I am trying to setup on one server an DEV and QA environment using the Forms Servlet, Forms Listener Servlet and Report Servlet.
    I think I have the Forms Servlet and Forms Listener Servlet running properly. The problem is setting up the DEV and QA environment for running reports.
    For example, when in DEV environment I would like to run a report from a directory specified in the REPORTS60_PATH. This doesn't seem possible.
    It might be easier if I describe my configuration first:
    DEV: run all forms and reports from the directory /data/release/dev
    QA: run all forms and reports from the directory /data/release/qa
    ---DEV & QA Settings Forms Listener Servlet:
    zone.properties:
    # DEV
    servlet.fl60dev.code=oracle.forms.servlet.ListenerServlet
    servlet.fl60dev.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/dev.env
    # QA
    servlet.fl60qa.code=oracle.forms.servlet.ListenerServlet
    servlet.fl60qa.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/qa.env
    ---DEV & QA Settings Forms Servlet:
    servlet.f60servlet.code=oracle.forms.servlet.FormsServlet
    --- Settings for Reports Servlet:
    servlet.RWServlet.code=oracle.reports.rwcgi.RWServlet
    Custom Env files since we are using Developer 6i Patch 7
    dev.env and qa.env
    Here I specify FORMS60_PATH and REPORTS60_PATH,
    eg: DEV -> FORMS60_PATH=/data/release/dev
    REPORTS60_PATH=/data/release/dev
    likewise for QA ../qa
    In the formsweb.cfg file i have something like:
    [dev]
    serverURL=/servlet/fl60dev
    form=test.fmx
    [qa]
    serverURL=/servlet/fl60dev
    form=test2.fmx
    I have tested the following and they work without problems:
    1. forms listener test page, eg: http://webserver:7777/servlet/fl60dev
    2. running forms from the 2 environments
    eg: http://webserver:7777/servlet/f60servlet?config=dev
    this runs the form in the FORMS60_PATH (/data/release/dev)
    Now my problems start with Reports.
    When I run a report from forms (using run_report_object) it will not run any reports
    as specified in the REPORTS60_PATH
    Even using this url:
    http://webserver:7777/servlet/RWServlet?server=rep60&report=test.rdf&destype=cache&desformat=html&
    userid=scott/tiger@test9i
    It NEVER seems to pickup and use the REPORTS60_PATH. I have tried nearly everything.
    I have gone throught the instructions in "Integrating Oracle9iAS Reports in Oracle9iAS Forms -
    White Paper"
    (http://otn.oracle.com/products/forms/pdf/277282.pdf)
    and Forms6i Patch 7: Oracle Forms Listner Servlet for Deployment of FOrms on the Internet
    (http://otn.oracle.com/products/forms/pdf/p7listenerservlet.pdf)
    plus any other documents in metalink relating to forms, or report servlets. I am
    totally confused, please help.
    I have tried setting the REPORTS60_PATH in the following files without success:
    custom.env (as specified by initArgs=EnvFile in zone.properties)
    jserv.properties
    in the zone.properties I have tried to set a custom env file for the report servlet:
    servlet.RWServlet.code=oracle.reports.rwcgi.RWServlet
    servlet.RWServlet.initArgs=EnvFile=/u01/app/oracle/product/ias/6iserver/forms60/server/dev_rep.env
    NO LUCK.
    The only place that I can set the REPORTS60_PATH
    is in "[6iserver home]/reports60_server" file when I start the reports server (did I even
    get this right - I do have to have a reports server running don't I?)
    Does this meaan I have to run multiple report servers for each of my environments?
    Based on all the documentation I thought that REPORTS60_PATH as specified in the files relating
    to the forms servlet would be the place to specify the path.
    As you will understand I am getting really fustrated with this and it seems to
    me that the reports servlet configuration in 6i is really half baked and since 9i
    is coming out it will never be fixed.

    I am even not able to run forms servlets from two different forms60_path, Is there any configuration do you make other than what you have mentioned in this post.
    I already open a TAR in this regard, I am still waiting reply from ORACLE.
    Thanks,
    Shaik Ather Ahmed

  • Checking for a running program?

    I have a program I'm working on that will have background threads, and instead of starting up a new instance when the main method is invoked, I'd like to bring the GUI up (just gui.show();) if the background threads arent running.
    How do I go about checking for the running program?

    Use the locking concept.   You can either create your own, or a popular one to use is ESINDX, passing parameters: relid 'ZZ', SRTFD program name, and SRTF2 = 0. 
    The logic is:
    Attempt to get lock (FM ENQUEUE_ESINDX, perhaps).
    If lock got -> run program
    If lock not got -> quit.
    You have to put this logic at the start of your program.
    matt

  • How to check whether MRP run has been executed for a sales order or not

    Dear Experts,
    In Strategy:20, Make to Order scenario, I have run MRP for sales order in T Code:MD50,
    then how can I check whether MRP run has been executed for a sales order or not.  Is there any report where I can find some indication?
    Thanks and regards,
    Vikas

    Dear,
    In MTO scenario with Planning strategy group 20 in material master .
    After sales order is created, Run MRP , then planned order will be created then go to planned order details in MD04 or MD12 you will get sales order number in assigment tab.
    or check the Table PLAF field  PALTR ,and field name KDAUF its sales order, for all created planned order.
    Regards,
    R.Brahmankar

  • I purchased DreamweaverCS6, installed ok then registered it on-line. Computer   running slow, malware sorted it out, since I re installed CS6, it asks for   registration, puts up 30 day trial,Flags up errors java.

    I purchased Dreamweaver CS6, installed ok then registered it on-line. Computer
    running slow, malware sorted it out, since I re installed CS6, it asks for
    registration, puts up 30 day trial,Flags up errors java.

    Hi Jon,
    Dreamweaver the following errors show up in the JavaScript.Log. I deleted the .dat file but no difference. I am not so confident in how to delete the preference file. I have been following the instructions (see link)
    https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
    Windows:
    ~Users\[user name]\AppData\Roaming\Adobe\Dreamweaver CC 2014.1 (folder)
    \HKEY_CURRENT_USER\Software\Adobe\Dreamweaver CC 2014.1 (registry entry)
    When Dreamweaver launches, it creates new preferences files and folder.
    How do I get rid of these errors?
                                            DW JavaScript
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Startup\MMinit.htm
         lineno: 1698
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Startup\AdvRs.htm
         lineno: 12
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Startup\BridgeTalkInit.htm
         lineno: 19
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Startup\BusinessCatalyst.htm
         lineno: 46
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Startup\ICEInit.htm
         lineno: 57
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Startup\RecordsetFind.htm
         lineno: 12
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Startup\SpryInit.htm
         lineno: 53
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\ServerModels\ASP.NET_Csharp.htm
         lineno: 436
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\ServerModels\ASP.NET_VB.htm
         lineno: 477
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\ServerModels\ASP_JS.htm
         lineno: 622
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\ServerModels\ASP_VBS.htm
         lineno: 624
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\ServerModels\ColdFusion.htm
         lineno: 458
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\ServerModels\JSP.htm
         lineno: 491
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\ServerModels\PHP_MySQL.htm
         lineno: 384
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\ServerModels\XSLT.htm
         lineno: 302
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename:
         lineno: 15
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename:
         lineno: 15
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename:
         lineno: 14
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Commands\_onOpen.htm
         lineno: 29
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Menus\MM\LiveView.htm
         lineno: 32
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Menus\MM\Browser_Controls.htm
         lineno: 31
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Toolbars\MM\AddressURL.htm
         lineno: 14
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Toolbars\MM\BCC.htm
         lineno: 32
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Toolbars\MM\WrapTag.htm
         lineno: 45
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Toolbars\MM\EditTitle.htm
         lineno: 39
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Shutdown\BridgeTalkexit.html
         lineno: 18
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    JS Error:
         missing ; before statement
         filename: C:\Program Files\Adobe\Adobe Dreamweaver CS6\Configuration\Shutdown\TeamAdminTempDelete.html
         lineno: 37
         line: Set FSO = CreateObject("Scripting.FileSystemObject")
         at: FSO = CreateObject("Scripting.FileSystemObject")
    Original message----
    From : [email protected]
    Date : 31/03/2015 - 16:08 (GMTDT)
    To : [email protected]
    Subject :  I purchased DreamweaverCS6, installed ok then registered it on-line. Computer   running slow, malware sorted it out, since I re installed CS6, it asks for   registration, puts up 30 day trial,Flags up errors java.
        I purchased DreamweaverCS6, installed ok then registered it on-line. Computer   running slow, malware sorted it out, since I re installed CS6, it asks for   registration, puts up 30 day trial,Flags up errors java.
        created by Jon Fritz II in Dreamweaver support forum - View the full discussion
    Try renaming the configuration folder that holds the .dat file first, before attempting to restore preferences.
    Many times that will take care of it without having to do all the work required after a pref-reset.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7391793#7391793 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7391793#7391793
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Dreamweaver support forum by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • I'm running a 13" MAC pro with version 10.8.2  But none of that will matter once you hear my news.  Some days ago, I copied then pasted a long page item into my calendar.  Now, all the claendar does is beep at me.  I can't delete or cut the entry.  In sho

    I'm running a 13" MAC pro with version Lion v.10.8.2  But none of that will matter once you hear my news.  Some days ago, I copied then pasted a long piece of type into into my calendar.  Now, the things jammed up and all it  does is beep at me.  I can't delete or cut the entry.  There much be someone out their smarter than I.  Help!

    Try restoring from your backup of a day or so prior to when you made the error.

  • I want run some command using java

    hi all,
    i want run command using java code.
    from cell prompt when i run this command 'mysqldump test > /home/DBNAME.sql'
    it will create DBNAME.sql file.
    but i want to run this command using java code
    i tried the following code but it did not work.
    is any other way is their?
    try {
                   Runtime.getRuntime().exec("setxkbmap nudi");
              } catch(IOException ioe) {
                   ioe.printStackTrace();
    thanks in advance
    daya

    hello,
    thanks for replay
    i am sorry the above code should be like this.(the above code is working fine)
    public class ExportTest{
         public ExportTest(){
              try {
                   Runtime.getRuntime().exec("mysqldump test > '/root/DBNAME.sql'");
              } catch(IOException ioe) {
                   ioe.printStackTrace();
              }catch(Exception e){
                   e.printStackTrace();
         public static void main(String args[]){
              new ExportTest();
    }when run above class, it not creating DBNAME.sql file.
    when run in command prompt it creating DBNAME.sql
    ($ mysqldump test > /root/DBNAME.sql)
    but i want to run this command from java code, that's way tried to do using above
    code, but it won't create DBNAME.sql
    is it wrong what i am doing? or any other way?
    thanks inadvace
    daya

  • Ever since the systyem upgraded me to 3.6.6. I can not even run one eight hour day without firefoc either crashing or locking up which requires me use C/A/Deleate to close the program. I used to be able to run 8 to 12 windows at a time and NEVER lock up

    Ever since the systyem upgraded me to 3.6.6. I can not even run one eight hour day without firefoc either crashing or locking up which requires me use C/A/Deleate to close the program. I used to be able to run 8 to 12 windows at a time and NEVER lock up or crash with the older version. Is this problem being looked into and or being corrected. I use Firefox with Google and my system is XP Pro 32 bit. THIS IS REALLY making me MAD. My email is [email protected] and would appreciate a response to this ASAP. I have tried a couple of items from your help section and nothing works.

    <u>'''Anonymous'''</u>
    Please post a separate question. Thank you. https://support.mozilla.com/tiki-ask_a_question.php?locale=en-US&forumId=1
    <u>'''chris'''</u>
    <u>'''''Crashing'''''</u>
    See:
    http://support.mozilla.com/en-US/kb/Firefox+crashes
    http://kb.mozillazine.org/Firefox_crashes
    http://support.mozilla.com/en-US/kb/Firefox+crashes+when+loading+certain+pages
    http://support.mozilla.com/en-US/kb/Firefox+crashes+when+you+open+it
    http://support.mozilla.com/en-US/kb/Firefox+will+not+start
    http://kb.mozillazine.org/Browser_will_not_start_up
    ''<u>'''Hanging'''</u>''
    See: http://support.mozilla.com/en-US/kb/Firefox+hangs
    <u>'''''Hanging at exit'''''</u>
    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: [http://kb.mozillazine.org/Kill_application Kill Application]
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    [[Firefox hangs]]
    [http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit]
    [[Firefox is already running but is not responding]]
    ''<u>'''Safe Mode'''</u>''
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.
    <u>'''chris'''</u>
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Update Java'''</u>: your ver. 1.6.0.~~red:17~~; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    (Firefox 3.6 and above requires Java 1.6.0.10 or higher; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6 )
    ''(Windows users: Do the manual update; very easy.)''
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.
    <u>'''NOTE:'''</u> Java version 1.6.0.21 has been released. It is mainly an update for developers of Java applications and most users do not need to be concerned about downloading version 1.6.0.21. <u>'''''At this time'''''</u>, the update option in existing installations of Java 1.6.0.20 are not updating to version 1.6.0.21; <u>'''''at this time'''''</u>, it must be manually downloaded and installed. According to the Java release notes:
    ''"'''Bug Fixes'''''
    ''Java SE 6 Update 21 does not contain any additional fixes for security vulnerabilities to its previous release, Java SE 6 Update 20. Users who have Java SE 6 Update 20 have the latest security fixes and do not need to upgrade to this release to be current on security fixes."'' Source: http://java.sun.com/javase/6/webnotes/6u21.html
    <u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r~~red:45~~; current ver. 10.1 r53 ('''important security update 2010-06-10'''; see: http://www.adobe.com/support/security/bulletins/apsb10-14.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -''<u>In Windows,</u>'' check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -''<u>In Windows,</u>'' double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]
    <u>'''Update Shockwave for Director (aka Shockwave Player)'''</u>: your ver. ~~red:10.1 (very old)~~; current ver. 11.5.7.609 (<u>important security update released 2010-05-11</u>; see http://www.adobe.com/support/security/bulletins/apsb10-12.html)
    NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    SAVE the installer to your hard drive (Desktop is a good place so you can find it). When the download is complete, exit Firefox (File > Exit), locate and double-click in the installer you just downloaded, let the install complete.
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox#_Installing_Shockwave Installing Shockwave]'''
    <u>'''You '''</u>~~red:<u>'''MAY'''</u>~~<u>''' need to Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Open the Adobe Reader installed on your system (''in Windows, Start > Program Files, find and click Adobe Reader to open''), click Help, click Check for Updates.
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -In Windows: check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -In Windows: double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • Java threads. Are they running at the same time?

    Hello everybody. I am implementing a multiagent system in java and at some point in the program i need a specific function (from a specific class) to run at the same time in several "copies". Those functions are communicating with each other with some messages, so as you can understand not running at the same time is a big problem because of this messages.
    Below i am giving you an example of the code i am using. I would like your opinion whether those functions are running parallel or serial. If they are not running parallel what should i do? Any opinion or something that can help me would be perfect. Thanks in advance.
    //my class
    public class Agent extends Thread {
                           public void MinConflicts(Agent array[],int max_moves){//code in here}
    public static void main(String[] args) throws IOException {
                  Agent[] fbi = new Agent[num] //num is inserted by the user
                 //code here
                 for(i=0;i<num;i++){
                         fbi.start(); //starting the treads
    for(i=0;i<num;i++){
    fbi[i].MinConflicts(fbi,max_moves); //running the function that i want to run parallel
    //code here also :)

    What you appear to be doing here is creating an array of Thread references (which I hope at some point gets populated with actual Thread object references!)......because your first loop is wanting to cycle through each array slot starting the referenced Thread. Then the next loop iterates through the array again, this time calling the method for each Thread object.
    Assuming that you do populate the array, what this code will do is start each Thread which, I believe, will start and immediately terminate because run() has not been over-ridden. The second loop winds up calling the method for each Thread in the array. You are actually calling it from the main thread though. So, as previously advised, I think that you will run each method sequentially.
    The direction that I would head with this is to override run() in your agent Thread and have that run() method call the MiniConflicts() method. Then, in your main routine you can do away with the second for loop. The looping start will start all of the individual threads and they will execute the run() method......which in essence will be executing your MiniConflicts method.
    This reply is NOT a total design... I am sure that there are holes to be filled... but I think that will get you headed in the right direction.

  • How to 'STOP' a running java thread in J2ME?

    Dear All,
    How to 'STOP' a running java thread in J2ME?
    In the middleware viewpoint, for some reasons we have to stopped/destroyed the running threads (we have no information how these applications designed).
    But in J2ME, Thread.destroy() is not implemented. Are there other approaches to solve this problem?
    Thanks in advance!
    Jason

    Hi jason,
    Actually there are no methods like stop() and interrupt() to stop the threads in J2ME which is present in normally J2SE Environment.
    But the interrupt method is introduced in Version 1.1 of the CLDC.
    So, we can handle the thread in two ways.
    a) If it is of single thread, then we can use a boolean variable in the run method to hadle it. so when the particular boolean value is changed , it will come out of the thread.
    for eg:
    public class exampleThread implements Runnable
    public boolean exit = false;
    public void run()
    while(!exit)
    #perform task(coding whatever u needed)
    public void exit()
    exit = true;
    b) If it is of many threads then we can handle using the instance of the current thread using currentThread() method
    for eg:
    public class exampleThread implements Runnable
    public Thread latest = null;
    public Thread restart()
    latest = new Thread(this);
    latest.start();
    public void run()
    Thread thisThread = Thread.currentThread();
    while( latest == thisThread )
    #perform some tasks(coding part);
    public voi d stopAll()
    latest = null;
    while ( latest == thisThread )
    performOperation1();
    if( latest != thisThread )
    break;
    performOperation2();
    Regards,
    Prathesh Santh.

Maybe you are looking for

  • Caller ID not working with Nokia 6600?

    I have a T-Mobile (US) Nokia 6600, and I can't seem to get address book to display incoming SMS or the caller ID of incoming calls. I've successfully paired the phone via bluetooth, and I can make address book dial the phone and send an sms. I can sy

  • Video File Checker

    Bunch of video clips in a project.  Believe that one or more may be corrupt – maybe only slightly, but enough to crash the project.  The files can play in vlc, but that covers a lot of sin-  does anyone know of a video-file-checker?  Some folks recom

  • Use a seperate SQL server in Sharepoint 2013

    We have SharePoint 2013 installed and running and its config, content, Search, etc. DBs on SQL 2008R2.  I want to create several NEW SharePoint DBs on a different SQL server that is running SQL 2012 SP1 (For BI mainly) but Im getting errors when atte

  • Selection tool doesnt work in illustrator cc 2014

    selection tool doesnt work in illustrator cc 2014.

  • Urgent : Error in transfer rule of 0material_attr

    Hello, We are trying to activate transfer rules of InfoSource 0MATERIAL_ATTR in BW Quality System. But We are getting the following error message: ================================================ Error when generating the message type for transfer st