In initialing the OCF layer, I write the     SmartCard.start();   as the
first statement in the method, initOCF().
However, when this statement is executed, the
java.lang.NullPointerException error obtained. Whatis the reason? And
how about the solution?

I am now using Gemplus GemXpresso RAD 211 Toolkit.
In fact, I have tried to run the examples, Purse and PurseClient. The
scenario is initOCF() is in PurseClient.java. And a main() in there. It
will make an object of PurseClient and this object will call the method
initOCF(). There are no problems.

However, when I use another program, let say driver.java. to perform the
similar task as PurseClient.java, I obtained the error above. Why? In
fact, the code is copy from PurseClient.java, but the error is caught in
the 1st sentence. It is really strange!!!

Thank for your attention.



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