[MarkLogic Dev General] PDF generation generated exception

Ranjan Kumar Baisak rbaisak at juniper.net
Fri Jun 27 04:13:01 PDT 2008


Hi,

    I am trying to evaluate Marklogic server. I am getting following
error while generating pdf using MLJAM library

 

xdmp:eval("error('bsh.ParseException: Parse error at line 1, column 13.
En...") -- bsh.ParseException: Parse error at line 1, column 13.
Encountered: ref

on line 1,
in xdmp:eval("error('bsh.ParseException: Parse error at line 1, column
13. En...")

in /modules/jam.xqy, on line 610,
in jam:_call("post", "temp:10517907774516216026", "eval-get", (),
"{
 import org.apache.fop.apps.*;
 import javax.xml...")

in /modules/jam.xqy, on line 341,
in jam:eval-get-in("{
 import org.apache.fop.apps.*;
 import
javax.xml...", "temp:10517907774516216026")

$jam:expr = "{
 import org.apache.fop.apps.*;
 import
javax.xml..."
$jam:context = "temp:10517907774516216026"

in /modules/jam.xqy, on line 680,
in jam:eval-get("{
 import org.apache.fop.apps.*;
 import
javax.xml...")

$jam:expr = "{
 import org.apache.fop.apps.*;
 import
javax.xml..."

in /modules/jam-utils.xqy, on line 444,
in jamu:fop(doc("/generated-fo.xml")/root)

$jamu:xslfo = doc("/generated-fo.xml")/root

in /view.xqy, on line 12,
in fn:make-pdf(doc("/generated-fo.xml")/root)

$doc = doc("/generated-fo.xml")/root

in /view.xqy, on line 20

$doc = doc("/generated-fo.xml")/root

 

I am sure there is no ref entity at the beginning of xsl-fo string. I
debugged MLJAM library and realized that xsl-fo string is broken into
two string e.g. ...<fo:page-number-citation ref-id="3854478891"/> ...is
broken into "...<fo:page-number-citation" and "ref-id="3854478891"/>
..." and "ref-id="3854478891"/> ..." is evaluated in line no 301 of
MLJAM.java Object o = i.eval(body); which is not a xsl-fo string and it
throws exception. I am not able to spend more time on this as already
spend a day on this. Maybe somebody from Marklogic can find out the root
cause. 

 

- RB

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20080627/0b53eed2/attachment-0001.html


More information about the General mailing list