Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11205

Attribute 'prop:group' is not allowed to appear in element 'tokenize'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Invalid
    • Affects Version/s: 2.15.5
    • Fix Version/s: 2.15.5
    • Component/s: camel-spring
    • Labels:
      None
    • Environment:

      operating system

    • Estimated Complexity:
      Unknown

      Description

      I need an substitution of XML DSL attribute values in my code :

      <split streaming="true" strategyRef="appendPdfAggregationStrategy">
      <!-- use prop namespace, to define a property placeholder, which maps to option group=uw9.perso.context.split.group -->
      <tokenize token="<!-oceanPageBeak->" prop:group="uw9.perso.context.split.group"/>
      <to uri="direct:generateXslFo" />
      <to uri="direct:transformXslFoToPdf" />
      </split>

      But i have this error:

      ERROR 26-04 16:26:46.633 [ServerService Thread Pool -- 51] RouteEngineEJB [RouteEngineEJB.java:postConstruct:92] Cannot start automatically - Check Configuration
      org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 287 in XML document from URL file:/usr/share/jbossas/modules/app/ocean/main/context/uw9-perso-context.xml is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 287; columnNumber: 98; cvc-complex-type.3.2.2: Attribute 'prop:group' is not allowed to appear in element 'tokenize'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:252) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:452) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:94) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at net.awl.bfi.eipengine.engine.RouteEngineEJB.startContext(RouteEngineEJB.java:171) ~[classes:na]
      at net.awl.bfi.eipengine.engine.RouteEngineEJB.postConstruct(RouteEngineEJB.java:88) ~[classes:na]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
      at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96) [jboss-as-ee.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doLifecycleInterception(Jsr299BindingsInterceptor.java:116) [jboss-as-weld.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:107) [jboss-as-weld.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:93) [jboss-as-weld.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:67) [jboss-as-weld.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.ee.component.ComponentInstantiatorInterceptor.processInvocation(ComponentInstantiatorInterceptor.java:76) [jboss-as-ee.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:92) [jboss-as-weld.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:279) [jboss-as-ejb3.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:353) [jboss-as-ejb3.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66) [jboss-as-ejb3.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:70) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.ejb3.component.singleton.StartupCountDownInterceptor.processInvocation(StartupCountDownInterceptor.java:25) [jboss-as-ejb3.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation.jar!/:1.1.3.Final-redhat-1]
      at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:162) [jboss-as-ee.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:135) [jboss-as-ee.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:90) [jboss-as-ee.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:122) [jboss-as-ejb3.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:137) [jboss-as-ejb3.jar!/:7.5.13.Final-redhat-2]
      at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54) [jboss-as-ee.jar!/:7.5.13.Final-redhat-2]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
      at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads.jar!/:2.1.2.Final-redhat-1]
      Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'prop:group' is not allowed to appear in element 'tokenize'.
      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196) ~[na:na]
      at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132) ~[na:na]
      at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390) ~[na:na]
      at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322) ~[na:na]
      at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281) ~[na:na]
      at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:446) ~[na:na]
      at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3271) ~[na:na]
      at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2756) ~[na:na]
      at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2136) ~[na:na]
      at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:744) ~[na:na]
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:275) ~[na:na]
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653) ~[na:na]
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324) ~[na:na]
      at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845) ~[na:na]
      at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768) ~[na:na]
      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108) ~[na:na]
      at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230) ~[na:na]
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285) ~[na:na]
      at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      ... 61 common frames omitted

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mbenmbouh Mehdi Benmbouh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: