Amazon DynamoDb Local with Maven and Java8 -


i try start dynamodb embedded service. when try start it, following error:

i create example project at: https://github.com/marcelalburg/aws-dynamodb-local

if run mvn spring-boot:run exception:

thanks lot

marcel

initializing dynamodb local following configuration: port:   8000 inmemory:   true dbpath: null shareddb:   false shoulddelaytransientstatuses:   false corsparams: *  exception in thread "main" org.springframework.beans.factory.beancreationexception: error creating bean name 'dynamodbconfiguration': invocation of init method failed; nested exception com.amazonaws.amazonserviceexception: request processing has failed because of unknown error, exception or failure. (service: amazondynamodbv2; status code: 500; error code: internalfailure; request id: 9cced04b-da87-48b0-b9e1-66a2fdb1f94f)     @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor.postprocessbeforeinitialization(initdestroyannotationbeanpostprocessor.java:136)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsbeforeinitialization(abstractautowirecapablebeanfactory.java:408)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1566)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:539)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:303)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:299)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:755)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:757)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:480)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:118)     @ org.springframework.boot.springapplication.refresh(springapplication.java:687)     @ org.springframework.boot.springapplication.run(springapplication.java:321)     @ org.springframework.boot.springapplication.run(springapplication.java:967)     @ org.springframework.boot.springapplication.run(springapplication.java:956)     @ example.application.main(application.java:18) caused by: com.amazonaws.amazonserviceexception: request processing has failed because of unknown error, exception or failure. (service: amazondynamodbv2; status code: 500; error code: internalfailure; request id: 9cced04b-da87-48b0-b9e1-66a2fdb1f94f)     @ com.amazonaws.http.amazonhttpclient.handleerrorresponse(amazonhttpclient.java:1182)     @ com.amazonaws.http.amazonhttpclient.executeonerequest(amazonhttpclient.java:770)     @ com.amazonaws.http.amazonhttpclient.executehelper(amazonhttpclient.java:489)     @ com.amazonaws.http.amazonhttpclient.execute(amazonhttpclient.java:310)     @ com.amazonaws.services.dynamodbv2.amazondynamodbclient.invoke(amazondynamodbclient.java:1776)     @ com.amazonaws.services.dynamodbv2.amazondynamodbclient.listtables(amazondynamodbclient.java:1203)     @ com.amazonaws.services.dynamodbv2.amazondynamodbclient.listtables(amazondynamodbclient.java:1216)     @ example.dynamodbconfiguration.init(dynamodbconfiguration.java:35)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:497)     @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor$lifecycleelement.invoke(initdestroyannotationbeanpostprocessor.java:349)     @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor$lifecyclemetadata.invokeinitmethods(initdestroyannotationbeanpostprocessor.java:300)     @ org.springframework.beans.factory.annotation.initdestroyannotationbeanpostprocessor.postprocessbeforeinitialization(initdestroyannotationbeanpostprocessor.java:133)     ... 17 more 

``

this due java library path issue, me started working after added below system property in ide

-djava.library.path=c:\setups\sqlite4java-392 

i had download , extract sqlite4java location - https://bitbucket.org/almworks/sqlite4java

i believe can set programmatically in build system too. have been better if amazon dynamodb had given more appropriate error.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -