GreenCypress opened a new issue #9587:
URL: https://github.com/apache/dubbo/issues/9587


   ```
   Caused by: java.lang.RuntimeException: Serialized class 
org.elasticsearch.client.Response must implement java.io.Serializable
    Java field: private final org.elasticsearch.client.Response 
org.elasticsearch.client.ResponseException.response
    Java field: private java.util.List java.lang.Throwable.suppressedExceptions
        at 
com.alibaba.com.caucho.hessian.io.JavaSerializer$FieldSerializer.serialize(JavaSerializer.java:304)
        at 
com.alibaba.com.caucho.hessian.io.JavaSerializer.writeInstance(JavaSerializer.java:284)
        at 
com.alibaba.com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:251)
        at 
com.alibaba.com.caucho.hessian.io.ThrowableSerializer.writeObject(ThrowableSerializer.java:68)
        at 
com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:412)
        at 
com.alibaba.com.caucho.hessian.io.JavaSerializer$FieldSerializer.serialize(JavaSerializer.java:302)
        ... 33 more
   ```
   
   
   
   相关代码:
   ```
           NativeSearchQueryBuilder nativeSearchQueryBuilder = new 
NativeSearchQueryBuilder();
           nativeSearchQueryBuilder.withQuery(endQueryBuilder);
           
nativeSearchQueryBuilder.withSort(SortBuilders.fieldSort("score").order(SortOrder.DESC));
           nativeSearchQueryBuilder.withPageable(PageRequest.of(pageNum - 1, 
pageSize));
           NativeSearchQuery build = nativeSearchQueryBuilder.build();
           SearchHits<Document> search = elasticsearchOperations.search(build, 
Document.class);
          // Debug在这行执行报错,貌似是与代理相关,但是我的方法返回值与Elasticsearch对象都没有关联。
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to