JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java ME、Google Android 平台與 JavaCard 討論區 » Java Card  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 [Java Card]Select AID失敗(NetBeans 8.0.2)
mikechang1224





發文: 3
積分: 0
於 2015-02-26 09:12 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在NetBeans內建立Java CardP專案,
設定Applet AID為 //aid/A000000062/03010C0101,
執行Build And Run 卻Select失敗,回覆 69 99。
但直接把Cap檔安裝到Java Card上測試卻是正常的。
有沒有大大可以幫忙判斷一下,
是IDE哪邊沒有設定好或是少了哪些步驟....

訊息如下:
...(略)
OffCard Installer [v3.0.2]
Copyright (c ) 2009 Sun Microsystems, Inc.
All rights reserved.
Use is subject to license terms.
[ INFO: ] [Creating an instance of tlsjc with instance ID //aid/A000000062/03010C0101 on http://localhost:8019/cardmanager/]
[ INFO: ] "Off Card Installer validating create information"
[ INFO: ] "Off Card Installer preparing create information"
[ INFO: ] "Off Card Installer sending create request"
[ INFO: ] Create failed: null
run-client:
run-script:
Invoking apdutool on C:\Users\mike\Documents\NetBeansProjects\tlsjc/scripts/tlsjc.scr
ApduTool [v3.0.2]
Copyright (c ) 2009 Sun Microsystems, Inc.
All rights reserved.
Use is subject to license terms.
Opening connection to localhost on port 9025.
Connected.
Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x00
CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 0a, a0, 00, 00, 00, 62, 03, 01, 0c, 01, 01, Le: 00, SW1: 69, SW2: 99
run:
BUILD SUCCESSFUL (total time: 11 seconds)
設定如下:



mikechang1224 edited on 2015-02-26 09:17
reply to postreply to post
作者 Re:[Java Card]Select AID失敗(NetBeans 8.0.2) [Re:mikechang1224]
mikechang1224





發文: 3
積分: 0
於 2015-03-02 06:02 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
[錯誤追查更新]
1
2
3
4
5
6
7
8
9
10
import javacard.security.RandomData;
...
 
    protected Testpj() {
        ...
        Rnd = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM); 
    }
    ....
    register();
}

發現會造成OffCard Installer[V3.0.2]Create Failed:null
OffCard Installer [v3.0.2]
Copyright (c ) 2009 Sun Microsystems, Inc.
All rights reserved.
Use is subject to license terms.
[ INFO: ] [Creating an instance of Testpj with instance ID //aid/15AB69750F/74 on http://localhost:8019/cardmanager/]
[ INFO: ] "Off Card Installer validating create information"
[ INFO: ] "Off Card Installer preparing create information"
[ INFO: ] "Off Card Installer sending create request"
[ INFO: ] Create failed: null

若移除這一行,模擬程式則可以正常動作。
上網查詢過可能是沒有支援該Extensions,
請問該如何處置?


reply to postreply to post
» JWorld@TW »  Java ME、Google Android 平台與 JavaCard 討論區 » Java Card

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8