Announcement: The Alexa Skills Community Is Moving To Stack Overflow

For improved usability and experience, Alexa skills related forum support will be transitioned to Stack Overflow. Effective January 10, 2024, the Amazon Developer Forums will no longer be available. For continued Alexa skills support you can reach out to us on Stack Overflow or via Contact Us.

question

rahulzkuma avatar image
rahulzkuma asked

Unable to execute javaclient app

Hello Team, I am facing problem in executing the java client. I used "mvn exec:java" command but it throws some exception as: [WARNING] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:745) Caused by: javax.json.stream.JsonParsingException: Invalid token=CURLYCLOSE at (line no=10, column no=5, offset=345). Expected tokens are: [STRING] at org.glassfish.json.JsonParserImpl.parsingException(JsonParserImpl.java:238) at org.glassfish.json.JsonParserImpl.access$1200(JsonParserImpl.java:61) at org.glassfish.json.JsonParserImpl$ObjectContext.getNextEvent(JsonParserImpl.java:291) at org.glassfish.json.JsonParserImpl$StateIterator.next(JsonParserImpl.java:172) at org.glassfish.json.JsonParserImpl.next(JsonParserImpl.java:149) at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:177) at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:184) at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:103) at com.amazon.alexa.avs.config.DeviceConfigUtils.readConfigFile(DeviceConfigUtils.java:48) at com.amazon.alexa.avs.AVSApp. (AVSApp.java:63) at com.amazon.alexa.avs.AVSApp.main(AVSApp.java:58) ... 6 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.558 s [INFO] Finished at: 2015-12-09T16:43:58+05:30 [INFO] Final Memory: 8M/19M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project sample-java-client: An exception occured while executing the Java class. null: InvocationTargetException: Invalid token=CURLYCLOSE at (line no=10, column no=5, offset=345). Expected tokens are: [STRING] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Kindly have a look and help me on it. Thanks in Advance.
alexa skills kitsubmission testing certification
10 |5000

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

rahulzkuma avatar image
rahulzkuma answered
Hi Team, I re created the SSl certificates and followed the complete steps from implementation portal and its working now. But i would like to know the reason for the same error. Thanks,
10 |5000

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

swasey@amazon avatar image
swasey@amazon answered
You had a typo or something in your config.json file. Perhaps you were missing a quotation, or had an extra comma, I'm not sure, but that's what it was.
10 |5000

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