java.lang.InstantiationException

ServerFile[PersistentMap,/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state]: persistence file "/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state" is locked. Verify that there is no sharing violation and manually remove "/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state.lock".

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web526

  • via Oracle Community by 526497, 11 months ago
    ServerFile[PersistentMap,/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state]: persistence file "/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state" is locked. Verify that there is no sharing violation and manually remove "/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state.lock".
  • via Oracle Community by 843849, 1 year ago
    ServerFile[PersistentMap,/C:/Documents and Settings/1217663/Desktop/jdev/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/persistence/jms.state]: persistence file could not be locked. Resolve the sharing violation by ending the process currently holding the file lock or by using a different persistence directory for one or both processes.
  • via Oracle Community by 884523, 11 months ago
    ServerFile[PersistentMap,/C:/JDevOA_testfna/jdevhome/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/persistence/jms.state]: persistence file could not be locked. Resolve the sharing violation by ending the process currently holding the file lock or by using a different persistence directory for one or both processes.
  • Stack trace

    • java.lang.InstantiationException: ServerFile[PersistentMap,/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state]: persistence file "/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state" is locked. Verify that there is no sharing violation and manually remove "/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state.lock". at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1034) at com.evermind.server.jms.JMSUtils.toInstantiationException(JMSUtils.java:1199) at com.evermind.server.jms.JMSServer.recoverState(JMSServer.java:1705) at com.evermind.server.jms.JMSServer.internalSetConfig(JMSServer.java:205) at com.evermind.server.jms.JMSServer.setConfig(JMSServer.java:172) at com.evermind.server.ApplicationServer.initializeJMS(ApplicationServer.java:2266) at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:909) at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: ServerFile[PersistentMap,/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state]: persistence file "/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state" is locked. Verify that there is no sharing violation and manually remove "/D:/mv10131rc1_qs/oc4j/j2ee/home/persistence/jms.state.lock". at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1034) at com.evermind.server.jms.JMSUtils.toIOException(JMSUtils.java:1171) at com.evermind.server.jms.JMSUtils.toIOException(JMSUtils.java:1166) at com.evermind.server.jms.ServerFile.safeOpenFile(ServerFile.java:735) at com.evermind.server.jms.ServerFile.access$000(ServerFile.java:76) at com.evermind.server.jms.ServerFile$2.run(ServerFile.java:700) at oracle.oc4j.security.OC4JSecurity.doUnprivileged(OC4JSecurity.java:325) at com.evermind.server.jms.ServerFile.openFile(ServerFile.java:697) at com.evermind.server.jms.ServerFile.<init>(ServerFile.java:119) at com.evermind.server.jms.PersistentMap.loadFile(PersistentMap.java:99) at com.evermind.server.jms.PersistentMap.<init>(PersistentMap.java:60) at com.evermind.server.jms.JMSServer.recoverState(JMSServer.java:1697) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.