Hello,
it seems you have an old version of the BusinessCard Sample. Try this one:
(See attached file: BusinessCardSample.jar)
Best regards,
Thomas
Thomas Schaeck
Pervasive Computing Division - Extended e-business Solutions, EMEA
Phone: +49-(0)7031-16-3479 Mobile: +49-(0)171-6928407 e-mail:
[EMAIL PROTECTED] Fax: +49-(0)7031-16-4888
Address: IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032
Boeblingen, Germany
Ashwin Chandra <[EMAIL PROTECTED]> on 04.04.2000 20:09:56
Please respond to Ashwin Chandra <[EMAIL PROTECTED]>
To: undisclosed-recipients:;, "Paul Sheridan" <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED] (bcc: Thomas Schaeck/Germany/IBM)
Subject: Re: [Re: [OCF] �ClassNotFoundException - BusinessCardProxy]
Hi Paul,
Thanks for your advice. I did got some breakthrough but still not through.
This mail is little longer - please forgive me.I need you help on two
issues,
please respond as soon as you can:
Issue I - Business Card Proxy / IBM card
Below is the source code in CardExecutiveCardService which is creating
problem:
______________________________________________________________________
protected ResponseAPDU selectApplet(CardChannel channel,
AppletID appletAID)
throws CardServiceException, CardTerminalException {
final byte[] SELECT_HEADER
= {(byte)0x00, (byte)0xA4, (byte)0x04, (byte)0x00};
CardExecutiveState state
= getCardExecutiveState(getCardChannel());
if ((state.getSelectedAppletAID() == null)
|| (!state.getSelectedAppletAID().equals(appletAID)))
{
//(test)itracer.debug("selectApplet", "selecting " + appletAID);
byte[]appletAIDBytes = appletAID.getAID();
/// Original Build the SELECT command APDU
selectAPDU.setLength(0);
selectAPDU.append(SELECT_HEADER); // Class, Instruction, P1, P2
selectAPDU.append((byte)appletAIDBytes.length); // Lc
selectAPDU.append(appletAIDBytes); // Application Identifier
selectAPDU.append((byte) 0x00); // Le
:
____:_________________________________________________________________
Now the ApplicationID(thus getAID() method too) class in not available. If
I
replace the appletAID.getAID(); by static value, it prompts up with Wrong
instruction set used error. What should I do now?
ISSUE II - Cyberflex access cards
Error code generated by ProxyFactory:
______________________________________________________________________
Exception raised: "java.lang.ArrayIndexOutOfBoundsException"
Warning: opencard\core\terminal\CardID.java(121): Source File not found
Exception raised: "java.lang.ArrayIndexOutOfBoundsException"
java.lang.ClassNotFoundException: CardService implementing class
com.cust.CustCardProxy
at
opencard.core.service.CardServiceRegistry.getCardServiceInstance(CardServiceRegistry.java:268)
at opencard.core.service.SmartCard.getCardService(SmartCard.java:315)
at com.cust.CustCard.cardInserted(GrooviCard.java:72)
at
opencard.core.event.EventGenerator.createEventsForPresentCards(EventGenerator.java:129)
:
:
_______________________________________________________________________
Any clue what would have went wrong. Awaiting help.
Regards,
Ashwin Chandra
"Paul Sheridan" <[EMAIL PROTECTED]> wrote:
Look like you need to examine your Card Serice Factory, as it is not
recognising the cards or creating the proxy objects. Ensure the getCard
and
getClasses functions are correct.
Regards,
Paul
_____________________________________
Get your free E-mail at http://www.ireland.com
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
---
> 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.
.ZIP File