Run dbms_profiler by not owner

I run pl/sql-script with dbms_profiler calls, such this:
begin
dbms_profiler.start_profiler;
user1.proc1;
dbms_profiler.stop_profiler;
dbms_profiler.flush_data;
end;
it's ok if script runs under user1 !
I issued:
grant all on user1.proc to user2 with grant option;
garnt execute on dbms_profiler to user2;
and run sript under user2.
I have no oracle errors, but instead procedures and functions of user1 I see in plsql_profile_units table only records about ANONYMOUS BLOCKS
Say me, please, how I can to avoid this problem.
Michael

This thread has a similar issue.
DBMS_PROFILER and ONLY ANONYMOUS
What user OWNS the code you are profiling? What user is executing the profile gathering?
Are you sure that you have granted the necessary privs per the doc?
Do you meet this condition?
http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_profil.htm
>
Security Model
The profiler only gathers data for units for which a user has CREATE privilege; you cannot use the package to profile units for which EXECUTE ONLY access has been granted. In general, if a user can debug a unit, the same user can profile it. However, a unit can be profiled whether or not it has been compiled DEBUG. Oracle advises that modules that are being profiled should be compiled DEBUG, since this provides additional information about the unit in the database.
>
Does the user running the profiler have CREATE privilege on the code?

Similar Messages

  • Run dbms_profiler for not owners

    I run pl/sql-script with dbms_profiler calls, such this:
    begin
    dbms_profiler.start_profiler;
    dbms_profiler.stop_profiler;
    user1.proc1;
    dbms_profiler.flush_data;
    end;
    it's ok if script runs under user1 !
    I issued grant all on user1.proc to user2 with grant option;
    and run sript under user2. There are only ANONYMOUS BLOCKS in plsql_profiler_units for thjis call !
    Say me, please, how I can to avoid this problem.
    Michael

    the problem has solved

  • Java.lang.IllegalMonitorStateException: current thread not owner

    Hello,
    my program runs an exe that doesn't return a zero when it's finished, therefore, I can't use a waitFor().
    To solve this problem i look at the length of the file which has to be manipulated by this exe every 200ms and see whether it's length stopped changing. This should mean it's job is done...
    But using this code:
    public void run(String filename)
              System.out.println("start runtime");
              Runtime rt = Runtime.getRuntime();
              String[] callAndArgs = { "lssvmFILE.exe", filename };
              try
                   Process child = rt.exec(callAndArgs);
                   child.wait(200);
                   filesize = 0;
                   while(filesize != file.length())                            {
                        filesize = file.length();
                        child.wait(200);
                   //child.waitFor();
                   System.out.println("Process exit code is:   " + child.exitValue());
              catch(IOException e)
              {     System.err.println( "IOException starting process!");}
              catch(InterruptedException e)
              {     System.err.println( "Interrupted waiting for process!");}
              System.out.println("end run");
         }i get this on my System.out:
    Exception occurred during event dispatching:
    java.lang.IllegalMonitorStateException: current thread not owner
            at java.lang.Object.wait(Native Method)
            at LssvmFile.run(LssvmFile.java:292)
            at LssvmFile.start(LssvmFile.java:189)
            at GUI.actionPerformed(GUI.java:137)
            at java.awt.Button.processActionEvent(Button.java:329)
            at java.awt.Button.processEvent(Button.java:302)
            at java.awt.Component.dispatchEventImpl(Component.java:2593)
            at java.awt.Component.dispatchEvent(Component.java:2497)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

    Here's the code:
    I already found out that the sleep function indeed caused this exe to run so slow. It seems that everything stops when sleep is used. By setting the delay to 2ms the duration is satisfactory (some seconds).
    I also tried skipping the sleep and just using a while, but that ended in an endless loop. Setting the delay to 1ms lead to a stop when the filelength was 0 (i guess that was on the moment that the exe cleared the file and prepared to write) so it seems to me that 2ms is quite a good trade off.
    this part of the code is preceeded by writing the data to the file and afterwards the new data will be read in again...
         //Close the stream
              outFileStream.close();
         //Run lssvmFILE.exe to compute alpha & b
              long originalfilesize = file.length();
              run(filename);
              //wait untill job done
              Thread thread = new Thread();
              long filesize = file.length();
              try{thread.sleep(2);}
              catch(InterruptedException e){};
              while(filesize != file.length() || originalfilesize ==file.length())
                   filesize = file.length();
                   try{thread.sleep(2);}
                   catch(InterruptedException e){};
         //Set up Instream (read from file)
         //----------------------Bedankt!
    Bart

  • Javaws 1.4.2 "current thread not owner"

    Hello everyone,
    I have an application that I have been launching with javaws since the javaws 1.0.x days that won't work with javaws 1.4.2. Does anyone have any clue as to what could be wrong?
    Java Web Start 1.4.2 Console, started Thu Aug 21 09:15:25 EDT 2003
    Java 2 Runtime Environment: Version 1.2.2 by Sun Microsystems Inc.
    --------- EXCEPTION ---------
    java.lang.IllegalMonitorStateException: current thread not owner
         at com.sun.javaws.security.JNLPClassPath.findNamedResourceInLoaders(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled Code)
         at com.sun.javaws.security.JNLPClassPath.findNamedResource(Unknown Source)
         at com.sun.javaws.security.JNLPClassPath.getResource(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled Code)
         at org.apache.xerces.framework.XMLParser.<init>(XMLParser.java)
         at org.apache.xerces.framework.XMLParser.<init>(XMLParser.java)
         at org.apache.xerces.parsers.DOMParser.<init>(DOMParser.java)
         at com.fpl.ima.deployit.options.DeployItOptions.loadOptions(DeployItOptions.java, Compiled Code)
         at com.fpl.ima.deployit.options.DeployItOptions.getInstance(DeployItOptions.java)
         at com.fpl.ima.deployit.DeployIt.initialize(DeployIt.java)
         at com.fpl.ima.deployit.DeployIt.<init>(DeployIt.java)
         at com.fpl.ima.deployit.DeployIt.main(DeployIt.java)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:479)
    Exception occurred in main() of DeployIt
    java.lang.IllegalMonitorStateException: current thread not owner
         at com.sun.javaws.security.JNLPClassPath.findNamedResourceInLoaders(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled Code)
         at com.sun.javaws.security.JNLPClassPath.findNamedResource(Unknown Source)
         at com.sun.javaws.security.JNLPClassPath.getResource(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
         at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled Code)
         at com.fpl.ima.deployit.DeployIt.main(DeployIt.java)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:479)

    I can only guess at the likely cause. Previously (jws 1.2 and earlier) every web start process would kick off a jvm for the web start client to process the jnlp, this would in turn then kick off a second jvm to run the actual application.
    1.4.2 has changed this slightly to improve startup time etc.. the second jvm process doesn't happen, and now the web start app runs from the same jvm that the web start client has started for itself. This is why the integration dialog is such a problem with modal apps in 1.4.2 -- they're sharing (and conflicting with) the same event thread.
    At least this is what I think is happening ~ I'm very sure but cant be 100% certain ..because much like the autodownloads Sun haven't published any of the source for 1.4.2 web start (shouldn't this be part of the shipped sdk source these days?).
    I guess this change breaks your previous class-loading assumptions.
    - Richard

  • Player's position slider (Thread not owner)

    Hi every1,
    I've a thread that sets a slider value with the player's time in secods,but in case the slider Knob is dragged by the user the thread should wait and player's time should be set as per the value dragged by the user.
    But the wait() method is not executing instead it generates IllegalMonitorStateException: current thread not owner exception. Would you help me please?
    My code is:
    //the thread which sets the slider value as the time in second increases
    public void run() {
         while (true) {
                        if (player != null) {
               nano = player.getMediaTime().getSeconds();
              if (dura >nano) {
                  timex = (int)nano;
                        jSlider.setValue(timex);
                     try {
              Thread.currentThread().sleep(1000);
             } catch (InterruptedException ie) {
        }//the method which sets the slider as a user moves the knob of the slider
    jSlider.addChangeListener(new javax.swing.event.ChangeListener() {
                public void stateChanged(javax.swing.event.ChangeEvent evt) {
                   try{
                      if(jSlider.getValueIsAdjusting()){
    player.setMediaTime(new javax.media.Time((double)  
    jSlider.getValue())); 
                    thr.wait();                  }
                   }catch(Exception e){e.printStackTrace();
                      System.out.println("Exception @ jSlider stateChanged : " + e.getMessage() );
            });Thanks!

    The exception is happening because the ChangeListener thread does not own the monitor on "thr" (see the api documentation for Object.wait). That can be fixed by putting it in a synchronized (this) { ... } block.
    However, I see bigger problems. First, recognize that Java is going to call your ChangeEvent code on the event handling thread, so you definitely don't want it to wait. The screen will stop repainting and the user's mouse release event won't be processed, because you will have suspended the thread that handles those things. Second, you should not modify the position of the slider from any thread other than the event handling thread, for reasons documented at [http://java.sun.com/developer/technicalArticles/Threads/swing/]. That article also shows techniques that are safe.
    I don't mean to be discouraging, just wanted to point out a couple more things so you didn't get strange behavior without knowing why! What you are attempting actually requires some multi-threading skill, so study up!
    Cheers,
    Eric

  • AclOwner not owner error when implementing RDBMSRealm

    I am implementing a RDMBSRealm on WL6.1sp1. When I add an ACL/permission and
    grant it to a group, I got an error.
    I tried the example RDBMSRealm. I found out that adding groups and acls are
    actually persisted into the fileRealm,
    Only adding users are persisted to the database. What did I miss? Any
    suggestions will be appreciated.
    java.lang.InternalError: aclOwner not owner
         at
    weblogic.security.acl.internal.FileRealm.setPermission(FileRealm.java:871)
         at weblogic.security.acl.CachingRealm.setPermission(CachingRealm.java:1985)
         at
    weblogic.management.internal.RemoteRealmManagerImpl.grantPermission(RemoteRe
    almManagerImpl.java:270)
         at weblogic.management.configuration.Acl.grantPermission(Acl.java:72)
         at
    weblogic.management.console.actions.realm.DoAclPermissionFormAction.perform(
    DoAclPermissionFormAction.java:120)
         at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
         at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
         at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
         at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.configuration.RealmException: Acl.grantPermission - with
    nested exception:
    [java.lang.InternalError: aclOwner not owner]
         at weblogic.management.configuration.Acl.grantPermission(Acl.java:74)
         at
    weblogic.management.console.actions.realm.DoAclPermissionFormAction.perform(
    DoAclPermissionFormAction.java:120)
         at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
         at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
         at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
         at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Console Release Build6.1.1.0Server Release Build6.1.1.0Server BuildWebLogic
    Server 6.1 SP1 09/18/2001 14:28:44 #138716 All Server Product
    VersionsWebLogic Server 6.1 SP1 09/18/2001 14:28:44 #138716 WebLogic XML
    Module 6.1 SP1 09/18/2001 14:43:02 #138716

    Hey,
    Are you guys trying to add functionality to the RDBMSRealm so that you can edit
    ACLs in the database, using the WebLogic Console management tools? In other
    words, is your final goal to be able to create (or remove) an ACL in your
    console, and have the changes persisted to the database? I don't quite
    understand what the problem is, based on the description. If you could
    elaborate it would help me to understand what's going on.
    Thanks
    Joe Jerry
    K Wong wrote:
    I tried "unperson". Same error. Do I need to create this user "unperson" in
    my db users table and put it "Administration" group?
    The problem seems to be raised from weblogic...setPermission. I wish I could
    debug into this code or at least System.out.println some contents.
    "Marek Sz." <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    in oryginal example aclOwner is defined in RDBMSDelegate :
    * This is the bogus owner associated with all ACLs found in the
    * database.
    protected Principal aclOwner = new User("unperson");
    Ty to use this Principal.
    Regards
    Marek Sz.
    K Wong wrote:
    I am implementing a RDMBSRealm on WL6.1sp1. When I add an ACL/permission
    and
    grant it to a group, I got an error.
    I tried the example RDBMSRealm. I found out that adding groups and aclsare
    actually persisted into the fileRealm,
    Only adding users are persisted to the database. What did I miss? Any
    suggestions will be appreciated.
    java.lang.InternalError: aclOwner not owner
    at
    weblogic.security.acl.internal.FileRealm.setPermission(FileRealm.java:871)
    atweblogic.security.acl.CachingRealm.setPermission(CachingRealm.java:1985)
    at
    weblogic.management.internal.RemoteRealmManagerImpl.grantPermission(RemoteRe
    almManagerImpl.java:270)
    atweblogic.management.configuration.Acl.grantPermission(Acl.java:72)
    at
    weblogic.management.console.actions.realm.DoAclPermissionFormAction.perform(
    DoAclPermissionFormAction.java:120)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.configuration.RealmException: Acl.grantPermission -with
    nested exception:
    [java.lang.InternalError: aclOwner not owner]
    atweblogic.management.configuration.Acl.grantPermission(Acl.java:74)
    at
    weblogic.management.console.actions.realm.DoAclPermissionFormAction.perform(
    DoAclPermissionFormAction.java:120)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Console Release Build6.1.1.0Server Release Build6.1.1.0ServerBuildWebLogic
    Server 6.1 SP1 09/18/2001 14:28:44 #138716 All Server Product
    VersionsWebLogic Server 6.1 SP1 09/18/2001 14:28:44 #138716 WebLogicXML
    Module 6.1 SP1 09/18/2001 14:43:02 #138716

  • ORA-27369: job of type EXECUTABLE failed with exit code: Not owner

    Hi
    I created a backup RAC database job using DBMS_SCHEDULER under RMANTEST schema (a DBA account) and I got the error as subject.
    begin
    dbms_scheduler.create_job(
    job_name => 'scheduler_backup',
    job_type => 'EXECUTABLE',
    number_of_arguments => 2,
    job_action => '/opt/oracle/admin/bin/rman_fullbackup_RAC_TEST_test.sh',
    comments => 'backup via scheduler'
    dbms_scheduler.SET_JOB_ARGUMENT_VALUE('scheduler_backup', 1, 'TEST');
    dbms_scheduler.SET_JOB_ARGUMENT_VALUE('scheduler_backup', 2, 'TEST2');
    dbms_scheduler.enable('scheduler_backup');
    end;
    Thanks,
    Kevin

    Hi Ravi
    Thanks for your input.
    "ORA-27369: job of type EXECUTABLE failed with exit code: Not owner" is what I copied from ADDITIONAL_INFO of USER_SCHEDULER_JOB_RUB_DETAILS.
    One thing I don't understand of your words is that
    "On 10gR1 and 10gR2 you can redirect the stdout/stderr within your script and take a look at those log files."
    In my script, I have log files but I cannot see it. I guess the job fails directly without hitting the redirection line in the script. Do you mean I shall write something like this
    dbms_scheduler.create_job (
    job_action => '/opt/oracle/admin/bin/backup.sh > backup.log'
    Another one is
    "make sure that the user that external jobs run as must be able to run your script"
    But OS user and database user are two different accounts at different level.
    I am using 10.2.0.2 RAC. The Unix script runs successfully every night. I just want to take advantage of DBMS_SCHEDULER to avoid host dependency.
    Thanks,
    Kevin

  • ERR 11270 console  e87_create_diag_fifo: chown error, Not owner

    Hello,
    we have 2 Livecache SAPDB 7.4.03 Databases installed on one AIX Server, called LCD and LCT.
    The databases were running well, but after some changes on the filesystem preparing backup with adint, one of the databases is not able to start.
    -24994,ERR_RTE: runtime environment error
    1,Check knldiag! Kernel died before reaching ADMIN state
    I see only this error in file knldiag from LCT
    ERR 11270 console  e87_create_diag_fifo: chown error, Not owner
    What I have noticed in the file, that some ENV parameters are wrong because these are settings from the other database like this:
    2008-05-17 13:25:50     1     12898 ENVIRON   HOME=/home/lcdadm
    2008-05-17 13:25:50     1     12898 ENVIRON   USER=lcdadm
    P2008-05-17 13:25:50     1     12898 ENVIRON   LOGNAME=lcdadm
    2008-05-17 13:25:50     1     12898 ENVIRON   LOGIN=lcdadm
    2008-05-17 13:25:50     1     12898 ENVIRON   ADINT=/usr/tivoli/tsm/adint64
    2008-05-17 13:25:50     1     12898 ENVIRON   ADA_OPT=/sapdb/LCD/adint/initLCD.utl
    I checked env of the user lctadm everythings seems to be ok. When I changed one option with this
    dbmcli -d LCT -u control,***** dbm_configset -raw ADA_OPT /sapdb/LCT/adint/initLCT.utl
    When I restart the database i have the same result and the wrong env.setting.
    Where are the settings stored and what be the reason for this issue ?

    This directory looks like this
    [...x:root:/usr/spool/sql/fifo:] ls -al
    total 0
    drwxrwxr-x   2 lcdadm   sapsys          256 May 17 15:50 .
    drwxrwxr-x  10 lcdadm   sapsys          256 Mar 17 13:54 ..
    prwww-   1 lcdadm   sapsys            0 May 17 16:07 LCD
    prw-rw----   1 lcdadm   sapsys            0 May 17 16:14 xserver_depflalc02x_logger
    prw-rw----   1 lcdadm   sapsys            0 May 14 08:26 xserver_depflalc02x_update
    So this looks like the "wrong" user or with the other db-owner user.
    But does it make a sense to change it to lctadm and create a file named LCP ?
    I am afraid that in this case the other db will also not start
    Frank

  • IllegalMonitorStateException: current thread not owner

    Hello I'm a new french developper in JAVA.
    I have problems to launch a command from my main class.
    Here is the method :
    private static boolean ConvertToPDF(Vector HTMLPath, String PDFPath, boolean DeleteHTMLSourceFile) {
              boolean      ConvertOK           = false;
              String           HTMLDocCommand      = "";
              String           HTMLSourcePath     = "";
              String           command;                // Command string
              Process      process;                // Process for HTMLDOC
              Runtime      runtime;                // Local runtime object
              InputStream input;
              byte           buffer[];
              int           bytes;
              // R�cup�ration du chemin du r�pertoire tampon HTML dans le fichier general.properties
             try {
                  mailProperties = (PropertyResourceBundle) ResourceBundle.getBundle("General");
             catch (MissingResourceException e) {
                  System.out.println("ConvertToPDF - Impossible de localiser le fichier general.properties");
             HTMLDocCommand = mailProperties.getString("HTMLDocCommand");
             for (int i=0;i<HTMLPath.size();i++){
                  HTMLSourcePath += (String) HTMLPath.elementAt(i) + " ";
              command = HTMLDocCommand+" "+PDFPath+" "+HTMLSourcePath;
              // Lancement du processus et attente de fin ...
              runtime = Runtime.getRuntime();
              try
                   process = runtime.exec(command);
                   System.out.println("D�but attente du processus");
                   process.notifyAll();
                   bytes = process.waitFor();
                   process.notifyAll();
                   System.out.println("Fin attente du processus");
                   // V�rification de l'existence du fichier de sortie
                   File PDFFile = new File(PDFPath);
                   if (PDFFile.exists())
                        ConvertOK = true;
                   else
                        ConvertOK = false;
              catch (Exception e)
                   ConvertOK = false;
                   System.out.print(e.toString() + " caught while running:\n\n");
                   System.out.print(" " + command + "\n");
              return ConvertOK;
         }When I Executing my class (from a windows command prompt) i Have this error message :
    IllegalMonitorStateException: current thread not owner caught while running <mycommand>
    I have also tried to use the "synchronied method" :
    private static boolean ConvertToPDF(Vector HTMLPath, String PDFPath, boolean DeleteHTMLSourceFile) {
              boolean      ConvertOK           = false;
              String           HTMLDocCommand      = "";
              String           HTMLSourcePath     = "";
              String           command;                // Command string
              Process      process;                // Process for HTMLDOC
              Runtime      runtime;                // Local runtime object
              InputStream input;
              byte           buffer[];
              int           bytes;
              // R�cup�ration du chemin du r�pertoire tampon HTML dans le fichier general.properties
             try {
                  mailProperties = (PropertyResourceBundle) ResourceBundle.getBundle("General");
             catch (MissingResourceException e) {
                  System.out.println("ConvertToPDF - Impossible de localiser le fichier general.properties");
             HTMLDocCommand = mailProperties.getString("HTMLDocCommand");
             for (int i=0;i<HTMLPath.size();i++){
                  HTMLSourcePath += (String) HTMLPath.elementAt(i) + " ";
              command = HTMLDocCommand+" "+PDFPath+" "+HTMLSourcePath;
              // Lancement du processus et attente de fin ...
              runtime = Runtime.getRuntime();
              try
                   process = runtime.exec(command);
    synchronized(process){
                   System.out.println("D�but attente du processus");
                   process.notifyAll();
                   bytes = process.waitFor();
                   process.notifyAll();
                   System.out.println("Fin attente du processus");
                   // V�rification de l'existence du fichier de sortie
                   File PDFFile = new File(PDFPath);
                   if (PDFFile.exists())
                        ConvertOK = true;
                   else
                        ConvertOK = false;
              catch (Exception e)
                   ConvertOK = false;
                   System.out.print(e.toString() + " caught while running:\n\n");
                   System.out.print(" " + command + "\n");
              return ConvertOK;
         }But I have the same error message. Maybe the synchronised is not on the right object ?
    Could anyone help me ?
    Thanks for all.

    - The exception is thrown during process.notifyAll() calls; can u try commenting out those calls?
    - For questions on java, you may also want to try the forum at:
    http://forum.java.sun.com/category.jspa?categoryID=32

  • Current thread not owner

    Exception in thread "AWT-EventQueue-0" java.lang.IllegalMonitorStateException: current thread not owner
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Unknown Source)
         at OneTab.OneForm.OneForm.stop_watch(OneForm.java:104)
         at DraMain_Sub.actionPerformed(DraMain.java:129)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)I just want to know this message.
    "java.lang.IllegalMonitorStateException: current thread not owner".
    What is it?
    try{
    this.wait();
    }catch(InterruptedException e){}I just want to do it.

    my initial guess would be that the OP needs a refresher on wait and
    notify. There are plenty of tutorials available and spending 15 20
    min on one of them would not be a waste of time, trust me!!!!!But this reply did not come from Jos, so it will apparantly be ignored.Hm, if that were true I wouldn't like it one bit. Lots of people give valuable
    advice here and the last thing I would want is a 'status aparte'.
    kind regards,
    Jos

  • Frequently when I open Firefox it says Firefox is already running but is not responding. I have to go to the task manager, find Firefox and close the process before I can get firefox to load.

    Those are all the details I have

    There is an article about this problem see:
    * [[Firefox is already running but is not responding]]

  • My G Drive will not show up on my desktop for use. It did yesterday. It is not full and currently the light turns on and seems to be running but will not show up on my desktop. What can I do?

    My G Drive will not show up on my desktop for use. It did yesterday. It is not full and currently the light turns on and seems to be running but will not show up on my desktop. What can I do?

    1. verify on another Mac first. and another port.
    2. very likely dead SATA card
    read about it here:
    Your dead external hard drive is likely fine! Great hope for your 'faulty' external HD

  • When I click to open firefox it says that "firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system" and I've tried to shut down and restart my computer but it keeps

    when i click to open firefox it says that "firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." and I've tried to shut down and restart my computer but it keeps showing the same message. I've even uninstalled Firefox and then reinstalled in the hopes that the problem would be solved but it this message is still popping up. What can I do to solve this problem?
    == This happened ==
    Just once or twice
    == I was on facebook trying to upload pictures yesterday. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1)

    Do you have a profile lock file in your profile folder? If so, delete it and see if TB runs properly:
    http://kb.mozillazine.org/Profile_in_use#Remove_the_profile_lock_file

  • I close firefox and try to open it again later, it WON'T and says, "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." Firefox isn't running .

    After I turn on my laptop and click on firefox it works fine and it opens THE FIRST TIME. So can you help? i DON'T WANT TO RESTaRT my computer everytime and sometimes have to clsoe firefox b/c I'm typing paper and computer goes slow.

    Sounds like a "hang at exit" problem. There are several possible causes for that error. See:
    * How to stop the running Firefox process
    ** In Task Manager, does firefox.exe show in the '''<u>Processes</u>''' tab?
    ** See: http://kb.mozillazine.org/Kill_application
    * What may cause Firefox to hang at exit
    ** http://support.mozilla.com/en-US/kb/Firefox+hangs (see "Hang at exit" section)
    ** http://kb.mozillazine.org/Firefox_hangs
    ** https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding
    * You may need to try Firefox Safe Mode
    ** You may need to use '''Safe Mode''' to locate the problem: http://support.mozilla.com/en-US/kb/Safe+Mode
    **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.
    ** 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.
    ** See the following for more information
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    *** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting

  • Firefox is OPEN and working fine, but when I click a link in Thunderbird I get 'Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.'

    If I click a link on my desktop or in any other program (while Firefox is open and running), I get this message: "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." There's about a billion links for this if you Google it, but they all say that Firefox wasn't shut down properly. (OK, maybe not ALL of them, but if the needle is in that haystack, I haven't yet found it.) That's not the issue in my case since I haven't shut FF down at all.
    == This happened ==
    Every time Firefox opened
    == IDK

    This began to happen to me when I tried to run two separate profiles simultaneously on the same installation of firefox with -no-remote

Maybe you are looking for

  • SAP Installation - 3 SAP systems on 1 host

    Hello, I already have Solution Manager system and Enterprise Portal system installed on a host. Can I install another dual stack(ABAP+Java) on the same host? Thanks, Gautam.

  • Finalizing migration to Yosemite

    I created a new partition to install Yosemite on my Mac, to try it out before doing a full upgrade.  After using Yosemite for a few months, I am ready to permanently upgrade to Yosemite. When I created the new partition, I did not import my data file

  • Pix 501 Port Redirection with outside Dyn IP for DVR

    Hi, I have a pix 501 6.3 version soft. I need to access my cameras from the net. the camera address is 192.168.1.60:1042 my ISP outside  is dynamic. The following is my config, please let me know what is wrong with it. PIX Version 6.3(5) interface et

  • Restrict User Sessions

    Hi, Is there a profile parameter or setting that restricts user sessions by user name or user groups ? I have looked up the thread which suggests changing profile parameter rdisp/max_alt_modes. But this would be system wide. I really need it to be us

  • How to set autostart feature of music player to Of...

    Hi, I have Nokia N73. Whenever i reboot my phone, Music Player will automatically get launched, how do i set this autostart feature to Off?? Thanks, Sonali