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

Similar Messages

  • 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?

  • After renaming data file it failes during database open

    Hi,
    I took RMAN full back.
    Then i renamed datafile then restored and recovered. It goes fine.
    But during the daabase open it fails with
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
    Any specific reason for that?
    =======================================================
    Recovery Manager: Release 11.2.0.1.0 - Production on Thu Jul 22 01:19:30 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN> backup database;
    connected to target database: QA112ASM (DBID=3746246770)
    RMAN>
    Starting backup at 22-JUL-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=145 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00001 name=+OBTDG1/qa112asm/datafile/system01.dbf
    input datafile file number=00003 name=+OBTDG1/qa112asm/datafile/rbs01.dbf
    input datafile file number=00002 name=+OBTDG1/qa112asm/datafile/sysaux01.dbf
    input datafile file number=00004 name=+OBTDG1/qa112asm/datafile/temp01.dbf
    input datafile file number=00005 name=+OBTDG1/qa112asm/datafile/tools01.dbf
    input datafile file number=00006 name=+OBTDG1/qa112asm/datafile/users01.dbf
    input datafile file number=00007 name=+OBTDG1/qa112asm/datafile/vindx.dbf
    channel ORA_DISK_1: starting piece 1 at 22-JUL-10
    channel ORA_DISK_1: finished piece 1 at 22-JUL-10
    piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=TAG20100722T011934 co
    mment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    including current SPFILE in backup set
    channel ORA_DISK_1: starting piece 1 at 22-JUL-10
    channel ORA_DISK_1: finished piece 1 at 22-JUL-10
    piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back09ljcra0_1_1 tag=TAG20100722T011934 co
    mment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 22-JUL-10
    RMAN> shutdown immediate
    Oracle instance shut down
    RMAN> startup mount
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area 275615744 bytes
    Fixed Size 2168944 bytes
    Variable Size 184551312 bytes
    Database Buffers 83886080 bytes
    Redo Buffers 5009408 bytes
    RMAN>run(
    *run {*
    set newname for datafile '+OBTDG1/QA112ASM/users01.dbf' to '+OBTDG1/QA112ASM/users02.dbf' ;
    restore datafile '+OBTDG1/QA112ASM/users01.dbf';
    recover datafile '+OBTDG1/QA112ASM/users01.dbf' noredo;
    switch datafile '+OBTDG1/QA112ASM/users02.dbf' ;
    RMAN>
    2> 3> 4> 5> 6>
    executing command: SET NEWNAME
    Starting restore at 22-JUL-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=137 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00006 to +OBTDG1/QA112ASM/datafile/users02.dbf
    channel ORA_DISK_1: reading from backup piece /qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljc
    r97_1_1
    channel ORA_DISK_1: piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=T
    AG20100722T011934
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 22-JUL-10
    Starting recover at 22-JUL-10
    using channel ORA_DISK_1
    Finished recover at 22-JUL-10
    datafile 6 switched to datafile copy
    input datafile copy RECID=2 STAMP=724987222 file name=+OBTDG1/qa112asm/datafile/users02.dbf
    RMAN> alter database open;
    RMAN>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/22/2010 01:20:23
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
    =======================================================
    Edited by: user13310502 on Jul 23, 2010 4:49 AM

    as you can see..
    RMAN> sql "alter tablespace andreas offline";
    sql statement: alter tablespace andreas offline
    RMAN> run
    2> {
    3> set newname for datafile 8 to '+FRA';
    4> restore datafile 8;
    5> recover datafile 8;
    6> switch datafile 8;
    7> }
    executing command: SET NEWNAME
    Starting restore at 23-JUL-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00008 to +FRA
    channel ORA_DISK_1: reading from backup piece +FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763
    channel ORA_DISK_1: restored backup piece 1
    piece handle=+FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763 tag=TAG20100723T135242
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 23-JUL-10
    Starting recover at 23-JUL-10
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:00
    Finished recover at 23-JUL-10
    datafile 8 switched to datafile copy
    input datafile copy recid=7 stamp=725118807 filename=+FRA/remtest/datafile/andreas.3113.725118805
    RMAN> sql "alter tablespace andreas online";
    sql statement: alter tablespace andreas online
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 07/23/2010 13:53:33
    RMAN-11003: failure during parse/execution of SQL statement: alter tablespace andreas online
    ORA-01113: file 8 needs media recovery
    ORA-01110: data file 8: '+FRA/remtest/datafile/andreas.3113.725118805'
    RMAN> run
    2> {
    3> set newname for datafile 8 to '+FRA';
    4> restore datafile 8;
    5> switch datafile 8;
    6> recover datafile 8;
    7> }
    executing command: SET NEWNAME
    Starting restore at 23-JUL-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring datafile 00008
    input datafile copy recid=8 stamp=725118807 filename=+DATA/remtest/datafile/andreas.349.725036143
    destination for restore of datafile 00008: +FRA
    channel ORA_DISK_1: copied datafile copy of datafile 00008
    output filename=+FRA/remtest/datafile/andreas.3114.725118849 recid=9 stamp=725118849
    Finished restore at 23-JUL-10
    datafile 8 switched to datafile copy
    input datafile copy recid=10 stamp=725118850 filename=+FRA/remtest/datafile/andreas.3114.725118849
    Starting recover at 23-JUL-10
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 23-JUL-10
    RMAN> sql "alter tablespace andreas online";
    sql statement: alter tablespace andreas online

  • Log4j failed to rename - weblogic 10.3.5 - file handler

    Hi @all
    It's 3/4 months i've got a problem with log4j logging on weblogic 1035: it keeps output.log files locked with one or more handlers and the log4j's DailyRollingFileAppender is not able to roll every midnight. The results are very big log files (>100mb).
    This is the scenario so far:
    i work in a clustered production environment formed by 4 weblogic servers 10.3.5 running on 4 different virtual machines with windows server 2k3 R2.
    I've got several java webservices projects that use spring to initialize and target the log4j.xml in the filesystem (every machine in the cluster has a copy of the log4j.xml in its filesystem):
    Spring initialization bean:
    +<bean id="log4jInitialization" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">+
    +<property name="targetClass" value="org.springframework.util.Log4jConfigurer"/>+
    +<property name="targetMethod" value="initLogging"/>+
    +<property name="arguments">+
    +<list>+
    +                    <value>E:/Appl/logging/log4j.xml</value>+
    +</list>+
    +</property>+
    +</bean>+
    Log4J.xml
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">+
    +<log4j:configuration>+
    +     <appender name="file" class="org.apache.log4j.DailyRollingFileAppender">+
    +          <param name="File" value="E:/Appl/logging/test.log" />+
    +          <param name="DatePattern" value="'.'yyyy-MM-dd-hh-mm"/>+
    +          <layout class="org.apache.log4j.PatternLayout">+
    +               <param name="ConversionPattern" value="%d{ABSOLUTE} %5p [%c] (%F:%L) - %m%n" />+
    +          </layout>+
    +     </appender>+
    +     +
    +     <root>+
    +          <level value="INFO"/>+
    +          <appender-ref ref="file"/>+
    +     </root>+
    +     +
    +</log4j:configuration>+
    When i deploy my new application or restart a server everything is ok, but when i stop my application via weblogic console i can see that my log4j output file (test.log) keeps being locked by the jrockit process.
    If i restart the application i see that another handler is created and is locking the file (i repeated this process until i had 10 handlers keeping my file locked, then i restarted the nodes one by one).
    Since windows can't rename a file if it's locked by 1 or more handlers log4j always fails to rename files. Unfortunately i cannot use a custom appender that uses a different policy to rename files so i have to solve this issue via spring or via weblogic tuning.
    Anybody knows how to free these handlers?
    Thanks

    Hi,
    Try to increase severity of the server logging to avoid more logging.
    Avoid Debugs and and info and better select the severity to notice which will avoid more logging.
    Regards,
    Kal

  • 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

  • Failed to export the file to Sharepoint if the document library had been renamed

    Hi,
    We have encounter a problem that we failed to upload the files to Microsoft SharePoint 2007 through the SharePoint Connector. 
    The document library was initially created as doclibA, and renamed to docLibB
    When we configure the connector to upload the document, we found that it failed to upload to the library.
    And we have change back the name , and it could upload.
    Did anyone got any clue on it ?
    Janice

    Yes, we can upload the doc to doclibB using SharePoint UI
    and actually, the rename was done before the we setup the connector.
    we have deployed other forms in the same site (same livecycle, same sharepoint) before without any problem.

  • Can't rename a file using File.renameTo(...)

    Hi,
    I have a servlet, RenameFile, that receives audio file via HTTP Post and writes it to /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav. Then it creates directories under /alert_messages directory based on the timing parameters that it get. Finally, it renames /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav to /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV. RenameFile runs fine when it runs by itself (ONLY one Tomcat, jakarta-tomcat-4.1.30, is running). However, RenameFile fails to rename the /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav to /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV when it runs in a Linux box that jboss-3.2.1_tomcat-4.1.24 is also running. In this box, TWO versions of Tomcat are running at the same time. I set the /alert_messages directory with �chmod �R 777� and run jakarta-tomcat-4.1.30 as tomcat user. RenameFile fails the rename operation. But, it creates the /alert_messages/2005/06/22/22/00/ directories.
    It seem like RenameFile can create directory but can�t create file in the /alert_messages directory when both version of tomcats are running at the same time.
    Can it be due to both the jakarta-tomcat-4.1.30 and the jboss-3.2.1_tomcat-4.1.24 versions are running at the same time in one Linux box?
    Can this be Jboss prevented the operation?
    I did not receive any io exception!!!
    Any help in this issue is greatly appreciated.
    Debug listing from the RenameFile;
    - originalFilename: recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.toString(): /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.getName(): recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    - file.length(): 122986
    - file /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV
    - file NOT renamed /alert_messages/2005/06/22/22/00/79_0_200506222200_001.WAV
    File Listing in the /tmp directory create by RenameFile;
    -rw-r--r-- 1 tomcat tomcat 122986 Jun 22 07:33 recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
    Directoy Listing in the / directory with �ls �la�;
    drwxrwxrwx 3 tomcat tomcat 4096 Jun 22 07:28 alert_messages
    Directory created by the RenameFile with �ls -la /alert_messages/2005/06/22/22/00�;
    drwxr-xr-x 2 tomcat tomcat 4096 Jun 22 07:33 .
    drwxr-xr-x 3 tomcat tomcat 4096 Jun 22 07:33 ..
    Out put from catalina.out;
    !!!!! Can Read the old File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Write the old File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Not Read the new File !!!!!!!!!!!!!!!!!!!!
    !!!!! Can Not Write the new File !!!!!!!!!!!!!!!!!!!!
    !!!!! renameTo return false !!!!!!!!!!!!!!!!!!!!
    Code That rename a file:
      public synchronized String renameAlertMessageFile(String oldFileName,
                                String newFileName)
                throws SecurityException, NullPointerException
        File oldFile = null;
        File newFile = null;
        String result = null;
        StringBuffer myNewFileName = null;
        boolean renamed = false;
        try {
          int indexStringValue;
          int newFileLength;
          int indexOfPeriod;
          int indexOfLastUnderScore;
          int lengthOfExtension;
          boolean  Contin = true;
          String sNumber = null;
          String indexString = null;
          myNewFileName = new StringBuffer(newFileName);
          oldFile = new File(oldFileName);
          newFile = new File(myNewFileName.toString());
          if (oldFile.canRead() == false) {
            System.out.println(" !!!!!  Can Not Read the old File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Read the old File !!!!!!!!!!!!!!!!!!!!");
          if (oldFile.canWrite() == false) {
            System.out.println(" !!!!!  Can Not Write the old File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Write the old File !!!!!!!!!!!!!!!!!!!!");
          if (newFile.canRead() == false) {
            System.out.println(" !!!!!  Can Not Read the new File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Read the new File !!!!!!!!!!!!!!!!!!!!");
          if (newFile.canWrite() == false) {
            System.out.println(" !!!!!  Can Not Write the new File !!!!!!!!!!!!!!!!!!!!");
          } else {
            System.out.println(" !!!!!  Can Write the new File !!!!!!!!!!!!!!!!!!!!");
          renamed = oldFile.renameTo(newFile);
          if (renamed == false) {
            System.out.println(" !!!!!  renameTo return false !!!!!!!!!!!!!!!!!!!!");
        } catch (NullPointerException ex) {
          // Throw the same exception so that the caller may catch the
          //   exception and log the error
          System.out.println("NullPointerException For The New Dest File Name");
          ex.printStackTrace();
          throw ex;
        } catch (SecurityException seEx) {
          System.out.println("SecurityException For The New Dest File Name");
          seEx.printStackTrace();
          // Throw the same exception so that the caller may catch the
          //   exception and log the error
          throw seEx;
        } finally {
          if (renamed == true)
            return myNewFileName.toString();
          else
            return null;
      } // End renameAlertMessageFile

    Hi,
    Thank you for replying to my message. The servlet has been running for me for the last 12 months. However, it was running by itself without the Jboss-tomcat running on the same box. Can this be the catalina.policy file in the jboss-tomcat version restricted the rename operation. We are not allowed to write file under the umbrella of J2EE. But the servlet did not run within Jboss-tomcat. This really gets me thinking that something is not working correctly. Perhaps tomcat did not has the permission to write on the /alert_messages directory, again it did created the subdirectories under the /alert_messages.
    Any idea of what is going on?

  • Failed to install 1 file

    I recently upgraded to a Palm T/X and after a couple of issues with synchronizing and installing files I think I've  got the issues solved by changing the conduit of certain programs and upgrading to the new Palm Desktop (which I don't like as well as the old one but, Oh well!) it works OK specially installing files and that is all that matters.  My recent issue is with a program I bought to back up my Palm since I no longer could do it by just inserting the backup card and restoring or backing up. This is the message I get when synchronizing: Failed to install 1 file(s) - BackupBuddyVFS.PRC - Invalid handheld file (file deleted) -  Conduit Error: Invalid synchronization type (1012) - CONDERR_BAD_SYNC_TYPE.
    I appreciate any help I can get, hopefully this is the last issue I have and I can start enjoying my new Palm.
    Thanks!!!
    Post relates to: Palm TX
    This question was solved.
    View Solution.

    I upgraded from a Palm Zire72 and I'm pretty sure I followed the installation and synch instructions but I don't recall it asking to rename the backup file but I may be wrong.  I've downloaded other applications including NVBackup without any problems.  I guess I don't need it now since I have NVBackup but I paid for BackupBuddy and would like to see what it does.  The one thing I can tell you is that I deleted a few files that I thought I no longer needed to make some room such as a couple of games and AvantGo.  Hope this gives you some ideas and can help figure it out.
    Post relates to: Palm TX

  • Libre ~ Error 2038 "failed to open the file"

    Good morning.
    I have a Libre-eBook reader Pro.
    I have downloaded and synced from Kobo to my Libre with no problems.
    But when I try to download ebooks from the public library they download and open in Digital Editions just fine.  I drag and drop them into the bookshelf marked Libre-eBook Reader Pro.
    They show up when I turn on my ebook, but when I try to open them I get the 'failed to open the file'.
    I was also getting the Error 2038 in Digital Editions when I did the drag and drop thing.  I read through the forum and went through the steps recommended for the Nook ~ deleting the digital editions folder on my ebook and having Adobe reauthorize it.  I no longer get the 2038 error message in Adobe, but I am still unable to open the books from the library.
    I have tried deleting the books from ereader and ADE and redownloading from the Library.  Didn't help.
    Any other suggestions?
    Thanks.
    Heather

    Hi Ambs101010,
    Based on my research, the error can be caused by that the machine.config file is incorrect or corrupted. Please use the following steps to troubleshoot the issue and check if the error still occurs.
    1. Open the machine.config in Visual Studio and check if there is any syntax errors. If syntax errors exist, modify the machine.config file directly. For more details, please review this similar
    thread.
    2. If the error still persists, please follow the steps to replace the machine.config file. Another alternative method is to replace the current machine.config with the machine.config file from another computer.
          a.  Go to the folder C:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG
          b.  Rename the file machine.config to machine.config.old
          c.  Make a copy of the file machine.config.default and rename the copy to be machine.config
          d.  If your Operating System is 64-bit, go to the folder C:\windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG and repeat the above steps
          e.  Reboot your computer
    Thanks,
    Lydia Zhang

  • Where are the actual files/renaming those files?

    Hi all, I'm a new Mac user at home, and I'm exploring how iPhoto works. Since 1999, I've kept my digital photos straight using a manual method of folders labeled "Year" and inside that "01, 02, etc" and inside that "01 PhotoName" for something that happened on the 1st day of the month (following me?) With iPhoto, I gather this is much easier to manage because iPhoto seems to do all of this for me.
    I'm trying to understand how iPhoto is working. It seems that when I import a photo from my camera, it goes to a folder in "iphoto library"/originals/2007/album name/photoname (in my case, the file name is DSC02447). However, if I make any changes to that file within iPhoto (red eye, color, etc) it will create ANOTHER file in "iphoto library"/MODIFIED/2007/albumname/photoname. So, does that mean it's essentially duplicating my images?
    Also related, how can I rename the actual FILE? When I'm within iPhoto's Photo view, I can rename the title of the image by clicking the name below it, and renaming it to something other than DSC02447. However, in the "photo info" window, you can see the actual filename has NOT changed.
    If I would use iPhoto forever, that wouldn't be a big problem. However, I don't know what photo organizing program I'll be using in 10 years, but if it's not iPhoto, I don't want to be stuck with a whole lot of photos that I spent a bunch of time organizing and renaming within iPhoto, only to realize those changes were only within iPhoto.
    So along with those two questions, does anyone have a website that explains the "inner workings" of iPhoto better than the Apple site? All I can find on here is "here's all the great things iPhoto does" but I can't really find deep tutorials on "this is actually what's happening to your files."
    Many, many thanks everyone.

    Carl
    I'm trying to understand how iPhoto is working. It seems that when I import a photo from my camera, it goes to a folder in "iphoto library"/originals/2007/album name/photoname (in my case, the file name is DSC02447). However, if I make any changes to that file within iPhoto (red eye, color, etc) it will create ANOTHER file in "iphoto library"/MODIFIED/2007/albumname/photoname. So, does that mean it's essentially duplicating my images?
    Duplicating? No, but it is preserving your original file - as a kind of digital negative. Essentially, all operations are carried out on a copy of the file, at any time you can go Photos -> revert to original. In this iPhoto is implementing the best practise of Digital Asset Management.
    If you don't wan that feature, then bluntly, don't use iPhoto. It's hard wired into the application and cannot be turned off. There are various hacks that claim to remove unwanted versions but each of them put the integrity of your library at risk.
    It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss
    Also related, how can I rename the actual FILE? When I'm within iPhoto's Photo view, I can rename the title of the image by clicking the name below it, and renaming it to something other than DSC02447. However, in the "photo info" window, you can see the actual filename has NOT changed.
    You can't. You can copy the files to the desktop and rename them before import (FileList is pretty good for this) or, if you export them using the File -> Export command you have the opportunity to use your Title as a filename on the exported version. (That's your future proofing, right there - you can also write you keywords to the file too.) But if you rename the files while they are in iPhoto, then you change the path to the files and that brings you to my warning above, about making changes in the iPhoto Library Folder.
    So along with those two questions, does anyone have a website that explains the "inner workings" of iPhoto better than the Apple site? All I can find on here is "here's all the great things iPhoto does" but I can't really find deep tutorials on "this is actually what's happening to your files."
    Here?
    Regards
    TD

  • Renaming typedef file caused constants reset

    Hello!
    Here's a short description of the problem I encountered:
    I renamed the filename of the typedef that was used in my state machine for state coding (see for example State Machine template shipped with LV). As result I lost values of ALL constants that coded states in my state machine, i.e. they were reset to value of the first value in state enum.
    Note: when opening state machine that used the typedef
    I got the message something like "VI was changed in memory. Reload from disk or view from the memory?". And 2 buttons: View and Discard. I clicked "View".
    Then after restoring all constants manually, I saved my work to archive and tried to rename typedef file again, the result was the same - all constants reset to first value of enum.
    I restored files from archive, again renamed typedef file,
    then closed my app WITHOUT saving state machine that used typedef. After opening my program I got the message "Searching for my typedef", pressed "Browse..." and loaded typedef from renamed file. Constants were left without any change (uh-r-r-a!).
    Before posting this message to forum I tried to make an example to show the problem, but o-o-ps I failed to do it.
    It didn't repeat even with my program.
    This post can't be considered as bug report, as I can't repeat the problem. But I think the problem exists as I lost values of all constants after renaming typedef file, and this is the fact.
    So my advice (that old as the world) to everybody is to save work even when innocent actions are made such as renaming typedef file names.
    Probably somebody encountered this problem and knows how to repeat it.
    Thanks for attention.
    Any comments appreciated.
    Rashid.
    Using LV 8.0 (LV Run Time Engine 8.0.1) on Win XP with Russian locale, all VIs used in my programs have names in cyrillic sometimes mixed with english letters, e.g. "russian name (typedef).ctl".

    Hello, Charlie,
    I can say absolutely sure that I always used LabView to rename my typedef file. I never use Windows Explorer to rename typedef files (or any other LV files) in my practice.
    Besides, when the values of my constants were reset there wasn't any broken wires. The block diagram wasn't corrupted. Everything was fine except default values of my constants. Due to that I noticed this error a little later - after renaming typedef file I ran my program and couldn't understand why it fails to act as should. When debugging this problem I went down to my state machine and only then I saw that all my state constants are reset to default values.
    I never used "Substitute copy for original". I used only
    "Rename" when renaming my typedef file.
    I didn't add any items to my typedef. The only things I did are:
    - renaming my typedef enum label in the *.ctl file;
    - and "Save as.." -> "Rename..." - renaming my typedef file.
    Besides, when I did try renaming 2nd time to reproduce such behaviour: I left typedef enum label without change and the behaviour was the same.
    So, such behaviour (loosing constant values) I get TWO times.
    But after I worked around this (see 1st post) I couldn't already reproduce this behaviour.
    If I'll succeed in this one more time again, and be able to reproduce this behaviour, I'll certainly post to you my steps.
    Thanks for attention.
    Rashid.
    P.S.
    1. As to broken wires if I get it right - in your case you added new items to typedef but your case structure in state machine was not updated to contain new states handlers. If so, then it's obvious why you got broken wires. But as I didn't change the typedef itself (only renamed it), I didn't get broken wires.
    2. I wouldn't be surprised if I'd have done something in the weird way: I mean renaming by Explorer or saving, closing and so on. I was doing everything from the LabView environment. As far as I remember I didn't rename the state machine vi file at that, only typedef file. And my state machine was always opened. The only file I was opening/renaming/closing was typedef file. And as far as I remember I opened it by "File -> Open..." and not right-clicking at constant and "Open TypeDef..".
    3. I understand that my description is foggy :-) and that it's difficult to find this weird set of steps, but who knows. Anyway I appreciate your help.Message Edited by Rashid on 06-13-2006 12:03 PM

  • ERROR: Failed to process XAP file - Windows Phone 8 Cordova project

    I am having trouble running the Store Test Kit on my Cordova Windows Phone 8 app, using Visual Studio 2013. I can deploy to the device
    fine, but when it comes to submitting I get the following error
    ERROR - Failed to process XAP file: CordovaAppProj_Release_AnyCPU.xap
    I have tried to rebuild the project multiple times, closed and opened the test kit and visual studio but no luck. Looking around the
    internet, similar problems were occurring but nothing worked.
    I have tried renaming the XAP file created, and even changing its extension to a .zip to find incorrect files that may be causing problems, but nothing.
    After rebuilding my project I don't receive an errors of any kind so I am totally stumped!

    thanks for your kind reply,
    But result is same
    PM>  Install-Package System.Spatial -Version 5.6.0
    Installing 'System.Spatial 5.6.0'.
    You are downloading System.Spatial from Microsoft Corporation, the license agreement to which is available at http://go.microsoft.com/?linkid=9809688. Check the package for additional dependencies, which may come with their own license agreement(s). Your use
    of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
    Successfully installed 'System.Spatial 5.6.0'.
    Adding 'System.Spatial 5.6.0' to Appify.
    Uninstalling 'System.Spatial 5.6.0'.
    Successfully uninstalled 'System.Spatial 5.6.0'.
    Install failed. Rolling back...
    Install-Package : Could not install package 'System.Spatial 5.6.0'. You are trying to install this package into a project that targets 'WindowsPhoneApp,Version=v8.1', but the
    package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
    At line:1 char:2
    +  Install-Package System.Spatial -Version 5.6.0
    +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
    Not only this reference, so many other references also not yet ready or not supporting windows phone 8.1 RT apps. 
    I am converting windows phone 8 app to windows phone 8.1 RT , for that I need WindowsAzure Storage reference.

  • Failed to load XML file

    We are using RH10, output with WebHelp Pro. We recently upgraded our projects from RH9 to RH10. Performing a search in our online help generates the following error message: Failed to load XML file.
    Is anyone else experiencing this issue? Any resolutions for this problem?
    Thank you in advance for any help!

    Hello again
    If by "new specification" you mean that WebHelp Pro should only be used with RoboHelp Server, that would be a NO. It's always been the case that the "Pro" output was intended for use with RoboHelp Server. Now it could well be that RoboHelp 10 Pro output isn't as "forgiving" as earlier versions have been. I'm not sure.
    Unfortunately we see so so many folks just gravitate right toward the "Pro" output in the misguided belief that it is somehow better or has more bells and whistles than the basic WebHelp has. But that's never been the case. What HAS always been the case is that the code driving things has been configured to work with the code on the RoboHelp server.
    One change that I believe has occurred has been a renaming of the XML files that are created. So that may factor in here. I'm not sure. It might be best for you to just generate WebHelp output, then wholesale delete all the files from the server and publish fresh.
    Cheers... Rick

  • Silent installation fails registering gwab1.ocx file on W7

    Silent installation is failing for GroupWise Windows Client 8.0.3 HP2 and HP3 on Windows 7 Sp1.
    Problem is very similiar to KB7005755
    Support | Silent installation fails registering gwab1.ocx file on Windows 7.
    C++ 10 is already installed
    I also installed C++ 2005 (version that comes with GroupWise Client)
    Install occuring in the following order
    WSE3.msi
    MSXML.MSI
    groupwise.msi
    msiexec /i groupwise.msi transform=groupwiseNONotify.mst /passive /L*V c:\gw.log
    or via ZCM 11.2 Install MSI
    /i "groupwise.msi" /qb /passive
    Experiencing same problem whether I run with batch file or ZCM 11.2
    User is in the Administer Group. UAC is off.
    Transform created using GroupWise 8 Tuner.
    Install rolls back after putting GroupWise icon on desktop.
    Below is an extraction from the verbose msi log:
    MSI (s) (A4:0C) [10:59:10:701]: Executing op: RegAddValue(,Value=IADDLMembersIterator,)
    MSI (s) (A4:0C) [10:59:10:701]: Executing op: ActionStart(Name=SelfRegModules,Description=Regist ering modules,Template=File: [1], Folder: [2])
    MSI (s) (A4:0C) [10:59:10:701]: Executing op: ProgressTotal(Total=24,Type=1,ByteEquivalent=13000 00)
    MSI (s) (A4:0C) [10:59:10:701]: Executing op: SetTargetFolder(Folder=C:\Program Files\Novell\GroupWise\)
    MSI (s) (A4:0C) [10:59:10:701]: Executing op: RegSelfReg(File=gwab1.ocx,FileID=gwab1.ocx)
    CustomAction +gwab1.ocx returned actual error code -2147010895 (note this may not be 100% accurate if translation happened inside sandbox)
    MSI (s) (A4:0C) [10:59:11:613]: Product: GroupWise -- Error 1904.Module C:\Program Files\Novell\GroupWise\gwab1.ocx failed to register. HRESULT -2147010895. Contact your support personnel.
    Error 1904.Module C:\Program Files\Novell\GroupWise\gwab1.ocx failed to register. HRESULT -2147010895. Contact your support personnel.
    MSI (s) (A4:0C) [10:59:11:663]: User policy value 'DisableRollback' is 0
    MSI (s) (A4:0C) [10:59:11:663]: Machine policy value 'DisableRollback' is 0
    Action ended 10:59:11: InstallFinalize. Return value 3.
    MSI (s) (A4:0C) [10:59:11:683]: Executing op: Header(Signature=1397708873,Version=500,Timestamp= 1116821301,LangId=1033,Platform=0,ScriptType=2,Scr iptMajorVersion=21,ScriptMinorVersion=4,ScriptAttr ibutes=1)

    I tried the following:
    -Rename WMS.exe to WMS.exe.old to make sure it will not get installed.
    -Create an application for CDO and put that application as a pre requisite for Groupwise.
    In my task sequence, before groupwise is being installed, the CDO component will get installed first.
    In my latest test, the installation of groupwise failed with the same error message then before.
    For the installation step, I am using this command line: "WIN32\setup.exe" /s /V"/qn /le C:\Groupwise.log"
    The task sequence will download the files into is cache then start the install appending the path to the exe file to the command line. All the files are present in the cache folder.
    The VCRedist 2005 is installed prior to the installation by another software but I did made some test that let Groupwise installed is own VCRedist. Still an error message.
    The exact error message is: Error 1904.Module C:\Program Files (x86)\Novell\Groupwise\gwab1.ocx failed to register. HRESULT -2147010895. Contact your support personnel.
    I am deploying Groupwise during a task sequence on Windows 7 SP1 with IE9 and .Net 4.0 installed with some update. At the moment groupwise is installed as the second software.
    The version being installed is gw8.0.3HP3_client_win_multi.
    When installing the previous version, using the same exact task sequence, there is no error and the installation is done.
    I did validate that the Windows NT Messaging was not installed.
    If I can provide any othe information please let me know.
    Mathieu

  • Bulk rename of files in subfolders

    Hello All
    I have a folder containing 40 subfolders, and inside each of these subfolders are a number of files (between 4 and 45 each) totalling over 500 files.
    Each filename starts with a string "orginalstring".
    What I would like is the easiest way (whether using Automator or not) to replace all 500+ "orginalstring" with "replacementstring".
    Many thanks for your help. Philip

    Although the original poster's problem is long solved and it doesn't directly help.  Here is an appleapplescript that will perform a batch rename of selected files with ne names provided in a .csv file.  SImply open applescript, paste in an run.  Its not the most robust - it will fail if you try to create duplicate files, but for the most part it does a good job for a quick and dirty.... Beanlander
    -- Bulk Rename files from .csv file
    on run {}
        set file_NewFilenames to choose file with prompt "Choose .csv file containing new filenames"
        set files_ToBeRenamed to choose file with prompt "Choose files to be renamed" with multiple selections allowed
        set filedata_NewFilenames to read file_NewFilenames
        set list_NewFilenames to paragraphs of filedata_NewFilenames
        -- determine the maximum number of files that can be renamed
        set num_MaxFilesToRename to count of list_NewFilenames
        if num_MaxFilesToRename > (count of files_ToBeRenamed) then
            set num_MaxFilesToRename to count of files_ToBeRenamed
        end if
        --display dialog "Renaming " & num_MaxFilesToRename & " files…"
        repeat with i from 1 to num_MaxFilesToRename
            try
                set fileToBeRenamed to item i of files_ToBeRenamed
                set newName to item i of list_NewFilenames
                set AppleScript's text item delimiters to "\""
                set newName to (text items of newName)
                set AppleScript's text item delimiters to ""
                set newName to (newName as string)
                --display dialog newName as text
                tell application "Finder"
                    set filenameExtension to name extension of fileToBeRenamed
                    set name of fileToBeRenamed to newName & "." & filenameExtension
                end tell
            on error
                display dialog "Could not rename: " & fileToBeRenamed giving up after 3
            end try
        end repeat
    end run

Maybe you are looking for

  • Can't mount root

    Hi, I am trying to create a proper kernel for my headless server. I use a Intel SS4200. It holds four SATA drives and a single PATA drive, I believe. I have installed Arch in the PATA-drive and I want to boot from this. I use a 8 GB DOM similar to th

  • Adobe RoboHelp for Word 8.0 - Issues

    Hi I am using a Trial version of RoboHelp for Word 8.0, and would like to receive comments on the following issues: It would appear that Manual Page Breaks in the middle of a long topic (inserted for printing purposes), are causing the data from beyo

  • Change sales order delivery block

    Dear Friends I need to change a sales order delivery block VBAK-LIFSK. I am providing the new LIFSK in the selection screen. From my analysis I have to use FM: BAPI_SALESORDER_CHANGE. Please tell me what values I should pass to this FM to change my s

  • Alguien sabe como recuperar las fotos si el iphone se restauro sin copia de seguridad?

    alguien sabe como recuperar las fotos si el iphone se restauro sin copia de seguridad?

  • Will iMovie and iLife 08 work.....

    On a eMac 1.25 PowerPC G4 well?