Tuesday, June 26, 2012

cannot open file _WLS_ADMINSERVER000000.DAT

Error message:1

<BEA-280061> <The persistent store "XXXX" could not be deployed: weblogic.store.PersistentStoreException: [Store:280020]There was an error while reading from the log file
weblogic.store.PersistentStoreException: [Store:280020]There was an error while reading from the log file
    at weblogic.store.io.file.Heap.getNextRecoveryFile(Heap.java:796)
    at weblogic.store.io.file.Heap.open(Heap.java:182)
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:88)
    at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:332)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:323)

java.io.IOException: Error reading from file, No such file or directory, errno=2
    at weblogic.store.io.file.direct.DirectIONative.read(Native Method)
    at weblogic.store.io.file.direct.DirectFileChannel.read(DirectFileChannel.java:134)
    at weblogic.store.io.file.StoreFile.read(StoreFile.java:282)
    at weblogic.store.io.file.Heap.getNextRecoveryFile(Heap.java:794)
    at weblogic.store.io.file.Heap.open(Heap.java:182)
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:88)
    at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:332)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:323)

Error message :2 

weblogic.store.PersistentStoreFatalException: [Store:280105]The persistent file store "_WLS_AdminServer" cannot open file _WLS_ADMINSERVER000000.DAT.
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:128)
    at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:435)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:423)
    at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:126)
    at weblogic.store.admin.FileAdminHandler.activate(FileAdminHandler.java:191)
    at weblogic.store.admin.DefaultStoreService.start(DefaultStoreService.java:60)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused By: java.io.IOException: Error from open(), Permission denied, errno=13
    at weblogic.store.io.file.direct.DirectIONative.openConsiderLock(Native Method)
    at weblogic.store.io.file.direct.DirectFileChannel.<init>(DirectFileChannel.java:54)
    at weblogic.store.io.file.direct.DirectIOManager.open(DirectIOManager.java:179)
    at weblogic.store.io.file.StoreFile.openInternal(StoreFile.java:112)
    at weblogic.store.io.file.StoreFile.openDirect(StoreFile.java:168)
    at weblogic.store.io.file.Heap.openStoreFile(Heap.java:398)
    at weblogic.store.io.file.Heap.open(Heap.java:325)
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:117)
    at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:435)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:423)
    at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:126)
    at weblogic.store.admin.FileAdminHandler.activate(FileAdminHandler.java:191)
    at weblogic.store.admin.DefaultStoreService.start(DefaultStoreService.java:60)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

Solution 1: Stop weblogic and delete the .Dat file from *\user_projects\domains\<base_domain>\servers\<AdminServer>\data\store\default and diagnostics
start the JVM

Solution 2:  Follow solution1 and then login to console - server - config - services - change :Synchronous Write Policy: to cache-flush. select Advanced - uncheck : - save -activate changes and restart.

Error : Caused By: java.io.IOException: Error from fcntl() for file locking

Soln:
1.) Uncheck "Enable File locking " for persistent stores

==> This option is not supported while using NFS filesystem

2.) Maintain different directories for filestores of different JMS Servers and maintain a different file store for each JMS server.

ref :
http://docs.oracle.com/cd/E14571_01/web.1111/e13814/storetune.htm#CACFDGCA
http://docs.oracle.com/cd/E24329_01/web.1211/e24390/storetune.htm#CAEGGIEG
http://docs.oracle.com/cd/E17904_01/web.1111/e13701/store.htm#i1143516
Doc ID 957377.1
Doc ID 1278828.1 

1 comment:

Blogger said...

Are you making money from your exclusive file uploads?
Did you know AdscendMedia will pay you an average of $0.50 per uploaded file download?