Java general questions

General information about Neurotechnology and its software

Re: Java general questions

Postby vaidasz » Jun 07, 2013 11:41

Hello,

Crisstina wrote:Understood. How can I use the Java Simple-Fingers-Sample as 32 bits? Should install 2 JDK and use the 32 bits one?

Yes, this is what I had in mind.

Crisstina wrote:My only problem is when I open it on Eclipse.

Do you get any errors?
Download Process Explorer (http://download.sysinternals.com/files/ProcessExplorer.zip) and check if dlls are loaded from correct directory. Also check if Neurotec_Biometric_4_4_SDK\Bin\Win32_x86\FScanners\NdmDigitalPersonaUareU\NdmDigitalPersonaUareU.dll is laoded.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 578
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Java general questions

Postby Crisstina » Jun 07, 2013 18:41

vaidasz wrote:Hello,

Crisstina wrote:Understood. How can I use the Java Simple-Fingers-Sample as 32 bits? Should install 2 JDK and use the 32 bits one?

Yes, this is what I had in mind.


Crisstina wrote:My only problem is when I open it on Eclipse.

Do you get any errors?
Download Process Explorer (http://download.sysinternals.com/files/ProcessExplorer.zip) and check if dlls are loaded from correct directory. Also check if Neurotec_Biometric_4_4_SDK\Bin\Win32_x86\FScanners\NdmDigitalPersonaUareU\NdmDigitalPersonaUareU.dll is laoded.


Now I am getting this:

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'NObjectCopyParameters': The specified procedure could not be found.

   at com.sun.jna.Function.<init>(Function.java:179)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:391)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:371)
   at com.sun.jna.Native.register(Native.java:1401)
   at com.neurotec.lang.NObject.<clinit>(NObject.java:122)
   at com.neurotec.images.NImages.getOpenFileFilter(NImages.java:65)
   at com.neurotec.samples.EnrollFromImage.initGUI(EnrollFromImage.java:216)
   at com.neurotec.samples.EnrollFromImage.<init>(EnrollFromImage.java:88)
   at com.neurotec.samples.MainPanel.initGUI(MainPanel.java:50)
   at com.neurotec.samples.MainPanel.<init>(MainPanel.java:39)
   at com.neurotec.samples.SimpleFingersApplication.main(SimpleFingersApplication.java:39)


I am using JDK 1.7.21 32 bits, and changed Run Arguments Working Directory to \Bin\Win32_x86 . And the scanner I use is IB LES 650
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby vaidasz » Jun 10, 2013 08:16

Crisstina wrote:Now I am getting this:

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'NObjectCopyParameters': The specified procedure could not be found.

   at com.sun.jna.Function.<init>(Function.java:179)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:391)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:371)
   at com.sun.jna.Native.register(Native.java:1401)
   at com.neurotec.lang.NObject.<clinit>(NObject.java:122)
   at com.neurotec.images.NImages.getOpenFileFilter(NImages.java:65)
   at com.neurotec.samples.EnrollFromImage.initGUI(EnrollFromImage.java:216)
   at com.neurotec.samples.EnrollFromImage.<init>(EnrollFromImage.java:88)
   at com.neurotec.samples.MainPanel.initGUI(MainPanel.java:50)
   at com.neurotec.samples.MainPanel.<init>(MainPanel.java:39)
   at com.neurotec.samples.SimpleFingersApplication.main(SimpleFingersApplication.java:39)


I am using JDK 1.7.21 32 bits, and changed Run Arguments Working Directory to \Bin\Win32_x86 . And the scanner I use is IB LES 650


Hello,

Which SDK revision number are you using (it could be found in SDK root folder)?
Have you checked where dlls are being loaded as I asked you in previous post? Are they loaded from correct directory?
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 578
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Java general questions

Postby Crisstina » Jun 10, 2013 17:17

vaidasz wrote:
Crisstina wrote:Now I am getting this:

Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'NObjectCopyParameters': The specified procedure could not be found.

   at com.sun.jna.Function.<init>(Function.java:179)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:391)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:371)
   at com.sun.jna.Native.register(Native.java:1401)
   at com.neurotec.lang.NObject.<clinit>(NObject.java:122)
   at com.neurotec.images.NImages.getOpenFileFilter(NImages.java:65)
   at com.neurotec.samples.EnrollFromImage.initGUI(EnrollFromImage.java:216)
   at com.neurotec.samples.EnrollFromImage.<init>(EnrollFromImage.java:88)
   at com.neurotec.samples.MainPanel.initGUI(MainPanel.java:50)
   at com.neurotec.samples.MainPanel.<init>(MainPanel.java:39)
   at com.neurotec.samples.SimpleFingersApplication.main(SimpleFingersApplication.java:39)


I am using JDK 1.7.21 32 bits, and changed Run Arguments Working Directory to \Bin\Win32_x86 . And the scanner I use is IB LES 650


Hello,

Which SDK revision number are you using (it could be found in SDK root folder)?



Have you checked where dlls are being loaded as I asked you in previous post? Are they loaded from correct directory?


Product revision number: 101724
Yes, it doesn't report that DLLs are being loaded from Eclipse.
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Abis Samplet Java..

Postby dicaalba » Jun 10, 2013 18:48

Martynas wrote:Hello,

please use the command "mvn package -Papplet" in the SDK "samples" folder. It will build all required packages to for the Java Applet and will place them into "Bin\Java\abis-sample-applet" folder.

thanks :D
dicaalba
 
Posts: 10
Joined: Jun 06, 2013 21:13

Java Futronic Problem

Postby joparase » Jul 15, 2013 08:01

Hi,

I need a little of help about an application in java, I am trying to get the image of my futronic FS88 and save it like a .bmp file

The problem is that the engine status after run my method is "NoScanner", the method is:
Code: Select all
private void btnPaso2ActionPerformed(java.awt.event.ActionEvent evt) {                                         
   
       
        scanners = Nffv.getAvailableScannerModules();       
        engine = new Nffv("base", "", scanners);       
        curruser = engine.enroll(TIMEOUT);

        System.out.println(engine.getEngineStatus());
         
   if(engine.getEngineStatus() != NffvStatus.TemplateCreated){
      return;
   }
       
       
       
      try {
          img.setIcon(curruser.getNffvImage().getImageIcon());
      } catch (Exception ex) {
          Logger.getLogger(PantallaPrincipl.class.getName()).log(Level.SEVERE, null, ex);
       
    }     

The example of the SDK run without problems in my computer, I dont why the scanners name is "" my futronic is working fine, may you help?


thanks!

Admin: merged to "Java general questions"
joparase
 
Posts: 2
Joined: Jul 15, 2013 07:48

Re: Java Futronic Problem

Postby joparase » Jul 16, 2013 06:03

Hi, I think that my problem is about getAvailableScannerModules, I am using NetBeans, I already open the example and the scanners cant be found.

If I use the example from the NffvSample.jar file or html document everything works fine, how the fpsmm folder works?, how my application can read the dll in this folder?

thanks
joparase
 
Posts: 2
Joined: Jul 15, 2013 07:48

Re: Java Futronic Problem

Postby Martynas » Jul 16, 2013 06:07

joparase wrote:Hi,

I need a little of help about an application in java, I am trying to get the image of my futronic FS88 and save it like a .bmp file

The problem is that the engine status after run my method is "NoScanner", the method is:
Code: Select all
private void btnPaso2ActionPerformed(java.awt.event.ActionEvent evt) {                                         
   
       
        scanners = Nffv.getAvailableScannerModules();       
        engine = new Nffv("base", "", scanners);       
        curruser = engine.enroll(TIMEOUT);

        System.out.println(engine.getEngineStatus());
         
   if(engine.getEngineStatus() != NffvStatus.TemplateCreated){
      return;
   }
       
       
       
      try {
          img.setIcon(curruser.getNffvImage().getImageIcon());
      } catch (Exception ex) {
          Logger.getLogger(PantallaPrincipl.class.getName()).log(Level.SEVERE, null, ex);
       
    }     

The example of the SDK run without problems in my computer, I dont why the scanners name is "" my futronic is working fine, may you help?


thanks!

joparase wrote:Hi, I think that my problem is about getAvailableScannerModules, I am using NetBeans, I already open the example and the scanners cant be found.

If I use the example from the NffvSample.jar file or html document everything works fine, how the fpsmm folder works?, how my application can read the dll in this folder?

thanks

Hello,

your application working folder should contain the dlls and fpsmm folder from the SDK, to be able to detect connected scanners.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

License at 4.5 SDK [Java]

Postby rodrigo » Jul 22, 2013 16:17

Hello,
i am upgrading my software from 4.4 SDK to 4.5 SDK. When I need to get a license I use this line below and its works fine at 4.4 but not for 4.5 anymore. Does someone knows how to fix it?
NLicense.obtainComponents(IP, PORT,"Devices.FingerScanners");

Admin: merged to "Java general questions"
rodrigo
 
Posts: 51
Joined: Aug 14, 2012 16:51

Re: License at 4.5 SDK

Postby rodrigo » Jul 22, 2013 17:04

I am having this error below:

java.lang.UnsatisfiedLinkError: Error looking up function 'NObjectCompareTo':
rodrigo
 
Posts: 51
Joined: Aug 14, 2012 16:51

Re: License at 4.5 SDK

Postby vaidasz » Jul 23, 2013 10:20

rodrigo wrote:I am having this error below:

java.lang.UnsatisfiedLinkError: Error looking up function 'NObjectCompareTo':
rodrigo wrote:Hello,
i am upgrading my software from 4.4 SDK to 4.5 SDK. When I need to get a license I use this line below and its works fine at 4.4 but not for 4.5 anymore. Does someone knows how to fix it?
NLicense.obtainComponents(IP, PORT,"Devices.FingerScanners");


Hello Rodrigo,

You are using newer version of java wrapper while the libraries are the old ones. The issue is with incorrect libraries being used.
Please check PATH Environment Variables – it will probably be located to old libraries.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 578
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

can"t run application..Please. [JAVA]

Postby mkw » Sep 13, 2013 04:17

I will try to check licenses.
But there comes the following error.
Please help me.

[Source code]

Code: Select all
import java.io.IOException;
import java.util.*;

import com.neurotec.licensing.NLicense;
import com.neurotec.samples.util.*;

public class LicenseManagerSample {

   public static void main(String[] args) {
      // TODO Auto-generated method stub
      String components = "Devices.FingerScanners";
      String licenseName[] = {"Devices.FingerScanners", "Devices.Cameras", "Devices.IrisScanners",
                "Biometrics.FingerExtraction", "Biometrics.IrisExtraction", "Biometrics.FingerMatching",
                "Biometrics.IrisMatching", "Biometrics.FingerSegmentation", "Biometrics.IrisSegmentation"};
      //components.add("Devices.FingerScanners");
      
      LicenseManager lm = LicenseManager.getInstance();

      try {
         for(String str:licenseName) {
            if(!NLicense.obtainComponents("112.217.123.75", "5000", components))
            {
               System.out.println("Cannot obtain license");
            }
            else
            {
               System.out.println(str + "Obtained license");
            }
         }
      } catch (IOException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }
   }
}



[ Console Message ]

Code: Select all
Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:45)
   at com.neurotec.licensing.NLicense.<clinit>(NLicense.java:50)
   at LicenseManagerSample.main(LicenseManagerSample.java:21)
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:134)
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:42)
   ... 2 more
Caused by: java.lang.UnsatisfiedLinkError: Error looking up function "NCoreRemovePointerUnrefCallback": ??? ????? ?? ? ????.

   at com.sun.jna.Function.<init>(Function.java:179)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:391)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:371)
   at com.sun.jna.Native.register(Native.java:1401)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:126)
   ... 3 more



[ system environment variables ]

Code: Select all
CLASSPATH
    ---->>  C:Program Files (x86)Javajdk1.7.0_40lib   ools.jar

  JAVA_HOME
    ---->> C:Program Files (x86)Javajdk1.7.0_40

  Path
     --->>  C:Program Files (x86)NeurotechnologyNeurotec Biometric 4.5 SDKBinWin32_x86;%JAVA_HOME%in



[ System ]
Code: Select all
Operating System: Window7 Uitimate K 64bit
    eclipse : 32bit.     
    JAVA : 32bit.                 JAVA Installation folder : C:Program Files (x86)Java




I would like to resolve this issue quickly.
I need your help actively.
(Could not speak English, the translator was used. I"m sorry.)

Admin: merged to "Java general questions"
mkw
 
Posts: 2
Joined: Sep 13, 2013 04:05

Can"t Run application [JAVA] Please

Postby mkw » Sep 13, 2013 04:23

hello...
I will try to check licenses.
But there comes the following error.
Please help me.

[Source code]

Code: Select all
import java.io.IOException;
import java.util.*;

import com.neurotec.licensing.NLicense;
import com.neurotec.samples.util.*;

public class LicenseManagerSample {

   public static void main(String[] args) {
      // TODO Auto-generated method stub
      String components = "Devices.FingerScanners";
      String licenseName[] = {"Devices.FingerScanners", "Devices.Cameras", "Devices.IrisScanners",
                "Biometrics.FingerExtraction", "Biometrics.IrisExtraction", "Biometrics.FingerMatching",
                "Biometrics.IrisMatching", "Biometrics.FingerSegmentation", "Biometrics.IrisSegmentation"};
      //components.add("Devices.FingerScanners");
      
      LicenseManager lm = LicenseManager.getInstance();

      try {
         for(String str:licenseName) {
            if(!NLicense.obtainComponents("112.217.123.75", "5000", components))
            {
               System.out.println("Cannot obtain license");
            }
            else
            {
               System.out.println(str + "Obtained license");
            }
         }
      } catch (IOException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
      }
   }
}



[ Console Message ]

Code: Select all
Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:45)
   at com.neurotec.licensing.NLicense.<clinit>(NLicense.java:50)
   at LicenseManagerSample.main(LicenseManagerSample.java:21)
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:134)
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:42)
   ... 2 more
Caused by: java.lang.UnsatisfiedLinkError: Error looking up function "NCoreRemovePointerUnrefCallback": ??? ????? ?? ? ????.

   at com.sun.jna.Function.<init>(Function.java:179)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:391)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:371)
   at com.sun.jna.Native.register(Native.java:1401)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:126)
   ... 3 more



[ system environment variables ]

Code: Select all
CLASSPATH
    ---->>  C:Program Files (x86)Javajdk1.7.0_40lib   ools.jar

  JAVA_HOME
    ---->> C:Program Files (x86)Javajdk1.7.0_40

  Path
     --->>  C:Program Files (x86)NeurotechnologyNeurotec Biometric 4.5 SDKBinWin32_x86;%JAVA_HOME%in



[ System ]
Code: Select all
Operating System: Window7 Uitimate K 64bit
    eclipse : 32bit.     
    JAVA : 32bit.                 JAVA Installation folder : C:Program Files (x86)Java




I would like to resolve this issue quickly.
I need your help actively.
(Could not speak English, the translator was used. I"m sorry.)
mkw
 
Posts: 2
Joined: Sep 13, 2013 04:05

Re: can"t run application..Please. [JAVA]

Postby Martynas » Sep 13, 2013 11:05

mkw wrote:I will try to check licenses.
But there comes the following error.
Please help me.

Hello,

such errors as "Caused by: java.lang.UnsatisfiedLinkError: Error looking up function "NCoreRemovePointerUnrefCallback"" usually are thrown when dlls from different versions of the SDK are used. Please ensure that your application uses dlls only from the same SDK version.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby Crisstina » Sep 23, 2013 20:10

Hello!

We are still getting this error while running abis sample in Java with Eclipse:

Code: Select all
JNA: Callback com.neurotec.devices.NFScanner$1@5fa80aea threw the following exception:
java.lang.NullPointerException
   at com.neurotec.lang.NError.setLast(NError.java:250)
   at com.neurotec.lang.NError.setLast(NError.java:189)
   at com.neurotec.lang.NResult.setLastError(NResult.java:330)
   at com.neurotec.devices.NFScanner$1.invoke(NFScanner.java:114)


Is there a way we can avoid this error? We use Digital Persona U are U 4000, 4000B and 4500

Thank you for your help.
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby Martynas » Sep 24, 2013 07:59

Crisstina wrote:Hello!

We are still getting this error while running abis sample in Java with Eclipse:

Code: Select all
JNA: Callback com.neurotec.devices.NFScanner$1@5fa80aea threw the following exception:
java.lang.NullPointerException
   at com.neurotec.lang.NError.setLast(NError.java:250)
   at com.neurotec.lang.NError.setLast(NError.java:189)
   at com.neurotec.lang.NResult.setLastError(NResult.java:330)
   at com.neurotec.devices.NFScanner$1.invoke(NFScanner.java:114)


Is there a way we can avoid this error? We use Digital Persona U are U 4000, 4000B and 4500

Thank you for your help.

Hi,

what is the revision number of the SDK you are using?
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby Crisstina » Sep 24, 2013 16:59

Martynas wrote:Hi,

what is the revision number of the SDK you are using?

Product revision number: 105894
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby Martynas » Sep 25, 2013 06:32

Crisstina wrote:Product revision number: 105894

Hi,

please update the SDK to latest one released this month. Also install drivers of the Digital Persona, included in the latest version of the SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby JohnNyongesa » Dec 05, 2013 07:35

Hi, i need to connect Abis-sample to mysql. do i have to add mysql-connetor to classpath?because am trying to add but it cant be added
JohnNyongesa
 
Posts: 4
Joined: Dec 04, 2013 13:25

Re: Java general questions

Postby Martynas » Dec 05, 2013 13:50

JohnNyongesa wrote:Hi, i need to connect Abis-sample to mysql. do i have to add mysql-connetor to classpath?because am trying to add but it cant be added

Hello,

AbisSample has two modes, when the "local" matcher and "remote" matcher are used. In case of "local" matcher, the sample uses the SQLite database. In case of the "remote" database, the sample uses the NServer/NClusterServer to insert/delete templates.
So in case if you need to use MySQL in AbisSample, then you need to implement it by yourself. There plenty of resources on Internet, which shows how to do that from Java application. one example is this website.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby jorgevaron » Jan 10, 2014 17:21

Hello,
How can i to convert a Nfrecord to bytearray in order to store it in a oracle blob column ?

thanks in advance.
jorgevaron
 
Posts: 26
Joined: Dec 14, 2011 19:05

Re: Java general questions

Postby Martynas » Jan 13, 2014 07:54

Hi,

jorgevaron wrote:How can i to convert a Nfrecord to bytearray in order to store it in a oracle blob column ?


NFRecord.Save()
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Standard SDK license and Source Code for the Java Jar Files

Postby wallyb » Jan 14, 2014 17:11

Hi,

I am currently working on a biometric application which should be able to perform identification based on fingerprint,iris,face,palm and voice. I have proposed to the organisation to purchase the MegaMatcher SDK. Additionally, I have downloaded the trial SDK in the meantime and tried it out. I wish to find out the following:

1. How can I get the source code for the examples contained in Neurotec_Biometric_4_5_Algorithm_Demo_Win32_x86_2013-12-13?

2. Where I can get the source code for the jar files contained in the Bin/Java folder located in Neurotec_Biometric_4_5_SDK_Trial_2013-12-13Neurotec_Biometric_4_5_SDK_TrialBinJava ?

3. If we purchase the MegaMatcher standard sdk( € 2,590.00), is the cost inclusive of the licenses for fingerprint,iris,face,palm and voice as specified here http://www.neurotechnology.com/licensing_megamatcher.html?

Admin: merged to "Java general questions"
wallyb
 
Posts: 5
Joined: Jan 14, 2014 16:35

Re: Standard SDK license and Source Code for the Java Jar Fi

Postby Martynas » Jan 15, 2014 11:06

Hello,

wallyb wrote:1. How can I get the source code for the examples contained in Neurotec_Biometric_4_5_Algorithm_Demo_Win32_x86_2013-12-13?


This demo is written in C++ and its source code is available in the downloaded SDK in folder "Samples\Biometrics\CPP".

wallyb wrote:2. Where I can get the source code for the jar files contained in the Bin/Java folder located in Neurotec_Biometric_4_5_SDK_Trial_2013-12-13Neurotec_Biometric_4_5_SDK_TrialBinJava ?


Source code of the samples and tutorials are included in the SDK. Source code of Java Wrappers (jars starting with the name "neurotec") are not provided to customers.

wallyb wrote:3. If we purchase the MegaMatcher standard sdk( € 2,590.00), is the cost inclusive of the licenses for fingerprint,iris,face,palm and voice as specified here http://www.neurotechnology.com/licensin ... tcher.html?


Yes.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Standard SDK license and Source Code for the Java Jar Fi

Postby wallyb » Jan 15, 2014 15:41

Thanks Martynas.

I was able to access the java files and use the java wrappers as libraries. However, when I tried to compile the simple-fingers-sample, I obtained the following error

Code: Select all
Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.neurotec.media.NMedia.<clinit>(NMedia.java:49)
   at com.neurotec.images.NImages.<clinit>(NImages.java:35)
   at com.neurotec.samples.EnrollFromImage.initGUI(EnrollFromImage.java:219)
   at com.neurotec.samples.EnrollFromImage.<init>(EnrollFromImage.java:91)
   at com.neurotec.samples.MainPanel.initGUI(MainPanel.java:55)
   at com.neurotec.samples.MainPanel.<init>(MainPanel.java:44)
   at com.neurotec.samples.SimpleFingersApplication.main(SimpleFingersApplication.java:34)
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:112)
   at com.neurotec.lang.NTypes.<clinit>(NTypes.java:113)
   at com.neurotec.media.NMedia.<clinit>(NMedia.java:46)
   ... 6 more
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'NCore': The specified module could not be found.

   at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:194)
   at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:283)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:104)
   ... 8 more
Java Result: 1


I am using netbeans IDE 7.4. How can I resolve it ?
wallyb
 
Posts: 5
Joined: Jan 14, 2014 16:35

Re: Standard SDK license and Source Code for the Java Jar Fi

Postby Martynas » Jan 16, 2014 07:56

Hello,

Java Wrappers are dependent on the native dlls provided in the SDK. In your case error says that the it can not find the native dlls. Please ensure that the working folder of the project in NetBeans are configured to be the folder with dll of the SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Standard SDK license and Source Code for the Java Jar Fi

Postby wallyb » Jan 16, 2014 09:34

Thanks Martynas.

I have gone to the project properties and under run I have tried to set the following one at a time:

1 Working Directory to C:\Program Files\Neurotechnology\Neurotec Biometric 4.5 SDK Trial\Bin\Win32_x86
2 VM Options to -Djava.library.path=C:\Program Files\Neurotechnology\Neurotec Biometric 4.5 SDK Trial\Bin\Win32_x86

I still get the same error.

Is Neurotec Biometric 4.5 SDK Trial\Bin\Win32_x86 the folder with the sdk dll or what am I doing wrong?

I am using windows 7 pro 32 bit.
wallyb
 
Posts: 5
Joined: Jan 14, 2014 16:35

Re: Standard SDK license and Source Code for the Java Jar Fi

Postby wallyb » Jan 16, 2014 09:55

Just a small correction,

When I try the second option I get this

Code: Select all
Error: Could not find or load main class Files\Neurotechnology\Neurotec
Java Result: 1
wallyb
 
Posts: 5
Joined: Jan 14, 2014 16:35

Re: Standard SDK license and Source Code for the Java Jar Fi

Postby Vytautas » Jan 16, 2014 11:22

wallyb wrote:Just a small correction,

When I try the second option I get this

Code: Select all
Error: Could not find or load main class Files\Neurotechnology\Neurotec
Java Result: 1


It seems you are still missing native libraries. Maybe this guide (attached below) will help you set-up your NetBeans IDE.
Attachments
NetBeans_74_guide.zip
NetBeans 7.4 setup guide
(1.04 MiB) Downloaded 2802 times
Vytautas P
Neurotechnology
Vytautas
Neurotechnology
 
Posts: 26
Joined: Apr 23, 2013 13:04

Re: Standard SDK license and Source Code for the Java Jar Fi

Postby wallyb » Jan 18, 2014 15:40

Thanks Vytautas,

I was able to follow the instructions attached and successfully ran the Simple Finger and Finger Tools samples. However, on trying to run the Abis and Simple Faces Samples,I got the following error:
Code: Select all
Scanning for projects...
                                                                       
------------------------------------------------------------------------
Building Simple Faces Sample 4.5.0.0
------------------------------------------------------------------------

--- exec-maven-plugin:1.2.1:exec (default-cli) @ simple-faces-sample ---
java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.lang.NType
   at com.neurotec.lang.NValue.toClassInternal(NValue.java:883)
   at com.neurotec.lang.NValue.toClass(NValue.java:1158)
   at com.neurotec.lang.NValue.toClass(NValue.java:1175)
   at com.neurotec.lang.NObject.getParameter(NObject.java:791)
   at com.neurotec.lang.NObject.getParameter(NObject.java:903)
   at com.neurotec.biometrics.NLExtractor.getMaxRollAngleDeviation(NLExtractor.java:651)
   at com.neurotec.samples.DetectFaces.updateRollAngleDeviationComboBox(DetectFaces.java:165)
   at com.neurotec.samples.DetectFaces.updateComboBoxes(DetectFaces.java:159)
   at com.neurotec.samples.DetectFaces.<init>(DetectFaces.java:73)
   at com.neurotec.samples.SimpleFacesApplication.addTabs(SimpleFacesApplication.java:107)
   at com.neurotec.samples.SimpleFacesApplication.access$100(SimpleFacesApplication.java:21)
   at com.neurotec.samples.SimpleFacesApplication$1.run(SimpleFacesApplication.java:81)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


How can I resolve it ?
wallyb
 
Posts: 5
Joined: Jan 14, 2014 16:35

Re: Standard SDK license and Source Code for the Java Jar Fi

Postby Vytautas » Jan 20, 2014 11:17

wallyb wrote:Thanks Vytautas,

I was able to follow the instructions attached and successfully ran the Simple Finger and Finger Tools samples. However, on trying to run the Abis and Simple Faces Samples,I got the following error:
Code: Select all
Scanning for projects...
                                                                       
------------------------------------------------------------------------
Building Simple Faces Sample 4.5.0.0
------------------------------------------------------------------------

--- exec-maven-plugin:1.2.1:exec (default-cli) @ simple-faces-sample ---
java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.lang.NType
   at com.neurotec.lang.NValue.toClassInternal(NValue.java:883)
   at com.neurotec.lang.NValue.toClass(NValue.java:1158)
   at com.neurotec.lang.NValue.toClass(NValue.java:1175)
   at com.neurotec.lang.NObject.getParameter(NObject.java:791)
   at com.neurotec.lang.NObject.getParameter(NObject.java:903)
   at com.neurotec.biometrics.NLExtractor.getMaxRollAngleDeviation(NLExtractor.java:651)
   at com.neurotec.samples.DetectFaces.updateRollAngleDeviationComboBox(DetectFaces.java:165)
   at com.neurotec.samples.DetectFaces.updateComboBoxes(DetectFaces.java:159)
   at com.neurotec.samples.DetectFaces.<init>(DetectFaces.java:73)
   at com.neurotec.samples.SimpleFacesApplication.addTabs(SimpleFacesApplication.java:107)
   at com.neurotec.samples.SimpleFacesApplication.access$100(SimpleFacesApplication.java:21)
   at com.neurotec.samples.SimpleFacesApplication$1.run(SimpleFacesApplication.java:81)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


How can I resolve it ?

Please check the following:
1) In NetBeans -> Tools -> Options -> Java -> Maven. What is the version of Maven? By default it is set 3.0.5. You should download Maven 3.1.1 and set path to it. Can be downloaded: http://maven.apache.org/download.cgi

2) Go through the guide attached earlier again.

3) When you open AbisSample project, make sure you set working directory (project properties -> Run -> Working Directory to: <SDK>\Bin\Win64_x64 or <SDK>213\Bin\Win32_x86, depending on architecture.
Vytautas P
Neurotechnology
Vytautas
Neurotechnology
 
Posts: 26
Joined: Apr 23, 2013 13:04

Re: Java general questions

Postby JRosendo » Jan 23, 2014 18:30

Martynas step-by-step really helped me. Thank you!

Is there a JAVA DOC format documentation, which I can attach to to the code, or open in the browser for better researching?
JRosendo
 
Posts: 9
Joined: Jan 23, 2014 18:27

Re: Java general questions

Postby Martynas » Jan 27, 2014 09:20

JRosendo wrote:Is there a JAVA DOC format documentation, which I can attach to to the code, or open in the browser for better researching?


No, there is no Java DOC in our SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

com.neurotec.lang.NIllegalArgumentException: hTot format is

Postby Riz » Jan 30, 2014 23:00

We are trying to convert NTemplate to ANTemplate

ANTemplate anTemplate = new ANTemplate(tot, dai, ori, tcn, true, nTemplate);

we are getting this exception
Code: Select all
Caused by: com.neurotec.lang.NIllegalArgumentException: hTot format is invalid
ParamName: hTot
   at com.neurotec.lang.RuntimeErrorCreator.create(RuntimeErrorCreator.java:18)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:20)
   at com.neurotec.lang.NError.get(NError.java:143)
   at com.neurotec.lang.NError.get(NError.java:163)
   at com.neurotec.lang.NError.getLast(NError.java:177)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:234)
   at com.neurotec.lang.NResult.raiseError(NResult.java:312)
   at com.neurotec.lang.NResult.check(NResult.java:223)
   at com.neurotec.biometrics.standards.ANTemplate.create(ANTemplate.java:1775)
   at com.neurotec.biometrics.standards.ANTemplate.<init>(ANTemplate.java:2004)


Admin: merged to "Java general questions"
Riz
 
Posts: 11
Joined: Jan 13, 2014 02:43

Re: com.neurotec.lang.NIllegalArgumentException: hTot format

Postby Martynas » Jan 31, 2014 07:59

Riz wrote:We are trying to convert NTemplate to ANTemplate

ANTemplate anTemplate = new ANTemplate(tot, dai, ori, tcn, true, nTemplate);

we are getting this exception
Code: Select all
Caused by: com.neurotec.lang.NIllegalArgumentException: hTot format is invalid
ParamName: hTot
   at com.neurotec.lang.RuntimeErrorCreator.create(RuntimeErrorCreator.java:18)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:20)
   at com.neurotec.lang.NError.get(NError.java:143)
   at com.neurotec.lang.NError.get(NError.java:163)
   at com.neurotec.lang.NError.getLast(NError.java:177)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:234)
   at com.neurotec.lang.NResult.raiseError(NResult.java:312)
   at com.neurotec.lang.NResult.check(NResult.java:223)
   at com.neurotec.biometrics.standards.ANTemplate.create(ANTemplate.java:1775)
   at com.neurotec.biometrics.standards.ANTemplate.<init>(ANTemplate.java:2004)

Hello,

this error is returned if the "tot" value has less than 3 chars or more than 4 chars.
The tutorial "ntemplate-to-antemplate", included in the SDK, has this check (below).

Code: Select all
         if ((tot.length() < 3) || (tot.length() > 4)) {
         }
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Java general questions

Postby abhishek08 » Feb 07, 2014 05:27

I am writing a console based java application which reads all fingerprint image files in a folder and outputs Ridge Count and Category.
Here is the code:
Code: Select all
final String components = "Biometrics.FingerExtraction";
      final String componentsClassification = "Biometrics.Tools.FingerClassification";
        try
        {
           if (!NLicense.obtainComponents("/local", 5000, components))
            {
                System.out.println("Could not obtain licenses for components: " + components);
                return;
            }
            if (!NLicense.obtainComponents("/local", 5000, componentsClassification))
            {
               System.out.println("Could not obtain licenses for components: " + componentsClassification);
                return;
            }

            NImage _image = NImage.fromFile(filename);
            NGrayscaleImage grayscaleImage = _image.toGrayscale();
            NFExtractor _extractor = new NFExtractor();

            if (grayscaleImage.isResolutionIsAspectRatio() || grayscaleImage.getHorzResolution() < 250 || grayscaleImage.getVertResolution() < 250) {
            grayscaleImage.setResolutionIsAspectRatio(false);
            if (grayscaleImage.getHorzResolution() < 250) {
               grayscaleImage.setHorzResolution(500);
            }
            if (grayscaleImage.getVertResolution() < 250) {
               grayscaleImage.setVertResolution(500);
            }
         }

            NFExtractor.ExtractResult result = _extractor.extract(grayscaleImage, NFPosition.UNKNOWN, NFImpressionType.LIVE_SCAN_PLAIN);
            //result.getStatus() == NFEExtractionStatus.TEMPLATE_CREATED)
            if(result.getStatus() == NFEExtractionStatus.TEMPLATE_CREATED)
            {
                NFClassifier classifier = new NFClassifier();
                ClassifyResult classifyRes = classifier.classify(grayscaleImage);
                System.out.println(classifyRes.getPatternClass().toString());
                classifier.dispose();
               
                NFRecord record = result.getRecord();
               
                record.getMinutiae().clear();

               
                for(NFCore core : record.getCores())
                {
                    try
                    {
                        record.getMinutiae().add(new NFMinutia(core.x, core.y, NFMinutiaType.UNKNOWN, core.angle));
                    }
                    catch (Exception e)
                    { }
                }
                record.getCores().clear();

               
                for (NFDelta delta : record.getDeltas())
                {
                    try
                    {
                        record.getMinutiae().add(new NFMinutia(delta.x, delta.y, NFMinutiaType.UNKNOWN, delta.getAngle1()));
                    }
                    catch (Exception e1)
                    {
                        try
                        {
                            record.getMinutiae().add(new NFMinutia(delta.x, delta.y, NFMinutiaType.UNKNOWN, delta.getAngle2()));
                        }
                        catch (Exception e2)
                        {
                            try
                            {
                                record.getMinutiae().add(new NFMinutia(delta.x, delta.y, NFMinutiaType.UNKNOWN, delta.getAngle3()));
                            }
                            catch (Exception e3)
                            {
                            }
                        }
                    }
                }
                record.getDeltas().clear();

               

               
                _extractor.updateTemplate(grayscaleImage, record);

                if (record.getMinutiae().size() > 0)
                {
                   
                    for (int i = 0; i < record.getMinutiaeNeighbors().get(0).length; i++)
                    {
                       
                        if ((record.getMinutiaeNeighbors().getElement(0, i).ridgeCount != -1) &&
                            (record.getMinutiaeNeighbors().getElement(0, i).ridgeCount != 255))
                            System.out.println("Ridge count: "+
                                  record.getMinutiaeNeighbors().getElement(0, i).ridgeCount);
                    }
                }
            }
        }
        catch (Exception ex)
        {
           
        }
        finally
        {
            try {
            NLicense.releaseComponents(components);
            NLicense.releaseComponents(componentsClassification);
         } catch (IOException e) {
            e.printStackTrace();
         }
        }


When i run the project, i get following error:
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.licensing.NLicense
at com.fortunainfotech.FPDetails.GenerateData(FPDetails.java:150)

I am not sure what to do to fix this issue. Secondly, how can i deploy this application to another machine.

Thanks.
abhishek08
 
Posts: 1
Joined: Jan 31, 2014 10:44

Re: Java general questions

Postby Martynas » Feb 10, 2014 15:06

abhishek08 wrote:I am writing a console based java application which reads all fingerprint image files in a folder and outputs Ridge Count and Category.
Here is the code:
Code: Select all
final String components = "Biometrics.FingerExtraction";
      final String componentsClassification = "Biometrics.Tools.FingerClassification";
        try
        {
           if (!NLicense.obtainComponents("/local", 5000, components))
            {
                System.out.println("Could not obtain licenses for components: " + components);
                return;
            }
            if (!NLicense.obtainComponents("/local", 5000, componentsClassification))
            {
               System.out.println("Could not obtain licenses for components: " + componentsClassification);
                return;
            }

            NImage _image = NImage.fromFile(filename);
            NGrayscaleImage grayscaleImage = _image.toGrayscale();
            NFExtractor _extractor = new NFExtractor();

            if (grayscaleImage.isResolutionIsAspectRatio() || grayscaleImage.getHorzResolution() < 250 || grayscaleImage.getVertResolution() < 250) {
            grayscaleImage.setResolutionIsAspectRatio(false);
            if (grayscaleImage.getHorzResolution() < 250) {
               grayscaleImage.setHorzResolution(500);
            }
            if (grayscaleImage.getVertResolution() < 250) {
               grayscaleImage.setVertResolution(500);
            }
         }

            NFExtractor.ExtractResult result = _extractor.extract(grayscaleImage, NFPosition.UNKNOWN, NFImpressionType.LIVE_SCAN_PLAIN);
            //result.getStatus() == NFEExtractionStatus.TEMPLATE_CREATED)
            if(result.getStatus() == NFEExtractionStatus.TEMPLATE_CREATED)
            {
                NFClassifier classifier = new NFClassifier();
                ClassifyResult classifyRes = classifier.classify(grayscaleImage);
                System.out.println(classifyRes.getPatternClass().toString());
                classifier.dispose();
               
                NFRecord record = result.getRecord();
               
                record.getMinutiae().clear();

               
                for(NFCore core : record.getCores())
                {
                    try
                    {
                        record.getMinutiae().add(new NFMinutia(core.x, core.y, NFMinutiaType.UNKNOWN, core.angle));
                    }
                    catch (Exception e)
                    { }
                }
                record.getCores().clear();

               
                for (NFDelta delta : record.getDeltas())
                {
                    try
                    {
                        record.getMinutiae().add(new NFMinutia(delta.x, delta.y, NFMinutiaType.UNKNOWN, delta.getAngle1()));
                    }
                    catch (Exception e1)
                    {
                        try
                        {
                            record.getMinutiae().add(new NFMinutia(delta.x, delta.y, NFMinutiaType.UNKNOWN, delta.getAngle2()));
                        }
                        catch (Exception e2)
                        {
                            try
                            {
                                record.getMinutiae().add(new NFMinutia(delta.x, delta.y, NFMinutiaType.UNKNOWN, delta.getAngle3()));
                            }
                            catch (Exception e3)
                            {
                            }
                        }
                    }
                }
                record.getDeltas().clear();

               

               
                _extractor.updateTemplate(grayscaleImage, record);

                if (record.getMinutiae().size() > 0)
                {
                   
                    for (int i = 0; i < record.getMinutiaeNeighbors().get(0).length; i++)
                    {
                       
                        if ((record.getMinutiaeNeighbors().getElement(0, i).ridgeCount != -1) &&
                            (record.getMinutiaeNeighbors().getElement(0, i).ridgeCount != 255))
                            System.out.println("Ridge count: "+
                                  record.getMinutiaeNeighbors().getElement(0, i).ridgeCount);
                    }
                }
            }
        }
        catch (Exception ex)
        {
           
        }
        finally
        {
            try {
            NLicense.releaseComponents(components);
            NLicense.releaseComponents(componentsClassification);
         } catch (IOException e) {
            e.printStackTrace();
         }
        }


When i run the project, i get following error:
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.licensing.NLicense
at com.fortunainfotech.FPDetails.GenerateData(FPDetails.java:150)

I am not sure what to do to fix this issue. Secondly, how can i deploy this application to another machine.

Thanks.

Hello,

this error means that the application was not able to access the *.dll (Windows) or *.so (Linux) files from the SDK. Set the working folder of your application to folder with dlls or so files from the SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Could not initialize class com.neurotec.lang.NType [Java]

Postby Riz » Mar 03, 2014 00:21

Hi

We are getting this error while running abis-sample

Thanks
Riz
Code: Select all
basic: JNLP2ClassLoader.findClass: org.jdesktop.swingworker.SwingWorker$5: try again ..
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.lang.NType
   at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
   at java.util.concurrent.FutureTask.get(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker.get(Unknown Source)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.done(FingersPanel.java:1077)
   at org.jdesktop.swingworker.SwingWorker$5.run(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
   at org.jdesktop.swingworker.AccumulativeRunnable.run(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
   at javax.swing.Timer.fireActionPerformed(Unknown Source)
   at javax.swing.Timer$DoPostEvent.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
[b]Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.lang.NType[/b]
   at com.neurotec.lang.NValue.toClassInternal(NValue.java:883)
   at com.neurotec.lang.NValue.toClass(NValue.java:1158)
   at com.neurotec.lang.NValue.toClass(NValue.java:1175)
   at com.neurotec.lang.NObject.getParameter(NObject.java:791)
   at com.neurotec.lang.NObject.getParameter(NObject.java:903)
   at com.neurotec.biometrics.NFExtractor.getMode(NFExtractor.java:509)
   at com.neurotec.samples.fingers.FingersSettings.loadDefault(FingersSettings.java:111)
   at com.neurotec.samples.fingers.FingersSettings.getDefaultInstance(FingersSettings.java:63)
   at com.neurotec.samples.fingers.FingersSettings.load(FingersSettings.java:98)
   at com.neurotec.samples.fingers.FingersSettings.getInstance(FingersSettings.java:73)
   at com.neurotec.samples.fingers.FingerTools.updateExtractor(FingerTools.java:54)
   at com.neurotec.samples.fingers.FingerTools.<init>(FingerTools.java:29)
   at com.neurotec.samples.fingers.FingerTools.getInstance(FingerTools.java:39)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.captureSingle(FingersPanel.java:982)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.capture(FingersPanel.java:931)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.doInBackground(FingersPanel.java:906)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.doInBackground(FingersPanel.java:869)
   at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
   at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Admin: merged to "Java general questions"
Riz
 
Posts: 11
Joined: Jan 13, 2014 02:43

Re: Could not initialize class com.neurotec.lang.NType

Postby vaidasz » Mar 03, 2014 13:40

Riz wrote:Hi

We are getting this error while running abis-sample

Thanks
Riz
Code: Select all
basic: JNLP2ClassLoader.findClass: org.jdesktop.swingworker.SwingWorker$5: try again ..
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.lang.NType
   at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
   at java.util.concurrent.FutureTask.get(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker.get(Unknown Source)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.done(FingersPanel.java:1077)
   at org.jdesktop.swingworker.SwingWorker$5.run(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
   at org.jdesktop.swingworker.AccumulativeRunnable.run(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
   at javax.swing.Timer.fireActionPerformed(Unknown Source)
   at javax.swing.Timer$DoPostEvent.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
[b]Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.lang.NType[/b]
   at com.neurotec.lang.NValue.toClassInternal(NValue.java:883)
   at com.neurotec.lang.NValue.toClass(NValue.java:1158)
   at com.neurotec.lang.NValue.toClass(NValue.java:1175)
   at com.neurotec.lang.NObject.getParameter(NObject.java:791)
   at com.neurotec.lang.NObject.getParameter(NObject.java:903)
   at com.neurotec.biometrics.NFExtractor.getMode(NFExtractor.java:509)
   at com.neurotec.samples.fingers.FingersSettings.loadDefault(FingersSettings.java:111)
   at com.neurotec.samples.fingers.FingersSettings.getDefaultInstance(FingersSettings.java:63)
   at com.neurotec.samples.fingers.FingersSettings.load(FingersSettings.java:98)
   at com.neurotec.samples.fingers.FingersSettings.getInstance(FingersSettings.java:73)
   at com.neurotec.samples.fingers.FingerTools.updateExtractor(FingerTools.java:54)
   at com.neurotec.samples.fingers.FingerTools.<init>(FingerTools.java:29)
   at com.neurotec.samples.fingers.FingerTools.getInstance(FingerTools.java:39)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.captureSingle(FingersPanel.java:982)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.capture(FingersPanel.java:931)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.doInBackground(FingersPanel.java:906)
   at com.neurotec.samples.fingers.FingersPanel$BackgroundWorker.doInBackground(FingersPanel.java:869)
   at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
   at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


Hello,

It is most likely that swing-worker.jar is missing. Also make sure that you have other jars as well.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 578
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Help with BCT ANSI and BCT FMR byte buffers [Java]

Postby monkeyhandz » Mar 05, 2014 13:26

Hi

Our finger scanners can send templates in the BCT ANSI, or BCT FMR standards. We are using the Java SDK for MegaMatcher 4.5.1.

We receive the template in binary form, in a Java ByteBuffer, how do I go about getting this into a NTemplate format so I can using it for matching.
I thought I should use the following code
Code: Select all
new FMRecord(byteBuffer, BDIFStandard.ANSI)

but this results in the following exception
Code: Select all
java.lang.RuntimeException: FMRecord saved CbeffProductId value is invalid
   at com.neurotec.lang.NResult.checkAll(NResult.java:302)
   at com.neurotec.lang.NResult.raiseError(NResult.java:312)
   at com.neurotec.lang.NResult.check(NResult.java:223)
   at com.neurotec.biometrics.standards.FMRecord.create(FMRecord.java:463)
   at com.neurotec.biometrics.standards.FMRecord.<init>(FMRecord.java:374)
   at com.liquidtelecom.lbg.formats.LoadANSITemplate.tryANSI(LoadANSITemplate.java:76)
   at com.liquidtelecom.lbg.formats.LoadANSITemplate.main(LoadANSITemplate.java:179)
Caused by: com.neurotec.io.NIOException: FMRecord saved CbeffProductId value is invalid
   at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:18)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:20)
   at com.neurotec.lang.NError.get(NError.java:143)
   at com.neurotec.lang.NError.get(NError.java:163)
   at com.neurotec.lang.NError.getLast(NError.java:177)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:234)
   ... 6 more


If you want the received template byte data I can send it to you (I wasn't sure if I should post biometrics on this forum).

Kind regards
David Smith

Admin: merged to "Java general questions"
monkeyhandz
 
Posts: 16
Joined: Jul 21, 2013 19:24

Re: Help with BCT ANSI and BCT FMR byte buffers

Postby Martynas » Mar 05, 2014 13:53

monkeyhandz wrote:Hi

Our finger scanners can send templates in the BCT ANSI, or BCT FMR standards. We are using the Java SDK for MegaMatcher 4.5.1.

We receive the template in binary form, in a Java ByteBuffer, how do I go about getting this into a NTemplate format so I can using it for matching.
I thought I should use the following code
Code: Select all
new FMRecord(byteBuffer, BDIFStandard.ANSI)

but this results in the following exception
Code: Select all
java.lang.RuntimeException: FMRecord saved CbeffProductId value is invalid
   at com.neurotec.lang.NResult.checkAll(NResult.java:302)
   at com.neurotec.lang.NResult.raiseError(NResult.java:312)
   at com.neurotec.lang.NResult.check(NResult.java:223)
   at com.neurotec.biometrics.standards.FMRecord.create(FMRecord.java:463)
   at com.neurotec.biometrics.standards.FMRecord.<init>(FMRecord.java:374)
   at com.liquidtelecom.lbg.formats.LoadANSITemplate.tryANSI(LoadANSITemplate.java:76)
   at com.liquidtelecom.lbg.formats.LoadANSITemplate.main(LoadANSITemplate.java:179)
Caused by: com.neurotec.io.NIOException: FMRecord saved CbeffProductId value is invalid
   at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:18)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:20)
   at com.neurotec.lang.NError.get(NError.java:143)
   at com.neurotec.lang.NError.get(NError.java:163)
   at com.neurotec.lang.NError.getLast(NError.java:177)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:234)
   ... 6 more


If you want the received template byte data I can send it to you (I wasn't sure if I should post biometrics on this forum).

Kind regards
David Smith

Hi,

use this code below to avoid the error you are receiving. The SDK also includes the sample "fmrecord-sample" which can be used as reference to code, which would open FMRecords.

Code: Select all
new FMRecord(byteBuffer, BDIFTypes.FLAG_DO_NOT_CHECK_CBEFF_PRODUCT_ID, BDIFStandard.ANSI)
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Help with BCT ANSI and BCT FMR byte buffers

Postby monkeyhandz » Mar 05, 2014 14:04

Hi

I just saw that and now I'm getting the following exception:
Code: Select all
java.lang.RuntimeException: FmrFingerView saved minutia is invalid
   at com.neurotec.lang.NResult.checkAll(NResult.java:302)
   at com.neurotec.lang.NResult.raiseError(NResult.java:312)
   at com.neurotec.lang.NResult.check(NResult.java:223)
   at com.neurotec.biometrics.standards.FMRecord.create(FMRecord.java:463)
   at com.neurotec.biometrics.standards.FMRecord.<init>(FMRecord.java:384)
   at com.liquidtelecom.lbg.formats.LoadANSITemplate.tryANSI(LoadANSITemplate.java:77)
   at com.liquidtelecom.lbg.formats.LoadANSITemplate.main(LoadANSITemplate.java:181)
Caused by: com.neurotec.io.NIOException: FmrFingerView saved minutia is invalid
   at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:18)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:20)
   at com.neurotec.lang.NError.get(NError.java:143)
   at com.neurotec.lang.NError.get(NError.java:163)
   at com.neurotec.lang.NError.getLast(NError.java:177)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:234)
   ... 6 more


It could be that the template is incorrectly formatted. I can send you the template to check, or is there a spec for the Template formats (I'm guessing there is, but I can't seem to find any on google).

Kind regards
David Smith
monkeyhandz
 
Posts: 16
Joined: Jul 21, 2013 19:24

Re: Help with BCT ANSI and BCT FMR byte buffers

Postby Martynas » Mar 05, 2014 14:24

monkeyhandz wrote:Hi

I just saw that and now I'm getting the following exception:
Code: Select all
java.lang.RuntimeException: FmrFingerView saved minutia is invalid
   at com.neurotec.lang.NResult.checkAll(NResult.java:302)
   at com.neurotec.lang.NResult.raiseError(NResult.java:312)
   at com.neurotec.lang.NResult.check(NResult.java:223)
   at com.neurotec.biometrics.standards.FMRecord.create(FMRecord.java:463)
   at com.neurotec.biometrics.standards.FMRecord.<init>(FMRecord.java:384)
   at com.liquidtelecom.lbg.formats.LoadANSITemplate.tryANSI(LoadANSITemplate.java:77)
   at com.liquidtelecom.lbg.formats.LoadANSITemplate.main(LoadANSITemplate.java:181)
Caused by: com.neurotec.io.NIOException: FmrFingerView saved minutia is invalid
   at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:18)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:20)
   at com.neurotec.lang.NError.get(NError.java:143)
   at com.neurotec.lang.NError.get(NError.java:163)
   at com.neurotec.lang.NError.getLast(NError.java:177)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:234)
   ... 6 more


It could be that the template is incorrectly formatted. I can send you the template to check, or is there a spec for the Template formats (I'm guessing there is, but I can't seem to find any on google).

Kind regards
David Smith

Hello,

please send your issue detailed description to support@neurotechnology.com along with several such templates.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Could not initialize class com.neurotec.lang.NType [Java

Postby Riz » Mar 20, 2014 21:53

vaidasz wrote:It is most likely that swing-worker.jar is missing. Also make sure that you have other jars as well.

It seems that we were using old sdk jars, instead of latest jars
Riz
 
Posts: 11
Joined: Jan 13, 2014 02:43

Unable to scan finger prints ... [Java][Finger]

Postby mdpradeep » Apr 05, 2014 06:20

Hello,
We are trying to use VeriFinger SDK and we are stuck … We are basically trying to capture finger scan but it is failing with the following exception ..
Code: Select all
                Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: One or more errors occurred
                at com.neurotec.lang.NResult.checkAll(NResult.java:323)
                at com.neurotec.lang.NResult.raiseError(NResult.java:333)
                at com.neurotec.lang.NResult.check(NResult.java:234)
                at com.neurotec.biometrics.NBiometricEngine.enroll(NBiometricEngine.java:265)
                at com.neurotec.biometrics.NBiometricEngine.enroll(NBiometricEngine.java:253)
                at com.pw.ui.RegisterUser.startCapturing(RegisterUser.java:368)
                at com.pw.ui.RegisterUser.captureNewUserActionPerformed(RegisterUser.java:330)
                at com.pw.ui.RegisterUser.access$500(RegisterUser.java:43)
                at com.pw.ui.RegisterUser$6.actionPerformed(RegisterUser.java:228)
                at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
                at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
                at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
                at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
                at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
                at java.awt.Component.processMouseEvent(Component.java:6527)
                at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
                at java.awt.Component.processEvent(Component.java:6292)
                at java.awt.Container.processEvent(Container.java:2234)
                at java.awt.Component.dispatchEventImpl(Component.java:4883)
                at java.awt.Container.dispatchEventImpl(Container.java:2292)
                at java.awt.Component.dispatchEvent(Component.java:4705)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
                at java.awt.Container.dispatchEventImpl(Container.java:2278)
                at java.awt.Window.dispatchEventImpl(Window.java:2739)
                at java.awt.Component.dispatchEvent(Component.java:4705)
                at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
                at java.awt.EventQueue.access$400(EventQueue.java:97)
                at java.awt.EventQueue$3.run(EventQueue.java:697)
                at java.awt.EventQueue$3.run(EventQueue.java:691)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
                at java.awt.EventQueue$4.run(EventQueue.java:719)
                at java.awt.EventQueue$4.run(EventQueue.java:717)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
                at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
                at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: com.neurotec.util.concurrent.NAggregateExecutionException: One or more errors occurred
                at com.neurotec.util.concurrent.ConcurrentUtilErrorCreator.create(ConcurrentUtilErrorCreator.java:17)
                at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
                at com.neurotec.lang.NError.get(NError.java:172)
                at com.neurotec.lang.NError.get(NError.java:189)
                at com.neurotec.lang.NError.getLast(NError.java:203)
                at com.neurotec.lang.NResult.checkUnchecked(NResult.java:245)
                ... 44 more
Caused by: com.neurotec.io.NIOException: Capture error
                at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:21)
                at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
                at com.neurotec.lang.NError.get(NError.java:172)
                at com.neurotec.lang.NError.get(NError.java:166)
                ... 47 more

Our code is almost the same as the simple-fingers-sample available under Neurotec Biometric 5.0 SDK TrialSamplesBiometricsJava folder which is part of the SDK package.

If we use simple-fingers-sample, then it is working fine. Please help as the error message is not giving any clue as to where the issue is !
mdpradeep
 
Posts: 1
Joined: Apr 05, 2014 06:02

Re: Java general questions

Postby Crisstina » Apr 15, 2014 19:57

Hello,

I downloaded newest SDK: Product revision number: 116119.

I followed the steps on the documentation to open the project abis-sample in Eclipse with Maven in Ubuntu Linux 32 bits.

I am getting the following errors:

Code: Select all
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Abis Sample 5.0.0.0
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.apache.org/snapshots/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 1.2 KB/sec)
Downloading: http://repository.apache.org/snapshots/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom (5 KB at 26.6 KB/sec)
[WARNING] The POM for com.neurotec:neurotec-core:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-gui:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-media:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-media-processing:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics-client:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics-gui:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-cluster:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-licensing:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec.samples:utils:jar:5.0.0.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.163s
[INFO] Finished at: Tue Apr 15 12:43:48 PDT 2014
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project abis-sample: Could not resolve dependencies for project com.neurotec.samples:abis-sample:jar:5.0.0.0: The following artifacts could not be resolved: com.neurotec:neurotec-core:jar:5.0.0.0, com.neurotec:neurotec-gui:jar:5.0.0.0, com.neurotec:neurotec-media:jar:5.0.0.0, com.neurotec:neurotec-media-processing:jar:5.0.0.0, com.neurotec:neurotec-biometrics:jar:5.0.0.0, com.neurotec:neurotec-biometrics-client:jar:5.0.0.0, com.neurotec:neurotec-biometrics-gui:jar:5.0.0.0, com.neurotec:neurotec-devices:jar:5.0.0.0, com.neurotec:neurotec-cluster:jar:5.0.0.0, com.neurotec:neurotec-licensing:jar:5.0.0.0, com.neurotec.samples:utils:jar:5.0.0.0: Failure to find com.neurotec:neurotec-core:jar:5.0.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


Attached the screenshots.
What can we do? please advice.
Thank you
Attachments
Maven1.jpg
(72.53 KiB) Not downloaded yet
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby Martynas » Apr 16, 2014 07:47

Crisstina wrote:Hello,

I downloaded newest SDK: Product revision number: 116119.

I followed the steps on the documentation to open the project abis-sample in Eclipse with Maven in Ubuntu Linux 32 bits.

I am getting the following errors:

Code: Select all
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Abis Sample 5.0.0.0
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.apache.org/snapshots/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 1.2 KB/sec)
Downloading: http://repository.apache.org/snapshots/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom (5 KB at 26.6 KB/sec)
[WARNING] The POM for com.neurotec:neurotec-core:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-gui:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-media:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-media-processing:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics-client:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics-gui:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-cluster:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-licensing:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec.samples:utils:jar:5.0.0.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.163s
[INFO] Finished at: Tue Apr 15 12:43:48 PDT 2014
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project abis-sample: Could not resolve dependencies for project com.neurotec.samples:abis-sample:jar:5.0.0.0: The following artifacts could not be resolved: com.neurotec:neurotec-core:jar:5.0.0.0, com.neurotec:neurotec-gui:jar:5.0.0.0, com.neurotec:neurotec-media:jar:5.0.0.0, com.neurotec:neurotec-media-processing:jar:5.0.0.0, com.neurotec:neurotec-biometrics:jar:5.0.0.0, com.neurotec:neurotec-biometrics-client:jar:5.0.0.0, com.neurotec:neurotec-biometrics-gui:jar:5.0.0.0, com.neurotec:neurotec-devices:jar:5.0.0.0, com.neurotec:neurotec-cluster:jar:5.0.0.0, com.neurotec:neurotec-licensing:jar:5.0.0.0, com.neurotec.samples:utils:jar:5.0.0.0: Failure to find com.neurotec:neurotec-core:jar:5.0.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


Attached the screenshots.
What can we do? please advice.
Thank you

Hi,

please run command "mvn clean install" in SDK folder "Samples\Biometrics\Java" first of all. It will place required jar files into Maven repository.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2203
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Unable to scan finger prints ... [Java][Finger]

Postby vaidasz » Apr 28, 2014 14:26

mdpradeep wrote:Hello,
We are trying to use VeriFinger SDK and we are stuck … We are basically trying to capture finger scan but it is failing with the following exception ..
Code: Select all
                Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: One or more errors occurred
                at com.neurotec.lang.NResult.checkAll(NResult.java:323)
                at com.neurotec.lang.NResult.raiseError(NResult.java:333)
                at com.neurotec.lang.NResult.check(NResult.java:234)
                at com.neurotec.biometrics.NBiometricEngine.enroll(NBiometricEngine.java:265)
                at com.neurotec.biometrics.NBiometricEngine.enroll(NBiometricEngine.java:253)
                at com.pw.ui.RegisterUser.startCapturing(RegisterUser.java:368)
                at com.pw.ui.RegisterUser.captureNewUserActionPerformed(RegisterUser.java:330)
                at com.pw.ui.RegisterUser.access$500(RegisterUser.java:43)
                at com.pw.ui.RegisterUser$6.actionPerformed(RegisterUser.java:228)
                at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
                at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
                at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
                at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
                at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
                at java.awt.Component.processMouseEvent(Component.java:6527)
                at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
                at java.awt.Component.processEvent(Component.java:6292)
                at java.awt.Container.processEvent(Container.java:2234)
                at java.awt.Component.dispatchEventImpl(Component.java:4883)
                at java.awt.Container.dispatchEventImpl(Container.java:2292)
                at java.awt.Component.dispatchEvent(Component.java:4705)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
                at java.awt.Container.dispatchEventImpl(Container.java:2278)
                at java.awt.Window.dispatchEventImpl(Window.java:2739)
                at java.awt.Component.dispatchEvent(Component.java:4705)
                at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
                at java.awt.EventQueue.access$400(EventQueue.java:97)
                at java.awt.EventQueue$3.run(EventQueue.java:697)
                at java.awt.EventQueue$3.run(EventQueue.java:691)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
                at java.awt.EventQueue$4.run(EventQueue.java:719)
                at java.awt.EventQueue$4.run(EventQueue.java:717)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
                at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
                at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: com.neurotec.util.concurrent.NAggregateExecutionException: One or more errors occurred
                at com.neurotec.util.concurrent.ConcurrentUtilErrorCreator.create(ConcurrentUtilErrorCreator.java:17)
                at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
                at com.neurotec.lang.NError.get(NError.java:172)
                at com.neurotec.lang.NError.get(NError.java:189)
                at com.neurotec.lang.NError.getLast(NError.java:203)
                at com.neurotec.lang.NResult.checkUnchecked(NResult.java:245)
                ... 44 more
Caused by: com.neurotec.io.NIOException: Capture error
                at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:21)
                at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
                at com.neurotec.lang.NError.get(NError.java:172)
                at com.neurotec.lang.NError.get(NError.java:166)
                ... 47 more

Our code is almost the same as the simple-fingers-sample available under Neurotec Biometric 5.0 SDK TrialSamplesBiometricsJava folder which is part of the SDK package.

If we use simple-fingers-sample, then it is working fine. Please help as the error message is not giving any clue as to where the issue is !


Hello,

The issue was with incorrect/not all libraries (*.dlls) loaded by the application.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 578
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Unable to scan finger prints ... [Java][Finger]

Postby Sergey » May 14, 2014 07:39

mdpradeep wrote:Hello,
We are trying to use VeriFinger SDK and we are stuck … We are basically trying to capture finger scan but it is failing with the following exception ..
Code: Select all
                Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: One or more errors occurred
                at com.neurotec.lang.NResult.checkAll(NResult.java:323)
                at com.neurotec.lang.NResult.raiseError(NResult.java:333)
                at com.neurotec.lang.NResult.check(NResult.java:234)
                at com.neurotec.biometrics.NBiometricEngine.enroll(NBiometricEngine.java:265)
                at com.neurotec.biometrics.NBiometricEngine.enroll(NBiometricEngine.java:253)
                at com.pw.ui.RegisterUser.startCapturing(RegisterUser.java:368)
                at com.pw.ui.RegisterUser.captureNewUserActionPerformed(RegisterUser.java:330)
                at com.pw.ui.RegisterUser.access$500(RegisterUser.java:43)
                at com.pw.ui.RegisterUser$6.actionPerformed(RegisterUser.java:228)
                at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
                at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
                at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
                at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
                at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
                at java.awt.Component.processMouseEvent(Component.java:6527)
                at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
                at java.awt.Component.processEvent(Component.java:6292)
                at java.awt.Container.processEvent(Container.java:2234)
                at java.awt.Component.dispatchEventImpl(Component.java:4883)
                at java.awt.Container.dispatchEventImpl(Container.java:2292)
                at java.awt.Component.dispatchEvent(Component.java:4705)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
                at java.awt.Container.dispatchEventImpl(Container.java:2278)
                at java.awt.Window.dispatchEventImpl(Window.java:2739)
                at java.awt.Component.dispatchEvent(Component.java:4705)
                at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
                at java.awt.EventQueue.access$400(EventQueue.java:97)
                at java.awt.EventQueue$3.run(EventQueue.java:697)
                at java.awt.EventQueue$3.run(EventQueue.java:691)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
                at java.awt.EventQueue$4.run(EventQueue.java:719)
                at java.awt.EventQueue$4.run(EventQueue.java:717)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
                at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
                at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: com.neurotec.util.concurrent.NAggregateExecutionException: One or more errors occurred
                at com.neurotec.util.concurrent.ConcurrentUtilErrorCreator.create(ConcurrentUtilErrorCreator.java:17)
                at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
                at com.neurotec.lang.NError.get(NError.java:172)
                at com.neurotec.lang.NError.get(NError.java:189)
                at com.neurotec.lang.NError.getLast(NError.java:203)
                at com.neurotec.lang.NResult.checkUnchecked(NResult.java:245)
                ... 44 more
Caused by: com.neurotec.io.NIOException: Capture error
                at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:21)
                at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
                at com.neurotec.lang.NError.get(NError.java:172)
                at com.neurotec.lang.NError.get(NError.java:166)
                ... 47 more

Our code is almost the same as the simple-fingers-sample available under Neurotec Biometric 5.0 SDK TrialSamplesBiometricsJava folder which is part of the SDK package.

If we use simple-fingers-sample, then it is working fine. Please help as the error message is not giving any clue as to where the issue is !


Admin: merged to "Java general questions"
Sergey
Site Admin
 
Posts: 105
Joined: Oct 30, 2007 11:39

Re: Java general questions

Postby Crisstina » May 23, 2014 21:45

Hello,

We downloaded newest version 117693 and when we execute mvn -clean on the Samples folder, we get the error showing ahead.
What do you advice?

Code: Select all
C:\Neurotec_Biometric_5_0_SDK_2014-05-09\Neurotec_Biometric_5_0_SDK\Samples\Biom
etrics\Java>mvn -clean
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] neurotec-biometric-component-installer
[INFO] Samples utils
[INFO] biometrics-samples
[INFO] Abis Sample
[INFO] Latent Fingerprint Sample
[INFO] Simple Fingers Sample
[INFO] Simple Faces Sample
[INFO] Simple Irises Sample
[INFO] Simple Voices Sample
[INFO] Template Conversion Sample
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building neurotec-biometric-component-installer 1.0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] neurotec-biometric-component-installer ............ FAILURE [0.002s]
[INFO] Samples utils ..................................... SKIPPED
[INFO] biometrics-samples ................................ SKIPPED
[INFO] Abis Sample ....................................... SKIPPED
[INFO] Latent Fingerprint Sample ......................... SKIPPED
[INFO] Simple Fingers Sample ............................. SKIPPED
[INFO] Simple Faces Sample ............................... SKIPPED
[INFO] Simple Irises Sample .............................. SKIPPED
[INFO] Simple Voices Sample .............................. SKIPPED
[INFO] Template Conversion Sample ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.219s
[INFO] Finished at: Fri May 23 17:07:57 VET 2014
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "lean". You must specify a valid lifecycle phase
 or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-art
ifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, i
nitialize, generate-sources, process-sources, generate-resources, process-resour
ces, compile, process-classes, generate-test-sources, process-test-sources, gene
rate-test-resources, process-test-resources, test-compile, process-test-classes,
 test, prepare-package, package, pre-integration-test, integration-test, post-in
tegration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site,
 site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase
NotFoundException
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

PreviousNext

Return to Public

Who is online

Users browsing this forum: No registered users and 3 guests

cron