javax.xml.transform.TransformerException: "select" attribute is not allowed on the xsl:for-each-group element!

Stack Overflow | noMad17 | 4 months ago
  1. 0

    XSLT for-each-group not supported in Apache Camel?

    Stack Overflow | 4 months ago | noMad17
    javax.xml.transform.TransformerException: "select" attribute is not allowed on the xsl:for-each-group element!
  2. 0

    Execute XSLT with Xalan in secure mode to create XHTML throws TransformerConfigurationException on creating attributes

    Stack Overflow | 2 years ago | kazvictor
    javax.xml.transform.TransformerException: "colspan" attribute is not allowed on the th element!
  3. 0

    I'm trying to use the updated version of Xalan (2.7.2) in secure mode and having issue with it not able to understand unknown attributes. The problem is, it prevents you from using any stylesheet that emits XHTML (in secure processing mode) because it disallows things like “colspan” attributes of “th” elements. The associated changed file is here: http://svn.apache.org/viewvc/xalan/java/branches/xalan-j_2_7_1_maint/src/org/apache/xalan/processor/XSLTElementProcessor.java?r1=1359736&r2=1581058&pathrev=1581058&diff_format=h See the following example: {code:java} import javax.xml.XMLConstants; import javax.xml.transform.*; import javax.xml.transform.stream.StreamSource; import java.io.StringReader; public class XalanSecureAttributeRepro { private static final String XSL = "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n" + " <xsl:output method=\"html\"/>\n" + " <xsl:template match=\"/*\">\n" + " <th colspan=\"2\"/>\n" + " </xsl:template>\n" + "</xsl:stylesheet>"; public static void main( String[] args ) throws Exception { System.setProperty( "javax.xml.transform.TransformerFactory", "org.apache.xalan.processor.TransformerFactoryImpl" ); TransformerFactory tf = TransformerFactory.newInstance(); tf.setFeature( XMLConstants.FEATURE_SECURE_PROCESSING, true); tf.setErrorListener( new DefaultErrorHandler( true ) ); final Source source = new StreamSource( new StringReader( XSL ) ); Templates templates = tf.newTemplates( source ); // throws: // TransformerException: "colspan" attribute is not allowed on the th element! } } {code} It returns this error: {code} Exception in thread "main" javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXException: "colspan" attribute is not allowed on the th element! javax.xml.transform.TransformerException: "colspan" attribute is not allowed on the th element! at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:933) at com.l7tech.example.XalanSecureAttributeRepro.main(XalanSecureAttributeRepro.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXException: "colspan" attribute is not allowed on the th element! javax.xml.transform.TransformerException: "colspan" attribute is not allowed on the th element! at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:925) ... 6 more Caused by: org.xml.sax.SAXException: "colspan" attribute is not allowed on the th element! javax.xml.transform.TransformerException: "colspan" attribute is not allowed on the th element! at org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:919) at org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:947) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:347) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:267) at org.apache.xalan.processor.ProcessorLRE.startElement(ProcessorLRE.java:283) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:623) 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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:917) ... 6 more Caused by: javax.xml.transform.TransformerException: "colspan" attribute is not allowed on the th element! at org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:904) ... 22 more {code} This worked properly in 2.7.1 Am I missing setting a feature on the transformer factory. How would you transform a stylesheet that emits (X)HTML in secure processing mode using Xalan?

    Apache's JIRA Issue Tracker | 2 years ago | Victor Kazakov
    javax.xml.transform.TransformerException: "colspan" attribute is not allowed on the th element!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Soap 1.2 and xml:lang

    Stack Overflow | 2 months ago | user2761267
    javax.xml.transform.TransformerException: "xml:lang" attribute is not allowed on the soap:Text element!
  6. 0

    http://mobile.demo.dspace.org/xmlui/ is broken. javax.xml.transform.TransformerException: Extra illegal tokens: ')' Cocoon stacktrace [hide] Unable to get transformer handler for jndi:/localhost/xmlui/themes/mobile/mobile.xsl context:/jndi:/localhost/xmlui/themes/mobile/sitemap.xmap - 91:34 <map:serialize type="xhtml"> context:/jndi:/localhost/xmlui/themes/mobile/sitemap.xmap - 85:33 <map:transform type="i18n"> context:/jndi:/localhost/xmlui/themes/mobile/sitemap.xmap - 80:38 <map:transform> context:/jndi:/localhost/xmlui/themes/mobile/sitemap.xmap - 65:45 <map:transform type="IncludePageMeta"> context:/jndi:/localhost/xmlui/themes/mobile/sitemap.xmap - 49:55 <map:generate type="file"> context:/jndi:/localhost/xmlui/themes/mobile/sitemap.xmap - 46:28 <map:match> context:/jndi:/localhost/xmlui/themes/themes.xmap - 41:45 <map:mount> context:/jndi:/localhost/xmlui/themes/themes.xmap - 40:61 <map:match type="WildcardHostMatcher"> context:/jndi:/localhost/xmlui/sitemap.xmap - 680:94 <map:mount> Java stacktrace [hide] ; Line#: 697; Column#: 150 javax.xml.transform.TransformerException: Extra illegal tokens: ')' at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:608) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:143) at org.apache.xpath.XPath.<init>(XPath.java:225) at org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.java:152) at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:761) at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1404) at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1600) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:338) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:263) at org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:76) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:623) 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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:196) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:204) at org.apache.cocoon.core.xml.avalon.DefaultSAXParser.parse(DefaultSAXParser.java:54) at org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:317) at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:246) at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy89.getTransformerHandlerAndValidity(Unknown Source) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:307) at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy86.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:356) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:411) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy83.process(Unknown Source) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.servlet.RequestProcessor.process(RequestProcessor.java:351) at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169) at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:468) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:443) at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:264) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy80.service(Unknown Source) at org.dspace.springmvc.CocoonView.render(CocoonView.java:113) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:275) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter.doFilter(DSpaceMultipartFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Java full stacktrace [hide] org.apache.cocoon.ProcessingException: Unable to get transformer handler for jndi:/localhost/xmlui/themes/mobile/mobile.xsl at <map:serialize type="xhtml"> - jndi:/localhost/xmlui/themes/mobile/sitemap.xmap:91:34 at <map:transform type="i18n"> - jndi:/localhost/xmlui/themes/mobile/sitemap.xmap:85:33 at <map:transform> - jndi:/localhost/xmlui/themes/mobile/sitemap.xmap:80:38 at <map:transform type="IncludePageMeta"> - jndi:/localhost/xmlui/themes/mobile/sitemap.xmap:65:45 at <map:generate type="file"> - jndi:/localhost/xmlui/themes/mobile/sitemap.xmap:49:55 at <map:match> - jndi:/localhost/xmlui/themes/mobile/sitemap.xmap:46:28 at <map:mount> - jndi:/localhost/xmlui/themes/themes.xmap:41:45 at <map:match type="WildcardHostMatcher"> - jndi:/localhost/xmlui/themes/themes.xmap:40:61 at <map:mount> - jndi:/localhost/xmlui/sitemap.xmap:680:94 at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:315) at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy86.setup(Unknown Source) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:356) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:710) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:411) at sun.reflect.GeneratedMethodAccessor149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy83.process(Unknown Source) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:81) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:239) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:247) at org.apache.cocoon.servlet.RequestProcessor.process(RequestProcessor.java:351) at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169) at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:468) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:443) at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:264) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy80.service(Unknown Source) at org.dspace.springmvc.CocoonView.render(CocoonView.java:113) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:275) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.dspace.app.xmlui.cocoon.servlet.multipart.DSpaceMultipartFilter.doFilter(DSpaceMultipartFilter.java:119) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception when creating Transformer from jndi:/localhost/xmlui/themes/mobile/mobile.xsl at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:308) at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at com.sun.proxy.$Proxy89.getTransformerHandlerAndValidity(Unknown Source) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:307) ... 88 more Caused by: javax.xml.transform.TransformerException: Extra illegal tokens: ')' at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:608) at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:143) at org.apache.xpath.XPath.<init>(XPath.java:225) at org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHandler.java:152) at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDef.java:761) at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeDef.java:1404) at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1600) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:338) at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:263) at org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:76) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:623) 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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:196) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:204) at org.apache.cocoon.core.xml.avalon.DefaultSAXParser.parse(DefaultSAXParser.java:54) at org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:317) at org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:246) ... 94 more

    Sakai JIRA | 3 years ago | Thomas Misilo
    javax.xml.transform.TransformerException: Extra illegal tokens: ')'

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.xml.transform.TransformerException

      "select" attribute is not allowed on the xsl:for-each-group element!

      at org.apache.xalan.processor.StylesheetHandler.error()
    2. Xalan Java
      StylesheetHandler.startElement
      1. org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:904)[:]
      2. org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:947)[:]
      3. org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:347)[:]
      4. org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:267)[:]
      5. org.apache.xalan.processor.ProcessorLRE.startElement(ProcessorLRE.java:283)[:]
      6. org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:623)[:]
      6 frames
    3. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)[:]
      2. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)[:]
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)[:]
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)[:]
      5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
      7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
      8. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)[:]
      9. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)[:]
      9 frames
    4. Xalan Java
      TransformerFactoryImpl.newTemplates
      1. org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:917)[:]
      1 frame
    5. Camel :: Core
      DefaultCamelContext.start
      1. org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(XsltBuilder.java:360)
      2. org.apache.camel.component.xslt.XsltEndpoint.loadResource(XsltEndpoint.java:342)
      3. org.apache.camel.component.xslt.XsltEndpoint.doStart(XsltEndpoint.java:396)
      4. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      5. org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2869)
      6. org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1097)
      7. org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1058)
      8. org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1054)
      9. org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:574)
      10. org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
      11. org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:200)
      12. org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)
      13. org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)
      14. org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:62)
      15. org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:56)
      16. org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:533)
      17. org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:494)
      18. org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)
      19. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1025)
      20. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:185)
      21. org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:841)
      22. org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2895)
      23. org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2618)
      24. org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)
      25. org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2467)
      26. org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2463)
      27. org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2486)
      28. org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2463)
      29. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      30. org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2432)
      30 frames
    6. Camel :: Blueprint
      BlueprintCamelContext.serviceChanged
      1. org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:180)
      2. org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:212)
      3. org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:150)
      3 frames
    7. Apache Felix Framework
      BundleContextImpl.registerService
      1. org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
      3. org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
      4. org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)
      5. org.apache.felix.framework.Felix.registerService(Felix.java:3431)
      6. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      7. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:353)
      7 frames
    8. Camel :: Blueprint
      BlueprintCamelContext.init
      1. org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:100)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_101]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_101]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_101]
      4. java.lang.reflect.Method.invoke(Unknown Source)[:1.8.0_101]
      4 frames
    10. Apache Aries Blueprint Core
      AbstractRecipe$1.call
      1. org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
      2. org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:956)
      3. org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712)
      4. org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824)
      5. org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
      6. org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
      6 frames
    11. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)[:1.8.0_101]
      1 frame
    12. Apache Aries Blueprint Core
      BlueprintExtender.modifiedBundle
      1. org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
      2. org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)
      3. org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
      4. org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:682)
      5. org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:377)
      6. org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)
      7. org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)
      8. org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)
      9. org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)
      9 frames
    13. Apache Aries Util
      BundleHookBundleTracker$BundleEventHook.event
      1. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[17:org.apache.aries.util:1.1.0]
      2. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[17:org.apache.aries.util:1.1.0]
      3. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[17:org.apache.aries.util:1.1.0]
      4. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[17:org.apache.aries.util:1.1.0]
      5. org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
      5 frames
    14. Apache Felix Framework
      BundleImpl.start
      1. org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)
      2. org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)
      3. org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)
      4. org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)
      5. org.apache.felix.framework.Felix.startBundle(Felix.java:2100)
      6. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
      7. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
      7 frames
    15. org.apache.karaf
      BundlesCommand.doExecute
      1. org.apache.karaf.shell.osgi.RestartBundle.doExecute(RestartBundle.java:45)
      2. org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:37)
      2 frames
    16. Apache Karaf :: Shell :: Console
      AbstractCommand.execute
      1. org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      2. org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      2 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_101]
      3. java.lang.reflect.Method.invoke(Unknown Source)[:1.8.0_101]
      3 frames
    18. Apache Aries Proxy Service
      ProxyHandler.invoke
      1. org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[19:org.apache.aries.proxy.impl:1.0.4]
      2. org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[19:org.apache.aries.proxy.impl:1.0.4]
      2 frames
    19. Apache Karaf :: Shell :: Console
      $BlueprintCommand796348771.execute
      1. org.apache.karaf.shell.console.commands.$BlueprintCommand796348771.execute(Unknown Source)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      1 frame
    20. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      2. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      3. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      4. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      5. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      7. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      7 frames
    21. Apache Karaf :: Shell :: Console
      DelayedStarted.run
      1. org.apache.karaf.shell.console.jline.Console.run(Console.java:197)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      2. org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[38:org.apache.karaf.shell.console:2.4.0.redhat-621084]
      2 frames