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

Misleading Debezium error message when RDI port is not specified in application.properties

XMLWordPrintable

    • False
    • None
    • False

      In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      Oracle, any version

      What behavior do you expect?

      Clear message indicationg the issue

      What behavior do you see?

      Misleading error message

      Do you see the same behavior using the latest released Debezium version?

      Yes

      Do you have the connector logs, ideally from start till finish?

      Yes

      How to reproduce the issue using our tutorial deployment?

      Define property without port like that:
      debezium.sink.redis.address=localhost
      Should be like that:
      debezium.sink.redis.address=<host>:<port>

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      Yes

       

      The error is:
      Failed to start application (with profile [prod]): java.lang.RuntimeException: Failed to start quarkus
              at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
              at io.quarkus.runtime.Application.start(Application.java:101)
              at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)
              at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
              at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
              at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
              at io.debezium.server.Main.main(Main.java:15)
      Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 9
              at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
              at java.base/java.lang.String.substring(String.java:1874)
              at redis.clients.jedis.HostAndPort.from(HostAndPort.java:58)
              at io.debezium.storage.redis.RedisConnection.getRedisClient(RedisConnection.java:72)
              at io.debezium.server.redis.RedisStreamChangeConsumer.connect(RedisStreamChangeConsumer.java:101)
              at io.debezium.server.redis.RedisStreamChangeConsumer_Bean.doCreate(Unknown Source)
              at io.debezium.server.redis.RedisStreamChangeConsumer_Bean.create(Unknown Source)
              at io.debezium.server.redis.RedisStreamChangeConsumer_Bean.create(Unknown Source)
              at io.debezium.server.DebeziumServer.start(DebeziumServer.java:129)
              at io.debezium.server.DebeziumServer_Bean.doCreate(Unknown Source)
              at io.debezium.server.DebeziumServer_Bean.create(Unknown Source)
              at io.debezium.server.DebeziumServer_Bean.create(Unknown Source)
              at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:113)
              at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:37)
              at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:34)
              at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
              at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
              at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:34)
              at io.quarkus.arc.impl.ClientProxies.getApplicationScopedDelegate(ClientProxies.java:21)
              at io.debezium.server.DebeziumServer_ClientProxy.arc$delegate(Unknown Source)
              at io.debezium.server.DebeziumServer_ClientProxy.arc_contextualInstance(Unknown Source)
              at io.debezium.server.DebeziumServer_Observer_Synthetic_f28a48f6bdce4326db44aec92fdb5c84d535b5d9.notify(Unknown Source)
              at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:346)
              at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:328)
              at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:82)
              at io.quarkus.arc.runtime.ArcRecorder.fireLifecycleEvent(ArcRecorder.java:155)
              at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:106)
              at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy_0(Unknown Source)
              at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy(Unknown Source)
              ... 7 more

              Unassigned Unassigned
              sergey.eizner Sergey Eizner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: