我正在尝试使用 FOP 在已签名的小程序中生成 pdf 文件,但是,我遇到了这些错误:
Dez 10, 2013 2:09:45 PM org.apache.fop.fo.properties.PropertyCache <init>
Informações: Unable to access org.apache.fop.fo.properties.use-cache due to security restriction; defaulting to 'true'.
ERROR: 'Unknown function: gatherContextInfo'
我在桌面应用程序中尝试了相同的代码,一切正常,问题出在小程序中。
最佳答案
问题解决了!
我必须将 fop-bin.zip 中提供的 xalan.jar 添加到类路径中。
我猜它包含未知函数,而 JRE 中的内置实现不包含。
关于java - Apache FOP 小程序错误未知函数 : gatherContextInfo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20499637/