Our Online Store have the new products: RFID antenna board. Currently it can work with
JC10M24R and
JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.
JavaCard Applet Development Related Questions and Answers.
-
Diorin
- Posts: 18
- Joined: Thu Nov 26, 2015 4:08 am
- Points :151
-
Contact:
Post
by Diorin » Mon Oct 02, 2017 3:16 am
I came across an problem when using the Java Smart Card I/O API. No matter when I send a command APDU to my applet, and this command returns any data, and an exception is thrown:
Exception in thread "main" javax.smartcardio.CardException: Could not obtain response
at sun.security.smartcardio.ChannelImpl.doTransmit(ChannelImpl.java:169)
at sun.security.smartcardio.ChannelImpl.transmit(ChannelImpl.java:73)
Does anybody know how do I solve this problem?
-
marjkbadboy
- Posts: 33
- Joined: Fri Jul 31, 2015 2:47 am
- Points :217
-
Contact:
Post
by marjkbadboy » Mon Oct 02, 2017 6:29 am
I think that you are sending an APDU command case 1 (P3=0), just like:
If your applet invoke the method
, it will expect data from the APDU buffer, and if you don't send data, this exception will be throwed by smartcardio API.
It's hunting season!
-
BrooksIQ
- Posts: 18
- Joined: Mon Jun 15, 2015 11:12 pm
- Points :182
-
Contact:
Post
by BrooksIQ » Mon Oct 02, 2017 11:48 am
So as what has been mentioned above, even for APDU commands that are sent without any data attached. You have to send a dummy data attached to it.
At the applet side, do a setIncomingAndReceive()
first and ignore the retrieved dummy data. then proceed with your response.
Your mind will answer most questions if you learn to relax and wait for the answer---William S. Burroughs
Users browsing this forum: No registered users and 68 guests
JavaCard OS : Disclaimer
Board Disclaimer
The views and comments posted in these fora are personal and do not necessarily represent the those of the Management of JavaCard OS.
The Management of JavaCard OS does not, under any circumstances whatsoever, accept any responsibility for any advice, or recommentations, made by, or implied by, any member or guest vistor of JavaCard OS that results in any loss whatsoever in any manner to a member of JavaCard OS, or to any other person.
Furthermore, the Management of JavaCard OS is not, and cannot be, responsible for the content of any other Internet site(s) that have been linked to from JavaCard OS.