Spring cloud stream + After a producer error subscription to the IN channel breaks - reactive-programming

We are using spring-cloud-stream-binder-kafka 3.1.1 version.
Looking to handle intermittent kafka publishing failures.
Below is our existing configuration,
spring:
cloud:
function:
definition: execute;supplyPayment;
routing-expression:
stream:
kafka:
default:
producer:
errorChannelEnabled: true
binder:
brokers: localhost:9094
producer-properties:
retries: 20
max.in.flight.requests.per.connection: 10
linger.ms: 100
request.timeout.ms: 3000
batch.size: 20000
retry.backoff.ms: 1000
bindings:
execute-in-0:
destination: test-in-source
group: consumer-dedupe
concurrency: 2
execute-out-0:
destination: test-out-topic
producer:
error-channel-enabled: true
Able to get hold of the producer error using ServiceActivator.
#ServiceActivator(inputChannel = "errorChannel")
public void handle(final ErrorMessage em) {
log.error("Error caught" + em.toString());
}
Was expecting no exception to be thrown as we have the ServiceActivator implemented, but we see TimeoutException thrown
org.apache.kafka.common.errors.TimeoutException: Topic test-out-topic not present in metadata after 60000 ms.
2021-12-09|06:11:25.267 ERROR o.s.c.s.f.FunctionConfiguration$FunctionToDestinationBinder - intuit_tid= provider_id= entity_type= Failure was detected during execution of the reactive function 'execute'
org.springframework.messaging.MessageHandlingException: error occurred in message handler [org.springframework.cloud.stream.binder.kafka.KafkaMessageChannelBinder$ProducerConfigurationMessageHandler#48ea8766]; nested exception is org.springframework.kafka.KafkaException: Send failed; nested exception is org.apache.kafka.common.errors.TimeoutException: Topic test-out-topic not present in metadata after 60000 ms., failedMessage=GenericMessage [payload=byte[1046], headers={intuit_originatingip=192.19.0.1, entity_version=v1, entity_processing_status=SUCCESS, PIPELINE_ID=1, target-protocol=kafka, ROUTING_INFO=RoutingInfo(currentPipelineNode=PipelineNode{id=0, type=null, sourceTopic=null, pipelineNodeStatus=null, errorHandlerClassName=null, errorTopicName=null}, executedPipelineNodeList=[PipelineNode{id=1, type=PROCESSOR, sourceTopic=idx-payment-source, pipelineNodeStatus=SUCCESS, errorHandlerClassName=com.intuit.fdp.enrichment.messagemesh.errorhandler.impl.ContinueProcessingErrorHandler, errorTopicName=null}, PipelineNode{id=2, type=PROCESSOR, sourceTopic=idx-payment-source, pipelineNodeStatus=SUCCESS, errorHandlerClassName=com.intuit.fdp.enrichment.messagemesh.errorhandler.impl.ContinueProcessingErrorHandler, errorTopicName=null}]), id=d9be7b62-711d-2200-2da7-775bc9ed4bbd, contentType=application/json, kafka_receivedTimestamp=1639059024747, intuit_realmid=123148525896109, intuit_iddomain=test, timestamp=1639059025243, test=testValue, intuit_tid=978bd234-48cc-4914-8afc-9c84be5c467e, intuit_offeringid=Intuit.platform.qbo.dtx.ui, deliveryAttempt=1, kafka_timestampType=CREATE_TIME, intuit_locale=en_US, kafka_receivedTopic=idx-payment-source, kafka_offset=2, entity_type=PaymentTransactionEvent, entity_namespace=com.intuit.idx.event.payment.v1, kafka_consumer=org.apache.kafka.clients.consumer.KafkaConsumer#597cf885, intuit_country=US, provider_id=1234, intuit_corpid=Jacinda, kafka_receivedPartitionId=0, kafka_groupId=consumer-dedupe}]
at org.springframework.integration.support.utils.IntegrationUtils.wrapInHandlingExceptionIfNecessary(IntegrationUtils.java:192)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Assembly trace from producer [reactor.core.publisher.FluxPeekFuseable] :
reactor.core.publisher.Flux.doOnNext
org.springframework.cloud.stream.function.FunctionConfiguration$FunctionToDestinationBinder.lambda$bindFunctionToDestinations$9(FunctionConfiguration.java:501)
Error has been observed at the following site(s):
|_ Flux.doOnNext ⇢ at org.springframework.cloud.stream.function.FunctionConfiguration$FunctionToDestinationBinder.lambda$bindFunctionToDestinations$9(FunctionConfiguration.java:501)
Stack trace:
at org.springframework.integration.support.utils.IntegrationUtils.wrapInHandlingExceptionIfNecessary(IntegrationUtils.java:192)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:65)
at org.springframework.cloud.stream.binder.AbstractMessageChannelBinder$SendingHandler.handleMessageInternal(AbstractMessageChannelBinder.java:1041)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:56)
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:115)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:133)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:106)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:72)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:317)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:272)
at org.springframework.cloud.stream.function.FunctionConfiguration$FunctionToDestinationBinder.lambda$null$7(FunctionConfiguration.java:518)
at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:196)
at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:210)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:127)
at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:210)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:127)
at reactor.core.publisher.FluxFlatMap$FlatMapMain.tryEmit(FluxFlatMap.java:542)
at reactor.core.publisher.FluxFlatMap$FlatMapInner.onNext(FluxFlatMap.java:1006)
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107)
at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79)
at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1815)
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:249)
at reactor.core.publisher.MonoMetricsFuseable$MetricsFuseableSubscriber.onNext(MonoMetricsFuseable.java:132)
at
---
Caused by: org.springframework.kafka.KafkaException: Send failed; nested exception is org.apache.kafka.common.errors.TimeoutException: Topic test-out-topic not present in metadata after 60000 ms.
And also the errorHandler is logging the producer error,
ErrorMessage [payload=org.springframework.integration.kafka.support.KafkaSendFailureException: nested exception is org.springframework.kafka.core.KafkaProducerException: Failed to send; nested exception is org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for test-out-topic-0:120000 ms has passed since batch creation, failedMessage=GenericMessage [payload=byte[1044], headers={intuit_originatingip=192.19.0.1, entity_version=v1, entity_processing_status=SUCCESS, PIPELINE_ID=1, target-protocol=kafka, ROUTING_INFO=RoutingInfo(currentPipelineNode=PipelineNode{id=0, type=null, sourceTopic=null, pipelineNodeStatus=null, errorHandlerClassName=null, errorTopicName=null}, executedPipelineNodeList=[PipelineNode{id=1, type=PROCESSOR, sourceTopic=idx-payment-source, pipelineNodeStatus=SUCCESS, errorHandlerClassName=com.intuit.fdp.enrichment.messagemesh.errorhandler.impl.ContinueProcessingErrorHandler, errorTopicName=null}, PipelineNode{id=2, type=PROCESSOR, sourceTopic=idx-payment-source, pipelineNodeStatus=SUCCESS, errorHandlerClassName=com.intuit.fdp.enrichment.messagemesh.errorhandler.impl.ContinueProcessingErrorHandler, errorTopicName=null}]), id=5ea18c46-1074-41bd-8ac6-adfc1aba7811, contentType=application/json, kafka_receivedTimestamp=1639058994738, intuit_realmid=123148525896109, intuit_iddomain=test, timestamp=1639058995246, test=testValue, intuit_tid=0a19feb2-e90c-4a3d-b9ef-94294bbd5ebd, intuit_offeringid=Intuit.platform.qbo.dtx.ui, deliveryAttempt=1, kafka_timestampType=CREATE_TIME, intuit_locale=en_US, kafka_receivedTopic=idx-payment-source, kafka_offset=1, entity_type=PaymentTransactionEvent, entity_namespace=com.intuit.idx.event.payment.v1, kafka_consumer=org.apache.kafka.clients.consumer.KafkaConsumer#597cf885, intuit_country=US, provider_id=1234, intuit_corpid=Angela, kafka_receivedPartitionId=0, kafka_groupId=consumer-dedupe}] [record=ProducerRecord(topic=test-out-topic, partition=null, headers=RecordHeaders(headers = [RecordHeader(key = intuit_originatingip, value = [49, 57, 50, 46, 49, 57, 46, 48, 46, 49]), RecordHeader(key = entity_version, value = [118, 49]), RecordHeader(key = entity_processing_status, value = [83, 85, 67, 67, 69, 83, 83]), RecordHeader(key = PIPELINE_ID, value = [49]), RecordHeader(key = target-protocol, value = [107, 97, 102, 107, 97]), RecordHeader(key = ROUTING_INFO, value = [123, 34, 99, 117, 114, 114, 101, 110, 116, 80, 105, 112, 101, 108, 105, 110, 101, 78, 111, 100, 101, 34, 58, 123, 34, 105, 100, 34, 58, 48, 44, 34, 103, 114, 111, 117, 112, 73, 100, 34, 58, 110, 117, 108, 108, 44, 34, 97, 114, 116, 105, 102, 97, 99, 116, 73, 100, 34, 58, 110, 117, 108, 108, 44, 34, 118, 101, 114, 115, 105, 111, 110, 34, 58, 110, 117, 108, 108, 44, 34, 116, 121, 112, 101, 34, 58, 110, 117, 108, 108, 44, 34, 114, 117, 110, 116, 105, 109, 101, 73, 100, 34, 58, 110, 117, 108, 108, 44, 34, 101, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 115, 34, 58, 91, 93, 44, 34, 115, 111, 117, 114, 99, 101, 84, 111, 112, 105, 99, 34, 58, 110, 117, 108, 108, 44, 34, 112, 105, 112, 101, 108, 105, 110, 101, 78, 111, 100, 101, 83, 116, 97, 116, 117, 115, 34, 58, 110, 117, 108, 108, 44, 34, 101, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 67, 108, 97, 115, 115, 78, 97, 109, 101, 34, 58, 110, 117, 108, 108, 44, 34, 101, 114, 114, 111, 114, 84, 111, 112, 105, 99, 78, 97, 109, 101, 34, 58, 110, 117, 108, 108, 125, 44, 34, 101, 120, 101, 99, 117, 116, 101, 100, 80, 105, 112, 101, 108, 105, 110, 101, 78, 111, 100, 101, 76, 105, 115, 116, 34, 58, 91, 123, 34, 105, 100, 34, 58, 49, 44, 34, 103, 114, 111, 117, 112, 73, 100, 34, 58, 34, 99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 109, 101, 115, 115, 97, 103, 101, 109, 101, 115, 104, 34, 44, 34, 97, 114, 116, 105, 102, 97, 99, 116, 73, 100, 34, 58, 34, 100, 101, 100, 117, 112, 101, 34, 44, 34, 118, 101, 114, 115, 105, 111, 110, 34, 58, 34, 48, 46, 49, 46, 49, 57, 34, 44, 34, 116, 121, 112, 101, 34, 58, 34, 80, 82, 79, 67, 69, 83, 83, 79, 82, 34, 44, 34, 114, 117, 110, 116, 105, 109, 101, 73, 100, 34, 58, 34, 105, 100, 120, 45, 100, 101, 100, 117, 112, 101, 34, 44, 34, 101, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 115, 34, 58, 91, 93, 44, 34, 115, 111, 117, 114, 99, 101, 84, 111, 112, 105, 99, 34, 58, 34, 105, 100, 120, 45, 112, 97, 121, 109, 101, 110, 116, 45, 115, 111, 117, 114, 99, 101, 34, 44, 34, 112, 105, 112, 101, 108, 105, 110, 101, 78, 111, 100, 101, 83, 116, 97, 116, 117, 115, 34, 58, 34, 83, 85, 67, 67, 69, 83, 83, 34, 44, 34, 101, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 67, 108, 97, 115, 115, 78, 97, 109, 101, 34, 58, 34, 99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 102, 100, 112, 46, 101, 110, 114, 105, 99, 104, 109, 101, 110, 116, 46, 109, 101, 115, 115, 97, 103, 101, 109, 101, 115, 104, 46, 101, 114, 114, 111, 114, 104, 97, 110, 100, 108, 101, 114, 46, 105, 109, 112, 108, 46, 67, 111, 110, 116, 105, 110, 117, 101, 80, 114, 111, 99, 101, 115, 115, 105, 110, 103, 69, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 34, 44, 34, 101, 114, 114, 111, 114, 84, 111, 112, 105, 99, 78, 97, 109, 101, 34, 58, 110, 117, 108, 108, 125, 44, 123, 34, 105, 100, 34, 58, 50, 44, 34, 103, 114, 111, 117, 112, 73, 100, 34, 58, 34, 99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 109, 101, 115, 115, 97, 103, 101, 109, 101, 115, 104, 34, 44, 34, 97, 114, 116, 105, 102, 97, 99, 116, 73, 100, 34, 58, 34, 112, 101, 114, 115, 105, 115, 116, 34, 44, 34, 118, 101, 114, 115, 105, 111, 110, 34, 58, 34, 48, 46, 49, 46, 49, 57, 34, 44, 34, 116, 121, 112, 101, 34, 58, 34, 80, 82, 79, 67, 69, 83, 83, 79, 82, 34, 44, 34, 114, 117, 110, 116, 105, 109, 101, 73, 100, 34, 58, 34, 105, 100, 120, 45, 100, 101, 100, 117, 112, 101, 34, 44, 34, 101, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 115, 34, 58, 91, 123, 34, 101, 114, 114, 111, 114, 67, 111, 100, 101, 34, 58, 34, 52, 48, 48, 34, 44, 34, 101, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 67, 108, 97, 115, 115, 78, 97, 109, 101, 34, 58, 34, 99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 102, 100, 112, 46, 101, 110, 114, 105, 99, 104, 109, 101, 110, 116, 46, 109, 101, 115, 115, 97, 103, 101, 109, 101, 115, 104, 46, 101, 114, 114, 111, 114, 104, 97, 110, 100, 108, 101, 114, 46, 105, 109, 112, 108, 46, 80, 117, 98, 108, 105, 115, 104, 84, 111, 69, 114, 114, 111, 114, 84, 111, 112, 105, 99, 69, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 34, 44, 34, 101, 114, 114, 111, 114, 84, 111, 112, 105, 99, 78, 97, 109, 101, 34, 58, 34, 105, 100, 120, 45, 101, 114, 114, 111, 114, 45, 116, 111, 112, 105, 99, 34, 125, 44, 123, 34, 101, 114, 114, 111, 114, 67, 111, 100, 101, 34, 58, 34, 42, 34, 44, 34, 101, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 67, 108, 97, 115, 115, 78, 97, 109, 101, 34, 58, 34, 99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 102, 100, 112, 46, 101, 110, 114, 105, 99, 104, 109, 101, 110, 116, 46, 109, 101, 115, 115, 97, 103, 101, 109, 101, 115, 104, 46, 101, 114, 114, 111, 114, 104, 97, 110, 100, 108, 101, 114, 46, 105, 109, 112, 108, 46, 83, 116, 111, 112, 80, 114, 111, 99, 101, 115, 115, 105, 110, 103, 69, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 34, 44, 34, 101, 114, 114, 111, 114, 84, 111, 112, 105, 99, 78, 97, 109, 101, 34, 58, 110, 117, 108, 108, 125, 93, 44, 34, 115, 111, 117, 114, 99, 101, 84, 111, 112, 105, 99, 34, 58, 34, 105, 100, 120, 45, 112, 97, 121, 109, 101, 110, 116, 45, 115, 111, 117, 114, 99, 101, 34, 44, 34, 112, 105, 112, 101, 108, 105, 110, 101, 78, 111, 100, 101, 83, 116, 97, 116, 117, 115, 34, 58, 34, 83, 85, 67, 67, 69, 83, 83, 34, 44, 34, 101, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 67, 108, 97, 115, 115, 78, 97, 109, 101, 34, 58, 34, 99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 102, 100, 112, 46, 101, 110, 114, 105, 99, 104, 109, 101, 110, 116, 46, 109, 101, 115, 115, 97, 103, 101, 109, 101, 115, 104, 46, 101, 114, 114, 111, 114, 104, 97, 110, 100, 108, 101, 114, 46, 105, 109, 112, 108, 46, 67, 111, 110, 116, 105, 110, 117, 101, 80, 114, 111, 99, 101, 115, 115, 105, 110, 103, 69, 114, 114, 111, 114, 72, 97, 110, 100, 108, 101, 114, 34, 44, 34, 101, 114, 114, 111, 114, 84, 111, 112, 105, 99, 78, 97, 109, 101, 34, 58, 110, 117, 108, 108, 125, 93, 125]), RecordHeader(key = contentType, value = [97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, 106, 115, 111, 110]), RecordHeader(key = intuit_realmid, value = [49, 50, 51, 49, 52, 56, 53, 50, 53, 56, 57, 54, 49, 48, 57]), RecordHeader(key = intuit_iddomain, value = [116, 101, 115, 116]), RecordHeader(key = test, value = [116, 101, 115, 116, 86, 97, 108, 117, 101]), RecordHeader(key = intuit_tid, value = [48, 97, 49, 57, 102, 101, 98, 50, 45, 101, 57, 48, 99, 45, 52, 97, 51, 100, 45, 98, 57, 101, 102, 45, 57, 52, 50, 57, 52, 98, 98, 100, 53, 101, 98, 100]), RecordHeader(key = intuit_offeringid, value = [73, 110, 116, 117, 105, 116, 46, 112, 108, 97, 116, 102, 111, 114, 109, 46, 113, 98, 111, 46, 100, 116, 120, 46, 117, 105]), RecordHeader(key = intuit_locale, value = [101, 110, 95, 85, 83]), RecordHeader(key = entity_type, value = [80, 97, 121, 109, 101, 110, 116, 84, 114, 97, 110, 115, 97, 99, 116, 105, 111, 110, 69, 118, 101, 110, 116]), RecordHeader(key = entity_namespace, value = [99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 105, 100, 120, 46, 101, 118, 101, 110, 116, 46, 112, 97, 121, 109, 101, 110, 116, 46, 118, 49]), RecordHeader(key = intuit_country, value = [85, 83]), RecordHeader(key = provider_id, value = [49, 50, 51, 52]), RecordHeader(key = intuit_corpid, value = [65, 110, 103, 101, 108, 97]), RecordHeader(key = spring_json_header_types, value = [123, 34, 105, 110, 116, 117, 105, 116, 95, 111, 114, 105, 103, 105, 110, 97, 116, 105, 110, 103, 105, 112, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 101, 110, 116, 105, 116, 121, 95, 118, 101, 114, 115, 105, 111, 110, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 116, 101, 115, 116, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 116, 105, 100, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 111, 102, 102, 101, 114, 105, 110, 103, 105, 100, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 100, 101, 108, 105, 118, 101, 114, 121, 65, 116, 116, 101, 109, 112, 116, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 101, 110, 116, 105, 116, 121, 95, 112, 114, 111, 99, 101, 115, 115, 105, 110, 103, 95, 115, 116, 97, 116, 117, 115, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 80, 73, 80, 69, 76, 73, 78, 69, 95, 73, 68, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 73, 110, 116, 101, 103, 101, 114, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 108, 111, 99, 97, 108, 101, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 116, 97, 114, 103, 101, 116, 45, 112, 114, 111, 116, 111, 99, 111, 108, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 101, 110, 116, 105, 116, 121, 95, 116, 121, 112, 101, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 101, 110, 116, 105, 116, 121, 95, 110, 97, 109, 101, 115, 112, 97, 99, 101, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 82, 79, 85, 84, 73, 78, 71, 95, 73, 78, 70, 79, 34, 58, 34, 99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 102, 100, 112, 46, 101, 110, 114, 105, 99, 104, 109, 101, 110, 116, 46, 112, 105, 112, 101, 108, 105, 110, 101, 46, 112, 114, 111, 99, 101, 115, 115, 111, 114, 115, 46, 82, 111, 117, 116, 105, 110, 103, 73, 110, 102, 111, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 99, 111, 117, 110, 116, 114, 121, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 112, 114, 111, 118, 105, 100, 101, 114, 95, 105, 100, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 99, 111, 114, 112, 105, 100, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 99, 111, 110, 116, 101, 110, 116, 84, 121, 112, 101, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 114, 101, 97, 108, 109, 105, 100, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 105, 100, 100, 111, 109, 97, 105, 110, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 125])], isReadOnly = true), key=null, value=[B#dfd024f, timestamp=null)], headers={id=1823c929-83f7-4b15-358f-821b3ae843b4, timestamp=1639059115250}]
Looks like since the Timeout exception is thrown, the subscriber for the in channel is lost and seeing the below logged by the errorChannel,
ErrorMessage [payload=org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for channel 'application-1.execute-in-0'.; nested exception is org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers, failedMessage=GenericMessage [payload=byte[761], headers={intuit_originatingip=192.19.0.1, entity_version=[B#24abc8d8, test=[B#677453b9, intuit_tid=[B#20a8288, intuit_offeringid=[B#3feabc33, deliveryAttempt=3, kafka_timestampType=CREATE_TIME, intuit_locale=en_US, kafka_receivedTopic=idx-payment-source, kafka_offset=5, entity_type=[B#45fd5e1e, entity_namespace=[B#513483, kafka_consumer=org.apache.kafka.clients.consumer.KafkaConsumer#597cf885, intuit_country=US, provider_id=[B#5619f8c3, intuit_corpid=[B#3c78cd17, kafka_receivedPartitionId=0, contentType=application/json, kafka_receivedTimestamp=1639059114780, kafka_groupId=consumer-dedupe, intuit_realmid=[B#135a7928, intuit_iddomain=test}], failedMessage=GenericMessage [payload=byte[761], headers={intuit_originatingip=192.19.0.1, entity_version=[B#24abc8d8, test=[B#677453b9, intuit_tid=[B#20a8288, intuit_offeringid=[B#3feabc33, deliveryAttempt=3, kafka_timestampType=CREATE_TIME, intuit_locale=en_US, kafka_receivedTopic=idx-payment-source, kafka_offset=5, entity_type=[B#45fd5e1e, entity_namespace=[B#513483, kafka_consumer=org.apache.kafka.clients.consumer.KafkaConsumer#597cf885, intuit_country=US, provider_id=[B#5619f8c3, intuit_corpid=[B#3c78cd17, kafka_receivedPartitionId=0, contentType=application/json, kafka_receivedTimestamp=1639059114780, kafka_groupId=consumer-dedupe, intuit_realmid=[B#135a7928, intuit_iddomain=test}], headers={kafka_data=ConsumerRecord(topic = idx-payment-source, partition = 0, leaderEpoch = 0, offset = 5, CreateTime = 1639059114780, serialized key size = -1, serialized value size = 1186, headers = RecordHeaders(headers = [RecordHeader(key = intuit_originatingip, value = [49, 57, 50, 46, 49, 57, 46, 48, 46, 49]), RecordHeader(key = entity_version, value = [118, 49]), RecordHeader(key = test, value = [116, 101, 115, 116, 86, 97, 108, 117, 101]), RecordHeader(key = intuit_tid, value = [56, 49, 55, 53, 52, 55, 51, 54, 45, 101, 102, 97, 55, 45, 52, 102, 53, 48, 45, 98, 101, 101, 57, 45, 102, 50, 54, 48, 48, 56, 101, 49, 53, 48, 101, 48]), RecordHeader(key = intuit_offeringid, value = [73, 110, 116, 117, 105, 116, 46, 112, 108, 97, 116, 102, 111, 114, 109, 46, 113, 98, 111, 46, 100, 116, 120, 46, 117, 105]), RecordHeader(key = intuit_locale, value = [101, 110, 95, 85, 83]), RecordHeader(key = entity_type, value = [80, 97, 121, 109, 101, 110, 116, 84, 114, 97, 110, 115, 97, 99, 116, 105, 111, 110, 69, 118, 101, 110, 116]), RecordHeader(key = entity_namespace, value = [99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 105, 100, 120, 46, 101, 118, 101, 110, 116, 46, 112, 97, 121, 109, 101, 110, 116, 46, 118, 49]), RecordHeader(key = intuit_country, value = [85, 83]), RecordHeader(key = provider_id, value = [84, 101, 115, 116, 80, 114, 111, 118, 49, 50, 51, 52]), RecordHeader(key = intuit_corpid, value = [74, 97, 99, 105, 110, 100, 97]), RecordHeader(key = contentType, value = [97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, 106, 115, 111, 110]), RecordHeader(key = intuit_realmid, value = [49, 50, 51, 49, 52, 56, 53, 50, 53, 56, 57, 54, 49, 48, 57]), RecordHeader(key = intuit_iddomain, value = [116, 101, 115, 116]), RecordHeader(key = spring_json_header_types, value = [123, 34, 105, 110, 116, 117, 105, 116, 95, 111, 114, 105, 103, 105, 110, 97, 116, 105, 110, 103, 105, 112, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 99, 111, 117, 110, 116, 114, 121, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 108, 111, 99, 97, 108, 101, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 99, 111, 110, 116, 101, 110, 116, 84, 121, 112, 101, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 105, 100, 100, 111, 109, 97, 105, 110, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 125])], isReadOnly = false), key = null, value = [B#3609e9b), id=99a23404-032b-363c-ae7a-2e5f6cd83ef8, sourceData=ConsumerRecord(topic = idx-payment-source, partition = 0, leaderEpoch = 0, offset = 5, CreateTime = 1639059114780, serialized key size = -1, serialized value size = 1186, headers = RecordHeaders(headers = [RecordHeader(key = intuit_originatingip, value = [49, 57, 50, 46, 49, 57, 46, 48, 46, 49]), RecordHeader(key = entity_version, value = [118, 49]), RecordHeader(key = test, value = [116, 101, 115, 116, 86, 97, 108, 117, 101]), RecordHeader(key = intuit_tid, value = [56, 49, 55, 53, 52, 55, 51, 54, 45, 101, 102, 97, 55, 45, 52, 102, 53, 48, 45, 98, 101, 101, 57, 45, 102, 50, 54, 48, 48, 56, 101, 49, 53, 48, 101, 48]), RecordHeader(key = intuit_offeringid, value = [73, 110, 116, 117, 105, 116, 46, 112, 108, 97, 116, 102, 111, 114, 109, 46, 113, 98, 111, 46, 100, 116, 120, 46, 117, 105]), RecordHeader(key = intuit_locale, value = [101, 110, 95, 85, 83]), RecordHeader(key = entity_type, value = [80, 97, 121, 109, 101, 110, 116, 84, 114, 97, 110, 115, 97, 99, 116, 105, 111, 110, 69, 118, 101, 110, 116]), RecordHeader(key = entity_namespace, value = [99, 111, 109, 46, 105, 110, 116, 117, 105, 116, 46, 105, 100, 120, 46, 101, 118, 101, 110, 116, 46, 112, 97, 121, 109, 101, 110, 116, 46, 118, 49]), RecordHeader(key = intuit_country, value = [85, 83]), RecordHeader(key = provider_id, value = [84, 101, 115, 116, 80, 114, 111, 118, 49, 50, 51, 52]), RecordHeader(key = intuit_corpid, value = [74, 97, 99, 105, 110, 100, 97]), RecordHeader(key = contentType, value = [97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, 106, 115, 111, 110]), RecordHeader(key = intuit_realmid, value = [49, 50, 51, 49, 52, 56, 53, 50, 53, 56, 57, 54, 49, 48, 57]), RecordHeader(key = intuit_iddomain, value = [116, 101, 115, 116]), RecordHeader(key = spring_json_header_types, value = [123, 34, 105, 110, 116, 117, 105, 116, 95, 111, 114, 105, 103, 105, 110, 97, 116, 105, 110, 103, 105, 112, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 99, 111, 117, 110, 116, 114, 121, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 108, 111, 99, 97, 108, 101, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 99, 111, 110, 116, 101, 110, 116, 84, 121, 112, 101, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 44, 34, 105, 110, 116, 117, 105, 116, 95, 105, 100, 100, 111, 109, 97, 105, 110, 34, 58, 34, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 114, 105, 110, 103, 34, 125])], isReadOnly = false), key = null, value = [B#3609e9b), timestamp=1639059117896}] for original GenericMessage [payload=byte[761], headers={intuit_originatingip=192.19.0.1, entity_version=[B#24abc8d8, test=[B#677453b9, intuit_tid=[B#20a8288, intuit_offeringid=[B#3feabc33, deliveryAttempt=3, kafka_timestampType=CREATE_TIME, intuit_locale=en_US, kafka_receivedTopic=idx-payment-source, kafka_offset=5, entity_type=[B#45fd5e1e, entity_namespace=[B#513483, kafka_consumer=org.apache.kafka.clients.consumer.KafkaConsumer#597cf885, intuit_country=US, provider_id=[B#5619f8c3, intuit_corpid=[B#3c78cd17, kafka_receivedPartitionId=0, contentType=application/json, kafka_receivedTimestamp=1639059114780, kafka_groupId=consumer-dedupe, intuit_realmid=[B#135a7928, intuit_iddomain=test}]
Once this occurs, even after the kafka issue is resolved, the application is not able to recover unless restarted.
Here is the sample project, https://github.com/ssruthisree/reactive-processor-kafka aggregate is my Function that is publishing. To replicate the error steps done: 1) Start appln 2) Verify messages consumed by aggregate and published to transform topic. 3) Delete the transform topic 4) Exception thrown from Producer not caught by Flux's onError.
How can we avoid the subscription failure on producer errors? And continue consuming once kafka issue is resolved without application restart?

This means that you are having a reactive function while trying to use the error handling mechanism designed for imperative functions.
That will not work since we (the spring-cloud-stream framework) can not handle any reactive errors since we simply don't see them.
Imperative functions are message handlers. They are invoked once per message, hence we can wrap it around and handle errors.
Reactive functions are invoked only once when stream is initialized. Form that point the control is within the reactive API, so you must use extensive error handling support provided by reactive API (e.g., doOnError(..) etc.)
Your error Dispatcher has no subscribers . . ., simply means that your reactive subscription failed (due to some processing error) and unsubscribed from the channel (stream is no longer functioning).

Related

Flutter the doctor check crashed because of Visual Studio

i want to install flutter but every time when i use the flutter doctor command then it crashed because of Visual Studio Exception.
Visual Studio - develop for Windows (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
about this issue at https://github.com/flutter/flutter/issues.
X Exception: Bad UTF-8 encoding (U+FFFD; REPLACEMENT CHARACTER) found while decoding string: [
{
"instanceId": "772ff8a9",
"installDate": "2022-05-15T08:58:24Z",
"installationName": "VisualStudio/17.2.0+32505.173",
"installationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community",
"installationVersion": "17.2.32505.173",
"productId": "Microsoft.VisualStudio.Product.Community",
"productPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\devenv.exe",
"state": 4294967295,
"isComplete": true,
"isLaunchable": true,
"isPrerelease": false,
"isRebootRequired": false,
"displayName": "Visual Studio Community 2022",
"description": "Leistungsstarke IDE, kostenlos f�r Studenten, Open-Source-Mitwirkende und Einzelpersonen",
"channelId": "VisualStudio.17.Release",
"channelUri": "https://aka.ms/vs/17/release/channel",
"enginePath": "C:\\Program Files (x86)\\Microsoft Visual
Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
"installedChannelUri": "https://aka.ms/vs/17/release/channel",
"releaseNotes": "https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.2#17.2.0",
"thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288",
"updateDate": "2022-05-15T08:58:24.7196335Z",
"catalog": {
"buildBranch": "d17.2",
"buildVersion": "17.2.32505.173",
"id": "VisualStudio/17.2.0+32505.173",
"localBuild": "build-lab",
"manifestName": "VisualStudio",
"manifestType": "installer",
"productDisplayVersion": "17.2.0",
"productLine": "Dev17",
"productLineVersion": "2022",
"productMilestone": "RTW",
"productMilestoneIsPreRelease": "False",
"productName": "Visual Studio",
"productPatchVersion": "0",
"productPreReleaseMilestoneSuffix": "7.0",
"productSemanticVersion": "17.2.0+32505.173",
"requiredEngineVersion": "3.2.2146.50370"
},
"properties": {
"campaignId": "2030:e0f42e6f-47a4-4dec-83b8-446b521c8eaf",
"channelManifestId": "VisualStudio.17.Release/17.2.0+32505.173",
"nickname": "",
"setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe"
}
}
]
. The Flutter team would greatly appreciate if you could file a bug explaining exactly what you were doing when
this happened:
https://github.com/flutter/flutter/issues/new/choose
The source bytes were:
[91, 13, 10, 32, 32, 123, 13, 10, 32, 32, 32, 32, 34, 105, 110, 115, 116, 97, 110, 99, 101, 73, 100, 34, 58, 32,
34, 55, 55, 50, 102, 102, 56, 97, 57, 34, 44, 13, 10, 32, 32, 32, 32, 34, 105, 110, 115, 116, 97, 108, 108, 68,
97, 116, 101, 34, 58, 32, 34, 50, 48, 50, 50, 45, 48, 53, 45, 49, 53, 84, 48, 56, 58, 53, 56, 58, 50, 52, 90, 34,
44, 13, 10, 32, 32, 32, 32, 34, 105, 110, 115, 116, 97, 108, 108, 97, 116, 105, 111, 110, 78, 97, 109, 101, 34,
58, 32, 34, 86, 105, 115, 117, 97, 108, 83, 116, 117, 100, 105, 111, 47, 49, 55, 46, 50, 46, 48, 43, 51, 50, 53,
48, 53, 46, 49, 55, 51, 34, 44, 13, 10, 32, 32, 32, 32, 34, 105, 110, 115, 116, 97, 108, 108, 97, 116, 105, 111,
110, 80, 97, 116, 104, 34, 58, 32, 34, 67, 58, 92, 92, 80, 114, 111, 103, 114, 97, 109, 32, 70, 105, 108, 101,
115, 92, 92, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 86, 105, 115, 117, 97, 108, 32, 83, 116, 117, 100,
105, 111, 92, 92, 50, 48, 50, 50, 92, 92, 67, 111, 109, 109, 117, 110, 105, 116, 121, 34, 44, 13, 10, 32, 32, 32,
32, 34, 105, 110, 115, 116, 97, 108, 108, 97, 116, 105, 111, 110, 86, 101, 114, 115, 105, 111, 110, 34, 58, 32,
34, 49, 55, 46, 50, 46, 51, 50, 53, 48, 53, 46, 49, 55, 51, 34, 44, 13, 10, 32, 32, 32, 32, 34, 112, 114, 111,
100, 117, 99, 116, 73, 100, 34, 58, 32, 34, 77, 105, 99, 114, 111, 115, 111, 102, 116, 46, 86, 105, 115, 117, 97,
108, 83, 116, 117, 100, 105, 111, 46, 80, 114, 111, 100, 117, 99, 116, 46, 67, 111, 109, 109, 117, 110, 105, 116,
121, 34, 44, 13, 10, 32, 32, 32, 32, 34, 112, 114, 111, 100, 117, 99, 116, 80, 97, 116, 104, 34, 58, 32, 34, 67,
58, 92, 92, 80, 114, 111, 103, 114, 97, 109, 32, 70, 105, 108, 101, 115, 92, 92, 77, 105, 99, 114, 111, 115, 111,
102, 116, 32, 86, 105, 115, 117, 97, 108, 32, 83, 116, 117, 100, 105, 111, 92, 92, 50, 48, 50, 50, 92, 92, 67,
111, 109, 109, 117, 110, 105, 116, 121, 92, 92, 67, 111, 109, 109, 111, 110, 55, 92, 92, 73, 68, 69, 92, 92, 100,
101, 118, 101, 110, 118, 46, 101, 120, 101, 34, 44, 13, 10, 32, 32, 32, 32, 34, 115, 116, 97, 116, 101, 34, 58,
32, 52, 50, 57, 52, 57, 54, 55, 50, 57, 53, 44, 13, 10, 32, 32, 32, 32, 34, 105, 115, 67, 111, 109, 112, 108, 101,
116, 101, 34, 58, 32, 116, 114, 117, 101, 44, 13, 10, 32, 32, 32, 32, 34, 105, 115, 76, 97, 117, 110, 99, 104, 97,
98, 108, 101, 34, 58, 32, 116, 114, 117, 101, 44, 13, 10, 32, 32, 32, 32, 34, 105, 115, 80, 114, 101, 114, 101,
108, 101, 97, 115, 101, 34, 58, 32, 102, 97, 108, 115, 101, 44, 13, 10, 32, 32, 32, 32, 34, 105, 115, 82, 101, 98,
111, 111, 116, 82, 101, 113, 117, 105, 114, 101, 100, 34, 58, 32, 102, 97, 108, 115, 101, 44, 13, 10, 32, 32, 32,
32, 34, 100, 105, 115, 112, 108, 97, 121, 78, 97, 109, 101, 34, 58, 32, 34, 86, 105, 115, 117, 97, 108, 32, 83,
116, 117, 100, 105, 111, 32, 67, 111, 109, 109, 117, 110, 105, 116, 121, 32, 50, 48, 50, 50, 34, 44, 13, 10, 32,
32, 32, 32, 34, 100, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110, 34, 58, 32, 34, 76, 101, 105, 115, 116, 117,
110, 103, 115, 115, 116, 97, 114, 107, 101, 32, 73, 68, 69, 44, 32, 107, 111, 115, 116, 101, 110, 108, 111, 115,
32, 102, 129, 114, 32, 83, 116, 117, 100, 101, 110, 116, 101, 110, 44, 32, 79, 112, 101, 110, 45, 83, 111, 117,
114, 99, 101, 45, 77, 105, 116, 119, 105, 114, 107, 101, 110, 100, 101, 32, 117, 110, 100, 32, 69, 105, 110, 122,
101, 108, 112, 101, 114, 115, 111, 110, 101, 110, 34, 44, 13, 10, 32, 32, 32, 32, 34, 99, 104, 97, 110, 110, 101,
108, 73, 100, 34, 58, 32, 34, 86, 105, 115, 117, 97, 108, 83, 116, 117, 100, 105, 111, 46, 49, 55, 46, 82, 101,
108, 101, 97, 115, 101, 34, 44, 13, 10, 32, 32, 32, 32, 34, 99, 104, 97, 110, 110, 101, 108, 85, 114, 105, 34, 58,
32, 34, 104, 116, 116, 112, 115, 58, 47, 47, 97, 107, 97, 46, 109, 115, 47, 118, 115, 47, 49, 55, 47, 114, 101,
108, 101, 97, 115, 101, 47, 99, 104, 97, 110, 110, 101, 108, 34, 44, 13, 10, 32, 32, 32, 32, 34, 101, 110, 103,
105, 110, 101, 80, 97, 116, 104, 34, 58, 32, 34, 67, 58, 92, 92, 80, 114, 111, 103, 114, 97, 109, 32, 70, 105,
108, 101, 115, 32, 40, 120, 56, 54, 41, 92, 92, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 86, 105, 115, 117,
97, 108, 32, 83, 116, 117, 100, 105, 111, 92, 92, 73, 110, 115, 116, 97, 108, 108, 101, 114, 92, 92, 114, 101,
115, 111, 117, 114, 99, 101, 115, 92, 92, 97, 112, 112, 92, 92, 83, 101, 114, 118, 105, 99, 101, 72, 117, 98, 92,
92, 83, 101, 114, 118, 105, 99, 101, 115, 92, 92, 77, 105, 99, 114, 111, 115, 111, 102, 116, 46, 86, 105, 115,
117, 97, 108, 83, 116, 117, 100, 105, 111, 46, 83, 101, 116, 117, 112, 46, 83, 101, 114, 118, 105, 99, 101, 34,
44, 13, 10, 32, 32, 32, 32, 34, 105, 110, 115, 116, 97, 108, 108, 101, 100, 67, 104, 97, 110, 110, 101, 108, 85,
114, 105, 34, 58, 32, 34, 104, 116, 116, 112, 115, 58, 47, 47, 97, 107, 97, 46, 109, 115, 47, 118, 115, 47, 49,
55, 47, 114, 101, 108, 101, 97, 115, 101, 47, 99, 104, 97, 110, 110, 101, 108, 34, 44, 13, 10, 32, 32, 32, 32, 34,
114, 101, 108, 101, 97, 115, 101, 78, 111, 116, 101, 115, 34, 58, 32, 34, 104, 116, 116, 112, 115, 58, 47, 47,
100, 111, 99, 115, 46, 109, 105, 99, 114, 111, 115, 111, 102, 116, 46, 99, 111, 109, 47, 101, 110, 45, 117, 115,
47, 118, 105, 115, 117, 97, 108, 115, 116, 117, 100, 105, 111, 47, 114, 101, 108, 101, 97, 115, 101, 115, 47, 50,
48, 50, 50, 47, 114, 101, 108, 101, 97, 115, 101, 45, 110, 111, 116, 101, 115, 45, 118, 49, 55, 46, 50, 35, 49,
55, 46, 50, 46, 48, 34, 44, 13, 10, 32, 32, 32, 32, 34, 116, 104, 105, 114, 100, 80, 97, 114, 116, 121, 78, 111,
116, 105, 99, 101, 115, 34, 58, 32, 34, 104, 116, 116, 112, 115, 58, 47, 47, 103, 111, 46, 109, 105, 99, 114, 111,
115, 111, 102, 116, 46, 99, 111, 109, 47, 102, 119, 108, 105, 110, 107, 47, 63, 76, 105, 110, 107, 73, 100, 61,
54, 54, 49, 50, 56, 56, 34, 44, 13, 10, 32, 32, 32, 32, 34, 117, 112, 100, 97, 116, 101, 68, 97, 116, 101, 34, 58,
32, 34, 50, 48, 50, 50, 45, 48, 53, 45, 49, 53, 84, 48, 56, 58, 53, 56, 58, 50, 52, 46, 55, 49, 57, 54, 51, 51,
53, 90, 34, 44, 13, 10, 32, 32, 32, 32, 34, 99, 97, 116, 97, 108, 111, 103, 34, 58, 32, 123, 13, 10, 32, 32, 32,
32, 32, 32, 34, 98, 117, 105, 108, 100, 66, 114, 97, 110, 99, 104, 34, 58, 32, 34, 100, 49, 55, 46, 50, 34, 44,
13, 10, 32, 32, 32, 32, 32, 32, 34, 98, 117, 105, 108, 100, 86, 101, 114, 115, 105, 111, 110, 34, 58, 32, 34, 49,
55, 46, 50, 46, 51, 50, 53, 48, 53, 46, 49, 55, 51, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 105, 100, 34, 58,
32, 34, 86, 105, 115, 117, 97, 108, 83, 116, 117, 100, 105, 111, 47, 49, 55, 46, 50, 46, 48, 43, 51, 50, 53, 48,
53, 46, 49, 55, 51, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 108, 111, 99, 97, 108, 66, 117, 105, 108, 100, 34,
58, 32, 34, 98, 117, 105, 108, 100, 45, 108, 97, 98, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 109, 97, 110,
105, 102, 101, 115, 116, 78, 97, 109, 101, 34, 58, 32, 34, 86, 105, 115, 117, 97, 108, 83, 116, 117, 100, 105,
111, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 109, 97, 110, 105, 102, 101, 115, 116, 84, 121, 112, 101, 34, 58,
32, 34, 105, 110, 115, 116, 97, 108, 108, 101, 114, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 112, 114, 111,
100, 117, 99, 116, 68, 105, 115, 112, 108, 97, 121, 86, 101, 114, 115, 105, 111, 110, 34, 58, 32, 34, 49, 55, 46,
50, 46, 48, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 112, 114, 111, 100, 117, 99, 116, 76, 105, 110, 101, 34,
58, 32, 34, 68, 101, 118, 49, 55, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 112, 114, 111, 100, 117, 99, 116,
76, 105, 110, 101, 86, 101, 114, 115, 105, 111, 110, 34, 58, 32, 34, 50, 48, 50, 50, 34, 44, 13, 10, 32, 32, 32,
32, 32, 32, 34, 112, 114, 111, 100, 117, 99, 116, 77, 105, 108, 101, 115, 116, 111, 110, 101, 34, 58, 32, 34, 82,
84, 87, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 112, 114, 111, 100, 117, 99, 116, 77, 105, 108, 101, 115, 116,
111, 110, 101, 73, 115, 80, 114, 101, 82, 101, 108, 101, 97, 115, 101, 34, 58, 32, 34, 70, 97, 108, 115, 101, 34,
44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 112, 114, 111, 100, 117, 99, 116, 78, 97, 109, 101, 34, 58, 32, 34, 86,
105, 115, 117, 97, 108, 32, 83, 116, 117, 100, 105, 111, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 112, 114,
111, 100, 117, 99, 116, 80, 97, 116, 99, 104, 86, 101, 114, 115, 105, 111, 110, 34, 58, 32, 34, 48, 34, 44, 13,
10, 32, 32, 32, 32, 32, 32, 34, 112, 114, 111, 100, 117, 99, 116, 80, 114, 101, 82, 101, 108, 101, 97, 115, 101,
77, 105, 108, 101, 115, 116, 111, 110, 101, 83, 117, 102, 102, 105, 120, 34, 58, 32, 34, 55, 46, 48, 34, 44, 13,
10, 32, 32, 32, 32, 32, 32, 34, 112, 114, 111, 100, 117, 99, 116, 83, 101, 109, 97, 110, 116, 105, 99, 86, 101,
114, 115, 105, 111, 110, 34, 58, 32, 34, 49, 55, 46, 50, 46, 48, 43, 51, 50, 53, 48, 53, 46, 49, 55, 51, 34, 44,
13, 10, 32, 32, 32, 32, 32, 32, 34, 114, 101, 113, 117, 105, 114, 101, 100, 69, 110, 103, 105, 110, 101, 86, 101,
114, 115, 105, 111, 110, 34, 58, 32, 34, 51, 46, 50, 46, 50, 49, 52, 54, 46, 53, 48, 51, 55, 48, 34, 13, 10, 32,
32, 32, 32, 125, 44, 13, 10, 32, 32, 32, 32, 34, 112, 114, 111, 112, 101, 114, 116, 105, 101, 115, 34, 58, 32,
123, 13, 10, 32, 32, 32, 32, 32, 32, 34, 99, 97, 109, 112, 97, 105, 103, 110, 73, 100, 34, 58, 32, 34, 50, 48, 51,
48, 58, 101, 48, 102, 52, 50, 101, 54, 102, 45, 52, 55, 97, 52, 45, 52, 100, 101, 99, 45, 56, 51, 98, 56, 45, 52,
52, 54, 98, 53, 50, 49, 99, 56, 101, 97, 102, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 99, 104, 97, 110, 110,
101, 108, 77, 97, 110, 105, 102, 101, 115, 116, 73, 100, 34, 58, 32, 34, 86, 105, 115, 117, 97, 108, 83, 116, 117,
100, 105, 111, 46, 49, 55, 46, 82, 101, 108, 101, 97, 115, 101, 47, 49, 55, 46, 50, 46, 48, 43, 51, 50, 53, 48,
53, 46, 49, 55, 51, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 110, 105, 99, 107, 110, 97, 109, 101, 34, 58, 32,
34, 34, 44, 13, 10, 32, 32, 32, 32, 32, 32, 34, 115, 101, 116, 117, 112, 69, 110, 103, 105, 110, 101, 70, 105,
108, 101, 80, 97, 116, 104, 34, 58, 32, 34, 67, 58, 92, 92, 80, 114, 111, 103, 114, 97, 109, 32, 70, 105, 108,
101, 115, 32, 40, 120, 56, 54, 41, 92, 92, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 86, 105, 115, 117, 97,
108, 32, 83, 116, 117, 100, 105, 111, 92, 92, 73, 110, 115, 116, 97, 108, 108, 101, 114, 92, 92, 115, 101, 116,
117, 112, 46, 101, 120, 101, 34, 13, 10, 32, 32, 32, 32, 125, 13, 10, 32, 32, 125, 13, 10, 93, 13, 10]
i cant find a solution.
maybe anyone can describe me how to fix this problem.
I tryed to reinstall the build tools in visual studio and restart the computer but nothing is working and the problem fixes i found wasnt the right.
I had the same problem and found the solution while searching on Flutter repo issues. Looks like the cause is a bug in vswhere. The solution is to replace vswhere.exe in C:\Program Files (x86)\Microsoft Visual Studio\Installer with the latest version.
The latest version can be found here: https://github.com/microsoft/vswhere/releases
Source: https://github.com/flutter/flutter/issues/102451
Maybe this error is happening because of Flutter's latest version. So you can download an older version like 2.10.5 there: https://docs.flutter.dev/development/tools/sdk/releases

Problem in decoding h264 raw frame in swift

I try to decode an inputstream of [UInt8] to h264 video , I have search the whole web and read the beautiful detailed answer of olivia How to use VideoToolbox to decompress H.264 video stream , I tried to convert her objc answer to swift but it didn't worked for me .
Then i came to this nice pod https://github.com/songbihai/VideoDecoder?ref=iosexample.com the problem is i am getting some of images completely and some other in half green ,
Beside this image issue , the other issue i have is this code doesn't work on real device(iPad pro 2019 , iOS 15), and gives me
DecodeError.decompressionOutputCallback(-12909)
which as I searched means bad data(!?) , and this is just for my stream the example file included in pod is ok, I tried to tweak some parameters but when I did it just didn't give me anything both on simulator and the real device.
this is one part of data that I'm getting
1, 0, 0, 0, 85, 3, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 253, 8, 0, 0, 6, 102, 1, 0, 53, 3, 0, 0, 4, 1, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 97, 224, 112, 124, 79, 87, 150, 179, 234, 117, 62, 173, 161, 255, 77, 252, 87, 185, 125, 113, 31, 255, 255, 87, 241, 151, 222, 199, 142, 213, 117, 121, 250, 180, 99, 215, 101, 247, 175, 94, 229, 188, 214, 166, 189, 243, 107, 139, 188, 215, 170, 203, 138, 174, 181, 38, 226, 122, 180, 220, 187, 228, 229, 239, 8, 47, 215, 235, 245, 253, 98, 247, 23, 186, 235, 81, 26, 155, 189, 241, 21, 87, 142, 235, 95, 90, 159, 171, 212, 35, 147, 171, 244, 228, 234, 241, 61, 106, 78, 173, 84, 174, 242, 195, 61, 125, 117, 175, 171, 205, 85, 105, 175, 25, 213, 165, 234, 247, 214, 162, 124, 208, 133, 123, 95, 87, 174, 181, 17, 187, 235, 95, 87, 133, 191, 93, 111, 35, 249, 122, 212, 41, 214, 164, 235, 215, 205, 127, 212, 223, 191, 12, 49, 122, 123, 105, 188, 144, 238, 35, 171, 86, 253, 195, 143, 233, 252, 109, 215, 213, 170, 173, 234, 94, 181, 9, 119, 175, 142, 147, 179, 235, 213, 246, 229, 234, 213, 213, 190, 251, 201, 221, 120, 222, 175, 243, 111, 164, 55, 101, 191, 19, 17, 151, 155, 215, 94, 241, 253, 90, 47, 171, 117, 151, 81, 92, 215, 125, 87, 147, 63, 55, 180, 77, 221, 99, 43, 223, 175, 17, 141, 239, 79, 44, 51, 215, 213, 103, 228, 247, 87, 147, 173, 77, 201, 218, 147, 247, 136, 172, 188, 180, 250, 234, 213, 173, 105, 235, 123, 234, 213, 19, 87, 174, 181, 10, 94, 171, 93, 90, 42, 176, 142, 19, 221, 127, 47, 74, 185, 123, 207, 133, 101, 198, 233, 100, 132, 57, 111, 253, 94, 90, 196, 86, 126, 11, 123, 232, 246, 155, 147, 165, 9, 117, 120, 158, 189, 92, 102, 143, 189, 157, 143, 96, 95, 193, 85, 27, 119, 109, 46, 214, 131, 171, 227, 175, 233, 116, 116, 252, 22, 117, 183, 99, 243, 102, 190, 47, 58, 134, 47, 69, 241, 158, 187, 123, 116, 244, 31, 193, 12, 210, 216, 216, 141, 189, 245, 168, 67, 115, 241, 126, 158, 223, 198, 250, 91, 116, 52, 61, 122, 15, 151, 211, 252, 41, 236, 39, 76, 149, 239, 122, 119, 191, 205, 175, 224, 135, 216, 153, 240, 133, 47, 64, 126, 255, 31, 211, 219, 247, 246, 89, 24, 227, 55, 39, 87, 159, 113, 187, 142, 234, 208, 75, 184, 107, 130, 75, 125, 136, 156, 146, 110, 93, 250, 140, 234, 245, 120, 158, 93, 15, 124, 157, 168, 142, 181, 238, 28, 235, 221, 226, 123, 167, 196, 98, 100, 220, 70, 225, 77, 215, 86, 251, 239, 47, 55, 181, 226, 116, 251, 89, 186, 180, 61, 201, 111, 139, 230, 239, 92, 212, 184, 107, 171, 198, 106, 106, 205, 201, 127, 228, 239, 25, 213, 253, 43, 201, 201, 127, 230, 244, 15, 203, 75, 146, 209, 188, 184, 42, 241, 60, 154, 235, 151, 75, 124, 221, 185, 111, 55, 90, 159, 154, 203, 136, 172, 70, 235, 190, 178, 240, 81, 218, 191, 98, 184, 158, 221, 127, 190, 213, 242, 122, 248, 202, 210, 233, 94, 148, 170, 149, 14, 184, 78, 191, 183, 226, 180, 187, 31, 225, 46, 236, 73, 255, 25, 239, 163, 214, 235, 97, 176, 252, 37, 239, 189, 112, 81, 234, 170, 142, 223, 8, 251, 237, 167, 106, 190, 16, 238, 235, 178, 176, 255, 31, 207, 11, 59, 185, 55, 191, 130, 207, 44, 45, 232, 156, 198, 255, 17, 181, 75, 68, 161, 30, 79, 114, 113, 93, 236, 249, 121, 111, 205, 194, 22, 182, 244, 237, 255, 8, 119, 245, 98, 254, 46, 213, 83, 206, 24, 15, 197, 221, 191, 127, 132, 111, 125, 157, 200, 65, 219, 126, 59, 96, 94, 195, 158, 25, 249, 169, 255, 8, 123, 62, 205, 28, 141, 75, 193, 85, 135, 172, 112, 221, 213, 45, 34, 241, 222, 77, 161, 49, 253, 175, 139, 221, 171, 21, 143, 229, 218, 252, 20, 216, 246, 223, 175, 175, 138, 239, 162, 252, 18, 119, 215, 197, 123, 105, 115, 117, 233, 234, 111, 75, 223, 181, 228, 245, 39, 94, 139, 226, 55, 223, 251, 223, 241, 30, 233, 255, 116, 139, 15, 196, 211, 96, 189, 126, 74, 86, 171, 143, 223, 183, 250, 249, 50, 209, 159, 238, 203, 79, 242, 81, 214, 184, 139, 243, 193, 47, 196, 82, 73, 157, 36, 177, 60, 186, 89, 121, 54, 13, 63, 146, 151, 91, 147, 114, 110, 54, 241, 29, 106, 78, 246, 121, 47, 27, 29, 119, 230, 239, 210, 63, 37, 248, 138, 199, 245, 121, 55, 62, 235, 8, 43, 68, 110, 159, 10, 197, 117, 105, 249, 186, 197, 245, 98, 126, 172, 85, 97, 110, 111, 105, 64

Spring cloud stream infinite retry caused by Avro deserializaton exception

I am using Spring Cloud Stream version 2.2.0 with Kafka binder and Avro. Apparently, an incorrect record has been published to one of the Kafka topics where it is causing all the consumers to return deserialization error and goes to some sort of infinite retry.
Error deserializing key/value for partition realtime-object-1 at offset 908. If needed, please seek past the record to continue consumption. Caused by: org.apache.kafka.common.errors.SerializationException: Error deserializing Avro message for id 13 Caused by: org.apache.kafka.common.errors.SerializationException: Could not find class au.com.brolly.avro.model.GenericTaskTriggerCapsule specified in writer's schema whilst finding reader's schema for a SpecificRecord.
Technically, there should be a way that I can specify the policy for deserialization exceptions. I can find some different policies like logAndContinue and sendToDlq but they are for Kafka streams which I don't use in my application. I would appreciate it if someone can help me to understand what I am missing here.
See the spring-kafka documentation.
Use an ErrorHandlingDeserializer2 to wrap the avro deserializer. The exception will be sent to the error handler (which will just just log the error, by default).
You can use a ListenerContainerCustomizer bean to add a SeekToCurrentErrorHandler (optionally with a DeadLetterPublishingRecoverer) to send the record that failed deserialization to another topic.
EDIT
Here's an example to configure it with Spring Cloud Stream...
#SpringBootApplication
#EnableBinding(Sink.class)
public class So60827393Application {
public static void main(String[] args) {
SpringApplication.run(So60827393Application.class, args);
}
#StreamListener(Sink.INPUT)
public void listen(String in) {
}
#Bean
public ApplicationRunner runner(KafkaTemplate<byte[], byte[]> template) {
return args -> template.send("foo", "foo".getBytes());
}
}
public class MyBadDeserializer implements Deserializer {
#Override
public Object deserialize(String topic, byte[] data) {
throw new RuntimeException("Always fails");
}
}
spring.cloud.stream.bindings.input.destination=foo
spring.cloud.stream.bindings.input.group=foo
spring.cloud.stream.bindings.input.consumer.use-native-decoding=true
spring.cloud.stream.kafka.bindings.input.consumer.configuration.value.deserializer=org.springframework.kafka.support.serializer.ErrorHandlingDeserializer2
spring.cloud.stream.kafka.bindings.input.consumer.configuration.spring.deserializer.value.delegate.class=com.example.demo.MyBadDeserializer
Add any additional properties (such as the schema registry URL) to the configuration as before (the EHD2 configures it's delegate deserializer).
2020-03-24 18:18:35.633 ERROR 61822 --- [container-0-C-1] o.s.kafka.listener.LoggingErrorHandler : Error while processing: ConsumerRecord(topic = foo, partition = 0, leaderEpoch = 0, offset = 0, CreateTime = 1585088312600, serialized key size = -1, serialized value size = 3, headers = RecordHeaders(headers = [RecordHeader(key = springDeserializerExceptionValue, value = [-84, -19, 0, 5, 115, 114, 0, 69, 111, 114, 103, 46, 115, 112, 114, 105, 110, 103, 102, 114, 97, 109, 101, 119, 111, 114, 107, 46, 107, 97, 102, 107, 97, 46, 115, 117, 112, 112, 111, 114, 116, 46, 115, 101, 114, 105, 97, 108, 105, 122, 101, 114, 46, 68, 101, 115, 101, 114, 105, 97, 108, 105, 122, 97, 116, 105, 111, 110, 69, 120, 99, 101, 112, 116, 105, 111, 110, -26, -50, 105, 87, -16, 47, -111, -25, 2, 0, 2, 90, 0, 5, 105, 115, 75, 101, 121, 91, 0, 4, 100, 97, 116, 97, 116, 0, 2, 91, 66, 120, 114, 0, 40, 111, 114, 103, 46, 115, 112, 114, 105, 110, 103, 102, 114, 97, 109, 101, 119, 111, 114, 107, 46, 107, 97, 102, 107, 97, 46, 75, 97, 102, 107, 97, 69, 120, 99, 101, 112, 116, 105, 111, 110, 19, -40, -67, 105, 126, 123, 33, -76, 2, 0, 0, 120, 114, 0, 47, 111, 114, 103, 46, 115, 112, 114, 105, 110, 103, 102, 114, 97, 109, 101, 119, 111, 114, 107, 46, 99, 111, 114, 101, 46, 78, 101, 115, 116, 101, 100, 82, 117, 110, 116, 105, 109, 101, 69, 120, 99, 101, 112, 116, 105, 111, 110, 75, 126, 118, 72, -53, -113, -97, 0, 2, 0, 0, 120, 114, 0, 26, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 82, 117, 110, 116, 105, 109, 101, 69, 120, 99, 101, 112, 116, 105, 111, 110, -98, 95, 6, 71, 10, 52, -125, -27, 2, 0, 0, 120, 114, 0, 19, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 69, 120, 99, 101, 112, 116, 105, 111, 110, -48, -3, 31, 62, 26, 59, 28, -60, 2, 0, 0, 120, 114, 0, 19, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 84, 104, 114, 111, 119, 97, 98, 108, 101, -43, -58, 53, 39, 57, 119, -72, -53, 3, 0, 4, 76, 0, 5, 99, 97, 117, 115, 101, 116, 0, 21, 76, 106, 97, 118, 97, 47, 108, 97, 110, 103, 47, 84, 104, 114, 111, 119, 97, 98, 108, 101, 59, 76, 0, 13, 100, 101, 116, 97, 105, 108, 77, 101, 115, 115, 97, 103, 101, 116, 0, 18, 76, 106, 97, 118, 97, 47, 108, 97, 110, 103, 47, 83, 116, 114, 105, 110, 103, 59, 91, 0, 10, 115, 116, 97, 99, 107, 84, 114, 97, 99, 101, 116, 0, 30, 91, 76, 106, 97, 118, 97, 47, 108, 97, 110, 103, 47, 83, 116, 97, 99, 107, 84, 114, 97, 99, 101, 69, 108, 101, 109, 101, 110, 116, 59, 76, 0, 20, 115, 117, 112, 112, 114, 101, 115, 115, 101, 100, 69, 120, 99, 101, 112, 116, 105, 111, 110, 115, 116, 0, 16, 76, 106, 97, 118, 97, 47, 117, 116, 105, 108, 47, 76, 105, 115, 116, 59, 120, 112, 115, 113, 0, 126, 0, 4, 113, 0, 126, 0, 12, 116, 0, 12, 65, 108, 119, 97, 121, 115, 32, 102, 97, 105, 108, 115, 117, 114, 0, 30, 91, 76, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 97, 99, 107, 84, 114, 97, 99, 101, 69, 108, 101, 109, 101, 110, 116, 59, 2, 70, 42, 60, 60, -3, 34, 57, 2, 0, 0, 120, 112, 0, 0, 0, 18, 115, 114, 0, 27, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 83, 116, 97, 99, 107, 84, 114, 97, 99, 101, 69, 108, 101, 109, 101, 110, 116, 97, 9, -59, -102, 38, 54, -35, -123, 2, 0, 4, 73, 0, 10, 108, 105, 110, 101, 78, 117, 109, 98, 101, 114, 76, 0, 14, 100, 101, 99, 108, 97, 114, 105, 110, 103, 67, 108, 97, 115, 115, 113, 0, 126, 0, 8, 76, 0, 8, 102, 105, 108, 101, 78, 97, 109, 101, 113, 0, 126, 0, 8, 76, 0, 10, 109, 101, 116, 104, 111, 100, 78, 97, 109, 101, 113, 0, 126, 0, 8, 120, 112, 0, 0, 0, 31, 116, 0, 34, 99, 111, 109, 46, 101, 120, 97, 109, 112, 108, 101, 46, 100, 101, 109, 111, 46, 77, 121, 66, 97, 100, 68, 101, 115, 101, 114, 105, 97, 108, 105, 122, 101, 114, 116, 0, 22, 77, 121, 66, 97, 100, 68, 101, 115, 101, 114, 105, 97, 108, 105, 122, 101, 114, 46, 106, 97, 118, 97, 116, 0, 11, 100, 101, 115, 101, 114, 105, 97, 108, 105, 122, 101, 115, 113, 0, 126, 0, 16, 0, 0, 0, 60, 116, 0, 50, 111, 114, 103, 46, 97, 112, 97, 99, 104, 101, 46, 107, 97, 102, 107, 97, 46, 99, 111, 109, 109, 111, 110, 46, 115, 101, 114, 105, 97, 108, 105, 122, 97, 116, 105, 111, 110, 46, 68, 101, 115, 101, 114, 105, 97, 108, 105, 122, 101, 114, 116, 0, 17, 68, 101, 115, 101, 114, 105, 97, 108, 105, 122, 101, 114, 46, 106, 97, 118, 97, 113, 0, 126, 0, 20, 115, 113, 0, 126, 0, 16, 0, 0, 0, -56, 116, 0, 71, 111, 114, 103, 46, 115, 112, 114, 105, 110, 103, 102, 114, 97, 109, 101, 119, 111, 114, 107, 46, 107, 97, 102, 107, 97, 46, 115, 117, 112, 112, 111, 114, 116, 46, 115, 101, 114, 105, 97, 108, 105, 122, 101, 114, 46, 69, 114, 114, 111, 114, 72, 97, 110, 100, 108, 105, 110, 103, 68, 101, 115, 101, 114, 105, 97, 108, 105, 122, 101, 114, 50, 116, 0, 31, 69, 114, 114, 111, 114, 72, 97, 110, 100, 108, 105, 110, 103, 68, 101, 115, 101, 114, 105, 97, 108, 105, 122, 101, 114, 50, 46, 106, 97, 118, 97, 113, 0, 126, 0, 20, 115, 113, 0, 126, 0, 16, 0, 0, 4, -12, 116, 0, 51, 111, 114, 103, 46, 97, 112, 97, 99, 104, 101, 46, 107, 97, 102, 107, 97, 46, 99, 108, 105, 101, 110, 116, 115, 46, 99, 111, 110, 115, 117, 109, 101, 114, 46, 105, 110, 116, 101, 114, 110, 97, 108, 115, 46, 70, 101, 116, 99, 104, 101, 114, 116, 0, 12, 70, 101, 116, 99, 104, 101, 114, 46, 106, 97, 118, 97, 116, 0, 11, 112, 97, 114, 115, 101, 82, 101, 99, 111, 114, 100, 115, 113, 0, 126, 0, 16, 0, 0, 0, 124, 113, 0, 126, 0, 28, 113, 0, 126, 0, 29, 116, 0, 11, 97, 99, 99, 101, 115, 115, 36, 51, 54, 48, 48, 115, 113, 0, 126, 0, 16, 0, 0, 5, -44, 116, 0, 68, 111, 114, 103, 46, 97, 112, 97, 99, 104, 101, 46, 107, 97, 102, 107, 97, 46, 99, 108, 105, 101, 110, 116, 115, 46, 99, 111, 110, 115, 117, 109, 101, 114, 46, 105, 110, 116, 101, 114, 110, 97, 108, 115, 46, 70, 101, 116, 99, 104, 101, 114, 36, 80, 97, 114, 116, 105, 116, 105, 111, 110, 82, 101, 99, 111, 114, 100, 115, 113, 0, 126, 0, 29, 116, 0, 12, 102, 101, 116, 99, 104, 82, 101, 99, 111, 114, 100, 115, 115, 113, 0, 126, 0, 16, 0, 0, 5, 52, 113, 0, 126, 0, 34, 113, 0, 126, 0, 29, 116, 0, 11, 97, 99, 99, 101, 115, 115, 36, 49, 54, 48, 48, 115, 113, 0, 126, 0, 16, 0, 0, 2, -123, 113, 0, 126, 0, 28, 113, 0, 126, 0, 29, 113, 0, 126, 0, 35, 115, 113, 0, 126, 0, 16, 0, 0, 2, 94, 113, 0, 126, 0, 28, 113, 0, 126, 0, 29, 116, 0, 14, 102, 101, 116, 99, 104, 101, 100, 82, 101, 99, 111, 114, 100, 115, 115, 113, 0, 126, 0, 16, 0, 0, 5, 14, 116, 0, 47, 111, 114, 103, 46, 97, 112, 97, 99, 104, 101, 46, 107, 97, 102, 107, 97, 46, 99, 108, 105, 101, 110, 116, 115, 46, 99, 111, 110, 115, 117, 109, 101, 114, 46, 75, 97, 102, 107, 97, 67, 111, 110, 115, 117, 109, 101, 114, 116, 0, 18, 75, 97, 102, 107, 97, 67, 111, 110, 115, 117, 109, 101, 114, 46, 106, 97, 118, 97, 116, 0, 14, 112, 111, 108, 108, 70, 111, 114, 70, 101, 116, 99, 104, 101, 115, 115, 113, 0, 126, 0, 16, 0, 0, 4, -55, 113, 0, 126, 0, 42, 113, 0, 126, 0, 43, 116, 0, 4, 112, 111, 108, 108, 115, 113, 0, 126, 0, 16, 0, 0, 4, -79, 113, 0, 126, 0, 42, 113, 0, 126, 0, 43, 113, 0, 126, 0, 46, 115, 113, 0, 126, 0, 16, 0, 0, 4, 10, 116, 0, 81, 111, 114, 103, 46, 115, 112, 114, 105, 110, 103, 102, 114, 97, 109, 101, 119, 111, 114, 107, 46, 107, 97, 102, 107, 97, 46, 108, 105, 115, 116, 101, 110, 101, 114, 46, 75, 97, 102, 107, 97, 77, 101, 115, 115, 97, 103, 101, 76, 105, 115, 116, 101, 110, 101, 114, 67, 111, 110, 116, 97, 105, 110, 101, 114, 36, 76, 105, 115, 116, 101, 110, 101, 114, 67, 111, 110, 115, 117, 109, 101, 114, 116, 0, 34, 75, 97, 102, 107, 97, 77, 101, 115, 115, 97, 103, 101, 76, 105, 115, 116, 101, 110, 101, 114, 67, 111, 110, 116, 97, 105, 110, 101, 114, 46, 106, 97, 118, 97, 116, 0, 6, 100, 111, 80, 111, 108, 108, 115, 113, 0, 126, 0, 16, 0, 0, 3, -34, 113, 0, 126, 0, 49, 113, 0, 126, 0, 50, 116, 0, 13, 112, 111, 108, 108, 65, 110, 100, 73, 110, 118, 111, 107, 101, 115, 113, 0, 126, 0, 16, 0, 0, 3, -97, 113, 0, 126, 0, 49, 113, 0, 126, 0, 50, 116, 0, 3, 114, 117, 110, 115, 113, 0, 126, 0, 16, 0, 0, 1, -1, 116, 0, 46, 106, 97, 118, 97, 46, 117, 116, 105, 108, 46, 99, 111, 110, 99, 117, 114, 114, 101, 110, 116, 46, 69, 120, 101, 99, 117, 116, 111, 114, 115, 36, 82, 117, 110, 110, 97, 98, 108, 101, 65, 100, 97, 112, 116, 101, 114, 116, 0, 14, 69, 120, 101, 99, 117, 116, 111, 114, 115, 46, 106, 97, 118, 97, 116, 0, 4, 99, 97, 108, 108, 115, 113, 0, 126, 0, 16, 0, 0, 1, 10, 116, 0, 31, 106, 97, 118, 97, 46, 117, 116, 105, 108, 46, 99, 111, 110, 99, 117, 114, 114, 101, 110, 116, 46, 70, 117, 116, 117, 114, 101, 84, 97, 115, 107, 116, 0, 15, 70, 117, 116, 117, 114, 101, 84, 97, 115, 107, 46, 106, 97, 118, 97, 113, 0, 126, 0, 55, 115, 113, 0, 126, 0, 16, 0, 0, 2, -20, 116, 0, 16, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 84, 104, 114, 101, 97, 100, 116, 0, 11, 84, 104, 114, 101, 97, 100, 46, 106, 97, 118, 97, 113, 0, 126, 0, 55, 115, 114, 0, 38, 106, 97, 118, 97, 46, 117, 116, 105, 108, 46, 67, 111, 108, 108, 101, 99, 116, 105, 111, 110, 115, 36, 85, 110, 109, 111, 100, 105, 102, 105, 97, 98, 108, 101, 76, 105, 115, 116, -4, 15, 37, 49, -75, -20, -114, 16, 2, 0, 1, 76, 0, 4, 108, 105, 115, 116, 113, 0, 126, 0, 10, 120, 114, 0, 44, 106, 97, 118, 97, 46, 117, 116, 105, 108, 46, 67, 111, 108, 108, 101, 99, 116, 105, 111, 110, 115, 36, 85, 110, 109, 111, 100, 105, 102, 105, 97, 98, 108, 101, 67, 111, 108, 108, 101, 99, 116, 105, 111, 110, 25, 66, 0, -128, -53, 94, -9, 30, 2, 0, 1, 76, 0, 1, 99, 116, 0, 22, 76, 106, 97, 118, 97, 47, 117, 116, 105, 108, 47, 67, 111, 108, 108, 101, 99, 116, 105, 111, 110, 59, 120, 112, 115, 114, 0, 19, 106, 97, 118, 97, 46, 117, 116, 105, 108, 46, 65, 114, 114, 97, 121, 76, 105, 115, 116, 120, -127, -46, 29, -103, -57, 97, -99, 3, 0, 1, 73, 0, 4, 115, 105, 122, 101, 120, 112, 0, 0, 0, 0, 119, 4, 0, 0, 0, 0, 120, 113, 0, 126, 0, 71, 120, 116, 0, 21, 102, 97, 105, 108, 101, 100, 32, 116, 111, 32, 100, 101, 115, 101, 114, 105, 97, 108, 105, 122, 101, 117, 113, 0, 126, 0, 14, 0, 0, 0, 17, 115, 113, 0, 126, 0, 16, 0, 0, 0, -28, 113, 0, 126, 0, 25, 113, 0, 126, 0, 26, 116, 0, 24, 100, 101, 115, 101, 114, 105, 97, 108, 105, 122, 97, 116, 105, 111, 110, 69, 120, 99, 101, 112, 116, 105, 111, 110, 115, 113, 0, 126, 0, 16, 0, 0, 0, -53, 113, 0, 126, 0, 25, 113, 0, 126, 0, 26, 113, 0, 126, 0, 20, 115, 113, 0, 126, 0, 16, 0, 0, 4, -12, 113, 0, 126, 0, 28, 113, 0, 126, 0, 29, 113, 0, 126, 0, 30, 115, 113, 0, 126, 0, 16, 0, 0, 0, 124, 113, 0, 126, 0, 28, 113, 0, 126, 0, 29, 113, 0, 126, 0, 32, 115, 113, 0, 126, 0, 16, 0, 0, 5, -44, 113, 0, 126, 0, 34, 113, 0, 126, 0, 29, 113, 0, 126, 0, 35, 115, 113, 0, 126, 0, 16, 0, 0, 5, 52, 113, 0, 126, 0, 34, 113, 0, 126, 0, 29, 113, 0, 126, 0, 37, 115, 113, 0, 126, 0, 16, 0, 0, 2, -123, 113, 0, 126, 0, 28, 113, 0, 126, 0, 29, 113, 0, 126, 0, 35, 115, 113, 0, 126, 0, 16, 0, 0, 2, 94, 113, 0, 126, 0, 28, 113, 0, 126, 0, 29, 113, 0, 126, 0, 40, 115, 113, 0, 126, 0, 16, 0, 0, 5, 14, 113, 0, 126, 0, 42, 113, 0, 126, 0, 43, 113, 0, 126, 0, 44, 115, 113, 0, 126, 0, 16, 0, 0, 4, -55, 113, 0, 126, 0, 42, 113, 0, 126, 0, 43, 113, 0, 126, 0, 46, 115, 113, 0, 126, 0, 16, 0, 0, 4, -79, 113, 0, 126, 0, 42, 113, 0, 126, 0, 43, 113, 0, 126, 0, 46, 115, 113, 0, 126, 0, 16, 0, 0, 4, 10, 113, 0, 126, 0, 49, 113, 0, 126, 0, 50, 113, 0, 126, 0, 51, 115, 113, 0, 126, 0, 16, 0, 0, 3, -34, 113, 0, 126, 0, 49, 113, 0, 126, 0, 50, 113, 0, 126, 0, 53, 115, 113, 0, 126, 0, 16, 0, 0, 3, -97, 113, 0, 126, 0, 49, 113, 0, 126, 0, 50, 113, 0, 126, 0, 55, 115, 113, 0, 126, 0, 16, 0, 0, 1, -1, 113, 0, 126, 0, 57, 113, 0, 126, 0, 58, 113, 0, 126, 0, 59, 115, 113, 0, 126, 0, 16, 0, 0, 1, 10, 113, 0, 126, 0, 61, 113, 0, 126, 0, 62, 113, 0, 126, 0, 55, 115, 113, 0, 126, 0, 16, 0, 0, 2, -20, 113, 0, 126, 0, 64, 113, 0, 126, 0, 65, 113, 0, 126, 0, 55, 113, 0, 126, 0, 69, 120, 0, 117, 114, 0, 2, 91, 66, -84, -13, 23, -8, 6, 8, 84, -32, 2, 0, 0, 120, 112, 0, 0, 0, 3, 102, 111, 111])], isReadOnly = false), key = null, value = null)
org.springframework.kafka.listener.ListenerExecutionFailedException: Listener failed; nested exception is org.springframework.kafka.support.serializer.DeserializationException: failed to deserialize; nested exception is java.lang.RuntimeException: Always fails
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1777) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_212]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_212]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_212]
Caused by: org.springframework.kafka.support.serializer.DeserializationException: failed to deserialize; nested exception is java.lang.RuntimeException: Always fails
at org.springframework.kafka.support.serializer.ErrorHandlingDeserializer2.deserializationException(ErrorHandlingDeserializer2.java:228) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.support.serializer.ErrorHandlingDeserializer2.deserialize(ErrorHandlingDeserializer2.java:203) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.apache.kafka.clients.consumer.internals.Fetcher.parseRecord(Fetcher.java:1268) ~[kafka-clients-2.3.1.jar:na]
at org.apache.kafka.clients.consumer.internals.Fetcher.access$3600(Fetcher.java:124) ~[kafka-clients-2.3.1.jar:na]
at org.apache.kafka.clients.consumer.internals.Fetcher$PartitionRecords.fetchRecords(Fetcher.java:1492) ~[kafka-clients-2.3.1.jar:na]
at org.apache.kafka.clients.consumer.internals.Fetcher$PartitionRecords.access$1600(Fetcher.java:1332) ~[kafka-clients-2.3.1.jar:na]
at org.apache.kafka.clients.consumer.internals.Fetcher.fetchRecords(Fetcher.java:645) ~[kafka-clients-2.3.1.jar:na]
at org.apache.kafka.clients.consumer.internals.Fetcher.fetchedRecords(Fetcher.java:606) ~[kafka-clients-2.3.1.jar:na]
at org.apache.kafka.clients.consumer.KafkaConsumer.pollForFetches(KafkaConsumer.java:1294) ~[kafka-clients-2.3.1.jar:na]
at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1225) ~[kafka-clients-2.3.1.jar:na]
at org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1201) ~[kafka-clients-2.3.1.jar:na]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doPoll(KafkaMessageListenerContainer.java:1034) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:990) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
... 4 common frames omitted
Caused by: java.lang.RuntimeException: Always fails
at com.example.demo.MyBadDeserializer.deserialize(MyBadDeserializer.java:31) ~[classes/:na]
at org.apache.kafka.common.serialization.Deserializer.deserialize(Deserializer.java:60) ~[kafka-clients-2.3.1.jar:na]
at org.springframework.kafka.support.serializer.ErrorHandlingDeserializer2.deserialize(ErrorHandlingDeserializer2.java:200) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
... 15 common frames omitted

BadSessionNotActivated,0x80270000,The session cannot be used because ActivateSession has not been called

Whenever I try to send an ActivateSessionRequest to the opcua server, it throws an error stating "BadSessionNotActivated". Below is the message format of ActivateSessionRequest:
var ActivateSessionRequest v_activateSessionReq := {
requestHeader := session_reqHeader,
clientSignature := {
algorithm := valueof(tr_String("http://opcfoundation.org/UA/SecurityPolicy#None")),
Signature := valueof(tr_ByteString({48, 130, 4, 19, 48, 130, 2, 251, 160, 3, 2, 1, 2, 2, 2, 16, 26, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 11, 5, 0, 48, 40, 49, 18, 48, 16, 6, 3, 85, 4, 10, 19, 9, 78, 111, 100, 101, 79, 80, 67, 85, 65, 49, 18, 48, 16, 6, 3, 85, 4, 3, 19, 9, 78, 111, 100, 101, 79, 80, 67, 85, 65, 48, 34, 24, 15, 50, 48, 49, 56, 48, 50, 48, 53, 49, 51, 53, 54, 48, 50, 90, 24, 15, 50, 48, 49, 57, 48, 50, 48, 53, 49, 51, 53, 54, 48, 50, 90, 48, 40, 49, 18, 48, 16, 6, 3, 85, 4, 10, 19, 9, 78, 111, 100, 101, 79, 80, 67, 85, 65, 49, 18, 48, 16, 6, 3, 85, 4, 3, 19, 9, 78, 111, 100, 101, 79, 80, 67, 85, 65, 48, 130, 1, 34, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 1, 5, 0, 3, 130, 1, 15, 0, 48, 130, 1, 10, 2, 130, 1, 1, 0, 178, 243, 137, 233, 196, 81, 105, 65, 195, 121, 2, 212, 193, 216, 187, 73, 213, 135, 135, 163, 140, 13, 165, 74, 203, 63, 212, 221, 158, 178, 59, 89, 71, 118, 141, 147, 102, 111, 5, 111, 52, 36, 160, 187, 189, 244, 38, 0, 200, 206, 33, 174, 227, 110, 132, 79, 202, 59, 223, 29, 116, 217, 12, 193, 191, 44, 87, 168, 113, 69, 125, 23, 239, 71, 139, 38, 121, 203, 255, 54, 196, 68, 199, 249, 43, 206, 32, 255, 192, 10, 134, 200, 71, 104, 150, 176, 66, 233, 241, 17, 227, 3, 96, 172, 169, 164, 96, 113, 114, 190, 194, 28, 232, 161, 46, 241, 170, 0, 70, 215, 89, 228, 130, 219, 152, 216, 85, 234, 72, 142, 103, 63, 211, 101, 238, 224, 160, 84, 134, 171, 241, 148, 60, 212, 190, 250, 16, 203, 248, 212, 153, 16, 56, 159, 153, 185, 202, 239, 135, 150, 185, 188, 80, 207, 62, 122, 172, 25, 110, 80, 124, 166, 227, 86, 32, 97, 137, 35, 164, 156, 1, 150, 51, 64, 140, 180, 196, 162, 32, 131, 207, 170, 144, 19, 90, 251, 239, 173, 33, 65, 135, 125, 110, 137, 2, 184, 106, 146, 55, 166, 217, 141, 127, 163, 137, 57, 91, 158, 133, 29, 218, 205, 174, 98, 208, 123, 30, 240, 42, 29, 102, 187, 113, 26, 166, 30, 55, 207, 49, 32, 132, 173, 115, 155, 7, 207, 206, 201, 27, 209, 52, 198, 119, 210, 142, 161, 2, 3, 1, 0, 1, 163, 130, 1, 65, 48, 130, 1, 61, 48, 12, 6, 3, 85, 29, 19, 1, 1, 255, 4, 2, 48, 0, 48, 29, 6, 3, 85, 29, 14, 4, 22, 4, 20, 162, 197, 27, 92, 111, 157, 37, 181, 146, 213, 162, 250, 174, 112, 194, 229, 164, 3, 176, 205, 48, 81, 6, 3, 85, 29, 35, 4, 74, 48, 72, 128, 20, 162, 197, 27, 92, 111, 157, 37, 181, 146, 213, 162, 250, 174, 112, 194, 229, 164, 3, 176, 205, 161, 44, 164, 42, 48, 40, 49, 18, 48, 16, 6, 3, 85, 4, 10, 19, 9, 78, 111, 100, 101, 79, 80, 67, 85, 65, 49, 18, 48, 16, 6, 3, 85, 4, 3, 19, 9, 78, 111, 100, 101, 79, 80, 67, 85, 65, 130, 2, 16, 26, 48, 91, 6, 3, 85, 29, 17, 4, 84, 48, 82, 134, 44, 117, 114, 110, 58, 97, 118, 100, 111, 111, 116, 99, 104, 97, 108, 107, 101, 45, 86, 105, 114, 116, 117, 97, 108, 66, 111, 120, 58, 78, 111, 100, 101, 79, 80, 67, 85, 65, 45, 83, 101, 114, 118, 101, 114, 130, 9, 108, 111, 99, 97, 108, 104, 111, 115, 116, 130, 23, 97, 118, 100, 111, 111, 116, 99, 104, 97, 108, 107, 101, 45, 86, 105, 114, 116, 117, 97, 108, 66, 111, 120, 48, 44, 6, 9, 96, 134, 72, 1, 134, 248, 66, 1, 13, 4, 31, 22, 29, 79, 112, 101, 110, 83, 83, 76, 32, 71, 101, 110, 101, 114, 97, 116, 101, 100, 32, 67, 101, 114, 116, 105, 102, 105, 99, 97, 116, 101, 48, 14, 6, 3, 85, 29, 15, 1, 1, 255, 4, 4, 3, 2, 2, 252, 48, 32, 6, 3, 85, 29, 37, 1, 1, 255, 4, 22, 48, 20, 6, 8, 43, 6, 1, 5, 5, 7, 3, 1, 6, 8, 43, 6, 1, 5, 5, 7, 3, 2, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 11, 5, 0, 3, 130, 1, 1, 0, 147, 168, 16, 170, 204, 221, 81, 100, 167, 38, 104, 142, 27, 107, 108, 87, 94, 195, 100, 124, 141, 117, 46, 23, 231, 145, 68, 182, 241, 225, 148, 94, 144, 1, 142, 61, 228, 88, 64, 243, 126, 180, 17, 33, 164, 128, 234, 183, 198, 31, 223, 59, 125, 218, 110, 0, 112, 182, 244, 199, 220, 139, 114, 162, 153, 76, 245, 134, 167, 163, 199, 175, 153, 82, 214, 106, 142, 15, 52, 87, 11, 230, 95, 75, 23, 170, 137, 92, 144, 76, 111, 179, 1, 36, 150, 191, 84, 226, 252, 199, 228, 38, 97, 138, 26, 32, 230, 65, 110, 154, 179, 104, 146, 186, 104, 248, 246, 26, 136, 12, 15, 220, 6, 203, 220, 141, 230, 11, 185, 247, 250, 9, 76, 236, 74, 101, 149, 32, 100, 220, 249, 46, 255, 129, 21, 126, 6, 86, 230, 198, 94, 228, 51, 50, 73, 103, 57, 212, 105, 255, 9, 181, 189, 104, 121, 27, 21, 78, 196, 226, 99, 176, 44, 194, 176, 211, 216, 13, 81, 142, 35, 52, 76, 116, 49, 190, 253, 199, 166, 51, 41, 105, 81, 90, 222, 232, 223, 74, 100, 203, 192, 130, 48, 46, 116, 37, 236, 199, 70, 81, 60, 244, 6, 45, 51, 246, 4, 254, 178, 240, 14, 22, 64, 200, 134, 199, 249, 171, 118, 219, 81, 124, 218, 91, 175, 65, 59, 233, 19, 110, 217, 72, 165, 91, 75, 182, 12, 214, 215, 30, 169, 153, 36, 7, 69, 60 ,224, 153, 75, 106, 120, 118, 227, 63, 4, 63, 14, 101, 116, 161, 229, 230, 127, 196, 14, 37, 23, 251, 174, 94, 204, 114, 180, 26, 77, 200, 61, 148}))
},
clientSoftwareCertificates := { realArray := { arrayLength := 0, arrayValues := { } } },
localeIds := valueof(tr_ListOfLocaleId({})),
userIdentityToken := {
encodingByte := 1,
twoByteNodeValue := omit,
namespaceIndex := 0,
fourByteNodeValue := 321,
encoding := 1,
parameterLength := 13,
extensibleParameterBody := {
anonymousIdentityToken := {
policyId := valueof(tr_String( "username_basic256"))
}
}
},
userTokenSignature := {
algorithm := valueof(tr_StringNull),
Signature := valueof(tr_ByteStringNull)
}
}
Client-Server Communication
As shown in the image, ActivateSessionRequest is successful by sending SessionId and AuthenticationToken to the server. The header of ActivateSessionRequest contains AuthenticationToken. But How shall I provide the SessionId to the server? Is it because I am not providing the SessionId in the ActivateSessionRequest that the server throws an error or due to some other mistake? can someone guide me?
Any feedback is highly appreciated. Thank you in Advance
With Regards,
Avdoot

Unable to get an indexvalue of an object in nsmutablearray in iphone

in my application at one place I have to get the index value of a particular object. For this I coded in this manner as shown below.
NSString *a=[NSString stringWithFormat:#"%d",[imagesdmobject.proofID intValue]];
NSLog(#"a value is %#",a);
Here a value is 56
Now I have to get the index of 56 from appdelegate.projectTitlesProofIDArray.
int value=[appdelegate.projectTitlesProofIDArray indexOfObjectIdenticalTo:a];
data in appdelegate.projectTitlesProofIDArray is :
41,
34,
35,
64,
45,
1,
67,
75,
76,
77,
78,
79,
80,
81,
82,
83,
85,
68,
86,
87,
88,
89,
90,
92,
69,
95,
97,
98,
100,
101,
70,
71,
72,
73,
74,
39,
37,
109,
108,
110,
38,
91,
93,
94,
36,
96,
99,
102,
103,
104,
105,
106,
107,
65,
66,
40,
46,
47,
48,
49,
50,
52,
53,
54,
60,
61,
62,
32,
55,
56,
57,
58,
59,
42,
43,
44,
63,
47,
48,
41,
34,
35,
64,
1,
91,
93,
94,
36,
96,
99,
102,
103,
104,
105,
106,
107,
65,
66,
40,
60,
61,
62,
32,
55,
56,
57,
58,
59,
54,
34,
35,
41,
34,
35,
64,
67,
75,
76,
77,
78,
79,
80,
81,
82,
83,
85,
68,
86,
87,
88,
89,
90,
92,
69,
95,
97,
98,
100,
101,
70,
71,
72,
73,
74,
39,
37,
109,
108,
110,
38,
91,
93,
94,
36,
96,
99,
102,
103,
104,
105,
106,
107,
65,
66,
40,
46,
47,
48,
49,
50,
52,
53,
54,
41,
34,
35,
64,
45,
1,
67,
75,
76,
77,
78,
79,
80,
81,
82,
83,
85,
68,
86,
87,
88,
89,
90,
92,
69,
95,
97,
98,
100,
101,
70,
71,
72,
73,
74,
39,
37,
109,
108,
110,
38,
91,
93,
94,
36,
96,
99,
102,
103,
104,
105,
106,
107,
65,
66,
40,
46,
47,
48,
49,
50,
52,
53,
54,
60,
61,
62,
32,
55,
56,
57,
58,
59,
42,
43,
44,
47,
34,
35,
39,
37,
109,
108,
110,
38,
46,
47,
48,
49,
50,
52,
53,
54,
42,
43,
44,
41,
34,
35,
64,
45,
1,
67,
75,
76,
77,
78,
79,
80,
81,
83,
85,
68,
86,
87,
88,
89,
90,
92,
69,
95,
97,
98,
100,
70,
71,
73,
74,
39,
37,
109,
108,
110,
38,
91,
94,
36,
96,
99,
102,
103,
104,
105,
106,
107,
65,
66,
40,
46,
47,
48,
49,
50,
52,
54,
60,
61,
62,
32,
55,
56,
57,
58,
59,
42,
43,
63,
41,
34,
35,
64,
45,
1,
67,
75,
76,
77,
78,
79,
80,
81,
82,
83,
85,
68,
86,
87,
88,
89,
90,
92,
69,
95,
97,
98,
100,
101,
70,
71,
72,
73,
74,
39,
37,
109,
108,
110,
38,
91,
93,
94,
36,
96,
99,
102,
103,
104,
105,
106,
107,
65,
66,
40,
46,
47,
48,
49,
50,
52,
53,
54,
60,
61,
62,
32,
55,
56,
57,
58,
59,
42,
43,
44,
63,
41,
34,
35,
64,
45,
1,
67,
75,
76,
77,
78,
79,
80,
81,
82,
83,
85,
68,
86,
87,
88,
89,
90,
92,
69,
95,
97,
98,
100,
101,
70,
71,
72,
73,
74,
39,
37,
109,
108,
110,
38,
91,
93,
94,
36,
96,
99,
102,
103,
104,
105,
106,
107,
65,
66,
40,
46,
47,
48,
49,
50,
52,
53,
54,
60,
61,
62,
32,
55,
56,
57,
58,
59,
42,
43,
44,
63,
46
56 is there, but I am getting the incorrect value as 2147483647.
Please help me in this issue. I am stuck at this place.
You need to do this:-
Suppose you array contains:-
[array addObject:#"1"];
[array addObject:#"2"];
[array addObject:#"3"];
[array addObject:#"4"];
[array addObject:#"5"];
[array addObject:#"6"];
Now you need to find the index of object 5
if([array containsObject:#"5"])
{
int index=[array indexOfObject:#"5"];
}