The thing is: this Gold SDK uses JNI to comunicate with the fingerprint reader. When I create the applet jar from Eclipse and sign it manually, it works fine. When I use Ant (1.6.3) to compile and sign the applet, it hangs the browser while reading the fingerprint (any browser). No error messages, no screamings, nothing! It just hangs. And then, a file appears in my desktop. Here it is:
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x8074792 Function=[Unknown.] Library=C:\ARQUIV~1\Java\J2RE14~1.2_0\bin\client\jvm.dll
NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions.
Current Java thread: at com.digitalpersona.uareu.toolkit.DpFpFingerprintToolkit.FT_register(Native Method) at com.digitalpersona.uareu.DpFpRegistration.run(DpFpRegistration.java:164) at java.lang.Thread.run(Unknown Source)
Heap at VM Abort: Heap def new generation total 576K, used 523K [0x20020000, 0x200c0000, 0x20780000) eden space 512K, 96% used [0x20020000, 0x2009b150, 0x200a0000) from space 64K, 48% used [0x200b0000, 0x200b7b48, 0x200c0000) to space 64K, 0% used [0x200a0000, 0x200a0000, 0x200b0000) tenured generation total 3756K, used 3018K [0x20780000, 0x20b2b000, 0x26020000) the space 3756K, 80% used [0x20780000, 0x20a728f0, 0x20a72a00, 0x20b2b000) compacting perm gen total 7936K, used 7790K [0x26020000, 0x267e0000, 0x2a020000) the space 7936K, 98% used [0x26020000, 0x267bb800, 0x267bb800, 0x267e0000)
Local Time = Thu Jun 23 14:56:05 2005 Elapsed Time = 121 # # HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION # Error ID : 4F530E43505002EF # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.2_07-b05 mixed mode) #
.: SCJP 1.4 (95%) / SCWCD 1.4 (91%) / SCBCD (77%) :.
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us." - Calvin
This problem is fairly unusual. For all practical purposes, Ant is going to do the same thing that you do manually. Have you tried comparing the JAR's that you and Ant produce? Tried the JAR on different computers? Different VM's?
Marco Tulio Borges
Joined: Sep 14, 2004
Originally posted by Joe Ess: Have you tried comparing the JAR's that you and Ant produce?
They look like they are equal. But I don't know about the .class internally.
Originally posted by Joe Ess: Tried the JAR on different computers?
One key difference is: Eclipse usually uses its own Java compiler (from IBM/Eclipse) while your Ant tool for compiling tool is usually configured to use the JDK's compiler.
It's quite possible, even very likely, that the class bytecode for both versions is slightly different. This may contribute to slightly different runtime characteristics or performance, even exposing different bugs, such as race conditions.