question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wiremock 2.27.0 breaks compatibility with Android because requires Java 8

See original GitHub issue

With WireMock 2.27.0 ( configured using a junit rule) our Android tests started failing because with java.lang.NoClassDefFoundError: Failed resolution of: Ljava/nio/file/Paths;. It seems that a recent change introduced the usage of Paths class, which is not available on all versions Android.

Since I don’t see this compatibility change being mentioned in the changelog, I’m reporting this problem as an issue to double check that it’s an intended change.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:16

github_iconTop GitHub Comments

10reactions
Jacks0N23commented, Jul 9, 2020

Have the same bug after update to 2.27.1 java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/conn/ssl/NoopHostnameVerifier; at com.github.tomakehurst.wiremock.http.HttpClientFactory.buildSslConnectionSocketFactory(HttpClientFactory.java:105) at com.github.tomakehurst.wiremock.http.HttpClientFactory.createClient(HttpClientFactory.java:95) at com.github.tomakehurst.wiremock.http.ProxyResponseRenderer.<init>(ProxyResponseRenderer.java:77) at com.github.tomakehurst.wiremock.core.WireMockApp.buildStubRequestHandler(WireMockApp.java:149) at com.github.tomakehurst.wiremock.WireMockServer.<init>(WireMockServer.java:75) at com.github.tomakehurst.wiremock.WireMockServer.<init>(WireMockServer.java:112)

0reactions
TWiStErRobcommented, Apr 29, 2021

@tomakehurst please link that issue here too, so other watchers are notified, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wiremock 2.27.0 breaks compatibility with Android because ...
With WireMock 2.27.0 ( configured using a junit rule) our Android tests started failing because with java.lang.
Read more >
How to Download and Install WireMock
The Java 8+ build endeavours to track the latest version of all its major dependencies. note. The Java 7 version is now deprecated...
Read more >
Will be using a wiremock-jre-8 dependency within a java 11 ...
When trying to figure out how back and forwards combability works with java, the compiler and the produced bytecode, i found this older...
Read more >
SAP Cloud SDK for Java – Release Notes
SAP Cloud SDK can now be used with Java 11. To try out if your project works with Java 11, you can update...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found