My Oracle Support Banner

Coherence JMX Reporter Has Issues When Creating Files If The Configured Output-Directory Does Not Have A Trailing Slash (Doc ID 2002254.1)

Last updated on SEPTEMBER 10, 2018

Applies to:

Oracle Coherence - Version 3.5.0 to 12.1.2.0.4 [Release AS10g to 12c]
Information in this document applies to any platform.

Symptoms

The Coherence JMX Reporter group configuration file allows the configuration of the target output directory.

e.g.

<report-group xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
              xmlns="http://xmlns.oracle.com/coherence/coherence-report-group-config"
              xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-report-group-config coherence-report-group-config.xsd">
 
  <frequency>1m</frequency>
  <output-directory system-property="tangosol.coherence.reporter.output.directory">./</output-directory>
  <report-list>
...
  </report-list>
</report-group>

 

Errors like the following might  occur if the output directory had not been defined with a trailing slash ("/").

2015-04-01 00:37:21.552 Oracle Coherence GE 12.1.2.0.3(thread=Reporter,member=2,location=site:1,machine:japp-t7-e-60-if1,process:16318):(Wrapped: Invalid or unable to create output file.) java.io.IOException: Permission denied
  at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
  at com.tangosol.coherence.reporter.Reporter.getFile(Reporter.java:535)
  at com.tangosol.coherence.reporter.Reporter.run(Reporter.java:140)
  at com.tangosol.coherence.reporter.ReportBatch.run(ReportBatch.java:120)
  at com.tangosol.util.TaskDaemon$PeriodicTask.run(TaskDaemon.java:475)
  at com.tangosol.util.TaskDaemon.run(TaskDaemon.java:394)
  at com.tangosol.util.TaskDaemon.run(TaskDaemon.java:114)
  at com.tangosol.util.Daemon$DaemonWorker.run(Daemon.java:804)
  at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Permission denied
  at java.io.UnixFileSystem.createFileExclusively(Native Method)
  at java.io.File.createNewFile(File.java:1006)
  at com.tangosol.coherence.reporter.Reporter.getFile(Reporter.java:528)
  ... 7 more

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.