fingerprintjs / fingerprint-pro-server-api-java-sdk Goto Github PK
View Code? Open in Web Editor NEWJava SDK for Fingerprint Pro Server API
License: MIT License
Java SDK for Fingerprint Pro Server API
License: MIT License
Hi, I'm trying to test the SDK and I get the following exception when invoking the getEvent() method on the FingerprintApi class.
java.lang.AbstractMethodError: Receiver class com.sun.jersey.api.uri.UriBuilderImpl does not define or inherit an implementation of the resolved method 'abstract javax.ws.rs.core.UriBuilder uri(java.lang.String)' of abstract class javax.ws.rs.core.UriBuilder.
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:96)
at org.glassfish.jersey.client.JerseyWebTarget.<init>(JerseyWebTarget.java:50)
at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:274)
at org.glassfish.jersey.client.JerseyClient.target(JerseyClient.java:56)
at com.fingerprint.sdk.ApiClient.invokeAPI(ApiClient.java:1000)
at com.fingerprint.api.FingerprintApi.getEventWithHttpInfo(FingerprintApi.java:133)
at com.fingerprint.api.FingerprintApi.getEvent(FingerprintApi.java:78)
I'm using Gradle and added the dependency as per your documentation. Is there anything that I'm missing?
Any help would be greatly appreciated.
Hi,
It seems this SDK is shadowing Jackson classes interfering with its usability in a project using Jackson.
The jar should not be containing these classes. Instead, it should declare Jackson and other libraries as a transitive dependency. If it's absolutely needed that this library cannot have dependencies they should be at the very least be shaded. I am attaching a screenshot of what your SDK currently contains and we can clearly see that a lot of Jackson related classes are added (while ./gradlew dependencies
in a project using this SDK shows it has no transitive dependencies)
This issue comes from this line in the build.gradle
file
from configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.