Git Product home page Git Product logo

fingerprint-pro-server-api-java-sdk's Issues

Exception when invoking FingerprintAPI getEvent() method

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.

Java classes shadowing

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) }

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.