1

我试图让 Elasticsearch 在我的 Grails 项目中工作。我正在使用此处记录的 Elasticsearch 中的 Java Rest 高级客户端 [ https://www.elastic.co/guide/en/elasticsearch/client/java-rest/6.3/java-rest-high-getting-started-maven.html]。我正在使用 Elasticsearch 6.3.2 版本、Java 8、Grails 2.4.4

我创建了一个服务类并在文件开头添加了一个导入语句。例如:import org.elasticsearch.ElasticsearchException 而且,当我启动 Grails 时,我收到以下错误。但是,如果我删除该导入语句,则应用程序运行良好。那么,导入中发生了什么?

Sep 12, 2018 3:05:29 PM org.springsource.loaded.agent.SpringLoadedPreProcessor preProcess
SEVERE: Unexpected problem transforming call sites
java.lang.IllegalStateException: Unexpected problem processing bytes for class
    at org.springsource.loaded.ConstantPoolChecker2.readConstantPool(ConstantPoolChecker2.java:196)
    at org.springsource.loaded.ConstantPoolChecker2.<init>(ConstantPoolChecker2.java:128)
    at org.springsource.loaded.ConstantPoolChecker2.getReferences(ConstantPoolChecker2.java:102)
    at org.springsource.loaded.MethodInvokerRewriter.rewrite(MethodInvokerRewriter.java:300)
    at org.springsource.loaded.MethodInvokerRewriter.rewriteUsingCache(MethodInvokerRewriter.java:156)
    at org.springsource.loaded.TypeRegistry.methodCallRewriteUseCacheIfAvailable(TypeRegistry.java:828)
Caused by: java.lang.IllegalStateException: Entry: 14 18
    at org.springsource.loaded.ConstantPoolChecker2.processConstantPoolEntry(ConstantPoolChecker2.java:335)
    at org.springsource.loaded.ConstantPoolChecker2.readConstantPool(ConstantPoolChecker2.java:186)

那么,有人可以帮助我了解这里发生了什么吗?

谢谢。

4

1 回答 1

1

我在 Java 7 之后的 Java 版本中遇到了这个错误,但能够让它在 Java 7 中工作

于 2020-09-10T19:08:51.327 回答