Please find the test program for MPCOS cards. Please comment "fus.eraseCard();" if 
your card doesn't support the erase command. Also, there are lots of unnecessary 
imports which you may have to clean.

----------
There are many things worth living for, there are a few things
worth dying for, but there is nothing worth killing for.
- Tom Robbins


>-----Original Message-----
>From: Domenic [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 17, 2000 9:46 AM
>To: [EMAIL PROTECTED]
>Subject: [OCF] Problems writing to Card
>
>
>Hi,
>
>I have the following error when writing to a smartcard:
>"com.gemplus.opencard.service.gpk.GPKException: ISO error (67 00):
>Incorrect Range or address range error." 
>
>The exception occurs when I try the following code: 
>   CardRequest cr = new CardRequest
>(CardRequest.ANYCARD,null,FileAccessCardService.class);
>   SmartCard sm = SmartCard.waitForCard (cr);
>   FileAccessCardService facs =
>(FileAccessCardService)sm.getCardService(FileAccessCardService.
>class,true);
>   CardFile root = new CardFile(facs);  // ** exception here
>
>I have no problems reading from the card. My setup is as follows:
>- Terminal: GemPC410
>- Card: MPCOS (of some type)
>- OCF: 1.2
>- OS: WindowsNT
>- Java: 1.2.2
>- (CardServices and CardTerminals drivers are the latest versions from
>Gemplus)
>
>Regards,
>-- 
>Domenic Catania                                 
>ADI Limited - Information Systems, Software & Services
>(IS3)                             
>Phone:  +61 8 9333 8816   
>Fax:    +61 8 9333 8889
>Mobile: +61 0412 868 854
>Email:  [EMAIL PROTECTED]
>--
>
>
>---
>> 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.

TestMPCOS.java

Util.class

Reply via email to