【发布时间】:2013-01-15 09:08:11
【问题描述】:
要解决的问题
我在 Lotus Domino 8.5.3 服务器上的数据库中有一个 java 代理,用于在网络驱动器上创建导出数据。代理的签名者列在服务器文档的所有可编程性限制字段中。服务器的windows用户名添加到所有访问的文件夹,除了“完全访问”和“特殊权限”。代理不能在网络驱动器上创建文件,但可以在本地驱动器上创建文件。
错误消息(Domino 服务器日志)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') printing: NotersMain: Can't find resource for bundle java.util.PropertyResourceBundle, key file_operation_not_allowed
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key file_operation_not_allowed
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at java.util.ResourceBundle.getObject(ResourceBundle.java:407)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at java.util.ResourceBundle.getString(ResourceBundle.java:421)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at lotus.notes.JavaString.getFormattedString(Unknown Source)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at lotus.notes.AgentSecurityManager.checkWrite(Unknown Source)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at java.io.FileOutputStream.<init>(FileOutputStream.java:180)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at java.io.FileOutputStream.<init>(FileOutputStream.java:81)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at java.io.FileWriter.<init>(FileWriter.java:57)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at ExportDocumentFilteredFields.export(Unknown Source)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at JavaAgent.NotesMain(Unknown Source)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at lotus.domino.AgentBase.runNotes(Unknown Source)
2013.01.15 09:32:42 AMgr: Agent ('excelExport|excelExport' in 'Applications\ExcelJavaExport\ExcelJavaExport.nsf') error message: at lotus.domino.NotesThread.run(Unknown Source)
问题
什么会导致这个问题,以及如何解决这个问题?
【问题讨论】:
-
将您的代理安全级别设置为 2 或 3。
-
@SimonODoherty 如果它可以在本地驱动器上创建文件(我理解是指服务器本地驱动器)我相信这不是问题。
-
你是如何运行代理的?预定,使用 URL 还是使用 Notes 客户端?
-
不想做一个完整的答案,因为不够继续。但是写入网络驱动器通常很麻烦,因为您需要正在运行的进程才能访问驱动器。因此,如果您有访问权限,但 Domino 服务器在系统帐户下运行,它将没有访问权限(除非您授予系统帐户访问权限)。
-
一种解决方法是让代理使用 FTP 而不是文件系统访问来创建文件。当然,客户必须在预定目的地启用 FTP 服务。