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

Error: Invalid or corrupt jarfile DynamoDBLocal.jar #202

Open
camfeghali opened this issue Mar 23, 2023 · 5 comments
Open

Error: Invalid or corrupt jarfile DynamoDBLocal.jar #202

camfeghali opened this issue Mar 23, 2023 · 5 comments

Comments

@camfeghali
Copy link

camfeghali commented Mar 23, 2023

All of a sudden, I am getting a Error: Invalid or corrupt jarfile DynamoDBLocal.jar error when running yarn jest -- <test-file-path>.

After reinstalling installing Dynamodb, test pass, but I need to run java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb in another process.

Please advise, this behavior is new; my setup was working perfectly up until right now.

@randolphpark
Copy link

I am having the same issue. For me the trigger seems to be system upgrade.

@ktwbc
Copy link
Contributor

ktwbc commented Apr 2, 2024

+1

@zhaoyi0113
Copy link

I also have this problem. Not sure why it happened.

@pablo-albaladejo
Copy link

I have solved the issue deleting the folder /tmp/dynamodb-local

rynop/dynamodb-local#30 (comment)

@carlolucadei
Copy link

carlolucadei commented Jul 29, 2024

I guys,

today, I got this message while running tests

Error: Invalid or corrupt jarfile DynamoDBLocal.jar

Following some tips, I found where the DynamoDBLocal.jar file is downloaded, but even deleting it, running tests again I got the same issue.
Note:

  1. I also removed yarn.lock, node_module and also yarn cache clean
  2. I removed the file DynamoDBLocal.jar found in /private/var/folders/.../dynamodb-local/DynamoDBLocal.jar

EDIT:

I found a way to fix it.
Taking a look on /private/var/folders/.../dynamodb-local/ the DynamoDBLocal_lib folder is empty. I downloaded DynamoLocal directly from AWS put the unzipped files to that folder. In that way tests runs. I know that not a fix, but I'm able to run tests locally and maybe on my CI for the next days, while waiting a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants