Java Card Connecting To a Simulator failed
Asked Answered
L

0

2

I am trying to test a Java Card applet to establish a connection to a simulator such as cref:

try {
    sckClient = new Socket("localhost", 9025);
    InputStream is = sckClient.getInputStream();
    OutputStream os = sckClient.getOutputStream();
    cad = CadDevice.getCadClientInstance(CadDevice.PROTOCOL_T0, is, os);
} catch (Exception e) {
    System.out.println("error");
    return;
}

try {
    cad.powerUp();
} catch (IOException e) {
    e.printStackTrace();
} catch (CadTransportException e) {
    System.out.println("error");
    try {
        sckClient.close();
    } catch (IOException e1) {
        e1.printStackTrace();
    }
    return;
}

My code get stuck in powerUp without any error or exception. I am using the sample_device and sample_platform that comes with Java Card Development Kit 3.0.5u1

Lungwort answered 16/1, 2017 at 12:1 Comment(5)
Why port 9025, why protocol T=0? Where did you find these values? What tutorial are you following?Erectile
these values are set in the sample_device parametersLungwort
any help please ?Lungwort
I did try disable it but I still can't get it work, my program hang on powerUp ()Lungwort
@Anass Boukalane did u resolved ur issue? same case is with meGaselier

© 2022 - 2024 — McMap. All rights reserved.