连接到模拟器的Java卡失败

我正在尝试测试Java Card小程序以建立与模拟器(如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; } 

我的代码卡在powerUp没有任何错误或exception。 我正在使用Java Card Development Kit 3.0.5u1附带的sample_devicesample_platform