Java 无法解组应答(缺少类型参数)。响应代码:200,响应文本:OK

Java 无法解组应答(缺少类型参数)。响应代码:200,响应文本:OK,java,android,amazon-web-services,Java,Android,Amazon Web Services,我正在尝试在Android上制作一个应用程序。 当我将minifyEnabled设置为true时,会出现以下错误: E/Lex: InteractiveVoiceViewAdapter: Interaction error com.amazonaws.AmazonClientException: Unable to unmarshall response (Missing type parameter.

我正在尝试在Android上制作一个应用程序。 当我将minifyEnabled设置为true时,会出现以下错误:

E/Lex: InteractiveVoiceViewAdapter: Interaction error                                               
com.amazonaws.AmazonClientException: Unable to unmarshall response (Missing type parameter.). Response Code: 200, Response Text: OK
                                                    at com.amazonaws.http.AmazonHttpClient.handleResponse(Unknown Source)
                                                    at com.amazonaws.http.AmazonHttpClient.executeHelper(Unknown Source)
                                                    at com.amazonaws.http.AmazonHttpClient.execute(Unknown Source)
                                                    at com.amazonaws.services.lexrts.AmazonLexRuntimeClient.invoke(Unknown Source)
                                                    at com.amazonaws.services.lexrts.AmazonLexRuntimeClient.postContent(Unknown Source)
                                                    at com.amazonaws.mobileconnectors.lex.interactionkit.InteractionClient$2.run(Unknown Source)
                                                    at java.lang.Thread.run(Thread.java:818)
                                                 Caused by: java.lang.RuntimeException: Missing type parameter.
                                                    at com.b.c.c.a.getSuperclassTypeParameter(Unknown Source)
                                                    at com.b.c.c.a.<init>(Unknown Source)
                                                    at com.amazonaws.services.lexrts.model.transform.PostContentResultJsonUnmarshaller$1.<init>(Unknown Source)
                                                    at com.amazonaws.services.lexrts.model.transform.PostContentResultJsonUnmarshaller.unmarshall(Unknown Source)
                                                    at com.amazonaws.services.lexrts.model.transform.PostContentResultJsonUnmarshaller.unmarshall(Unknown Source)
                                                    at com.amazonaws.http.JsonResponseHandler.handle(Unknown Source)
                                                    at com.amazonaws.http.JsonResponseHandler.handle(Unknown Source)
E/Lex:InteractiveVoiceViewAdapter:交互错误
com.amazonaws.AmazonClientException:无法解组响应(缺少类型参数)。响应代码:200,响应文本:OK
位于com.amazonaws.http.AmazonHttpClient.handleResponse(未知源)
位于com.amazonaws.http.AmazonHttpClient.executehelp(未知源)
在com.amazonaws.http.AmazonHttpClient.execute(未知源)
位于com.amazonaws.services.lexrts.AmazonLexRuntimeClient.invoke(未知源)
位于com.amazonaws.services.lexrts.AmazonLexRuntimeClient.postContent(未知源)
在com.amazonaws.mobileconnectors.lex.interactionkit.InteractionClient$2.run(未知源)
运行(Thread.java:818)
原因:java.lang.RuntimeException:缺少类型参数。
在com.b.c.c.a.getSuperclassTypeParameter(未知源)
在com.b.c.c.a.(未知来源)
位于com.amazonaws.services.lexrts.model.transform.PostContentResultJsonUnmarshaller$1。(来源未知)
位于com.amazonaws.services.lexrts.model.transform.PostContentResultJsonUnmarshaller.unmarshall(未知源)
位于com.amazonaws.services.lexrts.model.transform.PostContentResultJsonUnmarshaller.unmarshall(未知源)
位于com.amazonaws.http.JsonResponseHandler.handle(未知源)
位于com.amazonaws.http.JsonResponseHandler.handle(未知源)

如何解决这个问题?当minify设置为false时,它可以正常工作。

我认为您的问题不是因为您将minifyEnabled设置为true。
Amazone AWS
配置存在一些问题,请查看以下帮助您解决问题的详细信息:

在构建要索引的文档的初始列表时,看起来我达到了XML扩展限制。我试图索引大约600万个文档

我编辑了/etc/init.d/elasticsearch并设置了
ES_JAVA_OPTS=“-Djdk.xml.entityExpansionLimit=0”
,似乎已经解决了这个问题

参考: