Unable to deploy Alexa skill pattern using Lambda

I am trying to deploy Alexa HelloWorld Skill from the sample project here: https://github.com/amzn/alexa-skills-kit-java , on commit b58bfa641c7d58c476b80a4e8dd5ccbe0f9b2c40.

For executing README:

mvn assembly:assembly -DdescriptorId=jar-with-dependencies package 

and upload the result to alexa-skills-kit-samples-1.0-jar-with-dependencies.jar on the Lambda console. When I try to check Lambda (in the web console), I get:

 START RequestId: fe219281-be67-11e5-b15e-d79134e05828 Version: $LATEST Class not found: helloworld.HelloWorldSpeechletRequestStreamHandler: class java.lang.ClassNotFoundException java.lang.ClassNotFoundException: helloworld.HelloWorldSpeechletRequestStreamHandler at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) END RequestId: fe219281-be67-11e5-b15e-d79134e05828 REPORT RequestId: fe219281-be67-11e5-b15e-d79134e05828 Duration: 0.90 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 10 MB 

What am I missing?

+5
source share
1 answer

I was getting the same error too.

It seems that we need to run the mvn command in the directory "alexa-skills-kit-java-master \ samples" and not "alexa-skills-kit-java-master".

The JAR created under "alexa-skills-kit-java-master \ samples \ target" has the helloworld class, and I was able to successfully test it.

+6
source

Source: https://habr.com/ru/post/1240893/


All Articles