Closed wangmingxiang closed 5 years ago
操作环境
问题描述
sandbox 1.1.2版本测试 springboot版本:1.5.9.RELEASE okhttp3版本:3.12.1 拦截okhttp3.RealCall的execute方法报java.lang.LinkageError错误
okhttp3.RealCall
execute
java.lang.LinkageError
重现步骤
相关代码如下: sandbox代码:
new EventWatchBuilder(moduleEventWatcher) .onClass("okhttp3.RealCall") .onBehavior("execute") .onWatch(new AdviceListener() { @Override public void before(Advice advice) throws Throwable { } @Override public void afterReturning(Advice advice) throws Throwable { } @Override public void afterThrowing(Advice advice) throws Throwable { } });
springboot代码:
@GetMapping("/okHttp") public String testOkHttp() throws IOException { OkHttpClient client = new OkHttpClient.Builder().build(); Request request = new Request.Builder() .url("http://localhost:8080/api").build(); okhttp3.Response execute = client.newCall(request).execute(); return execute.body().string(); }
附件 error.log
已经在分支develop-for-20181227解决,争取尽快合并到主干
develop-for-20181227
操作环境
问题描述
sandbox 1.1.2版本测试 springboot版本:1.5.9.RELEASE okhttp3版本:3.12.1 拦截
okhttp3.RealCall
的execute
方法报java.lang.LinkageError
错误重现步骤
okhttp3.RealCall
类的execute
方法java.lang.LinkageError
相关代码如下: sandbox代码:
springboot代码:
附件 error.log