[xep-support] List is not a pair

From: Marc (klists@saphor.de)
Date: Sun Jun 08 2003 - 07:12:08 PDT

  • Next message: Nikolai Grigoriev: "Re: [xep-support] List is not a pair"

    Hi!

    When I try to typeset an XSL-FO-file with XEP client 3.42 with the ant
    task, the program dies with the following stacktrace:

    ----------
           [xep] (format
           [xep] (sequence [master-reference main](flow [page-number
    1][page-number 2][page-number 3][page-number 4][page-number
    5][page-number 6][page-number 7][page-number 8][page-number
    9][page-number 10]
           [xep] {?no space for an element, trying to recover}
           [xep] [page-number 10][page-number 11][page-number
    12][page-number 13][page-number 14][page-number 15][page-number
    16][page-number 17][page-number 18][page-number 19][page-number
    20][page-number 21][page-number 22][page-number 23][page-number
    24][page-number 25][page-number 26][page-number 27][page-number
    28][page-number 29][page-number 30][page-number 31][page-number
    32][page-number 33][page-number 34][page-number 35][page-number
    36][page-number 37][page-number 38]
           [xep] {?no space for an element, trying to recover}
           [xep] [page-number 38][page-number 39][page-number
    40][page-number 41][page-number 42][page-number 43][page-number
    44][page-number 45][page-number 46][page-number 47][page-number
    48][page-number 49][page-number 50][page-number 51][page-number
    52][page-number 53][page-number 54][page-number 55][page-number
    56][page-number 57][page-number 58][page-number 59][page-number
    60][page-number 61][page-number 62][page-number 63][page-number 64]
           [xep] {?no space for an element, trying to recover}
           [xep] [page-number 64]java.lang.reflect.InvocationTargetException
           [xep] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
           [xep] at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           [xep] at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           [xep] at java.lang.reflect.Method.invoke(Method.java:324)
           [xep] at com.renderx.ant.XEPTask.execute(XEPTask.java:224)
           [xep] at com.renderx.ant.XEPTask.execute(XEPTask.java:198)
           [xep] at org.apache.tools.ant.Task.perform(Task.java:319)
           [xep] at org.apache.tools.ant.Target.execute(Target.java:309)
           [xep] at
    org.apache.tools.ant.Target.performTasks(Target.java:336)
           [xep] at
    org.apache.tools.ant.Project.executeTarget(Project.java:1306)
           [xep] at
    org.apache.tools.ant.Project.executeTargets(Project.java:1250)
           [xep] at org.apache.tools.ant.Main.runBuild(Main.java:610)
           [xep] at org.apache.tools.ant.Main.start(Main.java:196)
           [xep] at org.apache.tools.ant.Main.main(Main.java:235)
           [xep] Caused by: java.util.NoSuchElementException: list is not a pair
           [xep] at com.renderx.util.List.shift(List.java:139)
           [xep] at com.renderx.util.Stack.pop(Stack.java:4)
           [xep] at
    com.renderx.xep.fmt.LineBuffer$Phrase.size(LineBuffer.java:210)
           [xep] at com.renderx.xep.fmt.LineBuffer.size(LineBuffer.java:264)
           [xep] at com.renderx.xep.fmt.MTF.fmt(MTF.java:342)
           [xep] at com.renderx.xep.fmt.BkMaker.mkStream(BkMaker.java:1450)
           [xep] at com.renderx.xep.fmt.BkMaker.mkBook(BkMaker.java:362)
           [xep] at com.renderx.xep.Driver.process_tree(Driver.java:76)
           [xep] at com.renderx.xep.Driver.render(Driver.java:231)
           [xep] at com.renderx.xep.Driver.render(Driver.java:146)
           [xep] at
    com.renderx.xep.JAXPDriver.transform(JAXPDriver.java:364)
           [xep] at
    com.renderx.xep.JAXPDriver.transform(JAXPDriver.java:347)
           [xep] at com.renderx.ant.JAXPEngine.process(JAXPEngine.java:59)
           [xep] ... 14 more

    BUILD FAILED
    file:c:/sandbox/sort/build.xml:35:
    java.lang.reflect.InvocationTargetException
         at com.renderx.ant.XEPTask.execute(XEPTask.java:243)
         at com.renderx.ant.XEPTask.execute(XEPTask.java:198)
         at org.apache.tools.ant.Task.perform(Task.java:319)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:336)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
         at org.apache.tools.ant.Main.runBuild(Main.java:610)
         at org.apache.tools.ant.Main.start(Main.java:196)
         at org.apache.tools.ant.Main.main(Main.java:235)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.renderx.ant.XEPTask.execute(XEPTask.java:224)
         ... 9 more
    Caused by: java.util.NoSuchElementException: list is not a pair
         at com.renderx.util.List.shift(List.java:139)
         at com.renderx.util.Stack.pop(Stack.java:4)
         at com.renderx.xep.fmt.LineBuffer$Phrase.size(LineBuffer.java:210)
         at com.renderx.xep.fmt.LineBuffer.size(LineBuffer.java:264)
         at com.renderx.xep.fmt.MTF.fmt(MTF.java:342)
         at com.renderx.xep.fmt.BkMaker.mkStream(BkMaker.java:1450)
         at com.renderx.xep.fmt.BkMaker.mkBook(BkMaker.java:362)
         at com.renderx.xep.Driver.process_tree(Driver.java:76)
         at com.renderx.xep.Driver.render(Driver.java:231)
         at com.renderx.xep.Driver.render(Driver.java:146)
         at com.renderx.xep.JAXPDriver.transform(JAXPDriver.java:364)
         at com.renderx.xep.JAXPDriver.transform(JAXPDriver.java:347)
         at com.renderx.ant.JAXPEngine.process(JAXPEngine.java:59)
         ... 14 more
    --- Nested Exception ---
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.renderx.ant.XEPTask.execute(XEPTask.java:224)
         at com.renderx.ant.XEPTask.execute(XEPTask.java:198)
         at org.apache.tools.ant.Task.perform(Task.java:319)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:336)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
         at org.apache.tools.ant.Main.runBuild(Main.java:610)
         at org.apache.tools.ant.Main.start(Main.java:196)
         at org.apache.tools.ant.Main.main(Main.java:235)
    Caused by: java.util.NoSuchElementException: list is not a pair
         at com.renderx.util.List.shift(List.java:139)
         at com.renderx.util.Stack.pop(Stack.java:4)
         at com.renderx.xep.fmt.LineBuffer$Phrase.size(LineBuffer.java:210)
         at com.renderx.xep.fmt.LineBuffer.size(LineBuffer.java:264)
         at com.renderx.xep.fmt.MTF.fmt(MTF.java:342)
         at com.renderx.xep.fmt.BkMaker.mkStream(BkMaker.java:1450)
         at com.renderx.xep.fmt.BkMaker.mkBook(BkMaker.java:362)
         at com.renderx.xep.Driver.process_tree(Driver.java:76)
         at com.renderx.xep.Driver.render(Driver.java:231)
         at com.renderx.xep.Driver.render(Driver.java:146)
         at com.renderx.xep.JAXPDriver.transform(JAXPDriver.java:364)
         at com.renderx.xep.JAXPDriver.transform(JAXPDriver.java:347)
         at com.renderx.ant.JAXPEngine.process(JAXPEngine.java:59)
         ... 14 more

    Total time: 1 minute 3 seconds
    --------------

    If I call XEP directly, the message is:

    [...]
    [page-number 64]
    {!list is not a pair}

    This looks to me like a bug. Even if not, the error message is hardly
    helpful.

    Best regards,

    Marc

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Sun Jun 08 2003 - 07:22:17 PDT