Comments (7)
I don't have the square dependency and it works. Which web3j version are you using? Could you paste the imports?
from web3j.
Encountered the same problem!
from web3j.
I don't have the square dependency and it works. Which web3j version are you using? Could you paste the imports?
Hey @saugion, it's in the desc of the issue, isn't it? 🤔
<!-- Web3j - blockchain -->
<dependency>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>4.9.7</version>
</dependency>
from web3j.
I'm sorry @bofomike you're right, i didn't notice it. Could you try to use the last version, https://mvnrepository.com/artifact/org.web3j/core/4.10.3?
from web3j.
I'm sorry @bofomike you're right, i didn't notice it. Could you try to use the last version, https://mvnrepository.com/artifact/org.web3j/core/4.10.3?
I did and it's not working neither.
2023-12-18 13:54:18.762 ERROR 14310 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'] with root cause
java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'
at org.web3j.protocol.http.HttpService.performIO(HttpService.java:153) ~[core-4.10.3.jar!/:na]
at org.web3j.protocol.Service.send(Service.java:48) ~[core-4.10.3.jar!/:na]
at org.web3j.protocol.core.Request.send(Request.java:87) ~[core-4.10.3.jar!/:na]
from web3j.
the square dependency should not be needed as already included in the web3j library. I have the feeling that one of the other libraries declared in the pom have another dependency with a different version, and this causes the issue. Could you provide a reproducible example, a sample project that I can clone? Thanks
from web3j.
Hey, I've updated spring version from 2.6.2 to 3.0.0 and it's all good 👍
That was tricky because it's an old micro-service I'm updating, but it's good in a long run anyway.
No need for okhttp3 dependency at all now 👌
I'm closing this.
Thanks!
from web3j.
Related Issues (20)
- Incorrect address returned from `signedPrefixedMessageToKey` when invalid data passed in
- No AccessList field in EIP1559 transaction HOT 1
- log filter not work, case: on reinstallFilter() called, if getInitialFilterLogs() throw Exception, schedule is Cancelled on reinstallFilter.
- Generated Contract Error: Cannot cast from List to byte[]
- Wrapper Generation with Array of Structs Parameter still an issue in 4.10.3
- Could you please help release the package? This bug has affected normal use: https://github.com/web3j/web3j/pull/1962 HOT 1
- Filter Exception, Invalid request: filter not found
- Generated wrapper around struct containing a `address[]` member can't be instantiated
- FastRawTransactionManager's resetNonce() will bring its nonce field out of sync HOT 1
- Allow the use of a struct without having a corresponding Java class
- Update BouncyCastle in org.web3j:core:4.8.7-android HOT 3
- Build fails due to dependency jc-kzg-4844 since version 4.11.0 HOT 9
- Create / demonstrate in tests method for recovering address from signTypedData
- CVE-2023-33201 transitive vulnerable dependency HOT 1
- Solidity multidimensional array as return
- Quick Start command not working HOT 1
- Error: Stack too deep. HOT 2
- Could not set unknown property 'outputDir' for Main Solidity Sources of type org.gradle.api.internal.file.DefaultSourceDirectorySet. HOT 4
- Fail to install web3j cli on Linux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web3j.