Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-8219

Using ehcache in Kafka connect throws an XMLConfiguration parse exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.CR1
    • 3.0.0.Beta1
    • oracle-connector
    • None

      When deploying the Oracle connector on Kafka Connect with Ehcache enabled:

      connect_1    | Caused by: org.ehcache.xml.exceptions.XmlConfigurationException: Error parsing XML configuration
      connect_1    |  at org.ehcache.xml.XmlConfiguration.<init>(XmlConfiguration.java:185)
      connect_1    |  at org.ehcache.xml.XmlConfiguration.<init>(XmlConfiguration.java:152)
      connect_1    |  at org.ehcache.xml.XmlConfiguration.<init>(XmlConfiguration.java:139)
      connect_1    |  at io.debezium.connector.oracle.logminer.processor.ehcache.EhcacheLogMinerEventProcessor.createCacheManager(EhcacheLogMinerEventProcessor.java:127)
      connect_1    |  ... 13 more
      connect_1    | Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Method.invoke(Object, Object[])" because "com.sun.xml.bind.v2.runtime.reflect.opt.Injector.defineClass" is null
      connect_1    |  at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:311)
      connect_1    |  at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:97)
      connect_1    |  at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:87)
      connect_1    |  at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:179)
      connect_1    |  at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:285)
      connect_1    |  at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.<init>(TransducedAccessor.java:235)
      connect_1    |  at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAccessor.java:175)
      connect_1    |  at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.calcTransducer(RuntimeClassInfoImpl.java:245)
      connect_1    |  at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getTransducer(RuntimeClassInfoImpl.java:219)
      connect_1    |  at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.link(RuntimeClassInfoImpl.java:196)
      connect_1    |  at com.sun.xml.bind.v2.model.impl.ModelBuilder.link(ModelBuilder.java:454)
      connect_1    |  at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.link(RuntimeModelBuilder.java:133)
      connect_1    |  at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:469)
      connect_1    |  at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:303)
      connect_1    |  at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:139)
      connect_1    |  at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156)
      connect_1    |  at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165)
      connect_1    |  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      connect_1    |  at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      connect_1    |  at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:251)
      connect_1    |  at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:240)
      connect_1    |  at javax.xml.bind.ContextFinder.find(ContextFinder.java:363)
      connect_1    |  at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:691)
      connect_1    |  at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:632)
      connect_1    |  at org.ehcache.xml.ConfigurationParser.<init>(ConfigurationParser.java:130)
      connect_1    |  at org.ehcache.xml.XmlConfiguration.<init>(XmlConfiguration.java:175)
      connect_1    |  ... 16 more
      

            ccranfor@redhat.com Chris Cranford
            ccranfor@redhat.com Chris Cranford
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: