This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 177319 - After stop the javacard device, the "resume" is not enabled.
Summary: After stop the javacard device, the "resume" is not enabled.
Status: VERIFIED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 10:18 UTC by lichunzhan
Modified: 2010-01-21 17:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lichunzhan 2009-11-20 10:18:57 UTC
Rgiht click "Default Device", click "start" and then "stop", at this point, the "resume" should be enabled so that the java card can be resumed. The is needed for running javacard samples.
Comment 1 lichunzhan 2009-11-20 11:54:13 UTC
This is for NetBeans IDE Dev 200911190201 and Anki's nbplugin build on 11/17.
Comment 2 lichunzhan 2009-11-20 15:40:32 UTC
This is only for default device. Newly added device is fine.
Comment 3 _ tboudreau 2009-11-26 20:44:27 UTC
Interesting.  Default device is created with prototype values;  new device gets them modified by the customizer.  These should be identical, but it looks like they are not.
Comment 4 _ tboudreau 2009-12-03 18:38:08 UTC
Fixed in main/ 5a61513aaa50
Comment 5 Quality Engineering 2009-12-04 16:15:06 UTC
Integrated into 'main-golden', will be available in build *200912041400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5a61513aaa50
User: Tim Boudreau <tboudreau@netbeans.org>
Log: #177319 - Resume not enabled after stopping card, even when eprom file exists
Comment 6 lichunzhan 2009-12-11 15:35:09 UTC
Hi, Tim. I just downloaded nb nightly and nb javacard plugins. And I still see the problem. Now no matter if it is default device or new device, the resume is not enabled after start and stop.
Comment 7 lichunzhan 2009-12-11 17:31:00 UTC
Here is more info to reproduce:

1. after create new platform device: start then stop, the resume is not enabled.
2. close nb and restart it. Now the resume is enabled. But there is a problem here: the resume is enabled before the "start" is clicked. It should be disabled at beginning and enabled after the start/stop happen.
Comment 8 _ tboudreau 2009-12-11 18:42:18 UTC
> Here is more info to reproduce:

> 1. after create new platform device: start then stop, the resume is not enabled.

If you actually deploy something to a card, then start the card, then I think you will find resume is enabled.  I'm not sure how the RI interacts with it (i.e. perhaps deletes it on exit if unused).

> 2. close nb and restart it. Now the resume is enabled. But there is a problem
> here: the resume is enabled before the "start" is clicked. It should be
> disabled at beginning and enabled after the start/stop happen.

This is normal.  If the e2pfile (the file the RI uses for its virtual eprom data) exists, then Resume should be enabled.  That file is preserved across IDE sessions.  If the file exists, Resume is enabled.  That is what determines if Resume should be enabled - if there is a file recording the memory contents of the card or not.

So, I think this is correct behavior (although I will double check the case that shutdown and restart without deploying anything causes resume to be enabled).
Comment 9 _ tboudreau 2010-01-13 14:22:04 UTC
Per my last comment, closing.  If nothing is ever deployed to the device, then the eeprom file representing its contents is never created.  There is nothing to resume because there is nothing to resume on the card.