OpenCard  
 
OCF, the OpenCard Framework is a standard Java framework for working with Smart Cards.  
 

OpenCard Tips and Known Problems Page

 

Internet Links!

This web page gathers all tips and known problems about the current version of OpenCard (i.e., OCF 1.2).

When the fixes described with each problem are available, Gemplus can "batch-submit" them as a bug-fix RFP to the consortium Technical Committee.

Please do not hesitate to Submit a new Entry or Update an existing one by sending me an email.

 

Bugs

Known Problems

The three lists below describe bugs that have been found (and possibly fixed), in OCF version 1.2 in the framework core or optional parts, or in the Gemplus CardTerminals or CardServices components.

"Core" Problems

Here are the known bugs in OCF 1.2 core part (base-core component).

  • 28 Apr 2000 - Wrong deprecated statement in CardID class
    (opencard.core.terminal package) in the getSlotID method. The Javadocs deprecated comment suggest to use ... getSlotID instead! In fact this method is not deprecated, it replaces getSlot because the Slot class has been removed.
    Fix: remove the deprecated tag in the Javadocs comments.

  • 17 May 2000 - Non cross-platform statements in TracerEvent class
    (opencard.core.event package) in the toString method. Report from Tom McKearney on the mailing-list. The statements of the form "sb.append("\n---xxx..")" should be replaced to avoid the use of "\n" characters that do not come out right on a Windows machine and should be replaced by calls to "System.getProperty("line.separator")" instead
    Fix: look for all "\n" in OCF code and use "System.getProperty("line.separator")" instead.

"Opt" Problems

Here are the known bugs in OCF 1.2 opt part (base-opt component).

  • 17 May 2000 - Missing deprecated management package
    (opencard.opt.management package). Report from David Arnone The entire package called opencard.opt.management is missing from OCF 1.2. According to the OCC compatibility rules, it should have been left in the base-opt.jar archive and tagged as "deprecated", new interfaces and classes having been defined for applet management on a multi-applicative card (See RFC 11-1 for more details).
    Fix: Providing a base-opt-management.jar archive that can be added to the regular distribution will fix the problem. In a future bug-fix release, this package can just be added again with all the classes marked as deprecated.

Components Problems

Here are the known bugs in OCF 1.2 Gemplus components.

  • 8 June 2000 - Problem to update a transparent file after offset 1024
    (com.gemplus.opencard.service.file package) in the internalWrite method of AbstractFileAccessCardService class. Reported by Mohammed SADIQ.

    There is an error in the internalWrite method.
    Fix: you have to change the line 484 of the AbstractFileAccessCardService.java file:

    anAPDU[2] = (byte)(((cardOffset / getDataUnitSize()) & 0x7F00) << 8); 
    by:
    anAPDU[2] = (byte)(((cardOffset / getDataUnitSize()) << 8) & 0x7F00); 

 

Tips

TroubleShooting

The list below describes tips shared by OpenCard programmers either that helps developing components or using existing ones in applications.

  • Not yet available.

Please send any comments, enhancements suggestions, or problem reports to the webmaster who will take your comment into account or dispatch it to the right person.

Copyright © 2000 Gemplus - About - Last changes: Tue Jun 5 17:25:35 CEST 2001