xfa worker正在抛出Java Script事件评估失败

时间:2016-01-27 07:49:40

标签: java itext xfa

我正在使用iText来压缩PDF,直到现在它正常工作。 出于生产目的,我使用log4j来记录我的应用程序的错误和信息。

在关闭日志文件时,我看到来自iText XFAWorker的错误(虽然我的展平程序运行正常)。

我还注意到XFAWorker正在使用slf4j进行内部记录。

任何人都可以帮我解决这个错误,这里我附上整个日志。

XFA form element: xfa[0].form[0].Form2_Dtls[0]
Event 'initialize'
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "indexOf" of undefined (js#612)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
    at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3731)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2258)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2251)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1317)
    at script.initializeWithoutCheckForm(js:612)
    at script.formInintialize(js:8)
    at script(js:4)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
    at org.mozilla.javascript.Context.evaluateString(Context.java:1079)
    at com.itextpdf.tool.xml.xtra.xfa.js.RhinoJsObject.evaluateScript(RhinoJsObject.java:98)
    at com.itextpdf.tool.xml.xtra.xfa.js.RhinoJsObject.evaluateScript(RhinoJsObject.java:73)
    at com.itextpdf.tool.xml.xtra.xfa.js.JsContainer.execOwnEvent(JsContainer.java:50)
    at com.itextpdf.tool.xml.xtra.xfa.js.JsContainer.execEvent(JsContainer.java:42)
    at com.itextpdf.tool.xml.xtra.xfa.positioner.Positioner.execEvent(Positioner.java:412)
    at com.itextpdf.tool.xml.xtra.xfa.XFAFlattener.placeFormDom(XFAFlattener.java:1158)
    at com.itextpdf.tool.xml.xtra.xfa.XFAFlattener.flatten(XFAFlattener.java:897)
    at com.itextpdf.tool.xml.xtra.xfa.XFAFlattener.flatten(XFAFlattener.java:444)
    at com.itextpdf.tool.xml.xtra.xfa.XFAFlattener.flatten(XFAFlattener.java:312)
    at com.itextpdf.tool.xml.xtra.xfa.XFAFlattener.flatten(XFAFlattener.java:282)

0 个答案:

没有答案