DKA790GX Platinum, Unable to delete Raid set.

Back in mid February I wrote in with an issue regarding side port memory, this problem evolved to where the system would shut down even whilst in Bios. I used your wonderful flash utility to update the Bios from 1.1 to 1.3 and finally to 1.6 with no improvement, thanks again to Bas and Walker X for their kind input.
The board was returned and six weeks later a replacement arrived, this new board is now up and running with a fresh installation of XP pro and latest drivers from MSI.
The problem I have now, two of the samsung drives were setup as Raid 0 on the old board, when connected to the new board, bios changed to accommodate, from boot the drives are scanned and reported as ID 01 Mode 2+0 Raid 0 LD Size 639.99 Track-Mapping 65535/255/63 Functional. when I press Ctrl F to enter fast build utility, I am taken to the Bios setup screen? and not fast build.
Any suggestions would be much appreciated.
I would like to format these drives for re use, can I do this in windows or must I delete Raid set first via fast build utility?
The fresh installation drive is disconnected during the above process.
System spec.
DKA790GX Platinum with 1.6 Bios chip.
AMD Athlon X2 7750BE Retail.
Crucial 2x2GB DDR PC2-8500.
3X Samsung F1 SATA 11 320GB Drives.
Jeantech Orchid 500Watt PSU

Thanks Svet for your fast responce, please excuse my lack of knowledge on Raid, the above was the first Raid set ever configured.
With Raid set to IDE in Bios, this shows as one drive (E) in my computer, do I format this?

Similar Messages

  • Project Management ' unable to delete project set'

    Hi
    we are using oracle11i (11.5.10.2) on windows 2000 server service pack 4,database version 10.2.0.3 and Oracle Project patch set Level 11i.PA.L
    while deleting prject sets we are getting error 'you have gained access to this page using the browser navigation buttons and therefore,cannot make any changes nor take any actions.please click return to portal and access this page using the application navigation'
    Thanks
    Regards
    Umair

    Umair,
    Run the query in the following document to determine the patchset level for Projects on your instance.
    Note: 420715.1 - Release 11i - Maintenance Pack, Patchset, and Rollup Patch Level for Projects
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=420715.1
    Regards,
    Hussein

  • Unable to delete a set of records from PSA

    Hello All,
    I am trying to delete a PSA request (INIT With data transfer) which had about crores of records. But in my PSA, I can still see about 16000 records from the earlier deleted request.
    Please advice as my next INIT is not brininging in any records. the issue is very critical...
    Regards
    Sneha

    Hi,
    Check out for any other History Init Request available in the PSA and delete it. Or use the program - RSAR_PSA_CLEANUP_DIRECTORY to clean the PSA Completely. Next, check out in the InfoPackage menu, Scheduler - > Initialization for source system, whether there is any successful Initialization request is available or not. If available delete the request by selecting delete from all the systems.
    Now, you can again use the Init Infopackage to initialize the delta.
    Regards,
    Geeta

  • Mirrored RAID Set Questions

    I initially set up a mirrored RAID set up on my system drive as a means of backing up my files. I've since decided I'd like to use Time Machine instead. When I try and break up the RAID set using Disk Utility, a lock icon appears next to the RAID set and I'm unable to "delete" the set.  My guess is that I need to reboot off a different system, but since Lion didn't come with an install disc, and since Lion doesn't set up a Recovery HD on RAID sets, how would I go about unlinking this mirrored RAID set?
    Conversely, I inadvertantly unlinked a different RAID set and would like to reconnect them, but Disk Utility says it'll erase all the data on the drives before it establishes the connection.  Is there a way to reconnect a mirrored RAID set that has been disconnected?

    For the first question, go back to the App Store download Lion again but before it begins the install stop the process and create a flash drive installer. See How to make a bootable Lion install disc or drive .
    Remember you have to make sure the install process doesn;t proceed because once Lion is installed the installer app will be removed from your HD.
    Sorry can;t help with the second question.
    regards

  • RAID sets and volumes

    I am trying to set up a RAID5 but am having trouble with the volumes.  My RAID set is 5.23TB but my Volume is only 2TB.  I am creating a second volume of 3.23TB. Is there a way to combine the two volumes into one volume of 5.23TB to match the RAID set?

    Use this guide:
    RAID Utility - User Guide
    To delete a RAID set or a volume:
    1 Open RAID Utility and choose the volume or RAID set in the left column.
    2 Click Delete Volume or Delete RAID Set.

  • Volumes and raid sets disappeared

    I booted my machine and it gave me a question mark folder I booted it off an external drive but the internal bay hdds arent mounting. When I was looking through raid utility it says they are all good and viable disks in roaming but no raid sets or volumes are there anymore. This all happened to my xserve (2008 2.8ghz 4gb ram) Three apple brand hdd at 1TB(in a raid 5 configuration) the os I had installed on the external hdd was 10.5.3..... any ideas or thoughts to getting the raid sets or volumes back.... also Disk utility still doesnt recogonize the three internal bays is that cause for concern or do you have to have a raid set and volume before disk utility to recogonize it. Thank you for your time and insight to my problem!

    Use this guide:
    RAID Utility - User Guide
    To delete a RAID set or a volume:
    1 Open RAID Utility and choose the volume or RAID set in the left column.
    2 Click Delete Volume or Delete RAID Set.

  • Can't Delete RAID

    I have 4 Discs.
    Mirrored raid sets
    One Raid Slice is 'System Mirror'
    One Raid Slice is 'Data Mirror'
    There is a lock symbol on all 4 discs.  Status is online.
    I can't delete the raid sets.  I can't unmount them.  I am the admin but the Disk Utility says  "Deleting RAID set failed.  Deleting RAID set failed with the error:  Invalid Request"

    I had this problem as well. I'm currently on Mountain Lion 10.9.2. No matter what i did i could not get the disk to eject in Disk Utility or delete the RAID set. I had created the 2-drive striped RAID set in 10.8, and at one point had encrypted the disk, then removed the encryption. Not sure any of that is related.
    The log shows I got the following error:
    2014-03-29 11:38:01 -0500: Deleting RAID “TMData”
    2014-03-29 11:38:01 -0500:
    2014-03-29 11:38:01 -0500: Unmounting volume for RAID set DC62E024-130A-4105-993E-D5A9ABB340EB
    2014-03-29 11:38:01 -0500: Can’t unmount RAID set DC62E024-130A-4105-993E-D5A9ABB340EB to delete it
    2014-03-29 11:38:02 -0500: Error deleting RAID: Invalid attempt to unmount a whole disk containing a partition map.
    The only solution I came up with was to physically remove one of the raid drives (they were in a firewire enclosure). I could then erase the other drive in Disk Utility. I then put the removed drive back in. Disk Utility showed the RAID set as offline and I could delete it.
    After deleting it I recreated the RAID and am currently doing a secure erase writing 1 pass of zeros to the whole drive (just to make sure everything is read/writable).

  • How can I mount a Raid set (partition in an external drive)?

    Hi,
    I have 3 partitions in my external drive. I tried to create a concatenated Raid from 2 of the partitions. However, I end up with an offline Raid Slice (one of the partitions is under this slice) which is grayed out in Disk Utility.
    When I try to delete the Raid Set, I get "Deleting RAID set failed. This RAID configuration is not valid" warning. When I try to erase the RAID volume, I get "Volume Erase failed with the error:The chosen size is not valid for the chosen filesystem." warning. I cannot mount the volume either.
    So, I have 2 of the 3 partitions mounted. The 3rd partition (which is under RAID) is unmounted. Do you have any suggestions to have access to the 3rd partition?
    Thanks.

    Why are you trying to RAID two partitions on the same drive? Aside from the fact that it doesn't work it also makes no sense when you can simply create a larger partition by joining the two into one.

  • HT4847 I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do.

    I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do                             

    It still didn't work...
    Within this commonfiles\apple folder, there is only one folder, labeled "Internet Services." Within this folder, there are 6 folders, labeled:
    APLZOD.resources
    BookmarkDAV_client.resources
    CoreDAV.resources
    iCloud.resources
    iCloudServices.resources
    ShellStreams.resources
    Within all but CoreDAV and BookmarkDAV_client, there are multiple different folders, all labeled starting with a two letter (acronym I believe, for different languages) then .lproj (for example, a folder is labeled "ar.lproj".
    In each of the folders of APLZOD.resources, there is a file labeled "APLZODlocalized.dll."
    In all of the folders containing the multiple .lproj folders, there are likewise "name"localized.dll files contained.
    In the BookmarkDAV_client and Core DAV folders, they each contain only one file, "Info.plist"
    I attempted to delete all of these files, and still, the FileAssassin could not delete them. I unlocked one of them for instance, and I tried to delete the file myself (thru windows explorer and just clicking delete), and I still had the same issue of coming eventually to the window requesting me to "try again" to have permission.
    What can I do?? I'd like to avoid Unlocker, but if it really is a reliable and SAFE program, and someone knows a SAFE place to download it from, I'd appreciate it very much so!!
    thanks!!

  • Mirrored RAID set deletion

    Hi all,
    I've set up two USB disks as a mirrored RAID set connected to my MacBook.
    Now, I want to remove this RAID set (since it doesn't work so well for me).
    In the manuals, Disk Utility is said to split nicely a mirrored RAID set, resulting in two disks with the same contents, when removing a mirrored RAID set.
    However, when I try to do it, Disk Utility warns me that all data on the disks will be lost (which should not be the case...).
    I can't afford to loose all data (120GB of photos), and I can't easily make a backup (120GB of data is tough to backup !)
    Who should I trust ? Disk Utility or the manual for Disk Utility ?
    Will my data be lost or not when I delete this mirrored RAID set ?
    I need an authoritative answer... Could someone help me ?
    Thanks,
    Chris

    Thanks for your advice... but if no RAID disk is plugged in, the RAID does NOT show in Disk Utility.
    As I understand it, the partition scheme is different when using RAID... So a disk that is part of a RAID set has to be modified to get out of the mirror...
    But it seems Disk Utility cannot disconnect a single disk from the RAID.
    My RAID is now out of sync, and I won't attempt to resync it again...
    So I would like to remove the whole RAID thing, and just get two disks, one that will be reformated, and one where all the data should be kept...
    Later this week, I'll have access to another (afaik Firewire) disk... So I'll make a backup and simply try to delete the RAID... If it goes wild, I'll have that backup to recover.
    I'll keep you posted if I can.
    However, things should be made clear somewhere : either in the docs or in Disk Utility... I submitted some comments about the documentation on apple's website.
    Bye
    Chris

  • How to delete a RAID set in Disk Utility?

    I set up a mirrored RAID set with two 80GB disks on a 500MHz G4 "sawtooth", then installed Tiger successfully. Statup Disk on the Tiger DVD recognizes it as a valid startup disk, but it won't boot (stays on the white screen with the large apple).
    So, I decided to go back to two separate disks with no RAID, but Disk Utility won't seeem to let me delete a RAID set. It shows the volumes as locked (no apparent way to unlock them), and also doesn't allow me to format the underlying drives (bad file descriptor error).
    Any suggestions on how to undo a RAID set in Tiger?
    Thanks,
    0g
    G4 "Gigabit" Dual-500   Mac OS X (10.4.8)   1.5GB RAM, 1TB internal, SCSI, 802.11g, USB2.0

    Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button. After the menubar appears select Disk Utility from the Utilities menu (Installer menu for Panther.) After DU loads select the main entry of the RAID (the one with the RAID size) then click on the RAID tab in the DU main window. Select the main RAID entry from the icon list (the one that says "Mirrored RAID Set" and should have the word "Online" in green. Then click the Delete button down below the list view.
    Be sure to backup first because this could cause complete loss of data.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Why a Apple RAID controller card cannot delete a RAID set?

    Hi,
    I just have a problem with my RAID set created with RAID Utility.  My configuration is as follows:
         Mac Pro (early 2009 model) 2 x 2.66GHx Quad-Core, 16GB DDR3 1066Mhz Memory
         Apple RAID Card (HW Ver 2.00 and FW Ver E-1.3.20)
         1 x 1TB HD (Apple original) in Bay 1 as boot disk configured as Enhanced JBOD
         3 x 2TB HD (WD black series RE) in Bay 2 to Bay 4 configured as RAID 5
         Mac OS 10.7.4
    The RAID Utility showed the following messages:
    Degraded RAID set RS2 - No spare available for rebuild
    Degraded RAID set RS2 - No spare available for rebuild
    Degraded RAID set RS2
    Drive 3:50014ee20352f5e8 missing - Previous drive status was inuse
    Drive 3:50014ee20352f5e8 failure detected - Primary disk port unusable, previous drive status was inuse
    Furthermore, RAID Utility shows:
    1)  Bay 1 (RS1 boot drive):  Assigned, verified, Status good. viable (good)
    2)  Bay 2 (RS2 RAID 5):  Assigned, verified, Status good, viable (degraded)
    3)  Bay 3 (RS2 RAID 5):  Roaming, verified, Status good
    4)  Bay 4 (RS2 RAID 5):  Assigned, verified, Status good, viable (degraded)
    It also showed "Severe Events" message:  "Degraded RAID set RS2 - No spare available for rebuild."
    I tried to delete the RAID set using Apple RAID Utility but nothing happened.  Can anyone help as I have to rebuild the RAID set from scratch?  Thanks.

    Hi flognoth,
    flognoth wrote:
    I have swapped the drives in bays and it is always bay 2. I'm coming to the conclusion that either the RAID card is failing in bay 2 or there is a Lion / Mountain Lion issue with the RAID card.
    I would say this is not "a Lion / Mountain Lion issue with the RAID card", as I have an "Early 2009 Mac Pro" that is running Snow Leopard (10.6.8), fully patched, that is exhibiting a similar issue, after about 4 years of no such problems.
    My RAID configuration is just like yours: 4x 2TB drives, with Bays 1 & 2 as RAID 1 and Bays 3 & 4 also as RAID 1.  I keep losing either Bay 1 or Bay 2 disk, and after reboot typically see it as a good disk, in the green, but now unassigned to a RAID set, and marked as "Roaming".  When I assign it as a spare, so far the RS1 RAID Set begins to rebuild, and things are okay for a short while.
    Initially this happened about once a month, starting about 3 months ago, now it is a weekly or several times weekly event.
    I've put in new disks (several), restored from a Time Machine backup, and just came in today to find the Bay 2 disk "Roaming".....
    I'm going to try a new Mac Pro RAID card, as I have a spare - just looking for information about whether the replacement RAID card will pick up the RAID sets from info cached on the disks (I hope!), or whether I have to newly create the RAID Sets & Volumes, and then re-populate from Time Machine / the old disks.
    I will say that I've been running 8  "Early 2008 Mac Pro" computers with RAID cards, each configured as above, and 4 "Early 2009 Mac Pro" computers similarly configured. These were all deployed between late 2008 and the beginning of 2010.  I've had little difficulty with them, and they've been wonderful when an actual disk failure has occurred.  I've had about 6 actual disk failures among all these setups.
    cheers!

  • MSI DKA790GX - Platinum + Raid 5

     
    Hi all, I'm new to this in the forums:), my name is Marcos Luburic, and hope to have a good experience with all of you who are part of this forum in its entirety.
    I would like to share with you a case, I've been dragging about 2 years ago from my computer que arme me. We at the beginning, I assemble a PC, and I put the Mother-DKA790GX Platinum MSI, AMD Phenom X3 8650, MSI ATI Radeon HD 4850 heat pipes, 2x2 GB RAM ocz ...
    The question is never, even today, I was clear, and able to do RAID 5 on my system, taking into account ke I have 4 hard disks of 500GB each ...
    elsewhere, appears ke I can use pen drives, a floppy drive, I have to update the BIOS ... many things, and not to do, and 2 years ago that I have a PC, and honestly I'm not making full use as you see ... and the machine was assembled, almost with the thought of him RAID 5 ...
    I hope answers about this, I am aware, and already, THANK YOU!!
    Im From Argentina, Buenos Aires.

    Quote from: MarkitoX on 02-February-11, 22:24:54
    of course, did everything but 1in First, I have the full 64-bit capable system, ie, memory, video card, motherboard, processor, all that is ready for 64 bits, so I should put Windows 7 Ultimate 64-bit?
    It's like I said in my last post. So long as you have 64-bit software to run then go ahead.
    Quote from: MarkitoX on 02-February-11, 22:24:54
    the second, before I bore the logo of the MSI motherboard, the logo of the monster that ... is like now, it takes much longer to load than before, no power to make the sign that says "press Ctrl + F to go Raid options?
    I would say it's normal to take longer now you have RAID enabled.
    Quote from: MarkitoX on 02-February-11, 22:24:54
    and another thing, when the bios environments, there appears no hard drive recognized, only the floppy, the dvd player, and another that says "Raid: Raid Ary 1" and then the other 3 discs rigid or appear, I hope answers, I hope I know how to respond because there is something strange
    I would imagine that because it says, 'RAID: RAID Ary 1', it has combined the drives rather than listed them individually.
    Quote from: MarkitoX on 02-February-11, 22:24:54
    ahh, and to install the windows drivers over raid called "AMD AHCI Compatible RAID Controller" do not know if this good ... and then when we had to press "next" to install windows would not let me, then I did remove the pen drive, and if I let myself go there with installation ... things that do not understand lol
    I'm struggling to understand quite what you mean here.

  • DKA790GX Platinum - How to set new ram to 1066

    I have just put together my new system which consists of:
    AMD Phenom II 940
    DKA790GX Platinum Motherboard
    MSI N9800GT Video Card
    500g Sata Drive
    Kingston HyperX 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Dual Channel
    My problem is I assumed when I installed the ram that the motherboard would automatically set ram to 1066, wrong.  It set it to 800mhz.  I know how to set the dram voltage, but I need someone to tell me how to setup the bios to run the ram at it's correct frequency of 1066.  The info for the ram per kingston site is  5-5-5-15  2.2v  I have tried to read thru all the posts that I could, but I can't get an exact answer on how to do it.  I am asking someone to tell me step by step how to do it in bios with this particular motherboard.  I appreciate any responses to help me out..Thanks

    BIOS, Cell Menu, "FSB/DRAM Ratio" setup to 1:2.66

  • Unable to delete applet.....

    Hi all,
    I am unable to delete one applet which I have loaded in the card.
    There are 2 applets, one is purse and other is loyalty. And am using shareable interface in which loyalty is the server and purse is the client. I can delete the purse applet but i can't delete the loyalty from the card.
    Here is my code : There are in all 3 codes, one is purse, second is loyalty code and third is the shareable interface code. Can some one look at the code and tell me what's wrong in this programs.
    package com.gemplus.examples.loyalty;
    import javacard.framework.*;
    import visa.openplatform.*;
    public class Loyalty extends javacard.framework.Applet implements TestInterface
    static byte points ;
    protected Loyalty(byte[] buffer, short offset, byte length)
    // data offset is used for application specific parameter.
    // initialization with default offset (AID offset).
    short dataOffset = offset;
    if(length > 9) {
    // Install parameter detail. Compliant with OP 2.0.1.
    // | size | content
    // |------|---------------------------
    // | 1 | [AID_Length]
    // | 5-16 | [AID_Bytes]
    // | 1 | [Privilege_Length]
    // | 1-n | [Privilege_Bytes] (normally 1Byte)
    // | 1 | [Application_Proprietary_Length]
    // | 0-m | [Application_Proprietary_Bytes]
    // shift to privilege offset
    dataOffset += (short)(1 + buffer[offset]);
    // finally shift to Application specific offset
    dataOffset += (short)(1 + buffer[dataOffset]);
    // checks wrong data length
    if(buffer[dataOffset] != 4)
    // return received proprietary data length in the reason
    ISOException.throwIt((short)(ISO7816.SW_WRONG_LENGTH + offset + length - dataOffset));
    // go to proprietary data
    dataOffset++;
    // points = 0;
    // register this instance
    register(buffer, (short)(offset + 1), (byte)buffer[offset]);
    * Method installing the applet.
    * @param bArray the array constaining installation parameters
    * @param bOffset the starting offset in bArray
    * @param bLength the length in bytes of the data parameter in bArray
    public static void install(byte[] bArray, short bOffset, byte bLength) throws ISOException
    /* applet instance creation */
    new Loyalty (bArray, bOffset, (byte)bLength);
    * Select method returning true if applet selection is supported.
    * @return boolean status of selection.
    public boolean select()
    /* return status of selection */
    return true;
    * Deselect method.
    public void deselect()
    return;
    public void process(APDU apdu) throws ISOException
              // check valid Applet state
    if(OPSystem.getCardContentState() == OPSystem.APPLET_BLOCKED)
              ISOException.throwIt(ISO7816.SW_COMMAND_NOT_ALLOWED);
                   apdu.setIncomingAndReceive();
              byte[] apduBuffer = apdu.getBuffer();
    // writes the balance into the APDU buffer after the APDU command part
              creditPoints((byte)0x00);     
              apduBuffer[5] = (byte)(points >> 8) ;
              apduBuffer[6] = (byte)points ;
    // sends the APDU response
    // switches to output mode
              apdu.setOutgoing() ;
    // 2 bytes to return
              apdu.setOutgoingLength((short)2) ;
    // offset and length of bytes to return in the APDU buffer
              apdu.sendBytes((short)5, (short)2) ;
         public void creditPoints(byte pTobeCredited)
    points += pTobeCredited;
    public Shareable getShareableInterfaceObject(AID client, byte param){
              if(param != (byte)0x00)
                   return null;
         return (this);
    second code is :
    package com.gemplus.examples.oppurse;
    * Imported packages
    import javacard.framework.*;
    import visa.openplatform.*;
    import com.gemplus.examples.loyalty.*;
    public class OPPurse extends javacard.framework.Applet
    // the APDU constants for all the commands.
         private final static byte INS_GET_BALANCE = (byte)0x30 ;
         private final static byte INS_DEBIT      = (byte)0x31 ;
         private final static byte INS_CREDIT      = (byte)0x32 ;
         private final static byte INS_VERIFY_PIN = (byte)0x33 ;
         private final static byte INS_SET_NAME                    = (byte)0x34 ;
         private final static byte INS_GET_NAME                    = (byte)0x35 ;
    // the OP/VOP specific instruction set for mutual authentication
         private final static byte CLA_INIT_UPDATE = (byte)0x80 ;
         private final static byte INS_INIT_UPDATE = (byte)0x50 ;
         private final static byte CLA_EXTERNAL_AUTHENTICATE = (byte)0x84 ;
         private final static byte INS_EXTERNAL_AUTHENTICATE = (byte)0x82 ;
    // the PIN validity flag
    private boolean validPIN = false;
    // SW bytes for PIN Failed condition
         // the last nibble is replaced with the number of remaining tries
         private final static short      SW_PIN_FAILED = (short)0x63C0;
         private final static short SW_FAILED_TO_OBTAIN_SIO = (short)0x63D0;
         private final static short SW_LOYALTY_APP_NOT_EXIST = (short)0x63E0;
    // the illegal amount value for the exceptions.
    private final static short ILLEGAL_AMOUNT = 1;
    // the maximum balance in this purse.
    private static final short maximumBalance = 10000;
    // the current balance in this purse.
    private static short balance;
    /*     byte[] loyaltyAID = new byte[]{ (byte)0xA0,(byte)0x00,(byte)0x00,(byte)0x00,
              (byte)0x19,(byte)0xFF,(byte)0x00,(byte)0x00,
              (byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00,
              (byte)0x00,(byte)0x00,(byte)0x02,(byte)0x02};*/
    /* Security part of declarations */
    // the Security Object necessary to credit the purse
    private ProviderSecurityDomain securityObject = null;
    // the security channel number
    byte secureChannel = (byte)0xFF;
    // the authentication status
    private boolean authenticationDone = false;
    // the secure channel status
    private boolean channelOpened = false;
         private byte[] nameBuffer = new byte[6];
    * Only this class's install method should create the applet object.
    protected OPPurse(byte[] buffer, short offset, byte length)
    // data offset is used for application specific parameter.
    // initialization with default offset (AID offset).
    short dataOffset = offset;
    if(length > 9) {
    // Install parameter detail. Compliant with OP 2.0.1.
    // | size | content
    // |------|---------------------------
    // | 1 | [AID_Length]
    // | 5-16 | [AID_Bytes]
    // | 1 | [Privilege_Length]
    // | 1-n | [Privilege_Bytes] (normally 1Byte)
    // | 1 | [Application_Proprietary_Length]
    // | 0-m | [Application_Proprietary_Bytes]
    // shift to privilege offset
    dataOffset += (short)( 1 + buffer[offset]);
    // finally shift to Application specific offset
    dataOffset += (short)( 1 + buffer[dataOffset]);
    // checks wrong data length
    if(buffer[dataOffset] != 2)
    // return received proprietary data length in the reason
    ISOException.throwIt((short)(ISO7816.SW_WRONG_LENGTH + offset + length - dataOffset));
    // go to proprietary data
    dataOffset++;
    } else {
    // Install parameter compliant with OP 2.0.
    if(length != 2)
    ISOException.throwIt((short)(ISO7816.SW_WRONG_LENGTH + length));
              // retreive the balance value from the APDU buffer
    short value = (short)(((buffer[(short)(dataOffset + 1)]) & 0xFF)
              | ((buffer[dataOffset] & 0xFF) << 8));
    // checks initial balance value
    if(value > maximumBalance)
    ISOException.throwIt(ISO7816.SW_DATA_INVALID);
              // initializes the balance with the APDU buffer contents
    balance = value;
    // register this instance as an installed Applet
    register();
    // ask the system for the Security Object associated to the Applet
    securityObject = OPSystem.getSecurityDomain();
    // applet is personalized and its state can change
    OPSystem.setCardContentState(OPSystem.APPLET_PERSONALIZED);
    // build the new ATR historical bytes
    byte[] newATRHistory = new byte[]
    // put "OPPurse" in historical bytes.
    (byte)0x4F, (byte)0x50, (byte)0x50, (byte)0x75, (byte)0x72, (byte)0x73, (byte)0x65
    // !!! ACTIVATED IF INSTALL PRIVILEGE IS "Default Selected" (0x04). !!!
    // change the default ATR to a personalized's one
    OPSystem.setATRHistBytes(newATRHistory, (short)0, (byte)newATRHistory.length);
    * Method installing the applet.
    * @param installparam the array constaining installation parameters
    * @param offset the starting offset in installparam
    * @param length the length in bytes of the data parameter in installparam
    public static void install(byte[] installparam, short offset, byte length )
    throws ISOException
    // applet instance creation with the initial balance
    new OPPurse(installparam, offset, length );
    * Select method returning true if applet selection is supported.
    * @return boolean status of selection.
    public boolean select()
    validPIN = false;
    // reset security if used.
    // In case of reset deselect is not called
    reset_security();
    // return status of selection
    return true;
    * Deselect method.
    public void deselect()
    // reset security if used.
    reset_security();
    return;
    * Method processing an incoming APDU.
    * @see APDU
    * @param apdu the incoming APDU
    * @exception ISOException with the response bytes defined by ISO 7816-4
    public void process(APDU apdu) throws ISOException
    // get the APDU buffer
    // the APDU data is available in 'apduBuffer'
    byte[] apduBuffer = apdu.getBuffer();
    // the "try" is mandatory because the debit method
    // can throw a javacard.framework.UserException
    try
         switch(apduBuffer[ISO7816.OFFSET_INS])
    case INS_VERIFY_PIN :
         verifyPIN(apdu);
    break ;
    case INS_GET_BALANCE :
         getBalance(apdu) ;
    break ;
    case INS_DEBIT :
         debit(apdu) ;
    break ;
                        case INS_SET_NAME :
                             setName(apdu);
                        break;
                        case INS_GET_NAME :
                             getName(apdu);
                        break ;
    case INS_CREDIT :
         credit(apdu) ;
    break ;
    case INS_INIT_UPDATE :
    if(apduBuffer[ISO7816.OFFSET_CLA] == CLA_INIT_UPDATE)
    // call initialize/update security method
         init_update(apdu) ;
    else
    // wrong CLA received
    ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
    break ;
    case INS_EXTERNAL_AUTHENTICATE :
    if(apduBuffer[ISO7816.OFFSET_CLA] == CLA_EXTERNAL_AUTHENTICATE)
    // call external/authenticate security method
         external_authenticate(apdu) ;
    else
    // wrong CLA received
    ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
    break ;
    case ISO7816.INS_SELECT :
    break ;
    default :
    // The INS code is not supported by the dispatcher
         ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED) ;
    break ;
         }     // end of the switch
    } // end of the try
              catch(UserException e)
    // translates the UserException in an ISOException.
              if(e.getReason() == ILLEGAL_AMOUNT)
    throw new ISOException ( ISO7816.SW_DATA_INVALID ) ;
    //- P R I V A T E M E T H O D S -
         * Handles Verify Pin APDU.
         * @param apdu APDU object
         private void verifyPIN(APDU apdu)
    // get APDU data
              apdu.setIncomingAndReceive();
    // get APDU buffer
    byte[] apduBuffer = apdu.getBuffer();
    // check that the PIN is not blocked
    if(OPSystem.getTriesRemaining() == 0)
    OPSystem.setCardContentState(OPSystem.APPLET_BLOCKED);
    // Pin format for OP specification
    // |type(2),length|nible(1),nible(2)|nible(3),nible(4)|...|nible(n-1),nible(n)|
    // get Pin length
    byte length = (byte)(apduBuffer[ISO7816.OFFSET_LC] & 0x0F);
    // pad the PIN ASCII value
    for(byte i=length; i<0x0E; i++)
    // only low nibble of padding is used
    apduBuffer[ISO7816.OFFSET_CDATA + i] = 0x3F;
    // fill header TAG
    apduBuffer[0] = (byte)((0x02 << 4) | length);
    // parse ASCII Pin code
    for(byte i=0; i<0x0E; i++)
    // fill bytes with ASCII Pin nibbles
    if((i & 0x01) == 0)
    // high nibble
    apduBuffer[(i >> 1)+1] = (byte)((apduBuffer[ISO7816.OFFSET_CDATA + i] & 0x0F) << 4);
    else
    // low nibble
    apduBuffer[(i >> 1)+1] |= (byte)(apduBuffer[ISO7816.OFFSET_CDATA + i] & 0x0F);
    // verify the received PIN
    // !!! WARNING PIN HAS TO BE INITIALIZED BEFORE USE !!!
    if(OPSystem.verifyPin(apdu, (byte)0))
    // set PIN validity flag
    validPIN = true;
    // if applet state is BLOCKED then restore previous state (PERSONALIZED)
    if(OPSystem.getCardContentState() == OPSystem.APPLET_BLOCKED)
    OPSystem.setCardContentState(OPSystem.APPLET_PERSONALIZED);
    return;
         // the last nibble of returned code is the number of remaining tries
              ISOException.throwIt((short)(SW_PIN_FAILED + OPSystem.getTriesRemaining()));
    * Performs the "getBalance" operation on this counter.
    * @param apdu The APDU to process.
    private void getBalance( APDU apdu )
    // check valid Applet state
    if(OPSystem.getCardContentState() == OPSystem.APPLET_BLOCKED)
                   ISOException.throwIt(ISO7816.SW_COMMAND_NOT_ALLOWED);
    // get the APDU buffer
    byte[] apduBuffer = apdu.getBuffer();
    // writes the balance into the APDU buffer after the APDU command part
              apduBuffer[5] = (byte)(balance >> 8) ;
              apduBuffer[6] = (byte)balance ;
    // sends the APDU response
    // switches to output mode
              apdu.setOutgoing() ;
    // 2 bytes to return
              apdu.setOutgoingLength((short)2) ;
    // offset and length of bytes to return in the APDU buffer
              apdu.sendBytes((short)5, (short)2) ;
         private void setName(APDU apdu)
              // check valid Applet state
    if(OPSystem.getCardContentState() == OPSystem.APPLET_BLOCKED)
                   ISOException.throwIt(ISO7816.SW_COMMAND_NOT_ALLOWED);
              // the operation is allowed only if master pin is validated
         if(!validPIN)
    ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
              byte[] apduBuffer = apdu.getBuffer();
              apdu.setIncomingAndReceive();     
              for(short i=0,k=5;i<6;i++,k++)
                   nameBuffer[i] = apduBuffer[k];
         }//end of setName
         private void getName(APDU apdu)
              // check valid Applet state
    if(OPSystem.getCardContentState() == OPSystem.APPLET_BLOCKED)
                   ISOException.throwIt(ISO7816.SW_COMMAND_NOT_ALLOWED);
                   byte[] apduBuffer = apdu.getBuffer();
                   for(short i=5, k=0;i<11;i++,k++)
                        apduBuffer=nameBuffer[k];
                   apdu.setOutgoing();
                   apdu.setOutgoingLength((short)6);
                   apdu.sendBytes((short)5,(short)6);
         }//end of storeName
    * Performs the "debit" operation on this counter.
    * @param apdu The APDU to process.
    * @exception ISOException If the APDU is invalid.
    * @exception UserException If the amount to debit is invalid.
    private void debit(APDU apdu) throws ISOException, UserException
    // check valid Applet state
    if(OPSystem.getCardContentState() == OPSystem.APPLET_BLOCKED)
                   ISOException.throwIt(ISO7816.SW_COMMAND_NOT_ALLOWED);
    // the operation is allowed only if master pin is validated
         if(!validPIN)
    ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
    // get the APDU buffer
    byte[] apduBuffer = apdu.getBuffer();
         // Gets the length of bytes to recieved from the terminal and receives them
    // If does not receive 4 bytes throws an ISO.SW_WRONG_LENGTH exception
              if(apduBuffer[4] != 2 || apdu.setIncomingAndReceive() != 2)
              ISOException.throwIt(ISO7816.SW_WRONG_LENGTH) ;
              // Reads the debit amount from the APDU buffer
    // Starts at offset 5 in the APDU buffer since the 5 first bytes
    // are used by the APDU command part
              short amount = (short)(((apduBuffer[6]) & (short)0x000000FF)
    | ((apduBuffer[5] << 8 ) & (short)0x0000FF00));
    // tests if the debit is valid
    if((balance >= amount) && (amount > 0))
    // does the debit operation
    balance -= amount ;
    // writes the new balance into the APDU buffer
    // (writes after the debit amount in the APDU buffer)
    apduBuffer[7] = (byte)(balance >> 8) ;
    apduBuffer[8] = (byte)balance ;
    // sends the APDU response
    apdu.setOutgoing() ; // Switches to output mode
    apdu.setOutgoingLength((short)2) ; // 2 bytes to return
    // offset and length of bytes to return in the APDU buffer
    apdu.sendBytes((short)7, (short)2) ;
              /*short points = 10;
    AID loyaltyID = JCSystem.lookupAID(loyaltyAID, (short)0, (byte)loyaltyAID.length);
              if(loyaltyID == null)
                   ISOException.throwIt((short)(SW_LOYALTY_APP_NOT_EXIST));
              TestInterface sio = (TestInterface)(JCSystem.getAppletShareableInterfaceObject(loyaltyID, (byte)0x00));
              if(sio == null)
                   ISOException.throwIt((short)(SW_FAILED_TO_OBTAIN_SIO));
              sio.creditPoints(points);*/
    else
    // throw a UserException with illegal amount as reason
    throw new UserException(ILLEGAL_AMOUNT) ;
    /* byte points = (byte)0x0A;
              //short points = 10;
    AID loyaltyID = JCSystem.lookupAID(loyaltyAID, (short)0, (byte)loyaltyAID.length);
              if(loyaltyID == null)
                   ISOException.throwIt((short)(SW_LOYALTY_APP_NOT_EXIST));
              TestInterface sio = (TestInterface)JCSystem.getAppletShareableInterfaceObject(loyaltyID, (byte)0x00);
              if(sio == null)
                   ISOException.throwIt((short)(SW_FAILED_TO_OBTAIN_SIO));
              sio.creditPoints(points);*/
    * Performs the "credit" operation on this counter. The operation is allowed only
    * if master pin is validated
    * @param apdu The APDU to process.
    * @exception ISOException If the APDU is invalid or if the amount to credit
    * is invalid.
    private void credit(APDU apdu) throws ISOException
    // check valid Applet state
    if(OPSystem.getCardContentState() == OPSystem.APPLET_BLOCKED)
                   ISOException.throwIt(ISO7816.SW_COMMAND_NOT_ALLOWED);
    // the operation is allowed only if master pin is validated and authentication is done
         if (!validPIN || !authenticationDone)
    ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
    // get the APDU buffer
    byte[] apduBuffer = apdu.getBuffer();
              // gets the length of bytes to recieved from the terminal and receives them
    // if does not receive 2 bytes throws an ISO.SW_WRONG_LENGTH exception
              if(apduBuffer[4] != 2 || apdu.setIncomingAndReceive() != 2)
    throw new ISOException(ISO7816.SW_WRONG_LENGTH) ;
              // reads the credit amount from the APDU buffer
    // starts at offset 5 in the APDU buffer since the 5 first bytes
    // are used by the APDU command part
              short amount = (short)(((apduBuffer[6]) & (short)0x000000FF)
    | ((apduBuffer[5] << 8) & (short)0x0000FF00));
    // tests if the credit is valid
    if(((short)(balance + amount) > maximumBalance) || (amount <= (short)0))
    throw new ISOException(ISO7816.SW_DATA_INVALID) ;
    else
    // does the credit operation
    balance += amount ;
    * Performs the "init_update" security operation.
    * @param apdu The APDU to process.
    private void init_update( APDU apdu )
    // receives data
    apdu.setIncomingAndReceive();
    // checks for existing active secure channel
    if(channelOpened)
    // close the openned security channel
    try
    securityObject.closeSecureChannel(secureChannel);
    catch(CardRuntimeException cre2)
    // channel number is invalid. this case is ignored
    // set the channel flag to close
    channelOpened = false;
    try
    // open a new security channel
    secureChannel = securityObject.openSecureChannel(apdu);
    // set the channel flag to open
    channelOpened = true;
    // get expected length
    short expected = apdu.setOutgoing();
    // send authentication result
    // expected length forced to 0x1C
    apdu.setOutgoingLength((byte)0x1C);
    apdu.sendBytes(ISO7816.OFFSET_CDATA, (byte)0x1c);
    catch(CardRuntimeException cre)
    // no available channel or APDU is invalid
    ISOException.throwIt(ISO7816.SW_CONDITIONS_NOT_SATISFIED);
    * Performs the "external_authenticate" security operation.
    * @param apdu The APDU to process.
    private void external_authenticate( APDU apdu )
    // receives data
    apdu.setIncomingAndReceive();
    // checks for existing active secure channel
    if(channelOpened)
    try
    // try to authenticate the client
    securityObject.verifyExternalAuthenticate(secureChannel, apdu);
    // authentication succeed
    authenticationDone = true;
    catch(CardRuntimeException cre)
    // authentication fails
    // set authentication flag to fails
    authenticationDone = false;
    // close the openned security channel
    try {
    securityObject.closeSecureChannel(secureChannel);
    } catch(CardRuntimeException cre2) {
    // channel number is invalid. this case is ignored
    // set the channel flag to close
    channelOpened = false;
    // send authentication result
    ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
    // send authentication result
    ISOException.throwIt(ISO7816.SW_NO_ERROR);
    else
    ISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
    * The "reset_security" method close an opened secure channel if exist.
    * @return void.
    public void reset_security()
    // close the secure channel if openned.
    if(secureChannel != (byte)0xFF)
    try
    // close the openned security channel
    securityObject.closeSecureChannel(secureChannel);
    catch(CardRuntimeException cre2)
    // channel number is invalid. this case is ignored
    // reset security parameters
    secureChannel = (byte)0xFF;
    channelOpened = false;
    authenticationDone = false;
    return;
    and the 3rd code is:
    package com.gemplus.examples.loyalty;
    import javacard.framework.Shareable;
    public interface TestInterface extends Shareable
    // public void creditPoints(byte points) ;
              public void creditPoints(byte points) ;
    Thanks in advance......

    Thanks. I know they are not the same thing. A package cannot be deleted if it contains one or more applets.
    I tried to delete by typing in the applet AID first, but it just doesn't work. And of course it doesn't work for package AID.
    Both the package and applet AID are generated in JBuilder, which looks like this, package AID(6D 79 70 61 63 6B 61 67 31),
    applet AID(6D 79 70 61 63 30 30 30 31),
    instance AID(6D 79 70 61 63 30 30 30 31)
    I've tried those three AIDs, it's not working.
    Thanks.

Maybe you are looking for

  • Successful downgrade from Lion to Snow Leopard?

    I will get to my question at the end, but first I must explain the situation: I have an MBP Intel Core 2 Duo, circa 2006. The case was falling apart so I bought a new MBP Intel Core i7, September 2011 model. The new MBP came with Lion, which to my ho

  • Video files with .cfm extensions

    A website has some video with .cfm extension but when I try to view them the Quicktime symbol appears then I just get a blank screen. Does anyone know how I can get these videos to play

  • How do u send the SOAP request to Siebel On Demand from Siebel on premise?

    Hi, I am trying to integrate my on premise Seibel with Siebel on Demand. The session id is generated properly after logging in. A SOAP request is generated as follows <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://sch

  • Hotmail emails not being sent

    I went through my junk email folder (msn.com) last week and mistakenly clicked on a link which looked like it was sent from best buy.  I noticed after it was too late that it was not from best buy.  This scared me so I cleaned out some of my contacts

  • OPEN DATASET code

    Hi all, I have the following code to output data. OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE encoding default. my question is what the format of output file should be? Is there any specific requirement? And if I run this code successfully, I shoul