-
Notifications
You must be signed in to change notification settings - Fork 910
gradle: S3Client.putObject throws exceptions in fat-jar build of gradle Multi-Project #897
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
Comments
I see that problem came from fatjar, I mean maybe some class is double initialized or something else. But, I don't really understand why. I can avoid this problem from removing fatjar tasks, from intermediate projects. But anyway I can't explain and understand what happening, so I am very scared to use it in production environment. |
Do you still encounter this problem with the latest release of the SDK, 2.3.0? We've made a few fixes to the checksum calculations. |
Hi. No, test did not pass with this error:
|
I have a similar issue, which is caused by the file This caused all interceptors to be loaded and applied twice, corrupting the checksum. Double check your classpath The solution, for me, was to exclude the s3 library from the class path of the integration test project as it's already included in core.jar
|
Hi @caiiiycuk , |
@KaibaLopez works fine for me with 2.10.38 |
Good! In this case I'll resolve this. Feel free to reopen if you have any further questions. |
…564ac639 Pull request: release <- staging/71b210d4-dc00-4eaf-bb89-f8a5564ac639
Uh oh!
There was an error while loading. Please reload this page.
Hi guys! I've found very strange behaviour when trying to build my project. I have a test case.
s3-test.zip
You need to have
test-bucket
inUS_EAST_1
, then run:My idea is to create multi module project in gradle. Each subproject should be packed into bundle.jar and then pushed to aws stack (lambda). In testcase project I have this structure:
As I said, I want to have fat jar as a result, so I use jar task to achieve it:
If you comment this part, test will be passed. Also I tried shadow jar plugin:
Results is same, test did not pass. If I comment both of them test will be passed. It's seems very strange, because there is no any conflicting dependencies in build. So I dont' understand.
Expected Behavior
Test should pass.
Current Behavior
For ApacheHttpClient:
For UrlConnectionHttpClient:
It's stuck forever
For NettyNioAsyncHttpClient:*
With it test is passed, but in original project (that have more modules), error is:
Steps to Reproduce (for bugs)
IMPORTANT: in ide test will pass, only with ./gradlew it's failing. I think is because ide skips this fat jar stuff.
Your Environment
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
The text was updated successfully, but these errors were encountered: