Cap file analyzer program?
Hello all,
Is there any program to analyze the cap file?
the program read the cap file and print out or make a file with cap file information by components user kindly format. like Header Component.tag = 0x01 size=0x0A .....
Thanks,
Julie.
hi:
i write a program that can parse CAP file, hope that is helpful to you.
http://www.akaembed.org/Inetpub/uploads/AKA_Mail/JavaCard/CAPParser/CAPParser.exe
Good Lucky!
Similar Messages
-
CAP file analyzer - easy method size acquisition
Hi all,
I want to calculate how many bytes each method I have in my JavaCard applet takes. Right now, I am deleting the body of my methods (effectively turning that into a stub) and compile, and subtract the new size from the size of my CAP before removing the method. Can there be an easier way to do this? (A tool to analyze CAP itself, maybe?)
Any directions greatly appreciated..
Regards,
Burakhi:
i write a program that can parse CAP file, hope that is helpful to you.
http://www.akaembed.org/Inetpub/uploads/AKA_Mail/JavaCard/CAPParser/CAPParser.exe
Good Lucky! -
Analyze netmon .cap file with logparser
Hi all,
I'm trying to analyze a cap file with logparser. I'm exporting all the content of the file to a CSVfile. But when I open the CSV file, it doesn't shows source IP and destination IP for any of the packets. Whereas if I open the file with network monitor,
it does shows all the information. I'm using below mentioned query to export the data to CSV.
logparser -i:netmon "SELECT * INTO test.csv FROM test.cap"
Regards, Darshan G. ParabPer
http://blogs.msdn.com/b/ambhrin/archive/2012/05/08/working-with-netmon-amp-wireshark-traces.aspx,
"Known issues on Windows 7
If you are trying to parse the Netmon trace File through Logparser, the SrcIP and the DstIP fields might appear to be blank. This is a known issue with Win 7. However parsing should work just fine on a XP or a Win 8 machine."
-Steve -
Can InDesign import a CAPS file?
I work for a phonebook company, and they keep their data in an antiquated program that only supports Quark. The program can export data for page layout as a .DTG file that they give us a proprietary Quark extension for, so that the tags are read and formatting is applied as the text comes in. But their program can also export something called a CAPS file, which seems to be a simple text file with characters in front of the data to call up style sheets. There is a number and then a tag that corresponds with our UDACs. (UDACs are the names for the different categories of directory listings.) Does InDesign have a filter for importing a CAPS file, that can read these simple tags and apply formatting? Or, is there perhaps a third-party application that would do this? I would like to kiss Quark goodbye.
Thanks.I've never heard of CAPS, but Indesign can certainly import a text file.
And if the text is coded, you can then search and replace the codes with
styles or formatting. If the routine is the same every time, it could be
scripted. Or you could just save your Find/Changes. Or you could bring
your DTG file into Quark, save as Quark 4, and then open the Quark file
in Indesign.
Kenneth Benson
Pegasus Type, Inc.
www.pegtype.com -
Verify user pin on a smart card & load a cap file on a card (with eclipse)
I have been able install JCWDE (Java card development Kit) successfully on eclipse.Basically all I need to do is verify user pin on a smart card.As in first set a pin and then verify it.
To begin with I have referred many tutorials (here: http://www.javaworld.com/jw-07-1999/jw-07-javacard.html?page=1) and implemented the wallet code in eclipse.I have the cap file generated and the scripts generated.I am not sure how to load it on the smart card with eclipse.
I tried to deploy the cap file but it keeps saying connected.Also when we initiate the applet I get the same result.
output:
Java Card 2.2.2 APDU Tool, Version 1.3
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Opening connection to localhost on port 9032.
Connected.
I have also tried : http://www.cs.ru.nl/E.Poll/hw/practical.html ........ but no luck.
I have the wallet.cap ,wallet.exp ,wallet.jca ,wallet.opt create.script, select,cap-download.scripts files already generated in eclipse.
How does a successfully implemented applet code on a smart card work?How does this wallet code work if it is successfully implemented ? Does it have like some GUI which prompts the user to enter the pin?
Wallet code for reference :
package com.sun.javacard.samples.wallet;
import javacard.framework.*;
public class Wallet extends Applet {
/* constants declaration */
// code of CLA byte in the command APDU header
final static byte Wallet_CLA =(byte)0x80;
// codes of INS byte in the command APDU header
final static byte VERIFY = (byte) 0x20;
final static byte CREDIT = (byte) 0x30;
final static byte DEBIT = (byte) 0x40;
final static byte GET_BALANCE = (byte) 0x50;
// maximum balance
final static short MAX_BALANCE = 0x7FFF;
// maximum transaction amount
final static byte MAX_TRANSACTION_AMOUNT = 127;
// maximum number of incorrect tries before the
// PIN is blockedd
final static byte PIN_TRY_LIMIT =(byte)0x03;
// maximum size PIN
final static byte MAX_PIN_SIZE =(byte)0x08;
// signal that the PIN verification failed
final static short SW_VERIFICATION_FAILED =
0x6300;
// signal the the PIN validation is required
// for a credit or a debit transaction
final static short SW_PIN_VERIFICATION_REQUIRED =
0x6301;
// signal invalid transaction amount
// amount > MAX_TRANSACTION_AMOUNT or amount < 0
final static short SW_INVALID_TRANSACTION_AMOUNT = 0x6A83;
// signal that the balance exceed the maximum
final static short SW_EXCEED_MAXIMUM_BALANCE = 0x6A84;
// signal the the balance becomes negative
final static short SW_NEGATIVE_BALANCE = 0x6A85;
/* instance variables declaration */
OwnerPIN pin;
short balance;
private Wallet (byte[] bArray,short bOffset,byte bLength) {
// It is good programming practice to allocate
// all the memory that an applet needs during
// its lifetime inside the constructor
pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
byte iLen = bArray[bOffset]; // aid length
bOffset = (short) (bOffset+iLen+1);
byte cLen = bArray[bOffset]; // info length
bOffset = (short) (bOffset+cLen+1);
byte aLen = bArray[bOffset]; // applet data length
// The installation parameters contain the PIN
// initialization value
pin.update(bArray, (short)(bOffset+1), aLen);
register();
} // end of the constructor
public static void install(byte[] bArray, short bOffset, byte bLength) {
// create a Wallet applet instance
new Wallet(bArray, bOffset, bLength);
} // end of install method
public boolean select() {
// The applet declines to be selected
// if the pin is blocked.
if ( pin.getTriesRemaining() == 0 )
return false;
return true;
}// end of select method
public void deselect() {
// reset the pin value
pin.reset();
public void process(APDU apdu) {
// APDU object carries a byte array (buffer) to
// transfer incoming and outgoing APDU header
// and data bytes between card and CAD
// At this point, only the first header bytes
// [CLA, INS, P1, P2, P3] are available in
// the APDU buffer.
// The interface javacard.framework.ISO7816
// declares constants to denote the offset of
// these bytes in the APDU buffer
byte[] buffer = apdu.getBuffer();
// check SELECT APDU command
if (apdu.isISOInterindustryCLA()) {
if (buffer[ISO7816.OFFSET_INS] == (byte)(0xA4)) {
return;
} else {
ISOException.throwIt (ISO7816.SW_CLA_NOT_SUPPORTED);
// verify the reset of commands have the
// correct CLA byte, which specifies the
// command structure
if (buffer[ISO7816.OFFSET_CLA] != Wallet_CLA)
ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
switch (buffer[ISO7816.OFFSET_INS]) {
case GET_BALANCE:
getBalance(apdu);
return;
case DEBIT:
debit(apdu);
return;
case CREDIT:
credit(apdu);
return;
case VERIFY:
verify(apdu);
return;
default:
ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
} // end of process method
private void credit(APDU apdu) {
// access authentication
if ( ! pin.isValidated() )
ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
byte[] buffer = apdu.getBuffer();
// Lc byte denotes the number of bytes in the
// data field of the command APDU
byte numBytes = buffer[ISO7816.OFFSET_LC];
// indicate that this APDU has incoming data
// and receive data starting from the offset
// ISO7816.OFFSET_CDATA following the 5 header
// bytes.
byte byteRead =
(byte)(apdu.setIncomingAndReceive());
// it is an error if the number of data bytes
// read does not match the number in Lc byte
if ( ( numBytes != 1 ) || (byteRead != 1) )
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
// get the credit amount
byte creditAmount = buffer[ISO7816.OFFSET_CDATA];
// check the credit amount
if ( ( creditAmount > MAX_TRANSACTION_AMOUNT)
|| ( creditAmount < 0 ) )
ISOException.throwIt(SW_INVALID_TRANSACTION_AMOUNT);
// check the new balance
if ( (short)( balance + creditAmount) > MAX_BALANCE )
ISOException.throwIt(SW_EXCEED_MAXIMUM_BALANCE);
// credit the amount
balance = (short)(balance + creditAmount);
} // end of deposit method
private void debit(APDU apdu) {
// access authentication
if ( ! pin.isValidated() )
ISOException.throwIt(SW_PIN_VERIFICATION_REQUIRED);
byte[] buffer = apdu.getBuffer();
byte numBytes =
(byte)(buffer[ISO7816.OFFSET_LC]);
byte byteRead =
(byte)(apdu.setIncomingAndReceive());
if ( ( numBytes != 1 ) || (byteRead != 1) )
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
// get debit amount
byte debitAmount = buffer[ISO7816.OFFSET_CDATA];
// check debit amount
if ( ( debitAmount > MAX_TRANSACTION_AMOUNT)
|| ( debitAmount < 0 ) )
ISOException.throwIt(SW_INVALID_TRANSACTION_AMOUNT);
// check the new balance
if ( (short)( balance - debitAmount ) < (short)0 )
ISOException.throwIt(SW_NEGATIVE_BALANCE);
balance = (short) (balance - debitAmount);
} // end of debit method
private void getBalance(APDU apdu) {
byte[] buffer = apdu.getBuffer();
// inform system that the applet has finished
// processing the command and the system should
// now prepare to construct a response APDU
// which contains data field
short le = apdu.setOutgoing();
if ( le < 2 )
ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
//informs the CAD the actual number of bytes
//returned
apdu.setOutgoingLength((byte)2);
// move the balance data into the APDU buffer
// starting at the offset 0
buffer[0] = (byte)(balance >> 8);
buffer[1] = (byte)(balance & 0xFF);
// send the 2-byte balance at the offset
// 0 in the apdu buffer
apdu.sendBytes((short)0, (short)2);
} // end of getBalance method
private void verify(APDU apdu) {
byte[] buffer = apdu.getBuffer();
// retrieve the PIN data for validation.
byte byteRead = (byte)(apdu.setIncomingAndReceive());
// check pin
// the PIN data is read into the APDU buffer
// at the offset ISO7816.OFFSET_CDATA
// the PIN data length = byteRead
if ( pin.check(buffer, ISO7816.OFFSET_CDATA,
byteRead) == false )
ISOException.throwIt(SW_VERIFICATION_FAILED);
} // end of validate method
} // end of class Wallet
Any help on this would highly appreciated !! :)Hi,
Thanks a lot for reply.But I am not sure as to how can I delete the simulator.
All I want to do is write a pin on the smart card and verify it.But I am not being able to deploy the cap file or initiate the applet.
Also for passing the pin correct me if I am wrong........ according to what you said and what I have understood
If the code is like this :
public static void install(byte[] bArray, short bOffset, byte bLength) {
// create a Wallet applet instance
new Wallet(bArray, bOffset, bLength);
} // end of install method
byte aLen = bArray[bOffset]; // applet data length
// The installation parameters contain the PIN
// initialization value
pin.update(bArray, (short)(bOffset+1), aLen);
Lets say my pin is : 1234
then I would pass it here.....
new Wallet(bArray, 1234, bLength); -
"Cap file can not load on java card"
Hi every one,
My problem is :
I created a cap file from my package .when I want to load cap file in the card, I got an error and loading was stoped.I opened the cap file with "HexEditor" program and I saw the version in the "Import.cap" file is "02 01", when I changed it to "00 01" my problem was solved and I could load the cap file in the card successfully.
I would like to know what is the reason of this problem ,how the capfile gets "02 01" version ?
And I would like to know, how can I find the version of sun library packages that are in the java card that I am working with(it is GemXpresso card).My mean is , the version of these packages on the card :
A0000000620001 (java.lang)
A0000000620101 (javacard.framework)
A0000000620102 (javacard.security)
A0000000620201 (javacardx.crypto)
I 'll appreciated for any help.
yours sincerely,
OrchidDear NewOrchid
j2sdk-1_4_2_15-windows-i586-p.exe is 48.9 MB.
i downloaded it from sun with using a proxy server software.
if you like, i can send my software to your email.
to Woj:
if you use jdk1.5 for compiling and your card doesn't conform to
java card 2.2.2 , you can not load your cap file on the card. -
Upload cap file by net on client card, and protect cap file. Encode cap?
How upload cap file by internet on client card, and protect cap file. Encode cap file?
cap file > Server (keys) --> internet --> Client Program --> JCOP10 card
Can I use secure channel protocol ? How ?Thanks for response.
Problem for me is communication between client program(computer) -> reader -> card.
The cap file is in Bin format.
Transmission can by easy scanned. How to protect this step of upload process?.
Internet is no problem.
My English is pure, and I have problem to understand specification.
Can I upload, install cap file encoded by Secure Channel Protocol '02' ?
If yes, then some example, log file can help me understand how to do this and how build APDU commend. I Use my program (Delphi) to communicate with reader and card. -
Unable to load the cap file to the JCOP card
I develop my applet by JCOP IDE and it works well in the VM. But when I want to load it on my JCOP card, I face a problem. it can successful send the 1st 254 bytes, but always return 6A86 when send the second 254 bytes to the card.
Status: Incorrect parameters (P1,P2)
Error code: 6a86 (Incorrect parameters (P1,P2))
Offending APDU: 6A86
Wrong response APDU.
I don't know why this happen. Can anyone show some light on that. Thank you in advance.Have you written your own loader for this ?
What is the prompt "cm>" from, is that a standard Java Card tool ?
Looking at the data I can see, its looks well formed. However when I wrote my own loader I found I could only send 239 bytes of data (255 - 16) otherwise I'd get an error. Maybe part of this is todo with the option of using M-DAP to MAC each APDU. FYI its a JCOP10 I'm using.
Also my data was never concatentated, that is to say, check your 'FileSystem.cap' file with "unzip -tv FileSystem.cap" for the real CAP files. Each of these files never crossed an APDU boundary, the first one Header.cap (IIRC) is a small file, so my first APDU was less than 40 bytes of actual data (with C4 TLV data before it), certainly not 254 bytes.
I'm not sure if this is allowed or not, I've plans to try it out soon and see myself since i've not read anything that says you can not do this.
This is the only obvious difference I can see to other loader scripts and programs I have seen. -
How to load a .cap file
i am new to smartcard programming...
now i am able to compile sample card program and and generated .cap file.
now my question is how to load that .cap file onto simulator and also smartcard.
my requirement is to store some value on smart card and retrive that value and update it. what is the process to achive this.plz mail me in detail to my id : [email protected] or [email protected]
advance thanks for mailing to me ....i am new to smartcard programming...
now i am able to compile sample card program and and generated .cap file.
now my question is how to load that .cap file onto simulator and also smartcard.
my requirement is to store some value on smart card and retrive that value and update it. what is the process to achive this.plz mail me in detail to my id : [email protected] or [email protected]
advance thanks for mailing to me .... -
ERROR while generating CAP file
Hello,
Iam trying to generate a cap file of JCRMI applet. Iam getting the following errors while generating a CAP file. Can anybody help me.
Thanks in advance,
With Regards,
Abhishek Goud
{color:#ff0000}{color:#008080}*C:\Documents and Settings\Administrator\Desktop\Demo>converter -classdir C:\jav*
a_card_kit-2_2_2\lib -exportpath C:\java_card_kit-2_2_2\api_export_files;C:\java
cardkit-2_2_2\lib -applet 0xa0:0x00:0x00:0x00:0x62:0x03:0x01:0x08:0x01 PurseAp*
plet com.sun.javacard.samples.RMIDemo 0xa0:0x00:0x00:0x00:0x62:0x12:0x34 1.3
{color}
Java Card 2.2.2 Class File Converter, Version 1.3
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to lic
ense terms.
warning: You did not supply export file for the previous minor version of the pa
ckage
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported type long of
field serialVersionUID.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnull in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode aas
tore in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode aas
tore in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode aas
tore in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode pop i
n clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode new
in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okespecial in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String) of class java.lang.NoSuchMe
thodError.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ath
row in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of method class$.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method forName(java.lang.String) of class java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported return type
String of invoked method getMessage() of class java.lang.Throwable.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String) of class java.lang.NoClassD
efFoundError.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
{color}
conversion completed with 73 errors and 1 warnings.It seems there is a variable of type "long" in your applet. The "long" type is not supported by Java Card, so you should remove all variables with type "long".
Otherwise, without the source code, it is difficult to help you find out what's wrong. -
I'm concerned that my iMac, purchased 5 years ago, is about the crash and I can't back up my files and programs to an external hard drive via Time Machine because the computer freezes after only a couple hundred MB and gets nowhere near the required amount.
How can I save these files and programs if the computer hard drive fails or has to be replaced without the backup being able to be done? I need to do something quickly, but I'm not sure what I can or should be doing.Get an external hard drive, some good ones that I like are the OWC, http://www.macsales.com Mercury Elite Pro drives...they are very good and reasonably priced.
Get the drive, connect via USB or FireWire, then use Disk Utility to format the new drive as Mac OS X Extended (Journaled), and then use Disk Utility to Restore the current drive to the new drive. Restore actually clones the drive so you will have a bootable backup on the external drive.
After you have formatted and named the external drive, click Restore in the main Disk Utility window, drag the name of the old hard drive to the Source box, and drag the name of the new external drive to the Destination box. DU will make an exact clone of the internal drive on the external drive.
That clone will be a complete backup of the operating system and all of your data.
You can test it by restarting the iMac and hold the Option key. That will give you a grey screen showing all bootable drives. Just click the external drive, then click the upward pointing arrow under it and the iMac will boot from that drive. -
Pls help with .CAP file.
Hi.
I read a lot about how to write java applet for smart card and after read a lot about how to convert .class file into a .CAP file. But I don't know where to find informatin about what to do further. Pls can you tell or give link to a text which explains how to install .CAP file on a smart card and which tool to use in order to save .CAP file on a smart card.
ThxIt depends what installer/deletion manager your card supports. Most likely it is GlobalPlatform. Check out GlobalPlatform 2.1.1 card specification.
-
How do I convert Wallet.class to a CAP file?
I was trying to convert one of the sample files( Wallet.class) to a CAP file but it didn't work.
Please help!!!Please be more specific. Describe what you did in detail, provide outputs of your actions etc. Otherwise noone can help you.
Somebody save the world.. -
Every time i open a new window, search something in google, or click a link, a firefox window with four tabs comes up.
The first tab has: http://xn--9ca960n/
The second: file:///C:/Program%20Files/Mozilla%20Firefox/
The third: http://xn--depe5-era1e2dt998a/
The fourth: http://xn--jr2dqm-ekaby3owwwa1bgb4bh1dw4lgao61m/
We have also lost our windows XP theme for the desktop at the same time. I did fix that issue, but the theme keeps disappearing again and is becoming a hassle.
I have run a virus scan with trend micro but nothing was found.
I also deleted cookies, caches and the whole history
would appreciate your help. thanks
== This happened ==
Every time Firefox opened
== out of the blue, early this week. ==
== User Agent ==
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)Hello Susanne.
You may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
If you want support for one of your add-ons, you'll need to contact its author. -
How to Install .CAP file in the Java Card?
Hi Friends..
How to install *.CAP* file in the Java Card?..
I've GPShell script as follows :
mode_211
enable_trace
establish_context
card_connect -readerNumber 2
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 -sdAID A000000003000000
load -file HelloWorld.cap
card_disconnect
release_contextwith that script i can load HelloWorld.cap file successfully..
Now, how to install the HelloWorld.cap file?..
if i add script : load -file HelloWorld.cap i got this error :
install -file HelloWorld.cap
file name HelloWorld.cap
Command --> 80E602001B09A00000006203010C0107A00000015100000006EF04C60201A80000
Wrapped command --> 84E602002309A00000006203010C0107A00000015100000006EF04C60201
A80030C859793049B85300
Response <-- 6985
install_for_load() returns 0x80206985 (6985: Command not allowed - Conditions of
use not satisfied.)i ask this question because when i tried to select the applet through its AID, by this script :
establish_context
card_connect -readerNumber 2
select -AID a00000006203010c0101i got this message error : select_application() returns 0x80216A82 (6A82: The application to be selected could not be found.)
but there's exactly any that AID in my Java Card..
here's is the list of AID from My Java Card :
C:\GPShell-1.4.2>GPShell listgp211.txt
mode_211
enable_trace
establish_context
card_connect -readerNumber 3
* reader name OMNIKEY CardMan 5x21-CL 0
select -AID a000000003000000
Command --> 00A4040008A000000003000000
Wrapped command --> 00A4040008A000000003000000
Response <-- 6F108408A000000003000000A5049F6501FF9000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
Command --> 80CA006600
Wrapped command --> 80CA006600
Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864
886FC6B03640B06092A864886FC6B040215650B06092B8510864864020102660C060A2B060104012
A026E01029000
Command --> 8050000008AAF7A87C6013BC0300
Wrapped command --> 8050000008AAF7A87C6013BC0300
Response <-- 0000715457173C2A8FC1FF0200937A55C288805D8F2A04CCD43FA7E69000
Command --> 848201001023CA18742D36165ED992CFF2146C3D51
Wrapped command --> 848201001023CA18742D36165ED992CFF2146C3D51
Response <-- 9000
get_status -element 10
Command --> 80F21000024F0000
Wrapped command --> 84F210000A4F004FF8BE1492F7275400
Response <-- 0CF0544C00004D4F44554C415201000009A00000006203010C010100010AA000000
06203010C01019000
GP211_get_status() returned 2 items
List of Ex. Load File (AID state Ex. Module AIDs)
f0544c00004d4f44554c4152 1
a00000006203010c01 1
a00000006203010c0101
card_disconnect
release_contextPlease help me..
And please correct me if i'm wrong,,
Thanks in advance..Any suggestions for my question?..
Please help me..
Thanks in advance..
Maybe you are looking for
-
I can't open a particular document on any device.
It just says "Document cannot be opened". I simply opened then closed the document on iPad then the problem arose. Any suggestions.
-
Why CDP is a layer2 protocol?
Why CDP is a layer2 protocol? Where as it is also giving information about the layer3 IP address of the connected device . Regards, Chandu
-
I cannot receive calls when my phone rings some times. When it drops I can hear my own voice thru the receiver. I cannot make calls either
-
It's a difficult problem to explain concisely but here goes. As I start to build a project on the timeline, adding effects/transitions as I go, it will start to freeze during playback. The soundtrack used to play on quite smoothly although, recently,
-
Can I remove Page setup Dialog CRViewer?
When I click print button on CRViewer, if the report was set custom paper then Page setup Dialog has shown. Can I remove it? I use Java Swing and CR 2008