java.lang.InstantiationException

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.

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 web313

  • 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.
  • 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 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".
  • Stack trace

    • java.lang.InstantiationException: 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. at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1075) at com.evermind.server.jms.JMSUtils.toInstantiationException(JMSUtils.java:1240) at com.evermind.server.jms.JMSServer.recoverState(JMSServer.java:1831) at com.evermind.server.jms.JMSServer.internalSetConfig(JMSServer.java:209) at com.evermind.server.jms.JMSServer.setConfig(JMSServer.java:182) at com.evermind.server.ApplicationServer.initializeJMS(ApplicationServer.java:2455) at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:999) at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: 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. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1035) at com.evermind.server.jms.JMSMessages.log(JMSMessages.java:229) at com.evermind.server.jms.JMSServerMessages.severeLockPersistenceFile(JMSServerMessages.java:86) at com.evermind.server.jms.ServerFile.safeOpenFile(ServerFile.java:788) at com.evermind.server.jms.ServerFile.access$000(ServerFile.java:77) at com.evermind.server.jms.ServerFile$2.run(ServerFile.java:719) at oracle.oc4j.security.OC4JSecurity.doUnprivileged(OC4JSecurity.java:325) at com.evermind.server.jms.ServerFile.openFile(ServerFile.java:716) at com.evermind.server.jms.ServerFile.<init>(ServerFile.java:133) at com.evermind.server.jms.PersistentMap.loadFile(PersistentMap.java:100) at com.evermind.server.jms.PersistentMap.<init>(PersistentMap.java:61) at com.evermind.server.jms.JMSServer.recoverState(JMSServer.java:1823) ... 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

    Unknown user
    Once, 1 year ago
    Once, 6 months ago
    4 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2 more bugmates