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 177997 - "Unload" command doesn't work
Summary: "Unload" command doesn't work
Status: RESOLVED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
: 177843 178027 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-02 08:26 UTC by dkuzmin
Modified: 2010-03-30 18:04 UTC (History)
1 user (show)

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 dkuzmin 2009-12-02 08:26:20 UTC
Create classic applet project. Add one line to process() method:

    public void process(APDU apdu) {
        ISOException.throwIt((short) (0x9001));
    }

Run it. Right click on project entry and select "unload". Console output:

init-platform-properties:
Using JavaCard Platform Definition at C:\Users\<user>\.netbeans\dev\config\Services\Platforms\org-netbeans-api-java-Platform\javacard_default.jcplatform
Java Card Home is <dir> (Java Card Platform)
init-ri-properties:
init-device-properties:
Platform device property name is jcplatform.javacard_default.devicespath
Computed device folder path is C:\Users\<user>\.netbeans\dev\config\org-netbeans-modules-javacard\servers\javacard_default
Platform device file path property name is C:\Users\<user>\.netbeans\dev\config\org-netbeans-modules-javacard\servers\javacard_default\Default Device.jcard
Deploying to device Default Device http port 8019
init-keystore:
Keystore is <dir>/samples/keystore/a.keystore
unload-bundle:
unload-dependencies:
BUILD SUCCESSFUL (total time: 0 seconds)

So, installer wasn't invoked. Right click on APDU script and select "Send To Card", output is:

CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 06, 64, 3f, 53, ce, 15, 45, Le: 00, SW1: 90, SW2: 01

So, applet still can be selected. "Unload" doesn't work.

Build used is #52.
Comment 1 _ tboudreau 2009-12-03 15:04:21 UTC
Assigning to Anki, as this has to be an issue in the RI or Ant tasks.  Unloading works fine with the Oberthur card.
Comment 2 _ tboudreau 2009-12-03 15:06:02 UTC
*** Bug 177843 has been marked as a duplicate of this bug. ***
Comment 3 msmirnov 2010-03-17 09:27:47 UTC
The issue is in Unload task implementation.
Comment 4 msmirnov 2010-03-17 09:30:22 UTC
Issue is fixed by adding super.execute() call to UnloadTask.execute() method. Fixed in nbtasks.jar
Comment 5 msmirnov 2010-03-17 11:14:47 UTC
*** Bug 178027 has been marked as a duplicate of this bug. ***
Comment 6 _ tboudreau 2010-03-30 18:04:12 UTC
Fixed with updated Ant tasks jar.