在macOS Mojave上运行OpenJDK的Java 7.5 rev 5的SAP GUI上从Print Preview打印。

2020-09-09 07:35发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


由于我安装了Java 7.5 rev 5和OpenJDK的SAP GUI,因此无法从"打印预览"窗口中进行打印。 我在macOS Mojave上运行。 这是我得到的错误:

详细信息:

存在未捕获的AccessControlException:
 访问被拒绝(" java.io.FilePermission"" <<所有文件>>""执行")
 ==================================================  ===========
 请求环境
 ==================================================  ===========
 CS:/Applications/SAP%20Clients/SAPGUI%207.50rev5/SAPGUI%207.50rev5.app/Contents/Resources/Java/platinr3S.jar
 PL:com.sap.platin.base.security.SAPGUIPolicy
 PR:权限java.io.FilePermission" <<所有文件>>","执行";
 PR:规范文件名:/Applications/SAP Clients/SAPGUI 7.50rev5/<<所有文件>>
 ==================================================  ===========
 临时权限
 ==================================================  ===========
 密钥:loadFont的WebView权限
  {
     权限javafx.util.FXPermission" createTransparentWindow";
     权限javafx.util.FXPermission" loadFont";
 }
 钥匙:52d69a1c
  主体com.sap.platin.base.security.GuiSessionPrincipal" PRD:*:*:52d69a1c" {
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work/*","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp/*","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp/-","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work/-","读,写,删除";
     权限com.sap.platin.base.security.ApplicationPermission"/img/Users/leo/Desktop/-"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp/*"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work/*"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/img/Users/leo/Desktop/*"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work/-"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp/-"," openDocument";
 }
 密钥:IcePDF字体文件夹
  {
     权限java.io.FilePermission"/img/Library/Fonts"," read";
     权限java.io.FilePermission"/img/Network/Library/Fonts/*"," read";
     权限java.io.FilePermission"/img/Users/leo/Library/Fonts/*"," read";
     权限java.io.FilePermission"/img/Library/Fonts/*"," read";
     权限java.io.FilePermission"/img/Network/Library/Fonts"," read";
     权限java.io.FilePermission"/img/System/Library/Fonts/*"," read";
     权限java.io.FilePermission"/img/System/Library/Fonts"," read";
     权限java.io.FilePermission"/img/Users/leo/Library/Fonts"," read";
 }
 技术细节
 java.security.AccessControlException:访问被拒绝(" java.io.FilePermission"" <<所有文件>>""执行")
 位于:java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
 位于:java.base/java.security.AccessController.checkPermission(AccessController.java:895)
 位于:java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
 位于:java.base/java.lang.SecurityManager.checkExec(SecurityManager.java:572)
 位于:java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1096)
 位于:java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
 位于:java.base/java.lang.Runtime.exec(Runtime.java:591)
 在:java.base/java.lang.Runtime.exec(Runtime.java:415)
 位于:java.base/java.lang.Runtime.exec(Runtime.java:312)
 网址:org.icepdf.ri.common.PrintHelper.getUserPrinterProperty(PrintHelper.java:640)
 网址:org.icepdf.ri.common.PrintHelper.lookupDefaultPrintService(PrintHelper.java:611)
 网址:org.icepdf.ri.common.PrintHelper.lookForPrintServices(PrintHelper.java:590)
 位于:org.icepdf.ri.common.PrintHelper。(PrintHelper.java:102)
 位于:org.icepdf.ri.common.SwingController.initialisePrinting(SwingController.java:3793)
 网址:org.icepdf.ri.common.SwingController.lambda $ print $ 7(SwingController.java:3759)
 在:java.base/java.lang.Thread.run(Thread.java:834)
screen-shot-2019-02-24-at-005304.jpg (69.1 kB)

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


由于我安装了Java 7.5 rev 5和OpenJDK的SAP GUI,因此无法从"打印预览"窗口中进行打印。 我在macOS Mojave上运行。 这是我得到的错误:

详细信息:

存在未捕获的AccessControlException:
 访问被拒绝(" java.io.FilePermission"" <<所有文件>>""执行")
 ==================================================  ===========
 请求环境
 ==================================================  ===========
 CS:/Applications/SAP%20Clients/SAPGUI%207.50rev5/SAPGUI%207.50rev5.app/Contents/Resources/Java/platinr3S.jar
 PL:com.sap.platin.base.security.SAPGUIPolicy
 PR:权限java.io.FilePermission" <<所有文件>>","执行";
 PR:规范文件名:/Applications/SAP Clients/SAPGUI 7.50rev5/<<所有文件>>
 ==================================================  ===========
 临时权限
 ==================================================  ===========
 密钥:loadFont的WebView权限
  {
     权限javafx.util.FXPermission" createTransparentWindow";
     权限javafx.util.FXPermission" loadFont";
 }
 钥匙:52d69a1c
  主体com.sap.platin.base.security.GuiSessionPrincipal" PRD:*:*:52d69a1c" {
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work/*","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp/*","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp/-","读,写,删除";
     权限java.io.FilePermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work/-","读,写,删除";
     权限com.sap.platin.base.security.ApplicationPermission"/img/Users/leo/Desktop/-"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp/*"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work/*"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/img/Users/leo/Desktop/*"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/work/-"," openDocument";
     权限com.sap.platin.base.security.ApplicationPermission"/var/folders/n3/0g6kh9_j1cl0x0wsr2kjy23w0000gn/T/leo/SAPGUI/PRD.52d69a1c/tmp/-"," openDocument";
 }
 密钥:IcePDF字体文件夹
  {
     权限java.io.FilePermission"/img/Library/Fonts"," read";
     权限java.io.FilePermission"/img/Network/Library/Fonts/*"," read";
     权限java.io.FilePermission"/img/Users/leo/Library/Fonts/*"," read";
     权限java.io.FilePermission"/img/Library/Fonts/*"," read";
     权限java.io.FilePermission"/img/Network/Library/Fonts"," read";
     权限java.io.FilePermission"/img/System/Library/Fonts/*"," read";
     权限java.io.FilePermission"/img/System/Library/Fonts"," read";
     权限java.io.FilePermission"/img/Users/leo/Library/Fonts"," read";
 }
 技术细节
 java.security.AccessControlException:访问被拒绝(" java.io.FilePermission"" <<所有文件>>""执行")
 位于:java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
 位于:java.base/java.security.AccessController.checkPermission(AccessController.java:895)
 位于:java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
 位于:java.base/java.lang.SecurityManager.checkExec(SecurityManager.java:572)
 位于:java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1096)
 位于:java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
 位于:java.base/java.lang.Runtime.exec(Runtime.java:591)
 在:java.base/java.lang.Runtime.exec(Runtime.java:415)
 位于:java.base/java.lang.Runtime.exec(Runtime.java:312)
 网址:org.icepdf.ri.common.PrintHelper.getUserPrinterProperty(PrintHelper.java:640)
 网址:org.icepdf.ri.common.PrintHelper.lookupDefaultPrintService(PrintHelper.java:611)
 网址:org.icepdf.ri.common.PrintHelper.lookForPrintServices(PrintHelper.java:590)
 位于:org.icepdf.ri.common.PrintHelper。(PrintHelper.java:102)
 位于:org.icepdf.ri.common.SwingController.initialisePrinting(SwingController.java:3793)
 网址:org.icepdf.ri.common.SwingController.lambda $ print $ 7(SwingController.java:3759)
 在:java.base/java.lang.Thread.run(Thread.java:834)
screen-shot-2019-02-24-at-005304.jpg (69.1 kB)
付费偷看设置
发送
4条回答
愤怒的猪头君
1楼-- · 2020-09-09 07:43

Hello Leandro,

不幸的是,这是用于在SAP GUI for Java中显示PDF内容的3rd party组件的新版本中的错误。

SAP GUI for Java 7.50将包含一个修复程序。

在该修订版可用之前,您可以通过访问方法'G'使用后端打印(这是预期的打印功能)或使用"保存" 按钮,然后从PDF程序或OS级别进行打印。 或者,您可以在组件BC-FES-JAV上创建支持事件,以获取包括修订的中间版本。

最诚挚的问候

Rolf-Martin

何必丶何苦呢
2楼-- · 2020-09-09 07:57
< p>你好罗尔夫·马丁

我将等待版本6的发布。同时,让我指出,即使通过访问方法'G'使用后端打印,也会发生错误。

最好的问候

Riccardo

wang628962
3楼-- · 2020-09-09 07:48

在版本6中仍然无法打印。 单击打印机图标后,它变灰,没有任何反应。

歪着头看世界
4楼-- · 2020-09-09 07:51

Hello Leandro,

看起来像您遇到的问题是由另一个问题引起的 在7.50版本5中看到的内容。使用Java 7.50版本6的SAP GUI,我们可以打印。

请在组件BC-FES-JAV上创建支持消息,并使用以下跟踪密钥附加跟踪文件 已激活:

HTML

POLICYEXCEPTION

有关在SAP GUI for Java中进行跟踪的信息,请参阅

说明683960-SAP GUI for Java的最常见踪迹

最诚挚的问候

罗夫·马丁

一周热门 更多>