HttpClientBuilder - java.lang.NoSuchFieldError: INSTANCE

前端 未结 1 986
独厮守ぢ
独厮守ぢ 2021-01-14 07:09

I have a Maven Java project that uses an HttpClient to execute HTTP requests. On my local Java Web Server everything works fine. But after I deploy it to the SAP Hana Cloud

相关标签:
1条回答
  • 2021-01-14 07:44

    I still couldn't find a solution for the actual problem. But at least I could find a workaround. I changed the scope to <scope>provided</scope> and only use functions, which are also available in version 4.1.4. For example new DefaultHttpClient(cm); instead of HttpClientBuilder.create().build();

    0 讨论(0)
提交回复
热议问题