Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1936

Unable to execute transactions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.3.0
    • None
    • transactions
    • None
    • 1

    Description

      Hi Graham, 

      Trying to run any transaction (eg: transaction with single insert), we are running into below issue:

      22:13:55.730 [cb-txn-5] ERROR reactor.core.scheduler.Schedulers - Scheduler worker in group main failed with an uncaught exception
      java.lang.ExceptionInInitializerError: null
          at com.couchbase.client.core.transaction.CoreTransactionAttemptContext.selectAtrLocked(CoreTransactionAttemptContext.java:1102) ~[classes/:na]
          at com.couchbase.client.core.transaction.CoreTransactionAttemptContext.lambda$initAtrIfNeededLocked$56(CoreTransactionAttemptContext.java:1074) ~[classes/:na]
          at reactor.core.publisher.MonoCallable.call(MonoCallable.java:92) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:127) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.Mono.subscribe(Mono.java:4323) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoIgnorePublisher.subscribe(MonoIgnorePublisher.java:57) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.Mono.subscribe(Mono.java:4338) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:255) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:236) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete(MonoIgnoreThen.java:203) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.Operators.complete(Operators.java:137) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoEmpty.subscribe(MonoEmpty.java:46) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.Mono.subscribe(Mono.java:4338) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:255) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.onNext(MonoSubscribeOn.java:146) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:249) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:120) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.FluxMap$MapSubscriber.request(FluxMap.java:162) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoFlatMap$FlatMapInner.onSubscribe(MonoFlatMap.java:238) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.FluxMap$MapSubscriber.onSubscribe(FluxMap.java:92) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe(MonoFlatMap.java:110) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.Mono.subscribe(Mono.java:4338) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:126) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.4.9.jar:3.4.9]
          at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.4.9.jar:3.4.9]
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
          at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na]
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
          at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
      Caused by: java.lang.RuntimeException: Fatal error loading ATR ids, transactions will not operate
          at com.couchbase.client.core.transaction.atr.ActiveTransactionRecordIds.<clinit>(ActiveTransactionRecordIds.java:77) ~[classes/:na]
          ... 48 common frames omitted
      Caused by: java.lang.NullPointerException: null
          at java.base/java.io.Reader.<init>(Reader.java:168) ~[na:na]
          at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:76) ~[na:na]
          at com.couchbase.client.core.transaction.atr.ActiveTransactionRecordIds.<clinit>(ActiveTransactionRecordIds.java:65) ~[classes/:na]
          ... 48 common frames omitted
      22:13:55.872 [cb-events] INFO  com.couchbase.core - [com.couchbase.core][BucketOpenedEvent][307ms] Opened bucket "default" {"coreId":"0x6674f22100000001"}
      

      Attachments

        Activity

          People

            graham.pople Graham Pople
            praneeth.bokka Praneeth Bokka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty