javax.xml.transform.TransformerException: "xml:lang" attribute is not allowed on the soap:Text element!

Stack Overflow | user2761267 | 2 months ago
  1. 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!
  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

    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!
  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

      "xml:lang" attribute is not allowed on the soap:Text element!

      at org.apache.xalan.processor.StylesheetHandler.error()
    2. Xalan Java
      StylesheetHandler.startElement
      1. org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:907)
      2. org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:950)
      3. org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:348)
      4. org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProcessor.java:268)
      5. org.apache.xalan.processor.ProcessorLRE.startElement(ProcessorLRE.java:283)
      6. org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:626)
      6 frames
    3. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:496)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      2. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      5. org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      6. org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      7. org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      8. org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      9. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)[xercesImpl-2.9.1.redhat-6.jar:2.9.1.redhat-6]
      9 frames
    4. Xalan Java
      TransformerFactoryImpl.newTemplates
      1. org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:926)
      1 frame
    5. JBoss Modules
      __TransformerFactory.newTemplates
      1. __redirected.__TransformerFactory.newTemplates(__TransformerFactory.java:140)[jboss-modules.jar:1.3.3.Final-redhat-1]
      1 frame
    6. Camel :: Core
      DefaultCamelContext.addRouteDefinitions
      1. org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(XsltBuilder.java:329)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      2. org.apache.camel.component.xslt.XsltEndpoint.loadResource(XsltEndpoint.java:90)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      3. org.apache.camel.component.xslt.XsltEndpoint.doStart(XsltEndpoint.java:99)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      4. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      5. org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1777)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      6. org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:940)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      7. org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:901)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      8. org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:484)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      9. org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:61)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      10. org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      11. org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      12. org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      13. org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      14. org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      15. org.apache.camel.model.ProcessorDefinition.createProcessor(ProcessorDefinition.java:426)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      16. org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:395)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      17. org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:130)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      18. org.apache.camel.model.ProcessorDefinition.createChildProcessor(ProcessorDefinition.java:149)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      19. org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:109)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      20. org.apache.camel.model.WhenDefinition.createProcessor(WhenDefinition.java:77)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      21. org.apache.camel.model.WhenDefinition.createProcessor(WhenDefinition.java:31)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      22. org.apache.camel.model.ProcessorDefinition.createProcessor(ProcessorDefinition.java:426)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      23. org.apache.camel.model.ChoiceDefinition.createProcessor(ChoiceDefinition.java:135)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      24. org.apache.camel.model.ProcessorDefinition.createProcessor(ProcessorDefinition.java:426)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      25. org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:395)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      26. org.apache.camel.model.TryDefinition.createProcessor(TryDefinition.java:75)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      27. org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:466)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      28. org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:179)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      29. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:876)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      30. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      31. org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:731)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      32. org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1803)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      33. org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:675)[camel-core-2.10.0.redhat-60083.jar:2.10.0.redhat-60083]
      33 frames
    7. org.switchyard.component
      CamelActivator.activateService
      1. org.switchyard.component.camel.deploy.CamelActivator.handleImplementation(CamelActivator.java:95)[switchyard-component-camel-1.1.1-p11-redhat-1.jar:1.1.1-p11-redhat-1]
      2. org.switchyard.component.camel.deploy.CamelActivator.activateService(CamelActivator.java:75)[switchyard-component-camel-1.1.1-p11-redhat-1.jar:1.1.1-p11-redhat-1]
      2 frames
    8. org.switchyard.deploy
      Deployment.start
      1. org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:546)
      2. org.switchyard.deploy.internal.Deployment.start(Deployment.java:144)
      2 frames
    9. org.switchyard.as7
      SwitchYardService.start
      1. org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:127)[switchyard-deploy-jboss-as7-1.1.1-p11-redhat-1.jar:1.1.1-p11-redhat-1]
      2. org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:77)[switchyard-deploy-jboss-as7-1.1.1-p11-redhat-1.jar:1.1.1-p11-redhat-1]
      2 frames
    10. JBoss Modular Service Container
      ServiceControllerImpl$StartTask.run
      1. org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
      2. org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      2 frames
    11. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_80]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_80]
      3. java.lang.Thread.run(Thread.java:745)[rt.jar:1.7.0_80]
      3 frames