PDF Generation of pages of others forms in the background

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

mkushwaha
Ebase User
Posts: 29
Joined: Mon Nov 02, 2015 7:19 pm

PDF Generation of pages of others forms in the background

#1

Postby mkushwaha » Thu Feb 18, 2016 8:14 pm

Image
hébergeur image gratuit

I have scenario where I want to generate PDF pages of other forms in the background. How can this be possible. I have tried a way where I change the using form type on a script pointing to the other form I want to use. It is able to recognize the pages of other form but unable to print. It gives me following error.

Image
hébergeur image gratuit

Please let me know. How can this be possible if at all. Thanks.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Fri Feb 19, 2016 9:08 am

It isn't possible to directly print pages from a form other than the form that is running. However, starting from V5.0 it is possible to run a form in background and pass parameters to it, so you would effectively be asking the form to print itself e.g.

Code: Select all

var formParms = { parm1: "print" };
SchedulerServices.runBackgroundForm("RiskForm", formParms, null);
In this example you are running form RiskForm in background and passing into it form field parm1 (declared as a URL parameter). The form would then invoke a script on its before form event, check this parameter and then invoke generatePdf.

Note this is only possible starting from V5.0.
0 x

mkushwaha
Ebase User
Posts: 29
Joined: Mon Nov 02, 2015 7:19 pm

#3

Postby mkushwaha » Fri Feb 19, 2016 8:22 pm

Thanks Jon!
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#4

Postby kotinkarwak » Sat Feb 20, 2016 12:16 pm

Jon,

Sorry for the lengthy outputs.
ver 5.0.1 build: 20151118

Have tried this implementation and having an error when I make the call from my form that handles application with the prescribed code

Code: Select all

var formParms = { _var0: "Kotin", _var1: "Karwak" }; 
SchedulerServices.runBackgroundForm("R001_BACKGROUND", formParms, "Test Scheduler ROL: ");

Build:-
I have created a second form (R001_BACKGROUND) which handles the printing of the pdf, this form has the before form event. If I run this form, the job completes ok as shown below
Sat Feb 20 12:01:34: INFO <<START>>
Sat Feb 20 12:01:34: INFO Running Before Form event for R001_BACKGROUND
Sat Feb 20 12:01:34: INFO Executing Javascript script createPDF.js
Sat Feb 20 12:01:34: INFO schedulerService 1
Sat Feb 20 12:01:34: INFO schedulerService 1: logName: C:\ebaseXi_5.0.1\UfsClient\IntegratedServer\ebasetest\Pdfs\
Sat Feb 20 12:01:34: INFO schedulerService 1: fileName: kotinkarwak-20-02-2016-12-01-34.pdf
Sat Feb 20 12:01:34: INFO schedulerService 1: filePath: C:\ebaseXi_5.0.1\UfsClient\IntegratedServer\ebasetest\Pdfs\kotinkarwak-20-02-2016-12-01-34.pdf
Sat Feb 20 12:01:34: INFO TEST URLS: _var0: Default0 _var1: Default1
Sat Feb 20 12:01:34: INFO schedulerService 2
Sat Feb 20 12:01:34: INFO <-- Displaying page PagePDF0
Sat Feb 20 12:01:34: INFO <-- Displaying page PagePDF1
Sat Feb 20 12:01:34: INFO schedulerService 2: filename: C:\ebaseXi_5.0.1\UfsClient\IntegratedServer\ebasetest\Pdfs\kotinkarwak-20-02-2016-12-01-34.pdf
Sat Feb 20 12:01:34: INFO CREATEPDFSJS: filename: C:\ebaseXi_5.0.1\UfsClient\IntegratedServer\ebasetest\Pdfs\kotinkarwak-20-02-2016-12-01-34.pdf
Sat Feb 20 12:01:34: INFO Start of page Page_1

So appears error is when I call this from main form. The log file is as below
Sat Feb 20 11:56:24: INFO Button (ButJqZYi) clicked
Sat Feb 20 11:56:24: INFO Running On Click event for Control ButJqZYi
Sat Feb 20 11:56:24: INFO Executing Javascript script schedulerService.js
Sat Feb 20 11:56:24: INFO schedulerService 0
Sat Feb 20 11:56:24: INFO schedulerService 3
Sat Feb 20 11:56:25: INFO Running Before Form event for R001_BACKGROUND
Sat Feb 20 11:56:25: INFO Executing Javascript script createPDF.js
Sat Feb 20 11:56:25: INFO schedulerService 1
Sat Feb 20 11:56:25: INFO schedulerService 1: logName: C:\ebaseXi_5.0.1\UfsClient\IntegratedServer\ebasetest\Pdfs\
Sat Feb 20 11:56:25: INFO schedulerService 1: fileName: kotinkarwak-20-02-2016-11-56-25.pdf
Sat Feb 20 11:56:25: INFO schedulerService 1: filePath: C:\ebaseXi_5.0.1\UfsClient\IntegratedServer\ebasetest\Pdfs\kotinkarwak-20-02-2016-11-56-25.pdf
Sat Feb 20 11:56:25: INFO TEST URLS: _var0Default0 _var1: Default1
Sat Feb 20 11:56:25: INFO schedulerService 2
Sat Feb 20 11:56:25: ERROR Error printing pdf document
java.lang.NullPointerException
at com.ebasetech.ufs.utility.HttpUtil.adjustUrlToV4Format(HttpUtil.java:111)
at com.ebasetech.ufs.utility.HttpUtil.buildRequestURL(HttpUtil.java:100)
at com.ebasetech.ufs.runtime.output.PdfCommandProcessor.generateOutputFile(PdfCommandProcessor.java:59)
at com.ebasetech.ufs.runtime.output.OutputCommandProcessor.execute(OutputCommandProcessor.java:53)
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:386)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
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:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:114)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:132)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:98)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:444)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:413)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:382)
at com.ebasetech.ufs.batch.FormRunner.run(FormRunner.java:101)
at com.ebasetech.ufs.batch.FormRunner.execute(FormRunner.java:52)
at com.ebasetech.ufs.batch.ExecutableTask.run(ExecutableTask.java:154)
at java.lang.Thread.run(Thread.java:745)
Sat Feb 20 11:56:25: ERROR Error printing document: null
Sat Feb 20 11:56:25: ERROR java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler$RhinoScriptException: java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.handleExecutionErrors(JavascriptExecutionHandler.java:178)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:118)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:132)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:98)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:444)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:413)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:382)
at com.ebasetech.ufs.batch.FormRunner.run(FormRunner.java:101)
at com.ebasetech.ufs.batch.FormRunner.execute(FormRunner.java:52)
at com.ebasetech.ufs.batch.ExecutableTask.run(ExecutableTask.java:154)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:405)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
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:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:114)
... 17 more
Caused by: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.output.OutputCommandProcessor.execute(OutputCommandProcessor.java:70)
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:386)
... 31 more
Sat Feb 20 11:56:25: INFO Transaction rolled back
Sat Feb 20 11:56:25: ERROR Unexpected error occurred during scheduled task execution for task id Test Scheduler ROL:
com.ebasetech.xi.exceptions.FormRuntimeException: java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.events.JVMScriptNode.handleExecutionErrors(JVMScriptNode.java:213)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:113)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:444)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:413)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:382)
at com.ebasetech.ufs.batch.FormRunner.run(FormRunner.java:101)
at com.ebasetech.ufs.batch.FormRunner.execute(FormRunner.java:52)
at com.ebasetech.ufs.batch.ExecutableTask.run(ExecutableTask.java:154)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:405)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
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:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:114)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:132)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:98)
... 15 more
Caused by: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.output.OutputCommandProcessor.execute(OutputCommandProcessor.java:70)
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:386)
... 31 more
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#5

Postby Jon » Mon Feb 22, 2016 11:35 am

Sorry about this, it's a bug! You can bypass it by configuring the Local Base URL property using the server admin app: Server Properties > General Properties > Pdf Properties. Set this to the base URL of the web app e.g. http://myservername:3030/ebase/.

We'll fix this in the next service pack.
Last edited by Jon on Tue Feb 23, 2016 3:57 pm, edited 1 time in total.
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

Workaround with images

#6

Postby kotinkarwak » Tue Feb 23, 2016 3:17 pm

The workaround works but failed when images are part of the page to be pdf'd I have tried with the image in the workspace as well as when it is at server level

In my admin, the changes made is
http://localhost:3030/ebase



message
Tue Feb 23 15:08:58: ERROR Error printing pdf document
java.lang.NullPointerException
at com.ebasetech.ufs.validation.outbound.ITextMultipleDocumentRenderer$1.getImageResource(ITextMultipleDocumentRenderer.java:186)
at org.xhtmlrenderer.pdf.ITextReplacedElementFactory.getITextImage(ITextReplacedElementFactory.java:99)
at org.xhtmlrenderer.pdf.ITextReplacedElementFactory.createReplacedElement(ITextReplacedElementFactory.java:58)
at org.xhtmlrenderer.render.BlockBox.createReplacedElement(BlockBox.java:552)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1490)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidthInlineChildren(BlockBox.java:1636)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1533)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.recalcColumn(TableBox.java:1243)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.fullRecalc(TableBox.java:1217)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.calcMinMaxWidth(TableBox.java:1553)
at org.xhtmlrenderer.newtable.TableBox.calcMinMaxWidth(TableBox.java:161)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidthBlockChildren(BlockBox.java:1588)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1530)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.recalcColumn(TableBox.java:1243)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.fullRecalc(TableBox.java:1217)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.calcMinMaxWidth(TableBox.java:1553)
at org.xhtmlrenderer.newtable.TableBox.calcMinMaxWidth(TableBox.java:161)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidthBlockChildren(BlockBox.java:1588)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1530)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidthBlockChildren(BlockBox.java:1588)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1530)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidthBlockChildren(BlockBox.java:1588)
at org.xhtmlrenderer.render.BlockBox.calcMinMaxWidth(BlockBox.java:1530)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.recalcColumn(TableBox.java:1243)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.fullRecalc(TableBox.java:1217)
at org.xhtmlrenderer.newtable.TableBox$AutoTableLayout.calcMinMaxWidth(TableBox.java:1553)
at org.xhtmlrenderer.newtable.TableBox.calcMinMaxWidth(TableBox.java:161)
at org.xhtmlrenderer.newtable.TableBox.layout(TableBox.java:224)
at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:321)
at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:299)
at org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:90)
at org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:984)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:864)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:793)
at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:321)
at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:299)
at org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:90)
at org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:984)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:864)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:793)
at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild0(BlockBoxing.java:321)
at org.xhtmlrenderer.layout.BlockBoxing.layoutBlockChild(BlockBoxing.java:299)
at org.xhtmlrenderer.layout.BlockBoxing.layoutContent(BlockBoxing.java:90)
at org.xhtmlrenderer.render.BlockBox.layoutChildren(BlockBox.java:984)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:864)
at org.xhtmlrenderer.render.BlockBox.layout(BlockBox.java:793)
at com.ebasetech.ufs.validation.outbound.ITextMultipleDocumentRenderer.layout(ITextMultipleDocumentRenderer.java:255)
at com.ebasetech.ufs.runtime.output.PdfCommandProcessor.generateOutputFile(PdfCommandProcessor.java:68)
at com.ebasetech.ufs.runtime.output.OutputCommandProcessor.execute(OutputCommandProcessor.java:53)
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:386)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
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:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:114)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:132)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:98)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:444)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:413)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:382)
at com.ebasetech.ufs.batch.FormRunner.run(FormRunner.java:101)
at com.ebasetech.ufs.batch.FormRunner.execute(FormRunner.java:52)
at com.ebasetech.ufs.batch.ExecutableTask.run(ExecutableTask.java:154)
at java.lang.Thread.run(Thread.java:745)
Tue Feb 23 15:08:58: ERROR Error printing document: null
Tue Feb 23 15:08:58: ERROR java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler$RhinoScriptException: java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.handleExecutionErrors(JavascriptExecutionHandler.java:178)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:118)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:132)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:98)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:444)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:413)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:382)
at com.ebasetech.ufs.batch.FormRunner.run(FormRunner.java:101)
at com.ebasetech.ufs.batch.FormRunner.execute(FormRunner.java:52)
at com.ebasetech.ufs.batch.ExecutableTask.run(ExecutableTask.java:154)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:405)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
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:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:114)
... 17 more
Caused by: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.output.OutputCommandProcessor.execute(OutputCommandProcessor.java:70)
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:386)
... 31 more
Tue Feb 23 15:08:59: INFO Transaction rolled back
Tue Feb 23 15:08:59: ERROR Unexpected error occurred during scheduled task execution for task id Test Scheduler ROL:
com.ebasetech.xi.exceptions.FormRuntimeException: java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.events.JVMScriptNode.handleExecutionErrors(JVMScriptNode.java:213)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:113)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:444)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:413)
at com.ebasetech.ufs.runtime.Request.execute(Request.java:382)
at com.ebasetech.ufs.batch.FormRunner.run(FormRunner.java:101)
at com.ebasetech.ufs.batch.FormRunner.execute(FormRunner.java:52)
at com.ebasetech.ufs.batch.ExecutableTask.run(ExecutableTask.java:154)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:405)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
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:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:114)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:132)
at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:98)
... 15 more
Caused by: com.ebasetech.ufs.kernel.FormException: Error printing document: null
at com.ebasetech.ufs.runtime.output.OutputCommandProcessor.execute(OutputCommandProcessor.java:70)
at com.ebasetech.ufs.runtime.external.api.impl.WebFormImpl.generatePdf(WebFormImpl.java:386)
... 31 more
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#7

Postby Jon » Tue Feb 23, 2016 3:56 pm

Could you try it with a terminating slash like this: http://localhost:3030/ebase/

These problems are all resolved in V5.0.2 - the next service pack
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#8

Postby kotinkarwak » Tue Feb 23, 2016 4:27 pm

Just to confirm, did try the ending slash but no joy.
Thanks, will revisit this on release of next version.
0 x
ebasetech v5

Skype: mateso08
Location: Kenya


Who is online

Users browsing this forum: No registered users and 10 guests