question

Khoa Pham avatar image
Khoa Pham asked

Echo can't receive a response from EBS

I was following the HelloWorld sample as listed here: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/using-the-alexa-skills-kit-samples-java#Setting%20up%20Hello%20World%20on%20Elastic%20Beanstalk. I have deployed the project to EBS and verified connection through browser. However, Echo kept complaining about issues with requested skills. Looking at the helloworld.log, here's the trace: 2015-07-18 23:34:11,777: WARN ApplicationIdVerifier - Application ID verification has been disabled, allowing request for application ID amzn1.echo-sdk-ams.app.ca2a6584-3a11-4f0d-907b-23ec5525b023 2015-07-18 23:34:11,777: WARN SpeechletServlet - Timestamp verification has been disabled, allowing request amzn1.echo-api.request.21217339-3579-4475-82f2-dfdaeb852d2d with timestamp Sat Jul 18 23:34:11 UTC 2015 2015-07-18 23:34:11,777: ERROR SpeechletServlet - Exception occurred in speechlet java.lang.NullPointerException at com.amazon.speech.speechlet.servlet.SpeechletServlet.doPost(SpeechletServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:644) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:673) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) How do I fix that NullPointerException? HelloWorldSpeechlet and Servlet should be the same as described in the sample guide. Thanks
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Nick Gardner avatar image
Nick Gardner answered
Hi, Did you add the speechletservlet to your application: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/using-the-alexa-skills-kit-samples-java#adding-a-speechletservlet-and-setting-up-servlet-mapping That's the only thing I can think of here, other than remaking the project to make sure there aren't any typos or other syntax issues. -Nick
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.