XMl Publisher Reports Fail with java.io.FileNotFoundException on Temp Directory After Cloning

摘自metalink[1189764.1]


Applies to:

BI Publisher (formerly XML Publisher) -Version 11.5 to 12.0 [Release 11.5 to 12.0]
Information in this document applies to any platform.

Symptoms

After cloning it is not possible to view the XMLoutput for XML Publisher reports.

ERROR
-----------------------
Template code: XLAACCPB01
Template app: XLA
Language: en
Territory: US
Output type: RTF
java.io.FileNotFoundException :  /usr/tmp/ GEBSPRD/xdoVd662pSV0H081910_0326124500.fo (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1659)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:969)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:259)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Clone environment
2. Run XML Publisher
3. View Output
4. Output only displays the raw xml tags

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot view XML Output on the cloned environment

Cause

The Temporary directory for XML Publisher has not beenmodified after making the clone

Check the setup in the XML Publisher administrator responsibility
XML Publisher Administrator: Properties -> General -> Temporary Directory

Note that the value Post Clone is still the same as the value on the Sourceenvironment

Solution

1) Create a new Temporary Directory on OS level for thecloned environment
2) Make sure that the APPLMGR can Read and Write this directory
3) Setup this new directory for XML Publisher via : XML PublisherAdministrator: Properties -> General -> Temporary Directory
4) Restart the Server
5) Test again with a XML Publisher Report




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
java.io.FileNotFoundExceptionJava中的一个异常类,表示无法找到指定的文件或目录。它通常在文件操作中出现,当尝试打开或读取一个不存在的文件时会抛出该异常。 引用中的错误信息显示了一个java.io.FileNotFoundException异常的示例。该异常的原因是拒绝访问,可能是由于文件不存在或者没有足够的权限来访问该文件。 引用提到了可能导致java.io.FileNotFoundException异常的两个原因。第一个原因是文件不存在,即指定的文件路径不正确或文件被删除。第二个原因是权限被拒绝,即当前用户没有足够的权限来访问该文件。 如果你遇到java.io.FileNotFoundException异常,你可以按照以下步骤来解决问题: 1. 确保文件路径正确:检查文件路径是否正确,包括文件名和文件所在的目录路径。 2. 检查文件是否存在:确认文件是否存在于指定的路径中。你可以使用文件对象的exists()方法来检查文件是否存在。 3. 检查文件权限:如果文件存在但仍然抛出java.io.FileNotFoundException异常,那么可能是由于权限问题。你可以检查当前用户是否具有足够的权限来访问该文件。 以下是一个示例代码,演示了如何处理java.io.FileNotFoundException异常: ```java import java.io.File; import java.io.FileNotFoundException; public class FileExample { public static void main(String[] args) { String filePath = "path/to/your/file.txt"; File file = new File(filePath); try { // 尝试打开文件 Scanner scanner = new Scanner(file); // 读取文件内容 while (scanner.hasNextLine()) { String line = scanner.nextLine(); System.out.println(line); } // 关闭文件 scanner.close(); } catch (FileNotFoundException e) { // 处理文件不存在的情况 System.out.println("文件不存在:" + e.getMessage()); } } } ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值