Hi,
I am using a GemPC410 reader with a GP8K card under Windows '98 and with JDK
1.2.2
If I simply try to get the list of the files in my card (using the "dir"
method of the class FileUtilityCardService)I get the following error
message:

com.gemplus.opencard.service.gpk.GPKException: Status code: 6B90
        at
com.gemplus.opencard.service.gpk.GPKResponseAPDU.validate(GPKResponseAPDU.ja
va:104)
        at
com.gemplus.opencard.service.gpk.access.GPKCardAccessor.selectFile(GPKCardAc
cessor.java:476)
        at
com.gemplus.opencard.service.gpk.file.GPKFileAccessService.exists(GPKFileAcc
essService.java:167)
        at
com.gemplus.opencard.service.gpk.file.GPKFileUtilityService.dir(GPKFileUtili
tyService.java:518)
        at SCJavaBook.ReadFile.main(ReadFile.java:96)


Error code 6B90 doesn't exist. But I found that the following method of
GPKResponseAPDU class displays my error message.

 public void validate() throws GPKException {
    int sw = sw();
    if(((sw & 0xFF00) == DATA_TO_RETRIEVE) || sw == EXCHANGE_CLOSED) {
      return;
    } else {
      GPKError error = GPKError.get(sw) ;
      String msg;
      if (error != null ) {
        msg = error.toString() ;
      }
      else {
        msg = "Status code: " + HexString.hexifyShort(sw);  ********** HERE
THE METHOD DISPLAY THE ERROR **********
      }
      throw new GPKException(msg, sw) ;
    }
  }
}  // GPKResponseAPDU

I think that code 6B90 is inside the responseAPDU of my card but I don't
know what this means. In fact before displaing the error message it displays
the following DEBUG infos:

[DEBUG    ] opencard.core.service.CardChannel.sendCommandAPDU
--- message   SELECT FILE P1=00 P2=00 (case 4)
--- thread    Thread[main,5,main]
--- source    opencard.core.service.CardChannel@73815cd8, is open, not
jammed
[DEBUG    ] opencard.core.service.CardChannel.response:
--- message   opencard.core.terminal.ResponseAPDU@9e615cd9
0000:  6B 90                                            k.
--- thread    Thread[main,5,main]
--- source    opencard.core.service.CardChannel@73815cd8, is open, not
jammed
[DEBUG    ]
com.gemplus.opencard.service.gpk.file.GPKFileUtilityService.releaseCardChann
el
--- message   releasing
--- thread    Thread[main,5,main]
--- source
com.gemplus.opencard.service.gpk.file.GPKFileUtilityService@74455cd8
[DEBUG    ] opencard.core.service.CardServiceScheduler.releaseCardChannel
--- message   releasing opencard.core.service.CardChannel@73815cd8, is open,
not jammed
--- thread    Thread[main,5,main]
--- source    opencard.core.service.CardServiceScheduler@69c15cd8, is alive
++  channel is allocated
[DEBUG    ] opencard.core.service.CardChannel.close
--- message   CardChannel closed
--- thread    Thread[main,5,main]
--- source    opencard.core.service.CardChannel@73815cd8, not open, not
jammed

Could anyone help me? Thanks in advance.
Sergio




---
> 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