question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] no String-argument constructor/factory method to deserialize from String value ('')

See original GitHub issue

Describe the bug Based on this tutorial, I want to use an Integration to read Kafka topic data. But I got the bellow bug after upgrading Thingsboard 3.1.1 I did search kafka document, the issue caused by the kafka integration which does not implemented with "–property key.deserializer=org.apache.kafka.common.serialization.StringDeserializer ".

Your Server Environment

  • own setup
    • my cloud vm

    • ThingsBoard Version: 3.1.1

    • Ubuntu 18.04 Your Client Environment= Desktop (please complete the following information): MacOS

    • Integration: Kafka

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘Integration’
  2. Click on ‘integration/event’
  3. Choose “Lifecycle event type”
  4. See error

com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of java.util.LinkedHashMap(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('') at [Source: (String)"{"groupId":"group_id_6238ulbcnz","clientId":"client_id_cl15o71g1y","topics":"solar-module-anomalies","bootstrapServers":"134.129.97.131:9092","pollInterval":5000,"autoCreateTopics":false,"otherProperties":""}"; line: 1, column: 206] (through reference chain: org.thingsboard.integration.kafka.KafkaConsumerConfiguration["otherProperties"]) at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63) at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1429) at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1059) at com.fasterxml.jackson.databind.deser.ValueInstantiator._createFromStringFallbacks(ValueInstantiator.java:371) at com.fasterxml.jackson.databind.deser.ValueInstantiator.createFromString(ValueInstantiator.java:258) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:357) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:29) at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4202) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3205) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3173) at org.thingsboard.integration.kafka.AbstractKafkaIntegration.init(AbstractKafkaIntegration.java:61) at org.thingsboard.integration.kafka.basic.BasicKafkaIntegration.init(BasicKafkaIntegration.java:52) at org.thingsboard.server.service.integration.DefaultPlatformIntegrationService.getOrCreateThingsboardPlatformIntegration(DefaultPlatformIntegrationService.java:938) at org.thingsboard.server.service.integration.DefaultPlatformIntegrationService.lambda$createIntegration$1(DefaultPlatformIntegrationService.java:346) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
YevhenBondarenkocommented, Oct 19, 2020

I believe by the end of this month.

0reactions
quocnhcommented, Oct 16, 2020

When Thingsboard 3.2.0 version will be released you can upgrade your old version using the instruction.

Great! Could you please tell me about the release time so that we can arrange our work better?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No String-argument constructor/factory method to deserialize ...
Instead of sending values for my Address bean, I'm getting just an empty string. Unfortunately, I'm receiving my data from a third party...
Read more >
No String-argument constructor/factory method to ... - GitHub
I think I know the problem here: there is no way to link creator (constructor) property and backing value field: By default, constructor...
Read more >
Java – no String-argument constructor/factory method to deserialize ...
Java – no String-argument constructor/factory method to deserialize from String value – Exception while deserializing json object from restTemplate.
Read more >
Using Optional with Jackson - Baeldung
Optional: no String-argument constructor/factory method to deserialize from String value ('The Parish Boy's Progress')
Read more >
Cannot construct instance of `org.candlepin.dto.api.v1 ...
ConsumerTypeDTO` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('system') at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found