You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
Jar-file of ffwd-http-client contains incorrect records in META-INF/services.
$ jar -xf ffwd-http-client-0.4.1.jar
$ cat META-INF/services/com.fasterxml.jackson.databind.Module
com.spotify.ffwd.http.fasterxml.jackson.datatype.jdk8.Jdk8Module
Note the mismatch between com.fasterxml in the name of the file and com.spotify.ffwd.http.fasterxml inside it.
This breaks java service discovery. For example, having ffwd-http-client on classpath and doing new ObjectMapper().findAndRegisterModules() results in this error:
java.util.ServiceConfigurationError: com.fasterxml.jackson.databind.Module:
Provider com.spotify.ffwd.http.fasterxml.jackson.datatype.jdk8.Jdk8Module not a subtype
The text was updated successfully, but these errors were encountered:
Exception in thread "main" java.util.ServiceConfigurationError: com.fasterxml.jackson.databind.Module: Provider com.spotify.ffwd.http.fasterxml.jackson.datatype.jdk8.Jdk8Module not a subtype
at java.util.ServiceLoader.fail(ServiceLoader.java:239)
at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at com.fasterxml.jackson.databind.ObjectMapper.findModules(ObjectMapper.java:994)
at com.fasterxml.jackson.databind.ObjectMapper.findModules(ObjectMapper.java:978)
at com.fasterxml.jackson.databind.ObjectMapper.findAndRegisterModules(ObjectMapper.java:1028)
at Main.main(Main.java:1)
I'm thinking the best path forward is to move the ffwd-http-client into it's own repo since it doesn't have any dependencies on the rest of ffwd and remove the shading the client is doing and instead let the user resolve the dependencies.
Jar-file of
ffwd-http-client
contains incorrect records inMETA-INF/services
.Note the mismatch between
com.fasterxml
in the name of the file andcom.spotify.ffwd.http.fasterxml
inside it.This breaks java service discovery. For example, having
ffwd-http-client
on classpath and doingnew ObjectMapper().findAndRegisterModules()
results in this error:The text was updated successfully, but these errors were encountered: