Java general questions

General information about Neurotechnology and its software

Re: Java general questions

Postby Martynas » May 26, 2014 07:21

Crisstina wrote: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?


use the correct command "mvn clean install".
Best regards,

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

Re: Java general questions

Postby Crisstina » May 27, 2014 21:52

Thank you Martynas. We did that and we were able to run the applet.

Now, we run into another problem we've been having with other versions of the SDK since 4.4; Nor the Java application (abis-sample), and the c# and Visual Basic samples are able to recognize the Digital Persona 4500, nor the Integrated biometrics LES 650. The only scanner that has worked so far is the Futronic FS88.

Can you advice us what can we do to be able to use your samples with the aforementioned scanners?

Thank you again
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby Martynas » May 28, 2014 07:11

Hello,

Crisstina wrote:Now, we run into another problem we've been having with other versions of the SDK since 4.4; Nor the Java application (abis-sample), and the c# and Visual Basic samples are able to recognize the Digital Persona 4500, nor the Integrated biometrics LES 650. The only scanner that has worked so far is the Futronic FS88.


Which drivers versions are installed for both scanners and from where they were downloaded?
What operating system is used?
Best regards,

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

Re: Java general questions

Postby Crisstina » May 28, 2014 13:56

Which drivers versions are installed for both scanners and from where they were downloaded?
What operating system is used?


Versions.png
Driver Versions
(38.96 KiB) Not downloaded yet

IB Les Drivers were used from the CD delivered from the provider. U are U drivers were downloaded from their website.
OS is Windows 7 Ultimate x64
Crisstina
 
Posts: 48
Joined: Jun 08, 2010 15:56

Re: Java general questions

Postby Martynas » May 29, 2014 06:46

Hello,

Crisstina wrote:IB Les Drivers were used from the CD delivered from the provider. U are U drivers were downloaded from their website.
OS is Windows 7 Ultimate x64


Drivers should be downloaded and used from our provided drivers pack.
Best regards,

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

Re: Java general questions

Postby dicaalba » Jun 13, 2014 21:58

Hello

I have an stable product developed with your SDK revision number 111258 . I cannot upgrade it to the newest versions right now since it is already deployed into my customer's environment.
Now, when I try to download the jars needed for the project, the Maven clean Install command, returns an error. It says the JARs aren't available anymore.

When I visit the URL into the POM.xml files, I see the folders for the Jars but they are empty.

Is there a way I can get the 4.5 jar versions so I can continue giving support to my client?

Thank you.
dicaalba
 
Posts: 10
Joined: Jun 06, 2013 21:13

Re: Java general questions

Postby Martynas » Jun 16, 2014 07:09

dicaalba wrote:Hello

I have an stable product developed with your SDK revision number 111258 . I cannot upgrade it to the newest versions right now since it is already deployed into my customer's environment.
Now, when I try to download the jars needed for the project, the Maven clean Install command, returns an error. It says the JARs aren't available anymore.

When I visit the URL into the POM.xml files, I see the folders for the Jars but they are empty.

Is there a way I can get the 4.5 jar versions so I can continue giving support to my client?

Thank you.

Hello,

could you provide exact errors you are getting?
Best regards,

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

Re: Java general questions

Postby dicaalba » Jun 16, 2014 18:41

Hi! This is the error:

Code: Select all
C:\Neurotec_Biometric_4_5_SDK_2013-12-13\Neurotec_Biometric_4_5_SDK\Samples\Biom
etrics\Java>mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] biometrics-samples
[INFO] Abis Sample
[INFO] Finger Tools Sample
[INFO] Verification Service Client
[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] Verification Service
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building biometrics-samples 4.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ biometrics-samples -
--
[INFO] Deleting C:\Neurotec_Biometric_4_5_SDK_2013-12-13\Neurotec_Biometric_4_5_
SDK\Samples\Biometrics\Java\..\..\..\Bin\Java (includes = [biometrics-samples*.*
], excludes = [])
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ biometrics-sam
ples ---
[INFO] Installing C:\Neurotec_Biometric_4_5_SDK_2013-12-13\Neurotec_Biometric_4_
5_SDK\Samples\Biometrics\Java\pom.xml to C:\Users\DianaAlfaro\.m2\repository\com
\neurotec\samples\biometrics-samples\4.5.0.0\biometrics-samples-4.5.0.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Abis Sample 4.5.0.0
[INFO] ------------------------------------------------------------------------
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-media-processing/4.5.0.0/neurotec-media-processing-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-media-processin
g/4.5.0.0/neurotec-media-processing-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-media-processing:jar:4.5.0.0 is miss
ing, no dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics/4.5.0.0/neurotec-biometrics-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics/4.5.
0.0/neurotec-biometrics-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-biometrics:jar:4.5.0.0 is missing, n
o dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics-standards/4.5.0.0/neurotec-biometrics-standards-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics-stan
dards/4.5.0.0/neurotec-biometrics-standards-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-biometrics-standards:jar:4.5.0.0 is
missing, no dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-smartcards/4.5.0.0/neurotec-smartcards-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-smartcards/4.5.
0.0/neurotec-smartcards-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-smartcards:jar:4.5.0.0 is missing, n
o dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics-gui/4.5.0.0/neurotec-biometrics-gui-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics-gui/
4.5.0.0/neurotec-biometrics-gui-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-biometrics-gui:jar:4.5.0.0 is missin
g, no dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-cluster/4.5.0.0/neurotec-cluster-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-cluster/4.5.0.0
/neurotec-cluster-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-cluster:jar:4.5.0.0 is missing, no d
ependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-licensing/4.5.0.0/neurotec-licensing-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-licensing/4.5.0
.0/neurotec-licensing-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-licensing:jar:4.5.0.0 is missing, no
 dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/sam
ples/utils/4.5.0.0/utils-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/samples/utils/4.5.0.0/ut
ils-4.5.0.0.pom
[WARNING] The POM for com.neurotec.samples:utils:jar:4.5.0.0 is missing, no depe
ndency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-media-processing/4.5.0.0/neurotec-media-processing-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics/4.5.0.0/neurotec-biometrics-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics-standards/4.5.0.0/neurotec-biometrics-standards-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-smartcards/4.5.0.0/neurotec-smartcards-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics-gui/4.5.0.0/neurotec-biometrics-gui-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-cluster/4.5.0.0/neurotec-cluster-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-licensing/4.5.0.0/neurotec-licensing-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/sam
ples/utils/4.5.0.0/utils-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics/4.5.
0.0/neurotec-biometrics-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics-stan
dards/4.5.0.0/neurotec-biometrics-standards-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-smartcards/4.5.
0.0/neurotec-smartcards-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics-gui/
4.5.0.0/neurotec-biometrics-gui-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-media-processin
g/4.5.0.0/neurotec-media-processing-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-cluster/4.5.0.0
/neurotec-cluster-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-licensing/4.5.0
.0/neurotec-licensing-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/samples/utils/4.5.0.0/ut
ils-4.5.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] biometrics-samples ................................ SUCCESS [0.392s]
[INFO] Abis Sample ....................................... FAILURE [13.055s]
[INFO] Finger Tools Sample ............................... SKIPPED
[INFO] Verification Service Client ....................... 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] Verification Service .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.755s
[INFO] Finished at: Mon Jun 16 14:06:25 VET 2014
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project abis-sample: Could not resolve depende
ncies for project com.neurotec.samples:abis-sample:jar:4.5.0.0: The following ar
tifacts could not be resolved: com.neurotec:neurotec-media-processing:jar:4.5.0.
0, com.neurotec:neurotec-biometrics:jar:4.5.0.0, com.neurotec:neurotec-biometric
s-standards:jar:4.5.0.0, com.neurotec:neurotec-smartcards:jar:4.5.0.0, com.neuro
tec:neurotec-biometrics-gui:jar:4.5.0.0, com.neurotec:neurotec-cluster:jar:4.5.0
.0, com.neurotec:neurotec-licensing:jar:4.5.0.0, com.neurotec.samples:utils:jar:
4.5.0.0: Could not find artifact com.neurotec:neurotec-media-processing:jar:4.5.
0.0 in acra-releases (http://acra.googlecode.com/svn/repository/releases) -> [He
lp 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/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :abis-sample
dicaalba
 
Posts: 10
Joined: Jun 06, 2013 21:13

Re: Java general questions

Postby Martynas » Jun 17, 2014 07:19

dicaalba wrote:Hi! This is the error:

Code: Select all
C:\Neurotec_Biometric_4_5_SDK_2013-12-13\Neurotec_Biometric_4_5_SDK\Samples\Biom
etrics\Java>mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] biometrics-samples
[INFO] Abis Sample
[INFO] Finger Tools Sample
[INFO] Verification Service Client
[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] Verification Service
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building biometrics-samples 4.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ biometrics-samples -
--
[INFO] Deleting C:\Neurotec_Biometric_4_5_SDK_2013-12-13\Neurotec_Biometric_4_5_
SDK\Samples\Biometrics\Java\..\..\..\Bin\Java (includes = [biometrics-samples*.*
], excludes = [])
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ biometrics-sam
ples ---
[INFO] Installing C:\Neurotec_Biometric_4_5_SDK_2013-12-13\Neurotec_Biometric_4_
5_SDK\Samples\Biometrics\Java\pom.xml to C:\Users\DianaAlfaro\.m2\repository\com
\neurotec\samples\biometrics-samples\4.5.0.0\biometrics-samples-4.5.0.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Abis Sample 4.5.0.0
[INFO] ------------------------------------------------------------------------
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-media-processing/4.5.0.0/neurotec-media-processing-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-media-processin
g/4.5.0.0/neurotec-media-processing-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-media-processing:jar:4.5.0.0 is miss
ing, no dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics/4.5.0.0/neurotec-biometrics-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics/4.5.
0.0/neurotec-biometrics-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-biometrics:jar:4.5.0.0 is missing, n
o dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics-standards/4.5.0.0/neurotec-biometrics-standards-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics-stan
dards/4.5.0.0/neurotec-biometrics-standards-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-biometrics-standards:jar:4.5.0.0 is
missing, no dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-smartcards/4.5.0.0/neurotec-smartcards-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-smartcards/4.5.
0.0/neurotec-smartcards-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-smartcards:jar:4.5.0.0 is missing, n
o dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics-gui/4.5.0.0/neurotec-biometrics-gui-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics-gui/
4.5.0.0/neurotec-biometrics-gui-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-biometrics-gui:jar:4.5.0.0 is missin
g, no dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-cluster/4.5.0.0/neurotec-cluster-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-cluster/4.5.0.0
/neurotec-cluster-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-cluster:jar:4.5.0.0 is missing, no d
ependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-licensing/4.5.0.0/neurotec-licensing-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-licensing/4.5.0
.0/neurotec-licensing-4.5.0.0.pom
[WARNING] The POM for com.neurotec:neurotec-licensing:jar:4.5.0.0 is missing, no
 dependency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/sam
ples/utils/4.5.0.0/utils-4.5.0.0.pom
Downloading: http://repo1.maven.org/maven2/com/neurotec/samples/utils/4.5.0.0/ut
ils-4.5.0.0.pom
[WARNING] The POM for com.neurotec.samples:utils:jar:4.5.0.0 is missing, no depe
ndency information available
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-media-processing/4.5.0.0/neurotec-media-processing-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics/4.5.0.0/neurotec-biometrics-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics-standards/4.5.0.0/neurotec-biometrics-standards-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-smartcards/4.5.0.0/neurotec-smartcards-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-biometrics-gui/4.5.0.0/neurotec-biometrics-gui-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-cluster/4.5.0.0/neurotec-cluster-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/neu
rotec-licensing/4.5.0.0/neurotec-licensing-4.5.0.0.jar
Downloading: http://acra.googlecode.com/svn/repository/releases/com/neurotec/sam
ples/utils/4.5.0.0/utils-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics/4.5.
0.0/neurotec-biometrics-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics-stan
dards/4.5.0.0/neurotec-biometrics-standards-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-smartcards/4.5.
0.0/neurotec-smartcards-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-biometrics-gui/
4.5.0.0/neurotec-biometrics-gui-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-media-processin
g/4.5.0.0/neurotec-media-processing-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-cluster/4.5.0.0
/neurotec-cluster-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/neurotec-licensing/4.5.0
.0/neurotec-licensing-4.5.0.0.jar
Downloading: http://repo1.maven.org/maven2/com/neurotec/samples/utils/4.5.0.0/ut
ils-4.5.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] biometrics-samples ................................ SUCCESS [0.392s]
[INFO] Abis Sample ....................................... FAILURE [13.055s]
[INFO] Finger Tools Sample ............................... SKIPPED
[INFO] Verification Service Client ....................... 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] Verification Service .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.755s
[INFO] Finished at: Mon Jun 16 14:06:25 VET 2014
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project abis-sample: Could not resolve depende
ncies for project com.neurotec.samples:abis-sample:jar:4.5.0.0: The following ar
tifacts could not be resolved: com.neurotec:neurotec-media-processing:jar:4.5.0.
0, com.neurotec:neurotec-biometrics:jar:4.5.0.0, com.neurotec:neurotec-biometric
s-standards:jar:4.5.0.0, com.neurotec:neurotec-smartcards:jar:4.5.0.0, com.neuro
tec:neurotec-biometrics-gui:jar:4.5.0.0, com.neurotec:neurotec-cluster:jar:4.5.0
.0, com.neurotec:neurotec-licensing:jar:4.5.0.0, com.neurotec.samples:utils:jar:
4.5.0.0: Could not find artifact com.neurotec:neurotec-media-processing:jar:4.5.
0.0 in acra-releases (http://acra.googlecode.com/svn/repository/releases) -> [He
lp 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/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :abis-sample

Hi,

incorrect folder was used for the "mvn clean install" command execution.
In Neurotec Biometric 4.5, you need to execute this command in the "C:\Neurotec_Biometric_4_5_SDK_2013-12-13\Neurotec_Biometric_4_5_SDK\Samples" folder.
Best regards,

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

Problems Running Java Samples on Linux

Postby dhileman » Jul 16, 2014 18:03

Hello,

I am using Mega Matcher 5.0, and trying to run the fingerprint Java samples on Linux (CentOS 6.5 x64), like such:

./simple-fingers-sample.sh

But it throws this error:
Code: Select all
There is an incompatible JNA native library installed on this system.
To resolve this issue you may do one of the following:
 - remove or uninstall the offending library
 - set the system property jna.nosys=true
 - set jna.boot.library.path to include the path to the version of the
   jnidispatch library included with the JNA jar file you are using

   at com.sun.jna.Native.<clinit>(Native.java:142)
   at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:67)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:107)
   ... 8 more

I have tried resolving this error by setting the jna.nosys=true property. This resolved the error, but presented a new 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:209)
   at com.neurotec.samples.EnrollFromImage.<init>(EnrollFromImage.java:91)
   at com.neurotec.samples.MainPanel.initGUI(MainPanel.java:54)
   at com.neurotec.samples.MainPanel.<init>(MainPanel.java:43)
   at com.neurotec.samples.SimpleFingersApplication.main(SimpleFingersApplication.java:33)
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library "NMedia": libNCore.so: cannot open shared object file: No such file or directory
   at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:194)
   at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:283)
   at com.neurotec.media.NMedia.<clinit>(NMedia.java:46)
   ... 6 more

Anyone have an idea of what the problem might be? The Java samples work just fine on Windows, but not Linux.

Admin: merged to "Java general questions"
dhileman
 
Posts: 30
Joined: Jul 16, 2014 17:52

JNI Error on Samples

Postby jshailes » Jul 17, 2014 12:52

I have downloaded and installed the latest Neurotec Biometric 5.0 SDK Trial and I am having difficulties getting the samples to run in eclipse. Could you please provide some assistance. My OS is Windows 8. The steps I have gone through so far:

    * Download SDK zip
    * Extracted zip to Desktop
    * Run Setup.exe which installed to 'c:\Program Files (x86)\Neurotechnology\Neurotec Biometric 5.0 SDK Trial\'
    * Installed .NET Framework during install of Setup.exe
    * Started and configured the activation program
    * copied jar files from 'c:\Program Files (x86)\Neurotechnology\Neurotec Biometric 5.0 SDK Trial\Bin\Java' to local maven repository
    * Created a new folder 'c:\workspace'
    * Opened eclipse, specifying workspace as 'c:\workspace'
    * imported maven project into eclipse: File -> Import -> Existing Maven Projects. Root directory set as 'c:\Program Files (x86)\Neurotechnology\Neurotec Biometric 5.0 SDK Trial\Samples\Biometrics\Java. Selected all projects and clicked Finish'

When attempting to run 'SimpleFacesApplication.java' I get the following error:

Code: Select all
Unable to load library 'NCore': The specified module could not be found


Admin: merged to "Java general questions"
jshailes
 
Posts: 5
Joined: Jul 17, 2014 12:38

Re: Problems Running Java Samples on Linux

Postby dhileman » Jul 17, 2014 12:56

I have found the solution to my problem. I just needed to add the MegaMatcher linux libraries to the system variable LD_LIBRARY_PATH. Here was the solution:
#cd /etc/ld.so.conf.d
#sudo gedit megamatcher-x86_64.conf (new file)
add one line to this file: /path/to/megamatcher/libs (example: line 1: /opt/Neurotec_Biometric_5_0_SDK/Lib/Linux_x86_64)
save and close the file
#ldconfig (this updates the system to include the new conf file. ignore error messages)

After performing these steps, all of the MegaMatcher samples now work.

Thanks
dhileman
 
Posts: 30
Joined: Jul 16, 2014 17:52

Re: JNI Error on Samples

Postby vaidasz » Jul 17, 2014 14:53

Hello,

jshailes wrote:* copied jar files from 'c:\Program Files (x86)\Neurotechnology\Neurotec Biometric 5.0 SDK Trial\Bin\Java' to local maven repository

Do not copy them. Execute "mvn clean install" from c:\Program Files (x86)\Neurotechnology\Neurotec Biometric 5.0 SDK Trial\Samples\Biometrics\Java.

jshailes wrote:
Code: Select all
Unable to load library 'NCore': The specified module could not be found



The issue you are facing that native (*.dll) libraries could not be loaded. Specify c:\Program Files (x86)\Neurotechnology\Neurotec Biometric 5.0 SDK Trial\Bin\Win32_x86 as "Working directory" in project's properties -> Arguments tab.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 589
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: JNI Error on Samples

Postby jshailes » Jul 17, 2014 15:24

"mvn clean install" runs successfully and generates the target directory.

I"m unable to locate the "Working directory" field you mention in project"s properties -> Arguments tab. I assume this is in eclipse? If I right click the project and select properties, I see no mention of "Arguments" anywhere in the dialog box.
jshailes
 
Posts: 5
Joined: Jul 17, 2014 12:38

Re: JNI Error on Samples

Postby jshailes » Jul 17, 2014 15:33

jshailes wrote:"mvn clean install" runs successfully and generates the target directory.

I"m unable to locate the "Working directory" field you mention in project"s properties -> Arguments tab. I assume this is in eclipse? If I right click the project and select properties, I see no mention of "Arguments" anywhere in the dialog box.

Ok, I found the "Working Directory" field in the "Run Configuration" -> Arguments tab. Problem solved. Many thanks.
jshailes
 
Posts: 5
Joined: Jul 17, 2014 12:38

Re: Problems Running Java Samples on Linux

Postby achugunov » Jul 25, 2014 07:14

dhileman wrote:I have found the solution to my problem. I just needed to add the MegaMatcher linux libraries to the system variable LD_LIBRARY_PATH. Here was the solution:
#cd /etc/ld.so.conf.d
#sudo gedit megamatcher-x86_64.conf (new file)
add one line to this file: /path/to/megamatcher/libs (example: line 1: /opt/Neurotec_Biometric_5_0_SDK/Lib/Linux_x86_64)
save and close the file
#ldconfig (this updates the system to include the new conf file. ignore error messages)

After performing these steps, all of the MegaMatcher samples now work.

Thanks

Hello!

I have the same problem, but this decision doesn"t work. When I"m trying to create the link, Ubuntu throw a message, that "it is impossible to create the reference from /path/to/lib/Linux_x86/../build/native/libjnidispatch.so to libjnidispatch.so"
achugunov
 
Posts: 2
Joined: Jul 25, 2014 07:07

Re: Problems Running Java Samples on Linux

Postby vaidasz » Jul 25, 2014 14:57

achugunov wrote:Hello!

I have the same problem, but this decision doesn"t work. When I"m trying to create the link, Ubuntu throw a message, that "it is impossible to create the reference from /path/to/lib/Linux_x86/../build/native/libjnidispatch.so to libjnidispatch.so"


Hello,

Please specify full exception message you get. Also, let me know SDK revision number you are using - it could be found in a text file of SDK root folder.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 589
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Problems Running Java Samples on Linux

Postby achugunov » Jul 30, 2014 06:12

I have done next steps:

1. Installed maven
Code: Select all
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_11, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: ru_RU, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-24-generic", arch: "i386", family: "unix"

2. Installed Eclipse Luna “Eclipse IDE for Java Developers”.
3. Built the samples (run “mvn clean install”) from Neurotec_Biometric_5_0_SDKSamplesBiometricsJava.
Code: Select all
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] neurotec-biometric-component-installer ............ SUCCESS [2.560s]
[INFO] Samples utils ..................................... SUCCESS [6.782s]
[INFO] biometrics-samples ................................ SUCCESS [0.216s]
[INFO] Abis Sample ....................................... SUCCESS [11.856s]
[INFO] Latent Fingerprint Sample ......................... SUCCESS [5.370s]
[INFO] Simple Fingers Sample ............................. SUCCESS [3.653s]
[INFO] Simple Faces Sample ............................... SUCCESS [3.762s]
[INFO] Simple Irises Sample .............................. SUCCESS [3.840s]
[INFO] Simple Voices Sample .............................. SUCCESS [3.471s]
[INFO] Template Conversion Sample ........................ SUCCESS [3.845s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.419s
[INFO] Finished at: Tue Jul 29 12:54:55 YEKT 2014
[INFO] Final Memory: 58M/410M
[INFO] ------------------------------------------------------------------------
achugunov@achugunov-nout:~/?????????/SDK_Trial/Samples/Biometrics/Java$

4. Imported simple-faces-sample and two utils projects.
5. Pressed right mouse button on simple-faces-sample -> Debug As -> Debug Configurations.. -> Double clicked on “Java Application” -> Pressed Search button near “Main class” and selected SimpleFacesApplication -> Go to Arguments tab -> Select Other as “Working directory” and specified /home/user/?????????/Neurotec_Biometric_5_0_SDK_Trial/Lib/Linux_x86 -> Apply settings and Debug the sample.

And get the error:
Code: Select all
java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:115)
   at com.neurotec.lang.NObject.<clinit>(NObject.java:196)
   at com.neurotec.samples.FaceTools.<init>(FaceTools.java:48)
   at com.neurotec.samples.FaceTools.getInstance(FaceTools.java:29)
   at com.neurotec.samples.DetectFaces.updateRollAngleDeviationComboBox(DetectFaces.java:148)
   at com.neurotec.samples.DetectFaces.updateComboBoxes(DetectFaces.java:142)
   at com.neurotec.samples.DetectFaces.<init>(DetectFaces.java:77)
   at com.neurotec.samples.SimpleFacesApplication.addTabs(SimpleFacesApplication.java:108)
   at com.neurotec.samples.SimpleFacesApplication.access$2(SimpleFacesApplication.java:105)
   at com.neurotec.samples.SimpleFacesApplication$1.run(SimpleFacesApplication.java:82)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
   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.awt.EventQueue.dispatchEvent(EventQueue.java:714)
   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: java.lang.Error:

There is an incompatible JNA native library installed on this system.
To resolve this issue you may do one of the following:
 - remove or uninstall the offending library
 - set the system property jna.nosys=true
 - set jna.boot.library.path to include the path to the version of the
   jnidispatch library included with the JNA jar file you are using

   at com.sun.jna.Native.<clinit>(Native.java:142)
   at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:67)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:107)
   ... 23 more

OS info:
Code: Select all
uname -a
Linux achugunov-nout 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 i686 GNU/Linux

java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) Server VM (build 25.11-b03, mixed mode)

Version of the SDK is 120480
achugunov
 
Posts: 2
Joined: Jul 25, 2014 07:07

Re: Problems Running Java Samples on Linux

Postby Martynas » Jul 30, 2014 09:18

achugunov wrote:the error:
Code: Select all
java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:115)
   at com.neurotec.lang.NObject.<clinit>(NObject.java:196)
   at com.neurotec.samples.FaceTools.<init>(FaceTools.java:48)
   at com.neurotec.samples.FaceTools.getInstance(FaceTools.java:29)
   at com.neurotec.samples.DetectFaces.updateRollAngleDeviationComboBox(DetectFaces.java:148)
   at com.neurotec.samples.DetectFaces.updateComboBoxes(DetectFaces.java:142)
   at com.neurotec.samples.DetectFaces.<init>(DetectFaces.java:77)
   at com.neurotec.samples.SimpleFacesApplication.addTabs(SimpleFacesApplication.java:108)
   at com.neurotec.samples.SimpleFacesApplication.access$2(SimpleFacesApplication.java:105)
   at com.neurotec.samples.SimpleFacesApplication$1.run(SimpleFacesApplication.java:82)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
   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.awt.EventQueue.dispatchEvent(EventQueue.java:714)
   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: java.lang.Error:

There is an incompatible JNA native library installed on this system.
To resolve this issue you may do one of the following:
 - remove or uninstall the offending library
 - set the system property jna.nosys=true
 - set jna.boot.library.path to include the path to the version of the
   jnidispatch library included with the JNA jar file you are using

   at com.sun.jna.Native.<clinit>(Native.java:142)
   at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:67)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:107)
   ... 23 more

Hello,

As the error says by itself, during application execution the incorrect JNA version was loaded.
You should either find and remove incorrect version of JNA from your system, either use one of the solutions written in the thrown error.

I suspect what is happening is the jna.jar that is on your classpath is seeing the /usr/lib/jni/libjnidispatch.so first rather than the one contained inside the SDK.
Best regards,

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

Re: [Java] JBoss 7 trying load modules libraries from JBoss

Postby evandro_schultz » Sep 09, 2014 14:14

marschupp wrote:Hi Martynas,
That seems to have helped. But after some trials I ended in the bad way of setting LD_LIBRARY_PATH to point to the correct Lib folder. And I load my jars with the JBoss module reading from my Neurotec Bin/Java folder.


Hello Marschupp,

we are from Computer ID - Brazil and we have a question to you using VFinger 7.0 in JBoss 7: the performance was satisfactory to you ? Does you perform the matching in the web app itself running in JBoss 7 ?

We would like to exchange experiences using VeriFinger with JBoss. If you have available for this we can talk by email.

Best Regards,
Evandro Schultz
evandro@computerid.com.br
evandro_schultz
 
Posts: 1
Joined: Sep 09, 2014 13:53

Issue with running java sample code

Postby Emmanuel » Nov 07, 2014 08:25

Hi,

I am getting this error when I try and run abis-sample from the Java samples included in the trial SDK.
Code: Select all
Obtaining licenses from server /local:5000 Biometrics.PalmMatching: not obtained
java.lang.ExceptionInInitializerError
at com.neurotec.licensing.NLicensing.(NLicensing.java:45) at com.neurotec.licensing.NLicense.(NLicense.java:51)
at com.neurotec.samples.util.LicenseManager.obtain(LicenseManager.java:129)
at com.neurotec.samples.util.LicenseManager.obtain(LicenseManager.java:112)
at com.neurotec.samples.abis.AbisModel.obtainLicenses(AbisModel.java:122)
at com.neurotec.samples.abis.AbisApplication.main(AbisApplication.java:46)

Caused by: java.lang.ExceptionInInitializerError
at com.neurotec.lang.NCore.(NCore.java:115) at com.neurotec.lang.NTypes.(NTypes.java:169)
at com.neurotec.licensing.NLicensing.(NLicensing.java:42) ... 5 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.(NCore.java:107) ... 7 more Releasing licenses...


The included sample programs included in the SDK is running fine and can successfully fetch the licenses using the activation wizard. I am just wondering if I am correctly pointing the LicenseManger to /local:5000?

Or should I point my LicenseManager to another server or host so I could get the license that the program needs.

Thanks,
Eman

Admin: merged to "Java general questions"
Emmanuel
 
Posts: 2
Joined: Nov 07, 2014 08:13

Re: Issue with running java sample code

Postby Emmanuel » Nov 07, 2014 09:35

Hi,

As an update I am able to run the Jar I built using maven but when I am trying to run the application using the IDE it cant seem to connect to /local:5000.

But the jar executable can connect to /local:5000.

Is there something I need to configure in the eclipse IDE so I can connect to the /local:5000

Thanks,
Eman
Emmanuel
 
Posts: 2
Joined: Nov 07, 2014 08:13

Re: Issue with running java sample code

Postby Martynas » Nov 07, 2014 09:39

Emmanuel wrote:Hi,

As an update I am able to run the Jar I built using maven but when I am trying to run the application using the IDE it cant seem to connect to /local:5000.

But the jar executable can connect to /local:5000.

Is there something I need to configure in the eclipse IDE so I can connect to the /local:5000

Thanks,
Eman

Hello,

the issue is related to not loaded native library of the SDK. As the error says:

Code: Select all
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library "NCore": The specified module could not be found.


It means it was not able to find the NCore (dll on windows, or *.so file on Linux). If you are running the sample from Eclipse, then ensure that working folder of the project is set to the folder with native libraries of the SDK. in case of Windows operating system it should be win32_x86 folder of the SDK if 32 bit JVM is used, or win64_x64 if the 64 bit JVM is used.
Best regards,

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

how to create an application to enroll and verify using orac

Postby owulanii » Dec 28, 2014 13:14

Hello,
I have a verifinger standard SDK and I"m developing an application that would enroll and verify a user using an oracle database but I"m quite confused as to how to go about it. I"m however working with java. Do I have to develop the application using maven or I can just create a java window application and use the enroll-finger-from-scanner source code located in the tutorials folder. I"m in dire need of help right now since my project is almost due. I"ll be glad if anyone can assist me.
Thanks

Admin: merged to "Java general questions"
owulanii
 
Posts: 1
Joined: Dec 28, 2014 12:42

Re: how to create an application to enroll and verify using

Postby vaidasz » Dec 29, 2014 16:25

owulanii wrote:Hello,
I have a verifinger standard SDK and I"m developing an application that would enroll and verify a user using an oracle database but I"m quite confused as to how to go about it. I"m however working with java. Do I have to develop the application using maven or I can just create a java window application and use the enroll-finger-from-scanner source code located in the tutorials folder. I"m in dire need of help right now since my project is almost due. I"ll be glad if anyone can assist me.
Thanks


Hello,

Our samples and tutorials are developed using Maven. But there is no need to use.
Some of our clients develops application from the scratch by themselves. While other modify samples or tutorials. So it is up to you what is more suitable.
Usually, everybody starts with tutorials by debugging them to understand how our works.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 589
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Megamatcher 5.0 Java SDK Queries

Postby ajain » Jan 08, 2015 11:05

Hi

I am using Megamatcher 5.0 SDK, working with JAVA SDK for same

1. How to get Image/ Bitmap Png and JPEG from NImage in Megamatcher SDK???

2. How to make NImage from byte[] ??

3. How to get byte array[] from NFinger ??

4. How to make NFinger from byte[]??

Admin: merged to "Java general questions"
ajain
 
Posts: 4
Joined: Jun 19, 2014 12:00

Re: Megamatcher 5.0 Java SDK Queries

Postby Martynas » Jan 08, 2015 12:30

Hi,

ajain wrote:1. How to get Image/ Bitmap Png and JPEG from NImage in Megamatcher SDK???


NImage.save()

ajain wrote:2. How to make NImage from byte[] ??


NImage.fromMemory()

ajain wrote:3. How to get byte array[] from NFinger ??

4. How to make NFinger from byte[]??


Serialization of this object is not supported.
Best regards,

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

java.lang.ExceptionInInitializerError

Postby dyegocarmo » Apr 01, 2015 13:08

I'm running the code inside Glassfish 4.1 server with jdk 8 with neurotec sdk 5.1 :

final String components = "Biometrics.FingerExtraction";
LibraryManager.initLibraryPath();
NLicense.obtainComponents(serverAddress, 5000, components);

and i get :
Code: Select all

   at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
   at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
   at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
   at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
   at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
   ... 95 more
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:45)
   at com.neurotec.licensing.NLicense.<clinit>(NLicense.java:51)
   at us.linkedby.link.base.util.fingerprint.BaseFingerprintUtil.createTemplate(BaseFingerprintUtil.java:51)
   ... 146 more
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:115)
   at com.neurotec.lang.NTypes.<clinit>(NTypes.java:171)
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:42)
   ... 148 more
Caused by: java.lang.ExceptionInInitializerError
   at com.sun.jna.Platform.<clinit>(Platform.java:102)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:101)
   ... 150 more
Caused by: java.lang.NullPointerException
   at com.sun.jna.Native.extractFromResourcePath(Native.java:797)
   at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:751)
   at com.sun.jna.Native.loadNativeLibrary(Native.java:737)
   at com.sun.jna.Native.<clinit>(Native.java:129)
   ... 152 more

Grave:   javax.ejb.EJBException
   at com.sun.ejb.containers.EJBContainerTransactionManager.processSystemException(EJBContainerTransactionManager.java:748)
   at com.sun.ejb.containers.EJBContainerTransactionManager.completeNewTx(EJBContainerTransactionManager.java:698)
   at com.sun.ejb.containers.EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:503)
   at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4566)
   at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2074)
   at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2044)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:220)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)

Any Help ?

Tnks !

Admin: merged to "Java general questions"
dyegocarmo
 
Posts: 10
Joined: Mar 30, 2015 13:56

Re: java.lang.ExceptionInInitializerError

Postby Martynas » Apr 02, 2015 06:52

dyegocarmo wrote:I'm running the code inside Glassfish 4.1 server with jdk 8 with neurotec sdk 5.1 :

final String components = "Biometrics.FingerExtraction";
LibraryManager.initLibraryPath();
NLicense.obtainComponents(serverAddress, 5000, components);

and i get :
Code: Select all

   at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
   at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
   at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
   at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
   at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
   ... 95 more
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:45)
   at com.neurotec.licensing.NLicense.<clinit>(NLicense.java:51)
   at us.linkedby.link.base.util.fingerprint.BaseFingerprintUtil.createTemplate(BaseFingerprintUtil.java:51)
   ... 146 more
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:115)
   at com.neurotec.lang.NTypes.<clinit>(NTypes.java:171)
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:42)
   ... 148 more
Caused by: java.lang.ExceptionInInitializerError
   at com.sun.jna.Platform.<clinit>(Platform.java:102)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:101)
   ... 150 more
Caused by: java.lang.NullPointerException
   at com.sun.jna.Native.extractFromResourcePath(Native.java:797)
   at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:751)
   at com.sun.jna.Native.loadNativeLibrary(Native.java:737)
   at com.sun.jna.Native.<clinit>(Native.java:129)
   ... 152 more

Grave:   javax.ejb.EJBException
   at com.sun.ejb.containers.EJBContainerTransactionManager.processSystemException(EJBContainerTransactionManager.java:748)
   at com.sun.ejb.containers.EJBContainerTransactionManager.completeNewTx(EJBContainerTransactionManager.java:698)
   at com.sun.ejb.containers.EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:503)
   at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4566)
   at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2074)
   at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2044)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:220)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)

Any Help ?

Tnks !

Hi,

provide the full stack of the error and description of the issue to support@neurotechnology.com.
Best regards,

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

Re: java.lang.ExceptionInInitializerError

Postby dyegocarmo » Apr 02, 2015 12:05

Martynas wrote:Hi,

provide the full stack of the error and description of the issue to support@neurotechnology.com.

OK,
Email sended.
dyegocarmo
 
Posts: 10
Joined: Mar 30, 2015 13:56

Java - Displaying Minutiae in Finger print from byte arrays.

Postby alexrozario » Jun 11, 2015 13:33

We are using Neurotech to capture the finger prints and save in database as BLOB.
And in Java side we are reading that BLOB as byte arrays and converting it into images to display it in UI.

Code: Select all
public String getJPGStringUsingNeuroSDK(byte[] imageAsBytes) {
String imageAsBase64String = null;
NImage nImage1;
ByteBuffer wsqImageByteBuffer;
ByteBuffer jpegImageByteBuffer;
byte[] jpgImage;

if (imageAsBytes != null) {
wsqImageByteBuffer = ByteBuffer.wrap(imageAsBytes);
      nImage1 = NImage.fromMemory(wsqImageByteBuffer);
      jpegImageByteBuffer = nImage1.save(NImageFormat.getJPEG()) .asByteBuffer();
      jpgImage = new byte[jpegImageByteBuffer.capacity()];
      jpegImageByteBuffer.get(jpgImage, 0, jpgImage.length);
      jpgImage = getResizedImage(jpgImage, 300);
      imageAsBase64String = Base64.encodeBase64String(jpgImage);
}
}


Which is working perfectly fine.

Now we want to include minutiae in the finger images.
What should I do to display minutiae in Finger print images in UI.
Please help me.

We are using Neurotec Biometric 5.1 Trial version.
Jre 1.8

Regards,
Alex.

Admin: merged to "Java general questions"
alexrozario
 
Posts: 2
Joined: Jun 11, 2015 13:28

Re: Java - Displaying Minutiae in Finger print from byte arr

Postby Martynas » Jun 12, 2015 10:21

alexrozario wrote:We are using Neurotech to capture the finger prints and save in database as BLOB.
And in Java side we are reading that BLOB as byte arrays and converting it into images to display it in UI.

Code: Select all
public String getJPGStringUsingNeuroSDK(byte[] imageAsBytes) {
String imageAsBase64String = null;
NImage nImage1;
ByteBuffer wsqImageByteBuffer;
ByteBuffer jpegImageByteBuffer;
byte[] jpgImage;

if (imageAsBytes != null) {
wsqImageByteBuffer = ByteBuffer.wrap(imageAsBytes);
      nImage1 = NImage.fromMemory(wsqImageByteBuffer);
      jpegImageByteBuffer = nImage1.save(NImageFormat.getJPEG()) .asByteBuffer();
      jpgImage = new byte[jpegImageByteBuffer.capacity()];
      jpegImageByteBuffer.get(jpgImage, 0, jpgImage.length);
      jpgImage = getResizedImage(jpgImage, 300);
      imageAsBase64String = Base64.encodeBase64String(jpgImage);
}
}


Which is working perfectly fine.

Now we want to include minutiae in the finger images.
What should I do to display minutiae in Finger print images in UI.
Please help me.

We are using Neurotec Biometric 5.1 Trial version.
Jre 1.8

Regards,
Alex.

Hello,

you can use the NFingerView component to display the fingerprint image and its minutiaes. You can refer to "simple-fingers-sample" sample to see how to use it.
Or you can draw the minutiaes on your image and show it in your control, which is able to show images. How to retrieve minutiaes coordinates is shown in tutorial "show-template-content".
Best regards,

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

Re: Java - Displaying Minutiae in Finger print from byte arr

Postby alexrozario » Jun 12, 2015 13:40

Martynas wrote:Hello,

you can use the NFingerView component to display the fingerprint image and its minutiaes. You can refer to "simple-fingers-sample" sample to see how to use it.
Or you can draw the minutiaes on your image and show it in your control, which is able to show images. How to retrieve minutiaes coordinates is shown in tutorial "show-template-content".

Thank you for your reply Martynas.

But the code is written in swing and used some swing related methods.
We want it in J2EE environment.
Still i gone through the code and tried to crack the code.

I have gone through the code in loadItem method
Code: Select all
NSubject subjectTmp = null;
NFinger finger = null;
subjectTmp = NSubject.fromFile(fileChooser.getSelectedFile().getAbsolutePath());
FingerCollection fingers = subjectTmp.getFingers();
finger = fingers.get(0);

subjectLeft = subjectTmp;
viewLeft.setFinger(finger);

and the code in VerificationHandler
Code: Select all
NIndexPair[] matedMinutiae = getLeft().getMatchingResults().get(0).getMatchingDetails().getFingers().get(0).getMatedMinutiae();
viewLeft.setMatedMinutiaIndex(0);
viewLeft.setMatedMinutiae(matedMinutiae);

where getLeft() returns NSubject object subjectLeft and viewLeft is a NFingerView object

First i wanted to convert my byte array into the N format so i tried like it.
Code: Select all
InputStream is = new ByteArrayInputStream(imageAsBytes);
NStream stream = NStream.fromInputStream(is);

And then i had tried to copy the code in the sample like below,
Code: Select all
NSubject subject= new NSubject();
subject= NSubject.fromStream(stream);
FingerCollection fingers = subject.getFingers();
NFinger finger = fingers.get(0);
NIndexPair[] matedMinutiae = subject.getMatchingResults().get(0).getMatchingDetails().getFingers().get(0).getMatedMinutiae();
            
NFingerView fingerView = new NFingerView();
fingerView.setFinger(finger);
fingerView.setMatedMinutiaIndex(0);
fingerView.setMatedMinutiae(matedMinutiae);

but i am getting the following error in NSubject subject= new NSubject(); this line.
Code: Select all
java.lang.VerifyError: class com.neurotec.biometrics.standards.FIRecord overrides final method save.(Ljava/nio/ByteBuffer;)I

I know i might have done more mistakes.
Can you please correct me and help me.

Regards,
Alex
alexrozario
 
Posts: 2
Joined: Jun 11, 2015 13:28

Re: Java - Displaying Minutiae in Finger print from byte arr

Postby Martynas » Jun 15, 2015 07:44

alexrozario wrote:Thank you for your reply Martynas.

But the code is written in swing and used some swing related methods.
We want it in J2EE environment.
Still i gone through the code and tried to crack the code.

I have gone through the code in loadItem method
Code: Select all
NSubject subjectTmp = null;
NFinger finger = null;
subjectTmp = NSubject.fromFile(fileChooser.getSelectedFile().getAbsolutePath());
FingerCollection fingers = subjectTmp.getFingers();
finger = fingers.get(0);

subjectLeft = subjectTmp;
viewLeft.setFinger(finger);

and the code in VerificationHandler
Code: Select all
NIndexPair[] matedMinutiae = getLeft().getMatchingResults().get(0).getMatchingDetails().getFingers().get(0).getMatedMinutiae();
viewLeft.setMatedMinutiaIndex(0);
viewLeft.setMatedMinutiae(matedMinutiae);

where getLeft() returns NSubject object subjectLeft and viewLeft is a NFingerView object

First i wanted to convert my byte array into the N format so i tried like it.
Code: Select all
InputStream is = new ByteArrayInputStream(imageAsBytes);
NStream stream = NStream.fromInputStream(is);

And then i had tried to copy the code in the sample like below,
Code: Select all
NSubject subject= new NSubject();
subject= NSubject.fromStream(stream);
FingerCollection fingers = subject.getFingers();
NFinger finger = fingers.get(0);
NIndexPair[] matedMinutiae = subject.getMatchingResults().get(0).getMatchingDetails().getFingers().get(0).getMatedMinutiae();
            
NFingerView fingerView = new NFingerView();
fingerView.setFinger(finger);
fingerView.setMatedMinutiaIndex(0);
fingerView.setMatedMinutiae(matedMinutiae);

but i am getting the following error in NSubject subject= new NSubject(); this line.
Code: Select all
java.lang.VerifyError: class com.neurotec.biometrics.standards.FIRecord overrides final method save.(Ljava/nio/ByteBuffer;)I

I know i might have done more mistakes.
Can you please correct me and help me.

Regards,
Alex

Hello,

please provide the small test application to support@neurotechnology.com with detailed issue description and full stack trace of the error.
Best regards,

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

Re: steps to compile samples and tutorials in netbeans 8.0.2

Postby param » Jun 26, 2015 08:02

Dear Sir,
i have license copy for verifinger sdk 7.1(installed sucessfully), 32-bit windows
i have Neurotec_Biometric_5_1_SDK , netbeans 8.0.2
user variable java_home(jdk1.8.0_45) ,m2_maven(3.1.1) are set .
please detail steps to compile samples and tutorials sdk folder in netbeans 8.0.2.

Admin: merged to "Java general questions"
param
 
Posts: 23
Joined: Jun 17, 2015 17:36

Re: compile samples and tutorials in netbeans 8.0.2

Postby Martynas » Jun 26, 2015 09:34

param wrote:Dear Sir,
i have license copy for verifinger sdk 7.1(installed sucessfully), 32-bit windows
i have Neurotec_Biometric_5_1_SDK , netbeans 8.0.2
user variable java_home(jdk1.8.0_45) ,m2_maven(3.1.1) are set .
please detail steps to compile samples and tutorials sdk folder in netbeans 8.0.2.

Hello,

we do not have detailed steps how to compile samples/tutorials in NetBeans. The documentation provides detailed steps for the Eclispe. Basically same steps could be used for NetBeans too.
Mains steps, which you need to perform are:

1. execute command "mvn clean install" in "Samples\Biometrics\Java" and "Tutorials\Biometrics\Java" folder form the Command Line.
2. import the maven project from the "Samples\Biometrics\Java" or "Tutorials\Biometrics\Java" folder to NetBeans IDE

If you will have any questions feel free to write them to support@neurotechnology.com.
Best regards,

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

errors when testing verifinger 8

Postby grd2345 » Feb 06, 2016 17:43

I am creating a java applet using verifinger 8 in Linux_x86_64 and everything goes fine when i start it at first, but if I stop the applet and start the applet again, the 2nd time around, I get
the error. As part of the stop procedure it calls NFScanner cancel method to cancel the scanners current capture state, then it calls the following:

deviceManager.dispose();
NLicense.releaseComponents(components);
NCore.dispose()

The following error happens when trying to start it again. If I remove the NCore.dispose, seems that this error goes away but I still get random errors when closing the applets, etc so seems stuff in the libraries are not freeing. Please help me get around this or the proper ways to dispose the scanner, and verifinger stuff to not get these errors.
Code: Select all
nullcom.neurotec.lang.NIllegalStateException: Attempted to execute operation that is not valid for the object
   at com.neurotec.lang.RuntimeErrorCreator.create(RuntimeErrorCreator.java:39)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
   at com.neurotec.lang.NError.get(NError.java:189)
   at com.neurotec.lang.NError.getLast(NError.java:205)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:235)
   at com.neurotec.licensing.NLicense.obtainComponents(NLicense.java:224)
   at com.neurotec.licensing.NLicense.obtainComponents(NLicense.java:326)
   at dalum.fingerprintscanner.start(fingerprintscanner.java:23)
   at dalum.fingerprint$1.run(fingerprint.java:19)
   at java.lang.Thread.run(Thread.java:745)


Admin: merged to "Java general questions"
grd2345
 
Posts: 1
Joined: Feb 06, 2016 17:18

Re: errors when testing verifinger 8

Postby Martynas » Feb 09, 2016 07:39

grd2345 wrote:I am creating a java applet using verifinger 8 in Linux_x86_64 and everything goes fine when i start it at first, but if I stop the applet and start the applet again, the 2nd time around, I get
the error. As part of the stop procedure it calls NFScanner cancel method to cancel the scanners current capture state, then it calls the following:

deviceManager.dispose();
NLicense.releaseComponents(components);
NCore.dispose()

The following error happens when trying to start it again. If I remove the NCore.dispose, seems that this error goes away but I still get random errors when closing the applets, etc so seems stuff in the libraries are not freeing. Please help me get around this or the proper ways to dispose the scanner, and verifinger stuff to not get these errors.
Code: Select all
nullcom.neurotec.lang.NIllegalStateException: Attempted to execute operation that is not valid for the object
   at com.neurotec.lang.RuntimeErrorCreator.create(RuntimeErrorCreator.java:39)
   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
   at com.neurotec.lang.NError.get(NError.java:189)
   at com.neurotec.lang.NError.getLast(NError.java:205)
   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:235)
   at com.neurotec.licensing.NLicense.obtainComponents(NLicense.java:224)
   at com.neurotec.licensing.NLicense.obtainComponents(NLicense.java:326)
   at dalum.fingerprintscanner.start(fingerprintscanner.java:23)
   at dalum.fingerprint$1.run(fingerprint.java:19)
   at java.lang.Thread.run(Thread.java:745)

Hi,

please use NCore.shutdown() method when applet is closed.
Best regards,

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

Persistence of NBiometricEngine

Postby wall92 » Feb 17, 2016 09:30

Hi, I"m trying to develop a small demo tool for face recognition, and I"m using the NBiometricEngine class in java in order to achieve detection, enrollment and recognition.
Since I have a lot of pictures (around 1200 pics) to perform face detection and enrollment on, I was wondering: is there a way to save my "trained" instance of NBiometricEngine in a file and just load it from there the next time I need to start my application?
I"ve tried some workarounds with the NFile and NBuffer classes but in the end it always throws exceptions saying that the object doesn"t support serialization.

Admin: merged to "Java general questions"
wall92
 
Posts: 4
Joined: Feb 15, 2016 12:19

Re: Persistence of NBiometricEngine

Postby Martynas » Feb 17, 2016 10:51

wall92 wrote:Hi, I"m trying to develop a small demo tool for face recognition, and I"m using the NBiometricEngine class in java in order to achieve detection, enrollment and recognition.
Since I have a lot of pictures (around 1200 pics) to perform face detection and enrollment on, I was wondering: is there a way to save my "trained" instance of NBiometricEngine in a file and just load it from there the next time I need to start my application?
I"ve tried some workarounds with the NFile and NBuffer classes but in the end it always throws exceptions saying that the object doesn"t support serialization.

Hi,

If you need to save your enrolled data, then this can be done, by saving templates either as files either into database.
How to save the template as file is shown in the tutorial EnrollfaceFromImage. Next will need to enroll extracted templates into NBiometricEngine each time the application is started.
NBiometricEngine can be configured to be used with the SQLite dtabase directly or with SQl Server, MySQL, Oracle and postgreSQL databases through teh ODBc connection. In case of the database usage, the NBiometricEngine will fetch data from the database during initialization.
To use the SQLite database use NBiometrciEngine.setDatabaseConnectionToSQLite. To use the ODBc use NBiometrciEngine.setDatabaseConnectionToODBC.
Best regards,

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

Re: Persistence of NBiometricEngine

Postby wall92 » Feb 26, 2016 10:58

Martynas wrote:Hi,

If you need to save your enrolled data, then this can be done, by saving templates either as files either into database.
How to save the template as file is shown in the tutorial EnrollfaceFromImage. Next will need to enroll extracted templates into NBiometricEngine each time the application is started.
NBiometricEngine can be configured to be used with the SQLite dtabase directly or with SQl Server, MySQL, Oracle and postgreSQL databases through teh ODBc connection. In case of the database usage, the NBiometricEngine will fetch data from the database during initialization.
To use the SQLite database use NBiometrciEngine.setDatabaseConnectionToSQLite. To use the ODBc use NBiometrciEngine.setDatabaseConnectionToODBC.

It worked, many thanks.
wall92
 
Posts: 4
Joined: Feb 15, 2016 12:19

Finger Enrollment From Scanner

Postby vishal2060 » Mar 25, 2016 13:33

I"m new to neurotechnology. I want to enroll fingerprint template from scanner. I picked up code from the sample and run it
Code: Select all
import java.io.IOException;
import java.util.EnumSet;
import java.util.Scanner;

import com.neurotec.biometrics.NBiometricStatus;
import com.neurotec.biometrics.NFinger;
import com.neurotec.biometrics.NSubject;
import com.neurotec.biometrics.NTemplateSize;
import com.neurotec.biometrics.client.NBiometricClient;
import com.neurotec.devices.NDeviceManager;
import com.neurotec.devices.NDeviceType;
import com.neurotec.devices.NFScanner;
import com.neurotec.devices.NDeviceManager.DeviceCollection;
import com.neurotec.io.NFile;
import com.neurotec.lang.NCore;
import com.neurotec.licensing.NLicense;
import com.neurotec.samples.util.LibraryManager;
//import com.neurotec.samples.util.Utils;

public final class EnrollFingerFromScanner {
   private static final String DESCRIPTION = "Demonstrates fingerprint feature extraction from fingerprint scanning device.";
   private static final String NAME = "enroll-finger-from-scanner";
   private static final String VERSION = "6.0.0.0";

   private static void usage() {
      System.out.println("usage:");
      System.out.format("   %s [image] [template]%n", NAME);
      System.out.println("   [image]    - image filename to store scanned image.");
      System.out.println("   [template] - filename to store finger template.");
   }

   public static void main(String[] args) throws IOException {
      final String components = "Biometrics.FingerExtraction,Devices.FingerScanners";

      LibraryManager.initLibraryPath();

      //Utils.printTutorialHeader(DESCRIPTION, NAME, VERSION, args);

      if (args.length < 2) {
         usage();
         System.exit(1);
      }

      NBiometricClient biometricClient = null;
      NSubject subject = null;
      NFinger finger = null;
      
      //try {
               
         //if (!NLicense.obtainComponents("/local", 5000, components)) {
         //   System.err.format("Could not obtain licenses for components: %s%n", components);
         //   System.exit(-1);
         //}
               
         biometricClient = new NBiometricClient();
         subject = new NSubject();
         finger = new NFinger();

         biometricClient.setUseDeviceManager(true);
         NDeviceManager deviceManager = biometricClient.getDeviceManager();

         deviceManager.setDeviceTypes(EnumSet.of(NDeviceType.FINGER_SCANNER));

         deviceManager.initialize();

         DeviceCollection devices = deviceManager.getDevices();

         if (devices.size() > 0) {
            System.out.format("Found %d fingerprint scanner
", devices.size());
         } else {
            System.out.format("No scanners found
");
            return;
         }

         if (devices.size() > 1)
            System.out.println("Please select finger scanner from the list:");

         for (int i = 0; i < devices.size(); i++)
            System.out.format("   %d. %s
", i + 1, devices.get(i).getDisplayName());

         int selection = 0;
         if (devices.size() > 1) {
                    try (Scanner scanner = new Scanner(System.in)) {
                        selection = scanner.nextInt() - 1;
                    }
         }

         biometricClient.setFingerScanner((NFScanner) devices.get(selection));

         subject.getFingers().add(finger);

         System.out.println("Capturing....");
         NBiometricStatus status = biometricClient.capture(subject);

         biometricClient.setFingersTemplateSize(NTemplateSize.LARGE);

         status = biometricClient.createTemplate(subject);

         if (status == NBiometricStatus.OK) {
            System.out.println("Template extracted");
         } else {
            System.out.format("Extraction failed: %s
", status);
            System.exit(-1);
         }

         subject.getFingers().get(0).getImage().save(args[0]);
         System.out.println("Fingerprint image saved successfully...");

         NFile.writeAllBytes(args[1], subject.getTemplate().save());
         System.out.println("Template file saved successfully...");
      /*} catch (Throwable th) {
         //Utils.handleError(th);
      } finally {
         try {
         //   NLicense.releaseComponents(components);
         //   NCore.shutdown();
         } catch (Throwable th){
                           
                        }
         if (finger != null) finger.dispose();
         if (subject != null) subject.dispose();
         if (biometricClient != null) biometricClient.dispose();
      }*/
   }
}




the error is

Code: Select all
run:
Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:131)
   at com.neurotec.lang.NObject.<clinit>(NObject.java:193)
   at EnrollFingerFromScanner.main(EnrollFingerFromScanner.java:55)
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library "NCore": JNA native support (win32-amd64/NCore.dll) not found in resource path (C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJavajna.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-biometrics-client.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-biometrics-gui.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-biometrics.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-core.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-devices.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-gui.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-licensing.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-media-processing.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-media.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJavasamples-utils.jar;C:UsersVishalVishwasDocumentsNetBeansProjectsEnrollScanneruildclasses)
   at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:220)
   at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:322)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:123)
   ... 2 more
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)


plz help me to correct it.

Admin: merged to "Java general questions"
vishal2060
 
Posts: 2
Joined: Mar 25, 2016 13:25
Location: India

samples-utils-android:apklib:6.0.0.0" is missing

Postby Hyunsu Lee » Mar 29, 2016 01:14

I am compiling "multibiometric-sample-android" project in eclipse.(Sample Version 6.0)

When "maven build..." command is executed,
following error came out.

Could not resolve dependencies for project com.neurotec.samples:multibiometric-sample-android:apk:6.0.0.0:
Failure to find com.neurotec.samples:samples-utils-android:apklib:6.0.0.0

I searched google. They suggest to ask it to Neurotech directly.
I updated maven repository by using "clean install -U".
But, in the "samples" repository directory, there is no jar files but only "samples-utils-android-6.0.0.0.apklib.lastUpdated".

How can I get "samples-utils-android:apklib:6.0.0.0" jar file ?
Is there any way to solve this problem?

Hope for any help.

Admin: merged to "Java general questions"
Hyunsu Lee
 
Posts: 1
Joined: Mar 29, 2016 01:02

Re: Finger Enrollment From Scanner

Postby vaidasz » Mar 29, 2016 11:09

vishal2060 wrote:I"m new to neurotechnology. I want to enroll fingerprint template from scanner. I picked up code from the sample and run it
Code: Select all
import java.io.IOException;
import java.util.EnumSet;
import java.util.Scanner;

import com.neurotec.biometrics.NBiometricStatus;
import com.neurotec.biometrics.NFinger;
import com.neurotec.biometrics.NSubject;
import com.neurotec.biometrics.NTemplateSize;
import com.neurotec.biometrics.client.NBiometricClient;
import com.neurotec.devices.NDeviceManager;
import com.neurotec.devices.NDeviceType;
import com.neurotec.devices.NFScanner;
import com.neurotec.devices.NDeviceManager.DeviceCollection;
import com.neurotec.io.NFile;
import com.neurotec.lang.NCore;
import com.neurotec.licensing.NLicense;
import com.neurotec.samples.util.LibraryManager;
//import com.neurotec.samples.util.Utils;

public final class EnrollFingerFromScanner {
   private static final String DESCRIPTION = "Demonstrates fingerprint feature extraction from fingerprint scanning device.";
   private static final String NAME = "enroll-finger-from-scanner";
   private static final String VERSION = "6.0.0.0";

   private static void usage() {
      System.out.println("usage:");
      System.out.format("   %s [image] [template]%n", NAME);
      System.out.println("   [image]    - image filename to store scanned image.");
      System.out.println("   [template] - filename to store finger template.");
   }

   public static void main(String[] args) throws IOException {
      final String components = "Biometrics.FingerExtraction,Devices.FingerScanners";

      LibraryManager.initLibraryPath();

      //Utils.printTutorialHeader(DESCRIPTION, NAME, VERSION, args);

      if (args.length < 2) {
         usage();
         System.exit(1);
      }

      NBiometricClient biometricClient = null;
      NSubject subject = null;
      NFinger finger = null;
      
      //try {
               
         //if (!NLicense.obtainComponents("/local", 5000, components)) {
         //   System.err.format("Could not obtain licenses for components: %s%n", components);
         //   System.exit(-1);
         //}
               
         biometricClient = new NBiometricClient();
         subject = new NSubject();
         finger = new NFinger();

         biometricClient.setUseDeviceManager(true);
         NDeviceManager deviceManager = biometricClient.getDeviceManager();

         deviceManager.setDeviceTypes(EnumSet.of(NDeviceType.FINGER_SCANNER));

         deviceManager.initialize();

         DeviceCollection devices = deviceManager.getDevices();

         if (devices.size() > 0) {
            System.out.format("Found %d fingerprint scanner
", devices.size());
         } else {
            System.out.format("No scanners found
");
            return;
         }

         if (devices.size() > 1)
            System.out.println("Please select finger scanner from the list:");

         for (int i = 0; i < devices.size(); i++)
            System.out.format("   %d. %s
", i + 1, devices.get(i).getDisplayName());

         int selection = 0;
         if (devices.size() > 1) {
                    try (Scanner scanner = new Scanner(System.in)) {
                        selection = scanner.nextInt() - 1;
                    }
         }

         biometricClient.setFingerScanner((NFScanner) devices.get(selection));

         subject.getFingers().add(finger);

         System.out.println("Capturing....");
         NBiometricStatus status = biometricClient.capture(subject);

         biometricClient.setFingersTemplateSize(NTemplateSize.LARGE);

         status = biometricClient.createTemplate(subject);

         if (status == NBiometricStatus.OK) {
            System.out.println("Template extracted");
         } else {
            System.out.format("Extraction failed: %s
", status);
            System.exit(-1);
         }

         subject.getFingers().get(0).getImage().save(args[0]);
         System.out.println("Fingerprint image saved successfully...");

         NFile.writeAllBytes(args[1], subject.getTemplate().save());
         System.out.println("Template file saved successfully...");
      /*} catch (Throwable th) {
         //Utils.handleError(th);
      } finally {
         try {
         //   NLicense.releaseComponents(components);
         //   NCore.shutdown();
         } catch (Throwable th){
                           
                        }
         if (finger != null) finger.dispose();
         if (subject != null) subject.dispose();
         if (biometricClient != null) biometricClient.dispose();
      }*/
   }
}




the error is

Code: Select all
run:
Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:131)
   at com.neurotec.lang.NObject.<clinit>(NObject.java:193)
   at EnrollFingerFromScanner.main(EnrollFingerFromScanner.java:55)
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library "NCore": JNA native support (win32-amd64/NCore.dll) not found in resource path (C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJavajna.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-biometrics-client.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-biometrics-gui.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-biometrics.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-core.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-devices.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-gui.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-licensing.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-media-processing.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJava
eurotec-media.jar;C:Program Files (x86)NeurotechnologyNeurotec Biometric 6.0 SDK TrialBinJavasamples-utils.jar;C:UsersVishalVishwasDocumentsNetBeansProjectsEnrollScanneruildclasses)
   at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:220)
   at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:322)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:123)
   ... 2 more
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)


plz help me to correct it.


Hello,

The exception message means that the native libraries could not be found. The libraries you need to use are *.dll and they are located at SDK\Bin\Win32_x86 (or SDK\Bin\Win64_x64, depending on what JVM you use).
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 589
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: samples-utils-android:apklib:6.0.0.0" is missing

Postby vaidasz » Mar 29, 2016 11:18

Hyunsu Lee wrote:I am compiling "multibiometric-sample-android" project in eclipse.(Sample Version 6.0)

When "maven build..." command is executed,
following error came out.

Could not resolve dependencies for project com.neurotec.samples:multibiometric-sample-android:apk:6.0.0.0:
Failure to find com.neurotec.samples:samples-utils-android:apklib:6.0.0.0

I searched google. They suggest to ask it to Neurotech directly.
I updated maven repository by using "clean install -U".
But, in the "samples" repository directory, there is no jar files but only "samples-utils-android-6.0.0.0.apklib.lastUpdated".

How can I get "samples-utils-android:apklib:6.0.0.0" jar file ?
Is there any way to solve this problem?

Hope for any help.


Hello,

Start command line and execute "mvn clean install" from Neurotec_Biometric_6_0_SDK\Samples\Biometrics\Java. Then import it to Eclipse.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 589
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: java.lang.ExceptionInInitializerError

Postby 2bface » May 13, 2016 23:30

dyegocarmo wrote:I'm running the code inside Glassfish 4.1 server with jdk 8 with neurotec sdk 5.1 :

final String components = "Biometrics.FingerExtraction";
LibraryManager.initLibraryPath();
NLicense.obtainComponents(serverAddress, 5000, components);

and i get :
Code: Select all

   at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
   at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
   at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
   at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
   at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
   ... 95 more
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:45)
   at com.neurotec.licensing.NLicense.<clinit>(NLicense.java:51)
   at us.linkedby.link.base.util.fingerprint.BaseFingerprintUtil.createTemplate(BaseFingerprintUtil.java:51)
   ... 146 more
Caused by: java.lang.ExceptionInInitializerError
   at com.neurotec.lang.NCore.<clinit>(NCore.java:115)
   at com.neurotec.lang.NTypes.<clinit>(NTypes.java:171)
   at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:42)
   ... 148 more
Caused by: java.lang.ExceptionInInitializerError
   at com.sun.jna.Platform.<clinit>(Platform.java:102)
   at com.neurotec.lang.NCore.<clinit>(NCore.java:101)
   ... 150 more
Caused by: java.lang.NullPointerException
   at com.sun.jna.Native.extractFromResourcePath(Native.java:797)
   at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:751)
   at com.sun.jna.Native.loadNativeLibrary(Native.java:737)
   at com.sun.jna.Native.<clinit>(Native.java:129)
   ... 152 more

Grave:   javax.ejb.EJBException
   at com.sun.ejb.containers.EJBContainerTransactionManager.processSystemException(EJBContainerTransactionManager.java:748)
   at com.sun.ejb.containers.EJBContainerTransactionManager.completeNewTx(EJBContainerTransactionManager.java:698)
   at com.sun.ejb.containers.EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:503)
   at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4566)
   at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2074)
   at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2044)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:220)
   at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)

Any Help ?

Tnks !

Hi.

I have exactly the same problem reported here.
It's the same error, scenario and i am also using glassfish 4.1.

How to solve this problem?
2bface
 
Posts: 65
Joined: May 12, 2016 13:08

Re: java.lang.ExceptionInInitializerError

Postby Martynas » May 16, 2016 07:44

2bface wrote:Hi.

I have exactly the same problem reported here.
It's the same error, scenario and i am also using glassfish 4.1.

How to solve this problem?

Hello,

provide the full stack of the error and description of the issue to support@neurotechnology.com.
Also let us know the exact version of the SDK you are using.
Best regards,

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

Re: java.lang.ExceptionInInitializerError

Postby 2bface » May 16, 2016 18:27

Martynas wrote:Hello,

provide the full stack of the error and description of the issue to support@neurotechnology.com.
Also let us know the exact version of the SDK you are using.

Hi.

Our project:

REST Web service. Server Glassfish 4.1.1. Java 8
Sentiveillance SDK 4.0

After some changes and set "user.dir" System property like

Code: Select all
String MyLibraryPath = "/home/user/Downloads/NeuroTech/SentiVeillance4/Lib/Linux_x86_64";
System.setProperty("user.dir", MyLibraryPath);

final String components = "Biometrics.FaceExtraction,Biometrics.FaceMatching";
LibraryManager.initLibraryPath();
try {
      NLicense.obtainComponents("/local", "5000", components); //throws error here
} catch (IOException ex) {
     Logger.getLogger(IdentifyFace.class.getName()).log(Level.SEVERE, null, ex);
}


Full stack trace:

Code: Select all
Information:   ApplianceTest was successfully deployed in 4.800 milliseconds.
Warning:   StandardWrapperValve[com._apptest.appliancetest.rest.RESTApplication]: Servlet.service() for servlet com._apptest.appliancetest.rest.RESTApplication threw exception
java.lang.NoSuchMethodError: com.sun.jna.Native.setCallbackThreadInitializer(Lcom/sun/jna/Callback;Lcom/sun/jna/CallbackThreadInitializer;)V
at com.neurotec.lang.NTypes.setCallbackThreadInitializer(NTypes.java:271)
at com.neurotec.lang.NTypes.getPointerForCallback(NTypes.java:276)
at com.neurotec.lang.NTypes.<clinit>(NTypes.java:228)
at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:42)
at com.neurotec.licensing.NLicense.<clinit>(NLicense.java:52)
at com._apptest.appliancetest.neurotech.IdentifyFace.<init>(IdentifyFace.java:45)
at com._apptest.appliancetest.resources.TemplateResource.peopleTest(TemplateResource.java:80)
at com._apptest.appliancetest.resources.TemplateResource.uploadTemplate(TemplateResource.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:745)



Thanks.
2bface
 
Posts: 65
Joined: May 12, 2016 13:08

Re: java.lang.ExceptionInInitializerError

Postby Martynas » May 17, 2016 05:59

2bface wrote:Hi.

Our project:

REST Web service. Server Glassfish 4.1.1. Java 8
Sentiveillance SDK 4.0

After some changes and set "user.dir" System property like

Code: Select all
String MyLibraryPath = "/home/user/Downloads/NeuroTech/SentiVeillance4/Lib/Linux_x86_64";
System.setProperty("user.dir", MyLibraryPath);

final String components = "Biometrics.FaceExtraction,Biometrics.FaceMatching";
LibraryManager.initLibraryPath();
try {
      NLicense.obtainComponents("/local", "5000", components); //throws error here
} catch (IOException ex) {
     Logger.getLogger(IdentifyFace.class.getName()).log(Level.SEVERE, null, ex);
}


Full stack trace:

Code: Select all
Information:   ApplianceTest was successfully deployed in 4.800 milliseconds.
Warning:   StandardWrapperValve[com._apptest.appliancetest.rest.RESTApplication]: Servlet.service() for servlet com._apptest.appliancetest.rest.RESTApplication threw exception
java.lang.NoSuchMethodError: com.sun.jna.Native.setCallbackThreadInitializer(Lcom/sun/jna/Callback;Lcom/sun/jna/CallbackThreadInitializer;)V
at com.neurotec.lang.NTypes.setCallbackThreadInitializer(NTypes.java:271)
at com.neurotec.lang.NTypes.getPointerForCallback(NTypes.java:276)
at com.neurotec.lang.NTypes.<clinit>(NTypes.java:228)
at com.neurotec.licensing.NLicensing.<clinit>(NLicensing.java:42)
at com.neurotec.licensing.NLicense.<clinit>(NLicense.java:52)
at com._apptest.appliancetest.neurotech.IdentifyFace.<init>(IdentifyFace.java:45)
at com._apptest.appliancetest.resources.TemplateResource.peopleTest(TemplateResource.java:80)
at com._apptest.appliancetest.resources.TemplateResource.uploadTemplate(TemplateResource.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:460)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:745)



Thanks.

Hello,

Galssfish and our SDK uses different versions of the JNA.

Regarding the class loading hierarchy web application dependencies are being loaded at the very end.
Please follow this guide in order to disable class loader delegation.
This should solve your problem.
Best regards,

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

Re: java.lang.ExceptionInInitializerError

Postby 2bface » May 17, 2016 14:24

Martynas wrote:Hello,

Galssfish and our SDK uses different versions of the JNA.

Regarding the class loading hierarchy web application dependencies are being loaded at the very end.
Please follow this guide in order to disable class loader delegation.
This should solve your problem.

Hello.

Problem solved.

Thank you!
2bface
 
Posts: 65
Joined: May 12, 2016 13:08

PreviousNext

Return to Public

Who is online

Users browsing this forum: No registered users and 2 guests