cardano-foundation / cf-ledger-sync

An open-source Java application designed to facilitate access to indexed Cardano blockchain data
https://cardano-foundation.github.io/cf-ledger-sync/
Apache License 2.0
21 stars 2 forks source link

Json error while converting Datum to json #75

Closed satran004 closed 11 months ago

satran004 commented 11 months ago

Branch: develop

com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
 at [Source: (String)""; line: 1, column: 0]
        at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
        at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4916)
        at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4818)
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3772)
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3740)
        at org.cardanofoundation.ledgersync.common.util.JsonUtil.getPrettyJson(JsonUtil.java:37)
        at org.cardanofoundation.ledgersync.explorerconsumer.service.impl.DatumServiceImpl.lambda$handleTransactionOutput$6(DatumServiceImpl.java:141)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at org.cardanofoundation.ledgersync.explorerconsumer.service.impl.DatumServiceImpl.handleTransactionOutput(DatumServiceImpl.java:131)
        at org.cardanofoundation.ledgersync.explorerconsumer.service.impl.DatumServiceImpl.lambda$handleDatum$0(DatumServiceImpl.java:50)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at org.cardanofoundation.ledgersync.explorerconsumer.service.impl.DatumServiceImpl.handleDatum(DatumServiceImpl.java:45)
        at org.cardanofoundation.ledgersync.explorerconsumer.service.impl.TransactionServiceImpl.prepareAndHandleTxs(TransactionServiceImpl.java:134)
        at org.cardanofoundation.ledgersync.explorerconsumer.service.impl.block.BlockSyncServiceImpl.handleBlockSync(BlockSyncServiceImpl.java:78)
        at org.cardanofoundation.ledgersync.explorerconsumer.service.impl.block.BlockSyncServiceImpl.startBlockSyncing(BlockSyncServiceImpl.java:50)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)