Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion to decimal128 would require inexact rounding #73

Open
lesaux opened this issue Mar 15, 2024 · 0 comments
Open

Conversion to decimal128 would require inexact rounding #73

lesaux opened this issue Mar 15, 2024 · 0 comments

Comments

@lesaux
Copy link

lesaux commented Mar 15, 2024

Hello,
I tried connecting chainlens to a private geth network running POA clique v1.13.14 and seeing this weird error.
Any idea what I could look into?
This log comes from the ingestion process.

Caused by: java.lang.NumberFormatException: Conversion to Decimal128 would require inexact rounding of 899999999989999996999.94388034539486037
	at org.bson.types.Decimal128.ensureExactRounding(Decimal128.java:250) ~[bson-4.9.1.jar!/:na]
	at org.bson.types.Decimal128.clampAndRound(Decimal128.java:239) ~[bson-4.9.1.jar!/:na]
	at org.bson.types.Decimal128.<init>(Decimal128.java:175) ~[bson-4.9.1.jar!/:na]
	at org.bson.types.Decimal128.<init>(Decimal128.java:162) ~[bson-4.9.1.jar!/:na]
	at io.epirus.explorer.ingestion.transactions.processors.TransactionAccountsProcessor.getEntityUpdate(TransactionAccountsProcessor.kt:94) ~[classes!/:3.3.10]
	at io.epirus.explorer.ingestion.transactions.processors.TransactionAccountsProcessor.process$lambda$10(TransactionAccountsProcessor.kt:43) ~[classes!/:3.3.10]
	at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1375) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[na:na]
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[na:na]"```
@lesaux lesaux changed the title inexact rounding Conversion to decimal128 would require inexact rounding Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant