Oracle Business Intelligence Applications

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

RTF Preview Failed: Why do I get "Preview Failed" when trying to preview an RTF?

Accepted answer
164
Views
4
Comments

I am unable to preview a RTF and receive the below error message when trying to do so. This problem has just occurred recently. I have attempted to reinstall BI Publisher as well as install different version of Java but that does not seem to fix the issue. I am unaware of any updates that would have caused this to break as my team most likely would have received the same update but the majority are still able to preview RTFs.

Error Message:

Preview Failed

ConfFile: C:\Users\user\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\config\xdo.cfg
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Out File: C:\Users\user\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp\21733863589307out.xlsx
Run XDO Start
Template: C:\Users\user\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp\tmp.rtf
RTFProcessor setLocale: en-us
java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 2
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112)
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349)
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4963)
at java.base/java.lang.String.substring(String.java:2925)
at oracle.xdo.common.net.XDOStreamHandlerFactory.registerNewProtocols(XDOStreamHandlerFactory.java:155)
at oracle.xdo.template.FOProcessor.initParams(FOProcessor.java:485)
at oracle.xdo.template.FOProcessor.<init>(FOProcessor.java:445)
at RTF2PDF2.runRTFto(RTF2PDF2.java:395)
at RTF2PDF2.runXDO(RTF2PDF2.java:343)
at RTF2PDF2.main(RTF2PDF2.java:235)

Thank you in advance for any help on this!

Best Answer

  • Alek Strader
    Alek Strader Rank 1 - Community Starter
    Answer ✓

    Found the solution:

    Run MS Word and change the java version used following the steps below:
    a. Click on the BI Publisher tab.
    b. Click on Options (at the right side of the menu)
    c. In Option, click on Preview tab.
    d. Set "Java Home" to your client directory (e.g.: C:\Program Files (x86)\Java\jre8).
    e. May also set the "Java Option" to: -Xmx256M.
    f. Click on "OK".

Answers