Categories
preview failed error at time Generating report using BI publisher Desktop

I typed in the following statement
<?import:file:D:///PMAR2/cover_rst.rtf?>
<?start:body?>
Page 1<?call@inlines:cover?>
<?end call?>
<?end body?>
and then clicked on pdf generation link available under the preview tab in bi publisher add-on.
ConfFile: C:\Users\sbhadana\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\config\xdo.cfg
Font Dir: C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Out File: C:\Users\sbhadana\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp\761533114103912out.pdf
Run XDO Start
Template: C:\Users\sbhadana\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp\tmp.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: \PMAR2\pmar_1.xml
FOProcessor setLocale: en-us
oracle.xdo.XDOException: java.util.EmptyStackException
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1300)
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:308)
at oracle.xdo.template.FOProcessor.createFO(FOProcessor.java:2105)
at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1208)
at RTF2PDF2.runRTFto(RTF2PDF2.java:484)
at RTF2PDF2.runXDO(RTF2PDF2.java:343)
at RTF2PDF2.main(RTF2PDF2.java:235)
Caused by: java.util.EmptyStackException
at oracle.xdo11g.xslt.XSLProcessor.reportException(XSLProcessor.java:965)
at oracle.xdo11g.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:725)
at oracle.xdo11g.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:391)
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:498)
at oracle.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:946)
at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:683)
at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:377)
at oracle.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:238)
at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1276)
... 6 more
Could anybody help to identify the underlying issue?
Comments
-
Did you check this : Preview a PDF Report In Word BI Publisher Add-in Results In Error: java.util.EmptyStackException (Doc ID 2142450.1)
Cheers!
Sh!va
0 -
Hi Shiva,
When I click on the link to DOC ID : 2142450.1. I am able to see the following information.
Document cannot be displayed. Possible reasons are:
- The document id was entered incorrectly. Please check and try again.
- The document id does not exist (was referenced incorrectly).
- The document is not classified as publicly accessible ("non-public").
- The content is being updated and it is temporarily unavailable but will be made available again soon.
If you still have questions about why you could not access this article or bug, please use Contact Us.
1 -
you can search with "Preview a PDF Report In Word BI Publisher Add-in Results In Error: java.util.EmptyStackException" on oracle support.
Solution given in doc:
If the sub-templates are not available to BI Publisher in Word then you will get the error that you are seeing. As a basic check you can take out the sub-template calls and the template should run and preview without error.
If you need to modify the template and do not need the sub-templates for the editing, takeout the sub-template lines. Make the changes you need then restore the sub-template lines before uploading the changed template to the BIP server.
If the sub-templates are needed for the editing, the sub-templates must be downloaded to the local machine. After Editing is complete, the sub-template calls that worked on the server need to be restored back into the Template file.
0 -
Hi Shiva,
Sorry for disturbing you, as I am new to BIP I am finding it difficult to understand the solution presented by you.
Could you please elaborate this line.
"If you need to modify the template and do not need the sub-templates for the editing, take out the sub-template lines. Make the changes you need then restore the sub-template lines before uploading the changed template to the BIP server."
I have tried to remove the calling line from the template and then if I try to generate PDF I am able to do so. But still, I am not able to understand why the former approach is throwing EmptyStackException
<?import:file:D:///PMAR2/cover_rst.rtf?>
<?start:body?>
Page 1<?call@inlines:cover?>
<?end call?>
<?end body?>
The template that I am trying to call "cover" is declared in cover_rst present at
\PMAR2(Local Machine Address). We have installed the BIP Desktop on my local Machine.
0