IllegalMonitorStateException on notify()

I have a ready thread that runs a timer from up to down:
public void run(){
                    int counter = timeInSeconds;
                    try {
                         if (countDown){
                              while (counter > 0 && !stop){
                              if(GestureGuide.isPause()){
                                   try {
                                             wait();
                                        } catch (InterruptedException e) {
                                             // TODO Auto-generated catch block
                                             e.printStackTrace();
                                   text.text = textToPrint + counter;
                                   canvas.repaintCanvas();
                                   Thread.sleep(1000);
                                   counter--;
                                   setTimeLeftInSeconds(counter);
                         text.text = "Done";
                    } catch (InterruptedException e) {
                         if (!stop){
                              GestureGuideLogger.getApplicationLog().logException(e);
                         text.text = "Stopped";
                    }finally{
                              canvas.repaintCanvas();
                              if (listener != null){
                                   if (!PrepareToTest){
                                        listener.timeThreadStopped();
                                   else {
                                        timeForPrepareEnded = true;
I added "Pause" button to GUI.
When "Pause" button pressed - I want to stop the timer thread.
When "Pause" button released - I want to continue the timer thread.
So I added the following things:
I changed the TimerThread to:
public void run(){
               synchronized (this){
                    int counter = timeInSeconds;
                    try {
                         if (countDown){
                              while (counter > 0 && !stop){
                              if(GestureGuide.isPause()){
                                   try {
                                             wait();
                                        } catch (InterruptedException e) {
                                             // TODO Auto-generated catch block
                                             e.printStackTrace();
                                   text.text = textToPrint + counter;
                                   canvas.repaintCanvas();
                                   Thread.sleep(1000);
                                   counter--;
                                   setTimeLeftInSeconds(counter);
                         text.text = "Done";
                    } catch (InterruptedException e) {
                         if (!stop){
                              GestureGuideLogger.getApplicationLog().logException(e);
                         text.text = "Stopped";
                    }finally{
                         if(!GestureGuide.isPause()){
                              canvas.repaintCanvas();
                              if (listener != null){
                                   if (!PrepareToTest){
                                        listener.timeThreadStopped();
                                   else {
                                        timeForPrepareEnded = true;
And I added another Thread that starts when"Pause" button state is changed to "pressed":
public abstract class GestureGuideBaseTest......{
protected TimerThread sleepThread;
     class StopPauseThread extends Thread {
     public void run() {
          synchronized (sleepThread) {
               if(!GestureGuide.isPause()){
                    notify();
The problem is, I get IllegalMonitorStateException on notify();
How can I solve this?

Well you synchronize on 'sleepThread' but you call notify() on 'this'. I'd expect you to call sleepThread.notify(), but that is without trying to understand what you are trying to do. The javadoc of the notify() method may provide some hints:
http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html#notify%28%29

Similar Messages

  • IllegalMonitorStateException? wait() and notify()

    Can someone tell me what's the deal with wait() and notify() methods? Like how to use them properly? Right now I have two threads, one being the main program and the other should run occationally when I need it... I try to get the second to wait() and second.notify() when I want to to run but IllegalMonitorStateException... so if you know a tutorial or you can explain it me it'll be great!
    Thanks!

    This is a bit hard to answer without a code example. Have you gone through the tutorial available on this topic?
    http://java.sun.com/docs/books/tutorial/essential/threads/index.html
    If you have already looked at these, post your sample code (inside code tags, please - use the code button above) so others can read it and run it.

  • Wait and notify in Object

    Hi,
    Who can give me a short java code segment to show the method wait and notify of the class Object.
    I've already tryed as forlow:
    try {
    A a = new A();
    a.wait() ;
    catch (InterruptedException ex) {
    ex.printStackTrace() ;
    But a thread is always be thrown:
    java.lang.IllegalMonitorStateException: current thread not owner
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:420)
         at A.main(A.java:34)
    Who can tell which thread should be the owner thread? I did realize noly one thread there.
    Thanks a million.

    The classic example is two threads, on adding items to a queue and one taking them off and processing them:
    // consumer
    Object item = null;
    do {
       synchronized(queue) {
          if(queue.isEmpty())
              queue.wait();
        item = queue.remove(0);
      // process item
      } while(!Thread.currentThread.isInterrupted());
    // producer
    synchronized(queue) {
        if(queue.isEmpty())
          queue.notify();
       queue.add(item);
       }The use of synchronized blocks or methods is essential. They guard against conflicts and race conditions between different sections that change the same data.

  • IllegalMonitorStateException when closing streams

    Hi all,
    The following code throws an illegalMonitorStateException. Anyone know what I need to do?
    The documentatin says about an illegalMonitorStateException:
    Thrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object's monitor without owning the specified monitor.
    Do I need to notifyAll before closing?
         public void closeConnection () {
              try {
                   ins.close();    // InputStream
                   dins.close();   // DataInputStream
                   outs.close();   // OutputStream
                   douts.close();  // DataOutputStream
                   connection.close();
              catch (IOException ioException) {
                   displayMessage("IO Error", "Unable to close " +
                             "the connection (IOException: " +
                             ioException.getMessage() + ")");
              finally {
                   isGameCompleted = true;
                   notifyAll ();
                   bpMIDlet.destroyApp(true);
         }Thanks in advance.
    Maik

    What you need is:
    synchronized(this) {
          isGameCompleted = true;
          notifyAll ();
    }You should always surrond either a set and notify or a test and wait with synchronization on the object you are notifying/waiting on.

  • Notify & wait

    Here is a snip of my code :
    public void start()
       setVisible(true);
       long wait_time;
       for (int counter = 0; counter < 10; counter++)
          try
             wait = false;
             wait_time = (long) ((Math.random() * 15000)+5000);
             Thread.sleep(wait_time);
             t1.start_timer();
             // some code
             Thread.wait();
             t1.stop_timer();
          catch (InterruptedException e)      {}
    public void wait_finished()
       Thread.notify();
    }When I run the wait_finished() method I get "non-static method wait() cannot be referenced from a static context" error message. Any ideas what Im doing wrong ?

    You can only call wait on an object if you own that objects lock.
    Try this.
    Thanks for your prompt reply jboozer.
    I change my code like you said, now it looks something
    like this :
    public void start()
    setVisible(true);
    long wait_time;
    for (int counter = 0; counter < 10; counter++)
    try
    wait = false;
    wait_time = (long) ((Math.random() *
    m() * 15000)+5000);
    Thread.sleep(wait_time);
    t1.start_timer();
    synchronized
    wait();
    // some code
    t1.stop_timer();
    catch (InterruptedException e)      {}
    public void wait_finished()
    synchronized
    notify();
    The above compiles ok, but when I run the code I get
    an error when try to execute wait();
    "java.lang.IllegalMonitorStateException : current
    thread not owner " - error message
    What does this mean ?
    Cheers for any help.

  • Thread -- notify()

    i m declaring wait() function in one of my synchronized code n know i need to notify () this wait function from other class which gives me error saying
    "IllegalMonitorStateException : current thread not owner" even though i have used synchronized method
    plz help me to call notify function from some other class

    The notifing thread must own the motinor of the very object it wants to notify. If you are sync'ing on someting else, it won't work.

  • Threadproblem - java.lang.IllegalMonitorStateException

    does anybody know why i'm getting a IllegalMonitorStateException here:
    public class Test()
    private TestThread test = null;
    public Test()
    test = new TestThread()
    test.start();
    foo();
    private foo()
    test.notify();
    public class TestThread
    extends Thread
    private synchronized void doIt()
    try
    wait();
    catch (InterruptedException e)
    System.out.println("check");
    public void run()
    while (true)
    doIt();
    }

    test.notify();To call the notify method you must have the monitor of the object. You gain the monitor through e.g. the synchronized-statement:
    synchronized (test) {
    test.notify();
    See the API documentation of the Object.notify method and the threading tutorial for details:
    http://java.sun.com/j2se/1.4.2/docs/api/
    http://java.sun.com/docs/books/tutorial/essential/threads/multithreaded.html

  • IllegalMonitorStateException problem

    er, i'm having a problem with thread in an applet
    i'm trying to make it so the thread runs only when the mousedrag() method returns an event, which is that i want the thread to run only while i'm dragging the mouse
    using the wait() and notify() methods. but i get a error message saying this:
    java.lang.IllegalMonitorStateException: current thread not owner
    why is this happening? can anyone teach me the "right" way of implementing a thread using the wait and notify methods completely? i'd appreciate it.
    thanx,
    kev

    You can only call notifyAll(), notify(), or wait()
    from within a synchronized block either by using a synchronized method
    like
    // tries to get the lock for the current object
    public synchronized void myMethod()
       while ( something)
         try
            wait();
         catch( InterruptedException ie)
    }or by something more strange
    public void strangeSynchronization()
       synchronized( synchronizedObject)
          synchronizedObject.doSomething();
          synchronizedObject.notifyAll();

  • Threads and notify

    I have the following code fragment:
              synchronized (obj) {notify();}
    Yet I get the following exception:
    java.lang.IllegalMonitorStateException: current thread not owner
         at java.lang.Object.notify(Native Method)
    How is that possible? Since I am in a sychronized block, I must own obj. How can I not be the owner for the purpose of notify()?
    Thanks.
    -- Russ Abbott

    If you use sychronized (obj), you'll be obtaining a lock on the given object. That way, obj.notify() will work just fine.
    By calling notify(), you're effectively calling this.notify()
    Either synchronize on 'this' with a synchronized method, or call obj.notify().

  • IllegalMonitorStateException from StringBuffer.append()

    Hi,
    I am having a not-easily reproducible problem about IllegalMonitorStateException.
    I have an event dispatching Thread that runs fine for roughly 10 hours. But after that "IllegalMonitorStateException" happens
    most of the time from JRE methods like StringBuffer.append() or Hashtable.clear().
    One observation that i had made is that the IllegalMonitorStateException is happening from synchronized methods.
    I have never received this IllegalMonitorStateException from any wait() ot notify() calls in my code.
    Could somebody please help me with this.
    I am using pbp 1.0
    Thanks in advance.

    Thanks "ChuckBing" for the reply
    ChuckBing wrote:
    Thrown to indicate that a thread has attempted to wait on an object's monitor or to notify other threads waiting on an object's monitor without owning the specified monitor.
    I understand that IllegalMonitorStateException is thrown normally when we try to do a wait(), notify() or notifyAll() while not holding lock on the same object.
    But here the scenario is different. See the stack trace log.
    java.lang.IllegalMonitorStateException: current thread not owner
         at java.lang.StringBuffer.append(I)Ljava/lang/StringBuffer;(Unknown Source)
         at java.lang.Thread.startup(Z)V(Unknown Source)
    The exception came from append() method of StringBuffer class. I went through the source code of the StringBuffer class and found the append() method's implementation as
    public synchronized StringBuffer append(String str) {
         if (str == null) {
         str = String.valueOf(str);
         int len = str.length();
         int newcount = count + len;
         if (newcount > value.length)
         expandCapacity(newcount);
         str.getChars(0, len, value, count);
         count = newcount;
         return this;
    So the situation is that an IllegalMonitorStateExceptiion is being thrown from a synchronized method where there are no wait(), notify() or notifyAll() being used.
    Other than wait(), notify() or notifyAll(), what other Java programming mistake can cause such an Exception to be thrown?

  • Object.wait(): IllegalMonitorStateException: current thread not owner

    How can I identify the owner? I searched the Thread*-Classes but didn't see any method which identifies the owner.

    Or, from the documentation for Object.wait():
         * The current thread must own this object's monitor.and
         * This method should only be called by a thread that is the owner
         * of this object's monitor. See the <code>notify</code> method for a
         * description of the ways in which a thread can become the owner of
         * a monitor. and
         * @exception  IllegalMonitorStateException  if the current thread is not
         *               the owner of the object's monitor.Seems like a lot of people are getting broken downloads nowadays that don't include the documentation :-(

  • Thread problems - illegalMonitorStateException

    Hi,
    I have a problem when I create a thread - I get a illegalMonitorStateException
    My thread is defined :
    MyThread implements Runnable {
    run() {
    while(something !=true) {
    try {
    wait();
    //illegal monitor exception is thrown at wait
    catch(InterruptedEcxception e) {
    //occurs when notified
    doSomething();
    //if operation success, something - true
    //else continue waiting
    I call my thread from a different class as:
    MyThread thread = new MyThread();
    Thread newThread = new Thread(thread);
    thread.start();
    I get illegal monitor state exception.
    Can somebody help me?
    Thankyou,
    Krishna.

    The wait method can only be called from inside of a synchronized block, just make the method from where you want to call the wait method synchronized. BUT I cant see WHY you would want to call the wait method from your run method of your thread; and subsiquently makeing it synchronized.
    There is a diffrence between what your thread object is and what your monitor object is. Your monitor object contains your synchronized code and uses its self as the semaphore to grant diffrent threads to execute its syncronized mehtods.
    Hope this helps
    Regards
    Omer

  • Cannot install EMET Notifier 4.1 or 5.0 Tech Preview

    I uninstalled EMET notifier 3 to try out the new 5.0 tech preview. However when trying to install I get an error saying "There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your
    support personnel or package vendor."
    I tried installing 4.1 and get the same error. I am running Windows 8.1 Home Premium and have .Net 4 installed. I have turned on verbose logging, apologies for the massive amount of data but I didn't want anything to get missed.
    The log file is below. Can anyone suggest what might be going wrong?
    \Edit - The log below is pretty heavy reading, but the line that seems to be causing the trouble is:
    CustomAction DIRCA_CheckFX returned actual error code 1157 (note this may not be 100% accurate if translation happened inside sandbox)
    Solution
    The solution is to go into c:\users\"username"\AppData\Local\ then right click on "temp" and choose "properies". Choose "security" --> edit --> add, and add the username you are using, and give yourself all rights.
    I got this information from http://sourceforge.net/p/googlesyncmod/support-requests/225/?page=0
    Many thanks,
    Ian
    === Verbose logging started: 30/04/2014  11:25:31  Build type: SHIP UNICODE 5.00.9600.00  Calling process: C:\WINDOWS\System32\msiexec.exe ===
    MSI (c) (C4:6C) [11:25:31:363]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
    MSI (c) (C4:6C) [11:25:31:364]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
    MSI (c) (C4:04) [11:25:31:373]: Resetting cached policy values
    MSI (c) (C4:04) [11:25:31:373]: Machine policy value 'Debug' is 0
    MSI (c) (C4:04) [11:25:31:373]: ******* RunEngine:
               ******* Product: C:\Users\Ian\Downloads\EMET Setup.msi
               ******* Action:
               ******* CommandLine: **********
    MSI (c) (C4:04) [11:25:31:374]: Machine policy value 'DisableUserInstalls' is 0
    MSI (c) (C4:04) [11:25:31:381]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Users\Ian\Downloads\EMET Setup.msi' against software restriction policy
    MSI (c) (C4:04) [11:25:31:381]: SOFTWARE RESTRICTION POLICY: C:\Users\Ian\Downloads\EMET Setup.msi has a digital signature
    MSI (c) (C4:04) [11:25:31:427]: SOFTWARE RESTRICTION POLICY: C:\Users\Ian\Downloads\EMET Setup.msi is permitted to run at the 'unrestricted' authorization level.
    MSI (c) (C4:04) [11:25:31:431]: Cloaking enabled.
    MSI (c) (C4:04) [11:25:31:431]: Attempting to enable all disabled privileges before calling Install on Server
    MSI (c) (C4:04) [11:25:31:433]: End dialog not enabled
    MSI (c) (C4:04) [11:25:31:433]: Original package ==> C:\Users\Ian\Downloads\EMET Setup.msi
    MSI (c) (C4:04) [11:25:31:433]: Package we're running from ==> C:\Users\Ian\Downloads\EMET Setup.msi
    MSI (c) (C4:04) [11:25:31:435]: APPCOMPAT: Compatibility mode property overrides found.
    MSI (c) (C4:04) [11:25:31:435]: APPCOMPAT: looking for appcompat database entry with ProductCode '{65BC2BDA-D828-4596-99E4-A8799C45C84C}'.
    MSI (c) (C4:04) [11:25:31:435]: APPCOMPAT: no matching ProductCode found in database.
    MSI (c) (C4:04) [11:25:31:440]: MSCOREE not loaded loading copy from system32
    MSI (c) (C4:04) [11:25:31:443]: Machine policy value 'TransformsSecure' is 0
    MSI (c) (C4:04) [11:25:31:443]: User policy value 'TransformsAtSource' is 0
    MSI (c) (C4:04) [11:25:31:443]: Note: 1: 2262 2: MsiFileHash 3: -2147287038
    MSI (c) (C4:04) [11:25:31:443]: Machine policy value 'DisablePatch' is 0
    MSI (c) (C4:04) [11:25:31:443]: Machine policy value 'AllowLockdownPatch' is 0
    MSI (c) (C4:04) [11:25:31:443]: Machine policy value 'DisableMsi' is 0
    MSI (c) (C4:04) [11:25:31:443]: Machine policy value 'AlwaysInstallElevated' is 0
    MSI (c) (C4:04) [11:25:31:443]: User policy value 'AlwaysInstallElevated' is 0
    MSI (c) (C4:04) [11:25:31:443]: Running product '{65BC2BDA-D828-4596-99E4-A8799C45C84C}' with user privileges: It's not assigned.
    MSI (c) (C4:04) [11:25:31:443]: Machine policy value 'DisableLUAPatching' is 0
    MSI (c) (C4:04) [11:25:31:443]: Machine policy value 'DisableFlyWeightPatching' is 0
    MSI (c) (C4:04) [11:25:31:443]: Enabling baseline caching for this transaction since all active patches are MSI 3.0 style MSPs or at least one MSI 3.0 minor update patch is active
    MSI (c) (C4:04) [11:25:31:444]: APPCOMPAT: looking for appcompat database entry with ProductCode '{65BC2BDA-D828-4596-99E4-A8799C45C84C}'.
    MSI (c) (C4:04) [11:25:31:444]: APPCOMPAT: no matching ProductCode found in database.
    MSI (c) (C4:04) [11:25:31:444]: Transforms are not secure.
    MSI (c) (C4:04) [11:25:31:444]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'C:\Users\Ian\AppData\Local\Temp\MSIc9f55.LOG'.
    MSI (c) (C4:04) [11:25:31:444]: Command Line: CURRENTDIRECTORY=C:\Users\Ian\Downloads CLIENTUILEVEL=0 CLIENTPROCESSID=4548
    MSI (c) (C4:04) [11:25:31:444]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{69FDEBF8-3A1D-4011-AAB7-980DF90F569B}'.
    MSI (c) (C4:04) [11:25:31:444]: Product Code passed to Engine.Initialize:           ''
    MSI (c) (C4:04) [11:25:31:444]: Product Code from property table before transforms: '{65BC2BDA-D828-4596-99E4-A8799C45C84C}'
    MSI (c) (C4:04) [11:25:31:444]: Product Code from property table after transforms:  '{65BC2BDA-D828-4596-99E4-A8799C45C84C}'
    MSI (c) (C4:04) [11:25:31:444]: Product not registered: beginning first-time install
    MSI (c) (C4:04) [11:25:31:444]: PROPERTY CHANGE: Modifying ALLUSERS property. Its current value is '2'. Its new value: '1'.
    MSI (c) (C4:04) [11:25:31:444]: PROPERTY CHANGE: Adding ProductState property. Its value is '-1'.
    MSI (c) (C4:04) [11:25:31:444]: Entering CMsiConfigurationManager::SetLastUsedSource.
    MSI (c) (C4:04) [11:25:31:444]: User policy value 'SearchOrder' is 'nmu'
    MSI (c) (C4:04) [11:25:31:444]: Adding new sources is allowed.
    MSI (c) (C4:04) [11:25:31:444]: PROPERTY CHANGE: Adding PackagecodeChanging property. Its value is '1'.
    MSI (c) (C4:04) [11:25:31:444]: Package name extracted from package path: 'EMET Setup.msi'
    MSI (c) (C4:04) [11:25:31:444]: Package to be registered: 'EMET Setup.msi'
    MSI (c) (C4:04) [11:25:31:444]: Note: 1: 2262 2: Error 3: -2147287038
    MSI (c) (C4:04) [11:25:31:445]: Note: 1: 2262 2: AdminProperties 3: -2147287038
    MSI (c) (C4:04) [11:25:31:445]: Machine policy value 'AlwaysInstallElevated' is 0
    MSI (c) (C4:04) [11:25:31:445]: User policy value 'AlwaysInstallElevated' is 0
    MSI (c) (C4:04) [11:25:31:445]: Running product '{65BC2BDA-D828-4596-99E4-A8799C45C84C}' with user privileges: It's not assigned.
    MSI (c) (C4:04) [11:25:31:445]: PROPERTY CHANGE: Adding CURRENTDIRECTORY property. Its value is 'C:\Users\Ian\Downloads'.
    MSI (c) (C4:04) [11:25:31:445]: PROPERTY CHANGE: Adding CLIENTUILEVEL property. Its value is '0'.
    MSI (c) (C4:04) [11:25:31:445]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '4548'.
    MSI (c) (C4:04) [11:25:31:445]: TRANSFORMS property is now:
    MSI (c) (C4:04) [11:25:31:445]: PROPERTY CHANGE: Adding VersionDatabase property. Its value is '200'.
    MSI (c) (C4:04) [11:25:31:445]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming
    MSI (c) (C4:04) [11:25:31:446]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\Favorites
    MSI (c) (C4:04) [11:25:31:446]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Network Shortcuts
    MSI (c) (C4:04) [11:25:31:446]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\Documents
    MSI (c) (C4:04) [11:25:31:446]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
    MSI (c) (C4:04) [11:25:31:446]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Recent
    MSI (c) (C4:04) [11:25:31:446]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\SendTo
    MSI (c) (C4:04) [11:25:31:446]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Templates
    MSI (c) (C4:04) [11:25:31:447]: SHELL32::SHGetFolderPath returned: C:\ProgramData
    MSI (c) (C4:04) [11:25:31:447]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Local
    MSI (c) (C4:04) [11:25:31:447]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\Pictures
    MSI (c) (C4:04) [11:25:31:447]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
    MSI (c) (C4:04) [11:25:31:447]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
    MSI (c) (C4:04) [11:25:31:447]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
    MSI (c) (C4:04) [11:25:31:447]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu
    MSI (c) (C4:04) [11:25:31:448]: SHELL32::SHGetFolderPath returned: C:\Users\Public\Desktop
    MSI (c) (C4:04) [11:25:31:448]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
    MSI (c) (C4:04) [11:25:31:448]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
    MSI (c) (C4:04) [11:25:31:448]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
    MSI (c) (C4:04) [11:25:31:448]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Start Menu
    MSI (c) (C4:04) [11:25:31:448]: SHELL32::SHGetFolderPath returned: C:\Users\Ian\Desktop
    MSI (c) (C4:04) [11:25:31:449]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Templates
    MSI (c) (C4:04) [11:25:31:449]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\Fonts
    MSI (c) (C4:04) [11:25:31:450]: Note: 1: 2898 2: MS Sans Serif 3: MS Sans Serif 4: 0 5: 16
    MSI (c) (C4:04) [11:25:31:455]: MSI_LUA: Setting AdminUser property to 1 because this is the client or the user has already permitted elevation
    MSI (c) (C4:04) [11:25:31:455]: PROPERTY CHANGE: Adding AdminUser property. Its value is '1'.
    MSI (c) (C4:04) [11:25:31:455]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
    MSI (c) (C4:04) [11:25:31:455]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2
    MSI (c) (C4:04) [11:25:31:455]: PROPERTY CHANGE: Adding USERNAME property. Its value is 'Ian'.
    MSI (c) (C4:04) [11:25:31:455]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2
    MSI (c) (C4:04) [11:25:31:455]: PROPERTY CHANGE: Adding DATABASE property. Its value is 'C:\Users\Ian\Downloads\EMET Setup.msi'.
    MSI (c) (C4:04) [11:25:31:455]: PROPERTY CHANGE: Adding OriginalDatabase property. Its value is 'C:\Users\Ian\Downloads\EMET Setup.msi'.
    MSI (c) (C4:04) [11:25:31:455]: Machine policy value 'MsiDisableEmbeddedUI' is 0
    MSI (c) (C4:04) [11:25:31:455]: PROPERTY CHANGE: Adding SourceDir property. Its value is 'C:\Users\Ian\Downloads\'.
    MSI (c) (C4:04) [11:25:31:455]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is 'C:\Users\Ian\Downloads\'.
    MSI (c) (C4:6C) [11:25:31:456]: PROPERTY CHANGE: Adding VersionHandler property. Its value is '5.00'.
    === Logging started: 30/04/2014  11:25:31 ===
    MSI (c) (C4:04) [11:25:31:459]: Note: 1: 2262 2: PatchPackage 3: -2147287038
    MSI (c) (C4:04) [11:25:31:459]: Machine policy value 'DisableRollback' is 0
    MSI (c) (C4:04) [11:25:31:459]: User policy value 'DisableRollback' is 0
    MSI (c) (C4:04) [11:25:31:459]: PROPERTY CHANGE: Adding UILevel property. Its value is '5'.
    MSI (c) (C4:04) [11:25:31:459]: Note: 1: 2262 2: Font 3: -2147287038
    MSI (c) (C4:04) [11:25:31:460]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038
    MSI (c) (C4:04) [11:25:31:460]: Note: 1: 2262 2: LaunchCondition 3: -2147287038
    MSI (c) (C4:04) [11:25:31:460]: APPCOMPAT: [DetectVersionLaunchCondition] Launch condition already passes.
    MSI (c) (C4:04) [11:25:31:461]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
    MSI (c) (C4:04) [11:25:31:461]: Doing action: INSTALL
    MSI (c) (C4:04) [11:25:31:461]: Note: 1: 2262 2: ActionText 3: -2147287038
    Action 11:25:31: INSTALL.
    Action start 11:25:31: INSTALL.
    MSI (c) (C4:04) [11:25:31:461]: UI Sequence table 'InstallUISequence' is present and populated.
    MSI (c) (C4:04) [11:25:31:461]: Running UISequence
    MSI (c) (C4:04) [11:25:31:461]: PROPERTY CHANGE: Adding EXECUTEACTION property. Its value is 'INSTALL'.
    MSI (c) (C4:04) [11:25:31:461]: Doing action: DIRCA_CheckFX
    Action 11:25:31: DIRCA_CheckFX.
    Action start 11:25:31: DIRCA_CheckFX.
    MSI (c) (C4:04) [11:25:31:462]: Note: 1: 2235 2:  3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'DIRCA_CheckFX'
    MSI (c) (C4:04) [11:25:31:463]: Creating MSIHANDLE (1) of type 790542 for thread 772
    MSI (c) (C4:04) [11:25:31:463]: Invoking remote custom action. DLL: C:\Users\Ian\AppData\Local\Temp\MSI9FD2.tmp, Entrypoint: CheckFX
    MSI (c) (C4:9C) [11:25:31:464]: Cloaking enabled.
    MSI (c) (C4:9C) [11:25:31:464]: Attempting to enable all disabled privileges before calling Install on Server
    MSI (c) (C4:9C) [11:25:31:464]: Connected to service for CA interface.
    CustomAction DIRCA_CheckFX returned actual error code 1157 (note this may not be 100% accurate if translation happened inside sandbox)
    MSI (c) (C4:04) [11:25:31:491]: Closing MSIHANDLE (1) of type 790542 for thread 772
    MSI (c) (C4:04) [11:25:31:492]: Note: 1: 1723 2: DIRCA_CheckFX 3: CheckFX 4: C:\Users\Ian\AppData\Local\Temp\MSI9FD2.tmp
    MSI (c) (C4:04) [11:25:31:492]: Note: 1: 2262 2: Error 3: -2147287038
    MSI (c) (C4:6C) [11:25:31:493]: Note: 1: 2262 2: Error 3: -2147287038
    Info 2898.For VSI_MS_Sans_Serif13.0_0_0 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 13 pixels height.
    MSI (c) (C4:6C) [11:25:31:494]: Note: 1: 2262 2: Error 3: -2147287038
    DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDialog
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog,
    Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor.  Action DIRCA_CheckFX, entry: CheckFX, library: C:\Users\Ian\AppData\Local\Temp\MSI9FD2.tmp
    MSI (c) (C4:04) [11:25:32:678]: Note: 1: 2262 2: Error 3: -2147287038
    MSI (c) (C4:04) [11:25:32:678]: Product: EMET 4.1 -- Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor.  Action DIRCA_CheckFX,
    entry: CheckFX, library: C:\Users\Ian\AppData\Local\Temp\MSI9FD2.tmp
    Action ended 11:25:32: DIRCA_CheckFX. Return value 3.
    MSI (c) (C4:04) [11:25:32:679]: Doing action: FatalErrorForm
    Action 11:25:32: FatalErrorForm.
    Action start 11:25:32: FatalErrorForm.
    MSI (c) (C4:04) [11:25:32:680]: Note: 1: 2235 2:  3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'FatalErrorForm'
    MSI (c) (C4:6C) [11:25:32:681]: Note: 1: 2262 2: Error 3: -2147287038
    DEBUG: Error 2826:  Control Line1 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line1, to the right
    MSI (c) (C4:6C) [11:25:32:681]: Note: 1: 2262 2: Error 3: -2147287038
    DEBUG: Error 2826:  Control Line2 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line2, to the right
    MSI (c) (C4:6C) [11:25:32:682]: Note: 1: 2262 2: Error 3: -2147287038
    DEBUG: Error 2826:  Control BannerBmp on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 3 pixels
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, BannerBmp, to the right
    MSI (c) (C4:6C) [11:25:32:687]: Note: 1: 2262 2: Error 3: -2147287038
    Info 2898.For VsdDefaultUIFont.524F4245_5254_5341_4C45_534153783400 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 13 pixels height.
    MSI (c) (C4:6C) [11:25:32:687]: Note: 1: 2262 2: Error 3: -2147287038
    Info 2898.For VSI_MS_Sans_Serif16.0_1_0 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 20 pixels height.
    Action 11:25:32: FatalErrorForm. Dialog created
    MSI (c) (C4:08) [11:25:32:691]: Note: 1: 2731 2: 0
    Action ended 11:25:35: FatalErrorForm. Return value 1.
    Action ended 11:25:35: INSTALL. Return value 3.
    MSI (c) (C4:04) [11:25:35:322]: Destroying RemoteAPI object.
    MSI (c) (C4:9C) [11:25:35:324]: Custom Action Manager thread ending.
    Property(C): UpgradeCode = {D12F7559-47B0-4D52-B302-737539A86620}
    Property(C): WindowsFolder = C:\WINDOWS\
    Property(C): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
    Property(C): DesktopFolder = C:\Users\Public\Desktop\
    Property(C): SystemFolder = C:\WINDOWS\SysWOW64\
    Property(C): SourceDir = C:\Users\Ian\Downloads\
    Property(C): VSDFrameworkVersion = v4.0
    Property(C): VSDAllowLaterFrameworkVersions = False
    Property(C): ProductName = EMET 4.1
    Property(C): ProductCode = {65BC2BDA-D828-4596-99E4-A8799C45C84C}
    Property(C): ProductVersion = 4.1
    Property(C): Manufacturer = Microsoft Corporation
    Property(C): ARPHELPLINK = http://social.technet.microsoft.com/Forums/en/emet/threads
    Property(C): ARPCONTACT = Microsoft Corporation
    Property(C): ARPCOMMENTS = Enhanced Mitigation Experience Toolkit 4.1
    Property(C): ARPURLINFOABOUT = http://www.microsoft.com/emet
    Property(C): ProductLanguage = 1033
    Property(C): ALLUSERS = 1
    Property(C): ARPPRODUCTICON = _6FEFF9B68218417F98F549.exe
    Property(C): SecureCustomProperties = PREVIOUSVERSIONSINSTALLED;NEWERPRODUCTFOUND
    Property(C): RedirectedDllSupport = 2
    Property(C): VersionNT = 603
    Property(C): VSDNETURLMSG = This setup requires the .NET Framework version [1].  Please install the .NET Framework and run this setup again.  The .NET Framework can be obtained from the web.  Would you like to do this now?
    Property(C): VSDIISMSG = This setup requires Internet Information Server 5.1 or higher and Windows XP or higher.  This setup cannot be installed on Windows 2000.  Please install Internet Information Server or a newer operating system and run this
    setup again.
    Property(C): VSDUIANDADVERTISED = This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic.
    Property(C): VSDNETMSG = This setup requires the .NET Framework version [1].  Please install the .NET Framework and run this setup again.
    Property(C): VSDINVALIDURLMSG = The specified path '[2]' is unavailable. The Internet Information Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet Services
    Manager.
    Property(C): VSDVERSIONMSG = Unable to install because a newer version of this product is already installed.
    Property(C): AdminMaintenanceForm_Action = Repair
    Property(C): EulaForm_Property = No
    Property(C): FolderForm_AllUsers = ME
    Property(C): FolderForm_AllUsersVisible = 0
    Property(C): ErrorDialog = ErrorDialog
    Property(C): SFF_UpFldrBtn = UpFldrBtn
    Property(C): SFF_NewFldrBtn = NewFldrBtn
    Property(C): MaintenanceForm_Action = Repair
    Property(C): DefaultUIFont = VsdDefaultUIFont.524F4245_5254_5341_4C45_534153783400
    Property(C): AdminEulaForm_Property = No
    Property(C): WelcomeForm_NextArgs = FolderForm
    Property(C): FolderForm_PrevArgs = WelcomeForm
    Property(C): FolderForm_NextArgs = EulaForm
    Property(C): EulaForm_PrevArgs = FolderForm
    Property(C): EulaForm_NextArgs = ConfirmInstallForm
    Property(C): ConfirmInstallForm_PrevArgs = EulaForm
    Property(C): AdminWelcomeForm_NextArgs = AdminFolderForm
    Property(C): AdminFolderForm_PrevArgs = AdminWelcomeForm
    Property(C): AdminFolderForm_NextArgs = AdminEulaForm
    Property(C): AdminEulaForm_PrevArgs = AdminFolderForm
    Property(C): AdminEulaForm_NextArgs = AdminConfirmInstallForm
    Property(C): AdminConfirmInstallForm_PrevArgs = AdminEulaForm
    Property(C): LAUNCHAPP = 1
    Property(C): MsiLogFileLocation = C:\Users\Ian\AppData\Local\Temp\MSIc9f55.LOG
    Property(C): PackageCode = {69FDEBF8-3A1D-4011-AAB7-980DF90F569B}
    Property(C): ProductState = -1
    Property(C): PackagecodeChanging = 1
    Property(C): CURRENTDIRECTORY = C:\Users\Ian\Downloads
    Property(C): CLIENTUILEVEL = 0
    Property(C): CLIENTPROCESSID = 4548
    Property(C): VersionDatabase = 200
    Property(C): VersionMsi = 5.00
    Property(C): VersionNT64 = 603
    Property(C): WindowsBuild = 9600
    Property(C): ServicePackLevel = 0
    Property(C): ServicePackLevelMinor = 0
    Property(C): MsiNTProductType = 1
    Property(C): MsiNTSuitePersonal = 1
    Property(C): WindowsVolume = C:\
    Property(C): System64Folder = C:\WINDOWS\system32\
    Property(C): RemoteAdminTS = 1
    Property(C): TempFolder = C:\Users\Ian\AppData\Local\Temp\
    Property(C): ProgramFilesFolder = C:\Program Files (x86)\
    Property(C): CommonFilesFolder = C:\Program Files (x86)\Common Files\
    Property(C): ProgramFiles64Folder = C:\Program Files\
    Property(C): CommonFiles64Folder = C:\Program Files\Common Files\
    Property(C): AppDataFolder = C:\Users\Ian\AppData\Roaming\
    Property(C): FavoritesFolder = C:\Users\Ian\Favorites\
    Property(C): NetHoodFolder = C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
    Property(C): PersonalFolder = C:\Users\Ian\Documents\
    Property(C): PrintHoodFolder = C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
    Property(C): RecentFolder = C:\Users\Ian\AppData\Roaming\Microsoft\Windows\Recent\
    Property(C): SendToFolder = C:\Users\Ian\AppData\Roaming\Microsoft\Windows\SendTo\
    Property(C): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
    Property(C): CommonAppDataFolder = C:\ProgramData\
    Property(C): LocalAppDataFolder = C:\Users\Ian\AppData\Local\
    Property(C): MyPicturesFolder = C:\Users\Ian\Pictures\
    Property(C): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
    Property(C): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
    Property(C): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
    Property(C): FontsFolder = C:\WINDOWS\Fonts\
    Property(C): GPTSupport = 1
    Property(C): OLEAdvtSupport = 1
    Property(C): ShellAdvtSupport = 1
    Property(C): MsiAMD64 = 6
    Property(C): Msix64 = 6
    Property(C): Intel = 6
    Property(C): PhysicalMemory = 8052
    Property(C): VirtualMemory = 5796
    Property(C): LogonUser = Ian
    Property(C): UserSID = S-1-5-21-48452953-3679128683-2660926274-1002
    Property(C): UserLanguageID = 2057
    Property(C): ComputerName = CYRIXINSTEAD
    Property(C): SystemLanguageID = 2057
    Property(C): ScreenX = 1920
    Property(C): ScreenY = 1080
    Property(C): CaptionHeight = 23
    Property(C): BorderTop = 1
    Property(C): BorderSide = 1
    Property(C): TextHeight = 16
    Property(C): TextInternalLeading = 3
    Property(C): ColorBits = 32
    Property(C): TTCSupport = 1
    Property(C): Time = 11:25:35
    Property(C): Date = 30/04/2014
    Property(C): MsiNetAssemblySupport = 4.0.30319.33440
    Property(C): MsiWin32AssemblySupport = 6.3.9600.16384
    Property(C): AdminUser = 1
    Property(C): Privileged = 1
    Property(C): USERNAME = Ian
    Property(C): DATABASE = C:\Users\Ian\Downloads\EMET Setup.msi
    Property(C): OriginalDatabase = C:\Users\Ian\Downloads\EMET Setup.msi
    Property(C): SOURCEDIR = C:\Users\Ian\Downloads\
    Property(C): VersionHandler = 5.00
    Property(C): UILevel = 5
    Property(C): ACTION = INSTALL
    Property(C): EXECUTEACTION = INSTALL
    === Logging stopped: 30/04/2014  11:25:35 ===
    MSI (c) (C4:04) [11:25:35:331]: Windows Installer installed the product. Product Name: EMET 4.1. Product Version: 4.1. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.
    MSI (c) (C4:04) [11:25:35:333]: Grabbed execution mutex.
    MSI (c) (C4:04) [11:25:35:333]: Cleaning up uninstalled install packages, if any exist
    MSI (c) (C4:04) [11:25:35:334]: MainEngineThread is returning 1603
    === Verbose logging stopped: 30/04/2014  11:25:35 ===

    I uninstalled EMET notifier 3 to try out the new 5.0 tech preview. However when trying to install I get an error saying "There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support
    personnel or package vendor."
    I tried installing 4.1 and get the same error. I am running Windows 8.1 Home Premium and have .Net 4 installed. I have turned on verbose logging, apologies for the massive amount of data but I didn't want anything to get missed.
    The log file is below. Can anyone suggest what might be going wrong?
    Many thanks,
    Ian
    I am having exactly the same problem. But I also can't even uninstall EMET 3.0 or EMET 4.0 both of which I have installed on my machine. I get the same error message when I try to uninstall them !! I need to uninstall them so that I can install EMET 4.1
    or EMET 5.0.
    I have been trying to do this for more than a month but without any luck. So any help will be much appreciated.
    Thanks,
    Mohamed

  • Notify no longer working with find friends app!

    On find friends app the notify button no longer works and myself and everyone I'm trying to set the notify button has the latest update "6.1.2". Any one else having the same problem?

    I didn't realize until I went to a class to lecture in front of a couple hundred students that what worked on Friday no longer worked on Monday.  (I upgraded to iOS 5 over the weekend.)  My iPad with lecture slides was plugged in 25 feet away.  I finally recruited a student to tap the iPad screen when I needed the next slide.  A nightmare.  What is usually slick and seamless was a wreck. 
    Here's my deal.  My remote app works fine at home where my iPod Touch and iPad are on the same wifi network.  At school they're on different networks for some reason.  Bluetooth doesn't work anywhere.  So Apple needs to find this bug and fix it.  I can't believe whoever is responsible for this didn't test this out before they released iOS 5.  Sheesh. 

  • Notify RichTextEditor that value has changed

    Hi.
    I'm changing value of RichTextEditor through JavaScript (with commandToolbarButton on custom toolbar inside RTE).
    Now if I want to commit/submit application says that there is no changes.
    As soon I type something (besides using my custom toolbar buttons to change value of RTE) everything is submitted. Obviously there are some triggers based on keyDown or something like that, to notify that value has changed. Now my question is how to notify (from JavaScript) RichTextEditor (or who else) that value is changed?
    Regards

    After declaring   private RichTextEditor rte1; call the method rte1.isChanged(); the method will return true if there is a change
    Nigel

Maybe you are looking for