1 2 3 Previous Next 38 Replies Latest reply on Aug 15, 2007 1:05 PM by pinnom Go to original post
      • 30. Re: Problems with PDF printing, using Apache FOP!
        575697
        Hi

        When i make a report of a region all works fine, but when I want to create a report from the reports section in Shared Components en choose as report layout 'Use Generic Report Layout' I get the following error.

        javax.xml.transform.TransformerException: attribute-set named #TEXT_ALIGN# does not exist
        cocoon://fop_post/xsl - 148:58

        Cocoon stacktrace[hide]
        attribute-set named #TEXT_ALIGN# does not exist
        cocoon://fop_post/xsl - 148:58     

        Exception in StreamGenerator.generate()
        cocoon://fop_post/xsl - 148:58     [TransformerException]
        file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap - 10:32     <map:serialize type="xml">
        file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap - 6:33     <map:generate type="stream">
        file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap - 38:37     <map:serialize type="fo2pdf">
        file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap - 31:39     <map:transform>
        file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap - 30:38     <map:generate>
        file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/sitemap.xmap - 1034:92     <map:mount>

        Java stacktrace[hide]

        ; SystemID: cocoon://fop_post/xsl; Line#: 148; Column#: 58
        javax.xml.transform.TransformerException: attribute-set named #TEXT_ALIGN# does not exist
             at org.apache.xalan.templates.ElemUse.applyAttrSets(ElemUse.java:168)
             at org.apache.xalan.templates.ElemUse.execute(ElemUse.java:198)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1338)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
             at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
             at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3458)
             at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:406)
             at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
             at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:586)
             at org.apache.cocoon.components.EnvironmentChanger.endDocument(EnvironmentStack.java:119)
             at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
             at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
             at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
             at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
             at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
             at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
             at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
             at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:154)
             at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
             at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:279)
             at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
             at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:413)
             at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:101)
             at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:321)
             at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:116)
             at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:572)
             at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:279)
             at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481)
             at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:121)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
             at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
             at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
             at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
             at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
             at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
             at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
             at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
             at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
             at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
             at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
             at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
             at java.lang.Thread.run(Thread.java:595)

        Java full stacktrace[hide]

        org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate()
             at [TransformerException] - cocoon://fop_post/xsl:148:58
             at <map:serialize type="xml"> - file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:10:32
             at <map:generate type="stream"> - file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:6:33
             at <map:serialize type="fo2pdf"> - file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:38:37
             at <map:transform> - file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:31:39
             at <map:generate> - file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:30:38
             at <map:mount> - file:/E:/APEX_FOP/apache-tomcat-6.0.13/webapps/cocoon/sitemap.xmap:1034:92
             at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:163)
             at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
             at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:279)
             at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
             at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:413)
             at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:101)
             at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:321)
             at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:116)
             at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:572)
             at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:279)
             at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481)
             at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:121)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
             at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
             at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
             at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
             at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
             at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
             at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
             at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
             at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
             at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
             at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
             at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
             at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
             at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
             at java.lang.Thread.run(Thread.java:595)
        Caused by: org.apache.commons.lang.exception.NestableRuntimeException: javax.xml.transform.TransformerException: attribute-set named #TEXT_ALIGN# does not exist
             at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:604)
             at org.apache.cocoon.components.EnvironmentChanger.endDocument(EnvironmentStack.java:119)
             at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
             at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
             at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
             at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
             at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
             at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
             at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
             at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:154)
             ... 47 more
        Caused by: javax.xml.transform.TransformerException: attribute-set named #TEXT_ALIGN# does not exist
             at org.apache.xalan.templates.ElemUse.applyAttrSets(ElemUse.java:168)
             at org.apache.xalan.templates.ElemUse.execute(ElemUse.java:198)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1338)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
             at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
             at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
             at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
             at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3458)
             at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:406)
             at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
             at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:586)
             ... 63 more


        Someone any idea
        • 31. Re: Problems with PDF printing, using Apache FOP!
          437868
          I have gotten that error before.

          Generic Layout will basically give you a copy of the "out of the box" APEX FOP report layout, I believe. You then customize that copy.

          After you created the Generic Layout, did you fiddle with XSL at all? If so, make a new generic layout and try to run your report using that one. Then you will know if it is a problem with Cocoon/FOP or just a bug in your custom layout.

          Dan
          • 32. Re: Problems with PDF printing, using Apache FOP!
            575697
            Thanks for the reply, I don't know much of xsl could you give me a sample layout? I've used xsl-fo a little on rtf templates for BI Publisher for modifing some extra features like images and variables but that's about all I know from xsl/fo.

            So if you can give me an example I think it's a little bit easier to learn. I've already searched a lot for templates but couldn't find anything that works in apex.

            Thanks in advance.
            Wim
            • 33. Re: Problems with PDF printing, using Apache FOP!
              317072
              Hi Carl

              Thank you very much for your information regarding PDF printing with Apache Cocoon and FOP.

              Configuration worked OK and for some reports, PDF is well generated.
              I took "Sample Application v2.0" from Oracle coming as DEMO and for all reports i can generate PDF.
              But for "Project Tasks Application" region "PROJECTS" i receive the following error. The same error i receive even for my own simple projects.
              Till now i couldn't find what settings in my own reports cause this behaviour.
              Thank you very much and
              Best regards
              Adrian Sperlea



              An error has occured
              javax.xml.transform.TransformerException: FuncNumber only allows 0 or 1 arguments
              Cocoon stacktrace[hide]
              Unable to get transformer handler for cocoon://fop_post/xsl
              context://fop_post/sitemap.xmap - 38:37 <map:serialize type="fo2pdf">
              context://fop_post/sitemap.xmap - 31:39 <map:transform>
              context://fop_post/sitemap.xmap - 30:38 <map:generate>
              context://sitemap.xmap - 1055:92 <map:mount>
              Java stacktrace[hide] ; Line#: 114; Column#: 97
              javax.xml.transform.TransformerException: FuncNumber only allows 0 or 1 arguments
              at org.apache.xpath.compiler.Compiler.compileFunction(Compiler.java:1077)
              at org.apache.xpath.compiler.Compiler.compile(Compiler.java:208)
              at org.apache.xpath.compiler.Compiler.compile(Compiler.java:156)
              at org.apache.xpath.XPath.<init>(XPath.java:209)
              at org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.java:199)
              at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:796)
              at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1398)
              at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1589)
              at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:381)
              at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:312)
              at org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:122)
              at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
              at org.apache.cocoon.xml.ContentHandlerWrapper.startElement(ContentHandlerWrapper.java:147)
              at org.apache.cocoon.components.EnvironmentChanger.startElement(EnvironmentStack.java:140)
              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
              at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
              at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
              at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:154)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:279)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
              at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:413)
              at org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:306)
              at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:241)
              at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:331)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:398)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:717)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:501)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:453)
              at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:121)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
              at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
              at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
              at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
              at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
              at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
              at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
              at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
              at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
              at java.lang.Thread.run(Thread.java:534)
              Java full stacktrace[hide] org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon://fop_post/xsl
              at <map:serialize type="fo2pdf"> - file:/webaccess/appl/jakarta-tomcat/webapps/cocoon/fop_post/sitemap.xmap:38:37
              at <map:transform> - file:/webaccess/appl/jakarta-tomcat/webapps/cocoon/fop_post/sitemap.xmap:31:39
              at <map:generate> - file:/webaccess/appl/jakarta-tomcat/webapps/cocoon/fop_post/sitemap.xmap:30:38
              at <map:mount> - file:/webaccess/appl/jakarta-tomcat/webapps/cocoon/sitemap.xmap:1055:92
              at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:339)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:398)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:717)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:501)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:453)
              at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:121)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
              at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
              at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
              at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
              at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
              at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
              at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
              at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
              at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
              at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
              at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
              at java.lang.Thread.run(Thread.java:534)
              Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception when creating Transformer from cocoon://fop_post/xsl
              at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:300)
              at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:331)
              ... 53 more
              Caused by: javax.xml.transform.TransformerException: FuncNumber only allows 0 or 1 arguments
              at org.apache.xpath.compiler.Compiler.compileFunction(Compiler.java:1077)
              at org.apache.xpath.compiler.Compiler.compile(Compiler.java:208)
              at org.apache.xpath.compiler.Compiler.compile(Compiler.java:156)
              at org.apache.xpath.XPath.<init>(XPath.java:209)
              at org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.java:199)
              at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:796)
              at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1398)
              at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1589)
              at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:381)
              at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:312)
              at org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:122)
              at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
              at org.apache.cocoon.xml.ContentHandlerWrapper.startElement(ContentHandlerWrapper.java:147)
              at org.apache.cocoon.components.EnvironmentChanger.startElement(EnvironmentStack.java:140)
              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
              at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
              at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
              at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:154)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:279)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780)
              at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:413)
              at org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:306)
              at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:241)
              ... 54 more
              The {Apache Cocoon} Project
              • 34. Re: Problems with PDF printing, using Apache FOP!
                317072
                And another detail for those capable to see more...
                I copied the page "Customers" from "Sample Application v2.0" whith Print Option and which generates OK PDF's to "Project Tasks Application". After copying i get again the error posted previously.
                Best regards
                Adrian
                • 35. Re: Problems with PDF printing, using Apache FOP!
                  317072
                  For those interested, i found where the problem was in my case!

                  "
                  An error has occured
                  javax.xml.transform.TransformerException: FuncNumber only allows 0 or 1 arguments
                  Cocoon stacktrace[hide]
                  Unable to get transformer handler for cocoon://fop_post/xsl
                  "

                  I had in "Application > Shared Components > Edit Globalization Attributes > Globalization" - Aplication primary language GERMAN. Once that i changed to english US my reports worked again OK.
                  Can this problem be fixed in the future?
                  Best regards
                  Adrian
                  • 36. Re: Problems with PDF printing, using Apache FOP!
                    586898
                    When I try Test print in PDF or WORD o EXCEL or HTML I obtain always the same message:

                    "javax.xml.transform.TransformerException: attribute-set named #TEXT_ALIGN# does not exist cocoon://fop_post/xsl, etc etc"

                    Versión: Application Express 3.0.1.00.07

                    Somebody can help me.

                    Thanks.

                    Roberto Arribas
                    • 37. Re: Problems with PDF printing, using Apache FOP!
                      221884
                      Hi,

                      I would like to repeat the question about Tomcat/Cocoon posted by Wim in May. It does not seem to be answered and it is too important to be ignored because it undermines the whole idea of using Tomcat/Cocoon for APEX PDF printing.

                      The question was :

                      "When i make a report of a region all works fine, but when I want to create a report from the reports section in Shared Components en choose as report layout 'Use Generic Report Layout' I get the following error.

                      javax.xml.transform.TransformerException: attribute-set named #TEXT_ALIGN# does not exist
                      cocoon://fop_post/xsl - 148:58

                      "

                      Any solution will be appreciated.

                      Regards,

                      Vadim
                      • 38. Re: Problems with PDF printing, using Apache FOP!
                        pinnom
                        For those interested, i found where the problem was
                        in my case!

                        "
                        An error has occured
                        javax.xml.transform.TransformerException: FuncNumber
                        only allows 0 or 1 arguments
                        Cocoon stacktrace[hide]
                        Unable to get transformer handler for
                        cocoon://fop_post/xsl
                        "

                        I had in "Application > Shared Components > Edit
                        Globalization Attributes > Globalization" -
                        Aplication primary language GERMAN. Once that i
                        changed to english US my reports worked again OK.
                        an this problem be fixed in the future?
                        Best regards
                        Adrian
                        I got the same. Thank you very very much for this tip! After I change the language to ENGLISH US PDF and Word-print works great.

                        Again: Please fix this in a future release.

                        Regards,
                        Mark
                        1 2 3 Previous Next