Java.io.IOException: Failed to rename log file on attempt to rotate logs

Hello.
I'm currently using Weblogic 5.1 SP6 on WinNT Server 4.0 SP6.
I set the weblogic.properties file like this so that the "access.log" will
be rotated every day at midnight.
-- weblogic.properties --
weblogic.httpd.enableLogFile=true
weblogic.httpd.logFileName=D:/WLSlog/access.log
weblogic.httpd.logFileFlushSecs=60
weblogic.httpd.logRotationType=date
weblogic.httpd.logRotationPeriodMins=1440
weblogic.httpd.logRotationBeginTime=11-01-2000-00:00:00
-- weblogic.properties <end>--
The rotation has been working well, but one day when I checked my
weblogic.log, I was getting some errors.
I found out that my "access.log" wasn't being rotated (nor being written,
flushed) after this error came out.
After rebooting WebLogic, this problem went away.
Has anyone clues about why WebLogic failed to "rename log file?"
-- weblogic.log --
? 2 04 00:00:00 JST 2001:<E> <HTTP> Exception flushing HTTP log file
java.io.IOException: Failed to rename log file on attempt to rotate logs
at weblogic.t3.srvr.httplog.LogManagerHttp.rotateLog(LogManagerHttp.java,
Compiled Code)
at java.lang.Exception.<init>(Exception.java, Compiled Code)
at java.io.IOException.<init>(IOException.java, Compiled Code)
at weblogic.t3.srvr.httplog.LogManagerHttp.rotateLog(LogManagerHttp.java,
Compiled Code)
at
weblogic.t3.srvr.httplog.LogManagerHttp.access$2(LogManagerHttp.java:271)
at
weblogic.t3.srvr.httplog.LogManagerHttp$RotateLogTrigger.trigger(LogManagerH
ttp.java:539)
at
weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigg
er.java, Compiled Code)
at
weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java
, Compiled Code)
at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java,
Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
? 2 04 00:00:25 JST 2001:<E> <HTTP> Exception flushing HTTP log file
java.io.IOException: Bad file descriptor
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java, Compiled Code)
at
weblogic.utils.io.DoubleBufferedOutputStream.flushBuffer(DoubleBufferedOutpu
tStream.java, Compiled Code)
at
weblogic.utils.io.DoubleBufferedOutputStream.flush(DoubleBufferedOutputStrea
m.java, Compiled Code)
at
weblogic.t3.srvr.httplog.LogManagerHttp$FlushLogStreamTrigger.trigger(LogMan
agerHttp.java, Compiled Code)
at
weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigg
er.java, Compiled Code)
at
weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java
, Compiled Code)
at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java,
Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
-- weblogic.log <end> --
note:
? 2 04 00:00:25 JST 2001:<E> <HTTP> Exception flushing HTTP log file
java.io.IOException: Bad file descriptor
keeps coming out every minute after on.
I suppose this is because I have set the HTTP log to be flushed every one
minute.
Thanks in advance.
Ryotaro

I'm also getting this error on Weblogic 6.1.1.
It only occurs if you set the format to "extended".
Is there any fix or workaround for this?

Similar Messages

  • OSB is throwing java.io.IOException: Failed to rename file

    Hi,
    I'm getting the below error when I try to deploy the OSB code changes via OEPE:
    +<Error> <ConfigFwk> <D---00146903> <AdminServer> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <admin> <> <d71c3b335fa8baa2:39d72cb4:13951f6b38f:-8000-00000000000000bf> <1345702069308> <BEA-000000> <Failed to commit changes to file D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton+
    java.io.IOException: Failed to rename file 'D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton.gz.upd~' to 'D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton'
    +     at com.bea.wli.config.transaction.TransactionalFileManager._renameFile(TransactionalFileManager.java:1660)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commitFile(TransactionalFileManager.java:448)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commit(TransactionalFileManager.java:320)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commit(TransactionalFileManager.java:298)+
    +     at com.bea.wli.config.transaction.TransactionManager.commit(TransactionManager.java:1495)+
    +     at com.bea.wli.config.transaction.TransactionManager._endTransaction(TransactionManager.java:842)+
    +     at com.bea.wli.config.transaction.TransactionManager.endTransaction(TransactionManager.java:783)+
    +     at com.bea.wli.config.deployment.server.ServerDeploymentReceiver$2.run(ServerDeploymentReceiver.java:275)+
    +     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)+
    +     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)+
    +     at com.bea.wli.config.deployment.server.ServerDeploymentReceiver.commit(ServerDeploymentReceiver.java:260)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)+
    +     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)+
    +     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)+
    +     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)+
    +>+
    OSB version: 11.1.1.5
    Please help me to resolve this issue.
    Thanks,
    Hari

    Hari,
    If it is multi user environment then ask all users to close their sessions using change center. If it is a single user environment then please rename the sessions folder (D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159) and restart all the servers. It should solve the problem.
    Also check whether the OS user who started the servers, has full access to the complete domain folder and permission to create directories/files into the domain folder and it's subfolders.
    Regards,
    Anuj

  • Java.io.IOException: failed to connectTCP open

    Hello all,
    I am newcomer to J2ME. I am facing following problem.
    I am using mmapi. While calling method Manager.createPlayer(String url)
    following exception occurs:
    java.io.IOException: failed to connectTCP open
    at com.sun.mmedia.protocol.CommonDS.getConnection(+385)
    at com.sun.mmedia.protocol.BasicDS.connect(+12)
    at javax.microedition.media.Manager.createDataSource(+71)
    at javax.microedition.media.Manager.createPlayer(+196)
    at example.audiodemo.PlayerCanvas.createPlayer(+86)
    at example.audiodemo.PlayerCanvas.run(+4)
    I have specified url as http://localhost:7001/startup.wav
    This link executes fine in browser.
    Please help.
    Thanks and Regards,
    Pramod

    uddinr0121 wrote:
    thanks for the great advice... this is a bug in java
    [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6780505|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6780505]
    The bug you linked to says it has to do with a shared directory that has spaces in its path. The code you posted has no spaces in the path. That does not sound like the same problem to me.

  • Java.io.IOException: cannot verify signature block file META-INF/MYKEY

    Hello,
    i have a serios problem in my company.
    I developed javaws aplication running since years and now we have starting problems with actual java, it brings security warnings. This warning says this application will be blocked in further releases.
    The app is signed with an old java 6 jarsigner.  If I sign the jar files of the app with java 7 u45 or u40, I receive the following exception by webstart :
    java.io.IOException: cannot verify signature block file META-INF/MYKEY
        at com.sun.deploy.cache.CacheEntry$10.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.deploy.cache.CacheEntry.writeFileToDisk(Unknown Source)
        at com.sun.deploy.cache.CacheEntry.writeFileToDisk(Unknown Source)
        at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)
        at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
        at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    do somebody have an idea what I could try to do to solve this problem?
    I create the keystore  on the follwoing way: C:\Programme\Java\jdk1.7.0_45\bin>keytool -genkey -keyalg RSA -alias MYKEY -keystore fspKeys -storepass xxxxxxxx

    I have JRE 1.5.0_14 in the client machine.
    Once this exception comes, no matter how many times I tried to relaunch the application same exception (cannot verify signature block is shown. Once i restart the server, its working fine.
    Regarding jardiff, Yes. we use it.
    Also, this exception is not shown on every machine which are trying to download same update. Only on few..
    Any idea regarding this, please share it.
    Chakri
    Edited by: chakriv on Mar 22, 2010 9:02 PM

  • Failed to rename redlog file

    Experts!
    We are facing below exceptions while renaming redo log file on oracle 10g,
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 3423965184 bytes
    Fixed Size 2119752 bytes
    Variable Size 1828718520 bytes
    Database Buffers 1577058304 bytes
    Redo Buffers 16068608 bytes
    Database mounted.
    SQL> ALTER DATABASE RENAME FILE 'E:\RMANDB\RMANDB\REDO01.LOG' TO 'E:\RMANDB\RMAN
    DB\REDO09.LOG';
    ALTER DATABASE RENAME FILE 'E:\RMANDB\RMANDB\REDO01.LOG' TO 'E:\RMANDB\RMANDB\RE
    DO09.LOG'
    ERROR at line 1:
    ORA-01511: error in renaming log/data files
    ORA-01512: error renaming log file E:\RMANDB\RMANDB\REDO01.LOG - new file
    E:\RMANDB\RMANDB\REDO09.LOG not found
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Please suggest where we are making mistake...
    Thanks,

    Hello,
    You made a shutdown abort of your database:
    SQL> shutdown abort;
    ORACLE instance shut down.I think it would be safer to make a clean stop of your database before making any changes on your redolog files.
    After a shutdown abort your database is not consistent. So your redolog files are necessary to open it.
    More over, before renaming the redolog files you must copy it (by OS command) to it's new location else
    you can have such error:
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.Hope it can help.
    Best regards,
    Jean-Valentin

  • Get Total DB size , Total DB free space , Total Data & Log File Sizes and Total Data & Log File free Sizes from a list of server

    how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

    Hi Shivanq,
    To get a list of databases, their sizes and the space available in each on the local SQL instance.
    dir SQLSERVER:\SQL\localhost\default\databases | Select Name, Size, SpaceAvailable | ft -auto
    This article is also helpful for you to get DB and Log File size information:
    Checking Database Space With PowerShell
    I hope this helps.

  • Cannot shrink log file 2 because the logical log file located at the end of the file is in use ?

    HI,
    I am getting this error frequently.. any recomendations :
    Executed as user: DB0\sqlservices. Processing database: dbin [SQLSTATE 01000] (Message 0) 
    Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008) 
    Processing database: DB_ [SQLSTATE 01000] (Message 0)  DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) 
    Cannot shrink log file 2 (DB_log) because the logical log file located at the end of the file is in use. [SQLSTATE 01000] (Message 9008) 
    Processing database: DB [SQLSTATE 01000] (Message 0) 
    DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) 
    Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed. [SQLSTATE 42000] (Error 3023) 
    Processing database: DB_AC [SQLSTATE 01000] (Error 0)  
    [SQLSTATE 01000] (Error 0)  DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Error 2528). 
    The step failed.
    Please give any receomendations to avoid this error in future :
    Yangamuni Prasad M

     
    Hi Yangamuni,
    Are there any progress?
    Please have a look on the below threads with the similar issues as yours:
    http://www.sqlservercentral.com/Forums/Topic652579-146-1.aspx
    http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/ae4db890-c15e-44de-a2af-e85c04260331
    The solution is change the recovery mode to SIMPLE, shrink log files and then change to the FULL recovery mode.
    Thanks,
    Weilin Qiao
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • How can I change the log file path instead of storing log in server.log

    Hi,
    I have created one domain and modified the attribute "log-file" in element "virtual-server" element to point to the new log file path.
    But when I start up my domain, it still saying: "Log redirected to DOMAIN_LOCATION/logs/server.log.
    Why?
    Why it doesn't log to the file I specify? How can I change it?
    Thanks.
    Ken

    I have changed the logging option to my specific path in admin console as what you said. I have also changed the logging in domains attribute too.
    But still there is some logging info in domains/<dom_name>/logs/server.log instead of the path and file I specified.
    Is it possbily related to linux user role setting? the Sunone AS is installed and configured by root user. But the domain is created for another user, hence I want to forward all logging info to that user's home path.

  • GC.log File Size Limitation and Rotation

    Hi,
    Is it possible to limit the size of a GC.log file and to rotate it without causing havoc?
    Best regards,
    Katzensee

    James Roller1 wrote:
    You say, if you use 1024 x 768 images... that's just it: I'm just using the images without resizing. Some may be 4MB files when dragged in; others may be 300kb. I am not doing anything to them. Should I?  Does that help? Or does IBA "handle all that" when I drag and drop?
    It's not well documented. I get the impression that, if you drop an image that has resolution higher than 2048 x 1536, it is down-sampled to that size. You should at least crop the image outside IBA before dropping it in. If you want to save space, down-sample the image first to 1024 x 768 (after cropping).
    James Roller1 wrote:
    Also for the video: we're using iMovie and we just "Share" to iTunes and choose Large. Should I be choosing a lower setting or, again, does IBA not care and will take the Large and resize it?
    Instead of sharing to iTunes, export the movie to iPad format (File -> Export) and select 640 x 480. That'll give you reasonable quality at around 12 MB per minute.
    James Roller1 wrote:
    I have to say I chuckled at the wisdom and simplicity of the 2 Volume suggestion. I'd like to keep it as one, and I'd like to sell it on the store, but your idea is ingenious in its simplicity: just make 2!
    Thanks! Two's better'n one
    Michi.

  • Maximum write speed to log file, trying to get a log entry every 100ms.

    I have a DAQmx application which data I want ot log. The aquistion is ran at a high speed, 1 KHz. I want to log the measurements to a text file which can read in Matlab or excel. I a wondering what the best approach is for this and what is the maximum speed.
    I have created a program below to test. But it seems that the log is not consistent at 10 Hz alread. The log interval is set to 100 ms while the loop is running at 10 ms.  If I look at the time between the sampes 6 of them are higher than the 100ms. The time between some steps is 700ms which is quite high. Is this implementation wrong or is this just due to the undeterminstic computer?

    LennartM wrote:
    But the program does not stop...It seems it is waiting on another notification to stop or something?
    That is a very likely scenario.  The simple solution here is to destroy the notifier after the top loop completes and make your bottom loop stop when there is an error from the Notifier (when it was destroyed).  That would eliminate the need for the local variable and would ensure that both of your loops stopped.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Problem with the log file path on the Data Logging Control Veristand

    Hello everyone,
    My problem is that I use a computer as a gateway on the network. It is connected to PXI in Real Time. I have another computer connected to the gateway to read the given PXI. I am unable to record on my local hard drive using the Data Logging Control VeriStand on the second computer. However, it can save me on the hard disk on the network. Moreover, I have no problem to record if the computer is a gateway.
    Regards,
    Kamal Bouamran

    For simplicity, let's call the computer running Veristand Computer A and the gateway computer Computer B.
    So, just to clarify, you're running the Veristand workspace on Computer A, which is connected to your network and the RT PXI (on which the system definition file is deployed) through a gateway, Computer B. With this setup, you can't use a data logging control to save a file to Computer A's hard drive. However, you are (from the workspace running on Computer A) able to save a file to Computer B's disk or to another drive elsewhere on your network. Is that all correct?
    What happens when you try to configure the control to log to computer A's disk? Do you get an error (and if so, what error)? Does the file path default to a different location?
    Also, what version of Veristand are you using? What version of Windows are you PCs running?
    Regards,

  • ASM, Clusterware 11gR2, What log files do multipath errors get logged into?

    Hello Folks, I am running Oracle 11gR2 Grid Infrastructure, (Clusterware and ASM), on a two node Suse Linux cluster. (The databases are release 10.2.0.4.3.) All datafiles, flash, OCR and VOTE are on ASM managed disk.
    We have multipath configured properly and this weekend one of the paths to disk was offline for maintenance. Everything stayed up and running nicely. Whew!
    I know in testing this setup a few months back, there were log entries that appeared in one of the logs. This time around, I can't seem to locate the logfile that basically says: Multipath path 2 is offline, using only path 1. (I paraphrased there.) And of course the corresponding return to multipath functionality.
    Can anyone please point me to the proper location of these disk/multipath logs?
    Thanks, - tim

    Hi Graham,
    what are you tying to do? What is the task that fails?
    Its much easier to provide useful hints if we know what exactly the problem is.
    best,
    Christian

  • Failed to roll HTTP log file Error at Startup WL 8.1

    Hi people, i´m having the following error on the Weblogic 8.1 console at startup , the applications works fine but i´m always having this:
    ####<Oct 19, 2004 6:44:12 PM CDT> <Error> <HTTP> <computerName> <portalServer> <ExecuteThread: '11' for queue: 'default'> <<WLS Kernel>> <> <BEA-101242> <Failed to roll HTTP log file for the Web server: portalServer.
    java.io.IOException: Failed to rename log file on attempt to rotate logs
         at weblogic.servlet.logging.LogManagerHttp.rotateLog(LogManagerHttp.java:200)
         at weblogic.servlet.logging.LogManagerHttp.keepStatsAndRollIfNecessary(LogManagerHttp.java:349)
         at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:391)
         at weblogic.servlet.internal.HttpServer.log(HttpServer.java:1137)
         at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1192)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2590)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    Does anyone know what do i need to do in order to solve this problem??
    thanks a lot
    Guillermo De La Rosa

    I'm having the same error message. I also noticed that the server is running a bit slower and that beasvc.exe is using more memory that usual.Has anyone logged a technical support case??
    Thanks.
    ####<Sep 20, 2005 10:15:28 AM EDT> <Info> <HTTP> <ddca2401> <myserver> <ExecuteThread: '44' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-101047> <[ServletContext(id=17209502,name=apps,context-path=/apps)] /*: Using standard I/O>
    ####<Sep 20, 2005 10:15:28 AM EDT> <Error> <HTTP> <ddca2401> <myserver> <ExecuteThread: '44' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101242> <Failed to roll HTTP log file for the Web server: myserver.
    java.io.IOException: Failed to rename log file on attempt to rotate logs
         at weblogic.servlet.logging.LogManagerHttp.rotateLog(LogManagerHttp.java:200)
         at weblogic.servlet.logging.LogManagerHttp.keepStatsAndRollIfNecessary(LogManagerHttp.java:349)
         at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:388)
         at weblogic.servlet.internal.HttpServer.log(HttpServer.java:1153)
         at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1197)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2574)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

  • Renaming log file

    I am using Daily Rolling File Appender to generate log files.
    Currently my log files are generated as "Filename.log.date"
    I would like to rename this as "Filename.log.sequence of numbers" like
    "Filename.log.1", "Filename.log.2" and so on.
    Also as each day passes, the file which was named as "Filename.log.1" should be renamed as "Filename.log.2"
    Please provide suggestions as to what to do.
    Edited by: thomas27 on Jan 27, 2008 11:09 PM

    I guess you did not understand my question
    Here's the code
    import java.io.File;
    import java.util.Calendar;
    import java.util.Timer;
    import org.apache.log4j.Level;
    import org.apache.log4j.Logger;
    import org.apache.log4j.PatternLayout;
    import org.apache.log4j.DailyRollingFileAppender;
    public class LogManager{
         public static Logger logger = null;
         private static String logFileName = "filename.log";
         private static int numberOfLogsFilesToKeep = 10;
          * Method initialize initializes logging related parameters.
          * @param logFolderPath The log folder path
          * @param logLevel The log level for filtering
         public static void initialize(String logFolderPath, String logLevel){
              try{
                   logger = Logger.getLogger(LogManager.class);
                   PatternLayout layout = new PatternLayout("%d [%-5p] %C %M():: %m"+"/");
                   String pattern = "'.'yyyy-MM-dd";
                   DailyRollingFileAppender appender = null;
                                  appender.activateOptions();
                   logger.addAppender(appender);
                   logger.setLevel(Level.toLevel(logLevel));In my Daily Rolling File Appender, the log file will be generated as filename.log.2008.1.28 . I want to rename it as filename.log.1, filename.log.2 and so on as a sequence.

  • Java.io.IOException: Deserialization failed, format CollectionFormat(public java.util.ArrayList())

    I am trying to retrieve a list from coherence cache and when I try to test my cache I get the following exception
    Exception in thread "main" (Wrapped) java.io.IOException: Deserialization failed, format CollectionFormat(public java.util.ArrayList())
      at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ConverterFromBinary.convert(PartitionedCache.CDB:4)
      at com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1655)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.get(PartitionedCache.CDB:1)
      at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
      at com.sesco.cohc.cohc_RegionalForecastedGen.getLatestDataForDataSource(cohc_RegionalForecastedGen.java:32)
      at com.sesco.cohc.cohc_RegionalForecastedGen.main(cohc_RegionalForecastedGen.java:172)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
    Caused by: java.io.IOException: Deserialization failed, format CollectionFormat(public java.util.ArrayList())
      at org.gridkit.coherence.utils.pof.ReflectionPofSerializer.internalDeserialize(ReflectionPofSerializer.java:105)
      at org.gridkit.coherence.utils.pof.ReflectionPofSerializer.deserialize(ReflectionPofSerializer.java:92)
      at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
      at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
      at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:368)
      at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)
      at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)
      ... 11 more
    Caused by: java.io.IOException: Failed to deserialize java.util.ArrayList instance
      at org.gridkit.coherence.utils.pof.ReflectionPofSerializer$CollectionSerializer.deserialize(ReflectionPofSerializer.java:317)
      at org.gridkit.coherence.utils.pof.ReflectionPofSerializer.internalDeserialize(ReflectionPofSerializer.java:101)
      ... 17 more
    Caused by: java.io.EOFException
      at com.tangosol.io.AbstractByteArrayReadBuffer$ByteArrayBufferInput.readPackedInt(AbstractByteArrayReadBuffer.java:430)
      at com.tangosol.io.pof.PofBufferReader$UserTypeReader.complete(PofBufferReader.java:3819)
      at com.tangosol.io.pof.PofBufferReader.readCollection(PofBufferReader.java:2452)
      at org.gridkit.coherence.utils.pof.ReflectionPofSerializer$CollectionSerializer.deserialize(ReflectionPofSerializer.java:306)
      ... 18 more
    I am not sure why I am getting the error. Any help would be appreciated

    You were using the ReflectionPofSerializer coded by Alexey.   If you are pretty sure that the object you retrieved was stored using the same serializer, might want to contact Alexey to see if he can help you out.
    ReflectionPofSerializer - gridkit - ReflectionPofSerializer project page - A home for code misc usefull code related …

Maybe you are looking for

  • Which one of these two drives would you recommend and why

    Hello, I am planning on adding an external HD to be used with Time Machine. I was looking at a WD My Book Studio LX 2 TB FireWire 800, then I saw another WD - 2 TB My Book Studio II. While the first look very nice and sleek with its aluminum case, an

  • MacBook Pro Retina, won't boot with USB3 attached.

    Hi! Enjoying my new computer(ofcourse), thought i ran into a troublesome problem: I plugged in Flashdrive 2, restarted and starting to hold alt to get into the boot menu. But it never showed up(tested for about 5min), the screen showed up in gray, bu

  • Reconcile XI dev and prod

    Hi, In many projects there is a practice of copying the production environment to the development for ABAP side of solutions. Is there similar practice for the Java side for XI. Thanks and Regards Venkat

  • Starting/stopping mobile server

    Hi This is a two part question dealing with the starting and stopping of mobile server... To start the mobile server via win cmd line, I use java -jar oc4j.jar. How should I stop the server in this scenario? I have been using cntr-C in the dos window

  • Problem while doing the demo ADF for Forms/4GL Developers

    Hi I am running the demo for ADF for Forms/4GL Developers. At Chapter 10(Enabling Security), in page 10-5, they have asked to copy META-INF folder and it should contain jazn-data.xml and orion-application.xml. But in my META-INF folder , i can only f