You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for some reason maven loads guava 18.0 instead of 27.0.1-jre and that leads to the following error:
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
at net.consensys.cava.bytes.ArrayWrappingBytes.<init>(ArrayWrappingBytes.java:39)
at net.consensys.cava.bytes.Bytes.wrap(Bytes.java:83)
at net.consensys.cava.bytes.Bytes.wrap(Bytes.java:58)
at net.consensys.cava.bytes.Bytes.<clinit>(Bytes.java:46)
at net.consensys.cava.rlp.RLPWriter.writeBigInteger(RLPWriter.java:102)
at com.kryptokrauts.aeternity.sdk.service.transaction.impl.TransactionServiceImpl.lambda$spendTxNative$0(TransactionServiceImpl.java:96)
at net.consensys.cava.rlp.AccumulatingRLPWriter.writeList(AccumulatingRLPWriter.java:67)
at net.consensys.cava.rlp.DelegatingRLPWriter.writeList(DelegatingRLPWriter.java:76)
at net.consensys.cava.rlp.RLP.encodeList(RLP.java:83)
at com.kryptokrauts.aeternity.sdk.service.transaction.impl.TransactionServiceImpl.spendTxNative(TransactionServiceImpl.java:87)
at com.kryptokrauts.aeternity.sdk.service.transaction.impl.TransactionServiceImpl.createSpendTx(TransactionServiceImpl.java:48)
at AeppsTest.main(AeppsTest.java:60)
Workarounds
include the current guava version in the maven project
use gradle ;-)
The text was updated successfully, but these errors were encountered:
The problem is class path pollution due to duplicated dependencies to guava transitively coming from the bitcoinj and cava-crypto.
Solution is to use maven dependencyManagement and declare the current version in a uniform manner
@mitch-lbw in order to make sure our SDK always uses the right guava version we explicitely want to add the specific version as dependency in our project so that maven users wouldn't need that workaround
Problem
for some reason maven loads guava
18.0
instead of27.0.1-jre
and that leads to the following error:Workarounds
gradle
;-)The text was updated successfully, but these errors were encountered: