DataDog / datadog-api-client-java

Java client for the Datadog API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client api can not run with javax 1.x dependency at runtime

tprelle opened this issue · comments

Describe the bug
As javax 1 do not provide any method to parse URI with a String, when an execution is bind to an old javax version and user can do nothing (like inside apache spark distribution), the client api can not send data to datadof.

at org.apache.spark.sql.execution.streaming.StreamExecution.org$apache$spark$sql$execution$streaming$StreamExecution$$runStream(StreamExecution.scala:356) at org.apache.spark.sql.execution.streaming.StreamExecution$$anon$1.run(StreamExecution.scala:244) Caused by: java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder; at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:96) at org.glassfish.jersey.client.JerseyWebTarget.<init>(JerseyWebTarget.java:48) at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:274) at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:56) at com.datadog.api.v1.client.ApiClient.invokeAPI(ApiClient.java:1337)