99x / 99x/serverless-dynamodb-local

ClassNotFoundException on start right after installation

Open
#173 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
621
Forks
232
PR merge metrics
No merged PRs in 30d

Description

**Actual Behaviour**

Getting this error:
```
java.lang.NoClassDefFoundError: com/almworks/sqlite4java/SQLiteJob
at com.amazonaws.services.dynamodbv2.local.server.LocalDynamoDBRequestHandler.getDBAccess(LocalDynamoDBRequestHandler.java:198)
at com.amazonaws.services.dynamodbv2.local.server.LocalDynamoDBRequestHandler.getHandler(LocalDynamoDBRequestHandler.java:189)
...
```

**Expected Behaviour**

No Error

**Steps to reproduce it**

1. `yarn add serverless-dynamodb-local --dev`
2. `sls dynamodb install`
3. `sls dynamodb start --migrate`

**LogCat for the issue**

Top Log:
```
Dynamodb Local Started, Visit: http://localhost:8000/shell
2018-06-30 20:03:38.346:WARN:oejs.AbstractHttpConnection:/
java.lang.NoClassDefFoundError: com/almworks/sqlite4java/SQLiteJob
at com.amazonaws.services.dynamodbv2.local.server.LocalDynamoDBRequestHandler.getDBAccess(LocalDynamoDBRequestHandler.java:198)
at com.amazonaws.services.dynamodbv2.local.server.LocalDynamoDBRequestHandler.getHandler(LocalDynamoDBRequestHandler.java:189)
```

Any reason for this issue? I already tried to `remove` then `install` again but with no luck.

Also, is there a support for running migrate on an existing DynamoDB Local? I used [this](https://github.com/instructure/dynamo-local-admin-docker) before.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with `yarn add serverless-dynamodb-local --dev`, `sls dynamodb install`, and `sls dynamodb start --migrate`, then trace how the plugin installs and starts DynamoDB Local. Confirm whether the required SQLite dependency is present; done means startup completes without `NoClassDefFoundError` and the reported migration flow is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java, javascript
Domain
cli, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.