Hi ,
it seems that I still have this problem
I am trying to execute the GPKTest.class that comes with the 
gemplus-gpk-0.2.jar
 

Although the OCF seems o work with it (the card is recognized), 

the GPKTest stops at the point where CreateSecret.KeyFile is called 
(Line 1234):
 

    // Create Secret Key File 

     System.out.println("\nCreating Secret Key File " + ef_3F02); 

     fus.createSecretKeyFile(ef_3F02, 1, null); 

 

After executing the fus.createSecretKeyFile(ef_3F02, 1, null); it 
returns to the command prompt.
 

 

After a suggestion from a member of the list I replaced the code in 
order to catch
the exceptions/errors and indeed I get an error back. But is is strange!!!
The error is generated while trying to " Creating Secret Key File 
:3F00:3F02"

 >ERROR: java.lang.ExceptionInInitializerError

I have tried both JDK1.2.2 and JDK 1.3 and I still get the same error.

However if I try first to create the MF I get an error while trying to 
create
the MF (the same java.lang.ExceptionInInitializerError) and then while
  " Creating Secret Key File :3F00:3F02" I get just an
ERROR: java.lang.NoClassDefFoundError: javax/crypto/b
I suspect it can not find javax.crypto.spec.SecretKeySpec which is also
strange since there is a import line AND I have added JCE1.2.1 which has
the required class. 

In this second scenario the java.lang.ExceptionInInitializerError does 
NOT appear
as in the first scenario while creating the SecretKeyFile (maybe it 
appears after
the error with the class that can not be found).

In any case I was not able to run the GPKTest 0.2 provided. I tried also 
to run GPKTest 0.1
which is supposed to be a previous version but failed with the same error.

I have 2 GPK-8000-FULL cards and both of them can not be buggy so it 
must be something else.
 

 

My configuration : 

- GPK8000 sample card
- Win2000
- GCR410 Reader
- Java 1.3 / JAVA 1.2.2
- JCE 1.2.1 (well I put it because I tried to recompile the GPKTest.java
              and javax.crypto.spec.SecretKeySpec could not be imported...)
- Cryptix 3.2
 

I am trying to see if anyone had the same problem or anyone knows a way 
to deal
with this.

My opencard.properties file looks like this:

###############################
# Card service configuration  #
###############################

# use the GPK card service factory
OpenCard.services = 
com.gemplus.opencard.service.gpk.factory.GPKCardServiceFactory \
opencard.opt.util.PassThruCardServiceFactory


###############################
# Card terminal configuration #
###############################

# Pure JAVA Terminal
OpenCard.terminals = 
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|MyGemCore|GCR410|COM1

#######################
# TRACE configuration #
#######################

# Warnings ...
OpenCard.trace = opencard:4 com.gemplus.opencard.service:4 
com.gemplus.opencard.terminal:4 com.gemplus.opencard.service.gpk:4



Thanks in advance for any help,
Akis




---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to