jest-dynamodb icon indicating copy to clipboard operation
jest-dynamodb copied to clipboard

Unable to initialize main class com.amazonaws.services.dynamodbv2.local.main.ServerRunner

Open skilbjo opened this issue 1 year ago • 2 comments

hi, when using npm test (and having jest-dynamodb configured, happy to share the configuration files), i get the following error

npm test

Determining test suites to run...Error: Unable to initialize main class com.amazonaws.services.dynamodbv2.local.main.ServerRunner
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/handler/AbstractHandler

anyone else experiencing this issue? i just noticed it today

skilbjo avatar Sep 16 '24 07:09 skilbjo

I just had the exact same issue and doing as this comment said solved it for me: https://github.com/shelfio/jest-dynamodb/issues/159#issuecomment-1189542149

alexbchr avatar Sep 19 '24 19:09 alexbchr

nice,

workaround:

export DEBUG='dynamodb-local' command

image

rm -R /var/folders/vq/0j4hndgs5ljcvtx59mmnnmb80000gn/T/dynamodb-local

skilbjo avatar Sep 19 '24 23:09 skilbjo