Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2668

Support new Dozer 6 xsd coming with Camel 2.20

    Details

      Description

      see https://dozermapper.github.io/gitbook/migration/v6-to-v61.html to specify what needs to be done from Dozer xsd point of view for the migration

      [ Blueprint Event Dispatcher: 1] MappingStreamReader            ERROR Error while loading dozer mapping InputStream: [java.io.BufferedInputStream@50b295e5]
      org.dozer.MappingException: Dozer >= v6.0.0 uses a new XSD location. Your current config needs to be upgraded. Found v5 XSD: 'http://dozer.sourceforge.net/schema/beanmapping.xsd'. Expected v6 XSD: 'http://dozermapper.github.io/schema/bean-mapping.xsd'. Please see migration guide @ https://dozermapper.github.io/gitbook
      	at org.dozer.loader.xml.DozerResolver.resolveEntity(DozerResolver.java:60)
      	at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:110)
      	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1081)
      	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:657)
      	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2430)
      	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1767)
      	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:740)
      	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
      	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:852)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
      	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
      	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
      	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
      	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
      	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
      	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
      	at org.dozer.loader.xml.MappingStreamReader.read(MappingStreamReader.java:52)
      	at org.dozer.loader.xml.MappingFileReader.read(MappingFileReader.java:60)
      	at org.dozer.DozerBeanMapper.loadFromFiles(DozerBeanMapper.java:340)
      	at org.dozer.DozerBeanMapper.loadCustomMappings(DozerBeanMapper.java:322)
      	at org.dozer.DozerBeanMapper.initMappings(DozerBeanMapper.java:443)
      	at org.dozer.DozerBeanMapper.getMappingMetadata(DozerBeanMapper.java:416)
      	at org.apache.camel.converter.dozer.MapperFactory.parseConfiguration(MapperFactory.java:100)
      	at org.apache.camel.converter.dozer.MapperFactory.create(MapperFactory.java:56)
      	at org.apache.camel.component.dozer.DozerEndpoint.initDozerBeanContainerAndMapper(DozerEndpoint.java:151)
      	at org.apache.camel.component.dozer.DozerEndpoint.doStart(DozerEndpoint.java:115)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3701)
      	at org.apache.camel.impl.DefaultCamelContext.addEndpoint(DefaultCamelContext.java:627)
      	at org.apache.camel.component.ref.RefEndpoint.doStart(RefEndpoint.java:81)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:241)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1472)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:160)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:1172)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:80)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.impl.RouteService.startChildService(RouteService.java:370)
      	at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:196)
      	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)
      	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3945)
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3852)
      	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3638)
      	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3490)
      	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:208)
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3249)
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3245)
      	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3268)
      	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3245)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3168)
      	at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:244)
      	at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:284)
      	at org.apache.camel.blueprint.BlueprintCamelContext.blueprintEvent(BlueprintCamelContext.java:177)
      	at org.apache.aries.blueprint.container.BlueprintEventDispatcher$4.call(BlueprintEventDispatcher.java:201)
      	at org.apache.aries.blueprint.container.BlueprintEventDispatcher$4.call(BlueprintEventDispatcher.java:199)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      identified work:

      • have transformation editor be able to understand < 2.20 and >=2.20 Camel version
        • the JaxB internal model need to be updated
      • Data Transformation editor relies on Jaxb and the whole mapping need to be modified in org.jboss.tools.fuse.transformation.core.dozer.config.ObjectFactory
      • provide migration in "Change Camel version" dialog (might worth a dedicated issue for that and just have a warning first saying that it will not work)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jpav John Verhaeg
                  Reporter:
                  aurelien.pupier Aurélien Pupier
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: