Hi everyone.
Am using Gemplus' GPK card services with one of their MPCOS-EMV card (file
stuff is backward compatible).
Is all working fine, until I try and create a new ObjectInputStream from a
CardFileInputStream. I have created on a transparent file, and created an
ObjectOutputStream from a CardFileOutputStream created on it. This works
fine, and I simply write a String to the stream. However, when I try to
create an ObjectInputStream to read the object back again using:
ois = new ObjectInputStream(new CardFileInputStream(file));
I get the following exception:
java.io.StreamCorruptedException: Version Mismatch, Expected 5 and
got -21267
at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:852)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:168)
at GetCardID.run(GetCardID.java:140)
at ThreadTest.main(ThreadTest.java:17)
Have done all the checking I know to do, and stumped. Does anyone have any
ideas? Does anybody have something similar working?
Would appreciate help, as only 10 days to get this working!
Many thanks,
David
[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.