Trace File in WCC 11g in Windows is not Rotated Correctly Due to java.io.IOException (Doc ID 1394891.1)

Last updated on DECEMBER 08, 2016

Applies to:

Oracle WebCenter Content - Version 11.1.1.3.0 to 11.1.1.6.0 [Release 11g]
Information in this document applies to any platform.
checked for Currency 19-JUL-2013

Symptoms

In WebCenter Content (formerly Universal Content Management (UCM)) 11g, server output is printed in a trace file.  The output is rotated for each 1MB (you can control by using the FileSizeLimit parameter).


However, the log rotation of the trace file may fail.  When the issue occurs, the following error is reported in stdout of WebLogic Server (*)

(*) you can see it in command prompt if launching the server by startManagedWeblogic.cmd.
java.io.IOException
        at intradoc.common.RollingFileOutputStream.handleCurrentRename(RollingFileOutputStream.java:540)
        at intradoc.common.RollingFileOutputStream.checkOutput(RollingFileOutputStream.java:298)
        at intradoc.common.RollingFileOutputStream.write(RollingFileOutputStream.java:244)
        at intradoc.common.ForkedOutputStream.write(ForkedOutputStream.java:95)
        at java.io.PrintStream.write(PrintStream.java:430)
        at intradoc.common.DefaultTraceImplementor.outln(DefaultTraceImplementor.java:586)
        at intradoc.common.DefaultTraceImplementor.traceWithOptions(DefaultTraceImplementor.java:249)
        at intradoc.common.DefaultTraceImplementor.trace(DefaultTraceImplementor.java:199)
        at intradoc.common.DefaultReportHandler.message(DefaultReportHandler.java:438)
        at intradoc.common.DefaultReportDelegator.message(DefaultReportDelegator.java:134)
        at intradoc.common.Report.messageInternal(Report.java:172)
        at intradoc.common.Report.message(Report.java:145)
        at intradoc.common.Report.trace(Report.java:240)
        at intradoc.common.TracingOutputStream.flush(TracingOutputStream.java:111)
        at intradoc.common.TracingOutputStream.write(TracingOutputStream.java:164)
        at intradoc.common.ForkedOutputStream.write(ForkedOutputStream.java:95)
        at java.io.OutputStream.write(OutputStream.java:58)
        at intradoc.server.Service.sendResponse(Service.java:1832)
        at intradoc.server.Service.buildResponsePage(Service.java:1332)
        at intradoc.server.Service.doResponse(Service.java:2076)
        at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
        at intradoc.server.Service.doRequest(Service.java:1890)
        at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
             :
             :
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: intradoc.common.ServiceException: !syFileUtilsTargetFileNoAccess!syFileUtilsUnableToRenameFile,C:/oracle/Middleware/user_projects/domains/base_domain/ucm/cs/data/trace/idccs_UCM_server1_current.log,C:/oracle/Middleware/user_projects/domains/base_domain/ucm/cs/data/trace/idccs_UCM_server1_1317356156631.log
        at intradoc.common.FileUtils.renameFileEx(FileUtils.java:1661)
        at intradoc.common.FileUtils.renameFile(FileUtils.java:1542)
        at intradoc.common.RollingFileOutputStream.handleCurrentRename(RollingFileOutputStream.java:529)
        ... 62 more

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms