Loading ...
Sorry, an error occurred while loading the content.

javax.xml.transform.TransformerException at org.apache.xalan.transformer.Transfo

Expand Messages
  • vaamkig@yahoo.com
    Hai, My Requirement is to produce PCL and PDF from Xml and XSL. I am using following Fop-0.20.2 and the following jars. fop-cmyk.jar(Jar created by me)
    Message 1 of 1 , Dec 3, 2001
    • 0 Attachment
      Hai,

      My Requirement is to produce PCL and PDF from Xml and XSL.

      I am using following Fop-0.20.2 and the following jars.

      fop-cmyk.jar(Jar created by me)
      batik.jar
      xalan-2.0.0.jar
      xerces-1.2.3.jar
      avalon-framework-4.0.jar
      logkit-1.0b4.jar
      jimi-1.0.jar

      This combination works fine for PDF and PCL.

      But it is not working for "CMYK colorspace" images . I made some
      changes suggested by my friend and
      now it works fine for CMYK.

      But it is giving me the following problem when i run for PCL .

      Can anyone please help me how to solve this problem.


      D:\freeaccess\Fop-0.20.2>java -cp build\fop-
      cmyk.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;
      lib\avalon-framework-4.0.jar;lib\logkit-1.0b4.jar;lib\jimi-1.0.jar
      org.apache.fop.apps.Fop -xml s.xml -xsl s.xsl -pcl s.pcl
      [INFO]: FOP 0.20.2
      [INFO]: building formatting object tree
      [INFO]: rendering areas to PCL
      [INFO]: [1]
      [WARN]: Some static content could not fit in the area.
      [INFO]: [2]
      [WARN]: Some static content could not fit in the area.
      [INFO]: Parsing of document complete, stopping renderer
      [INFO]: writing out PCL
      javax.xml.transform.TransformerException
      at org.apache.xalan.transformer.TransformerImpl.transformNode
      (TransformerImpl.java, Compiled
      Code)
      at org.apache.xalan.transformer.TransformerImpl.run
      (TransformerImpl.java:2894)
      at java.lang.Thread.run(Thread.java:479)
      ---------
      java.lang.ArrayIndexOutOfBoundsException
      at org.apache.fop.render.pcl.PCLRenderer.printBMP
      (PCLRenderer.java, Compiled Code)
      at org.apache.fop.render.pcl.PCLRenderer.renderImageArea
      (PCLRenderer.java:382)
      at org.apache.fop.image.ImageArea.render(ImageArea.java:68)
      at org.apache.fop.render.AbstractRenderer.renderLineArea
      (AbstractRenderer.java, Compiled Code)
      at org.apache.fop.layout.LineArea.render(LineArea.java:162)
      at org.apache.fop.render.AbstractRenderer.renderBlockArea
      (AbstractRenderer.java, Compiled Code)
      at org.apache.fop.layout.BlockArea.render(BlockArea.java:82)
      at org.apache.fop.render.AbstractRenderer.renderBlockArea
      (AbstractRenderer.java, Compiled Code)
      at org.apache.fop.layout.BlockArea.render(BlockArea.java:82)
      at org.apache.fop.render.AbstractRenderer.renderAreaContainer
      (AbstractRenderer.java, Compiled Code)
      at org.apache.fop.layout.ColumnArea.render(ColumnArea.java:33)
      at org.apache.fop.render.AbstractRenderer.renderSpanArea
      (AbstractRenderer.java, Compiled Code)
      at org.apache.fop.layout.SpanArea.render(SpanArea.java:53)
      at org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer
      (AbstractRenderer.java, Compiled Code)
      at org.apache.fop.render.pcl.PCLRenderer.renderPage
      (PCLRenderer.java:679)
      at org.apache.fop.render.pcl.PCLRenderer.render
      (PCLRenderer.java:753)
      at org.apache.fop.apps.StreamRenderer.queuePage
      (StreamRenderer.java:206)
      at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)
      at org.apache.fop.fo.pagination.PageSequence.format
      (PageSequence.java, Compiled Code)
      at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java,
      Compiled Code)
      at org.apache.fop.fo.FOTreeBuilder.endElement
      (FOTreeBuilder.java:178)
      at org.apache.xalan.transformer.ResultTreeHandler.endElement
      (ResultTreeHandler.java:284)
      at org.apache.xalan.templates.ElemLiteralResult.execute
      (ElemLiteralResult.java, Compiled Code)
      at org.apache.xalan.templates.ElemForEach.transformSelectedNodes
      (ElemForEach.java, Compiled Code)
      at org.apache.xalan.templates.ElemApplyTemplates.execute
      (ElemApplyTemplates.java:193)
      at
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java,Compiled Code)
      at
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (TransformerImpl.java:2097)
      at
      org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
      (TransformerImpl.java:2029)
      at org.apache.xalan.transformer.TransformerImpl.transformNode
      (TransformerImpl.java, Compiled Code)
      at org.apache.xalan.transformer.TransformerImpl.run
      (TransformerImpl.java:2894)
      at java.lang.Thread.run(Thread.java:479)
      [ERROR]: null


      Thanks and Regards

      Ramakrishnan.G
    Your message has been successfully submitted and would be delivered to recipients shortly.