Menu

SourceAFIS for Java ( Showing Error )

2019-05-20
2019-06-20
  • Deepak Kumar Neog

    We have tried your Fingerprint Matching Code for 1:1 but its showing some error as follows:

    "Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException
    at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:189)
    at org.slf4j.LoggerFactory.bind(LoggerFactory.java:112)
    at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:105)
    at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235)
    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208)
    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221)
    at test.TemplateBuilder.<clinit>(TemplateBuilder.java:27)
    at test.FingerprintTemplate.create(FingerprintTemplate.java:105)
    at test.Matcher.main(Matcher.java:22)
    Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.joran.spi.JoranException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 9 more"</clinit>

     
  • Robert Važan

    Robert Važan - 2019-05-20

    This is most likely an issue with your project configuration or runtime environment rather than with SourceAFIS. Try to instantiate some logger before calling any SourceAFIS methods, for example by invoking LoggerFactory.getLogger(Matcher.class) on the first line of main(). If you get exception again, it means the issue is not SourceAFIS-specific.

     
  • Deepak Kumar Neog

    Can you Please send me the jar file you used in your source code for "org.slf4j.*"

     
  • Robert Važan

    Robert Važan - 2019-05-20

    You can find all maven artifacts on Maven Central:

    https://search.maven.org/

     
  • Deepak Kumar Neog

    I am really help less at this moment, its my Masters Major Project. Can you please help me through Team Viewer?

     
  • Robert Važan

    Robert Važan - 2019-05-20

    Will I get Master's degree for it? :-) Seriously, I would definitely expect someone with Master's degree to be able to use the extensive online documentation on how to work with Maven dependencies.

     
  • Deepak Kumar Neog

    The error I am facing is no regular error which cannot be handled by exception handling classes.

     
  • Robert Važan

    Robert Važan - 2019-05-20

    The root cause is that you are managing dependencies manually. You should tell Maven/Gradle to fetch the dependencies for you. If you are building SourceAFIS from sources, you can find the list of direct dependencies for SourceAFIS in pom.xml that accompanies the sources. Add them to your maven/gradle configuration. If you are still stuck, there is extensive documentation as well as relevant forums covering dependency management in Java.

     
  • Deepak Kumar Neog

    Now I am getting this error.

     
  • Robert Važan

    Robert Važan - 2019-05-20

    That's not an error. That's just SLF4J informing you that you didn't configure any logging implementation (SLF4J is just an interface). If it bothers you, pick one of the SLF4J implementations and add it as a dependency to your project.

     
  • Deepak Kumar Neog

    I made it working . Thanks You for Helping and 'Motivating'

     
  • Deepak Kumar Neog

    Can you please tell me which algorithm you have used in SourceAFIS fingerprint matching??

     
  • Robert Važan

    Robert Važan - 2019-06-20

    Hi, please create a new thread with this question to keep the forum usable. I cannot move messages between threads.

     

Log in to post a comment.