title: Java empty stack exception - JD Edwards BI Publisher subtemplate
body: <p>I have been trying to conditionally import logos onto my main template. The logos are stored in an external rtf file</p>
  <pre><code>&lt;?template:Logo06000?&gt;
    Some logo here
  &lt;?end template?&gt;
  </code></pre>
  <p>In my main template I am importing the logo using</p>
  <pre><code>&lt;?import: file:///C:/Users/Documents/BIP Templates/R03B505 AR Invoice/BIP 
  Templates/logos.rtf ?&gt;
  &lt;?call: Logo06000?&gt; 
  </code></pre>
  <p>However every time I try to preview the report in the main template I am getting this error.</p>
  <pre><code>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:2110)
      at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1213)
      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
  </code></pre>
  <p>I have tried everything but  I do not know why this error is being thrown? Do I need to install or add any config files on my local machine? Any help or suggestion on how to fix this would be helpful.</p>
  <p>Thank you.</p>