Unable to Delete an Event in "Watch Me Do"
Trying to develop a "Workflow" for Get-Webmail. Have actions as follows:
Launch Application - Safari.app
Get Specified URLs
https://login.bluehost.com/... (address 1)
https://login.bluehost.com/... (address 2 )
Watch Me Do (Record button)
Click the "Login" button. (to activate Safari because I'm in Automator)
Click the "Login" button. (this should start executing when workflow is Saved, plus remainder of Events)
etc.
I highlighted "Event 1" & hit the Delete key & the Action, Watch Me Do disappeared!! According to everything I've read the Event is supposed to disappear. Can you help??
OS X is Version 10.9.5 on an iMac.
Thanks
I was hitting the wrong Delete key!! Not the Delete key above the Return key. This does work. I also redid the whole workflow by immediately hitting the Record button, which solved the problem. A valuable learning experience.
Problem resolved!! Gary Rosenzweig, Macmost.com, identified this problem.
Similar Messages
-
User unable to delete calendar event "unknown error"
User is running Outlook 2013 home business, and she has a calendar entry that is linked to another mailbox .
When I browse this mailbox from OWA or Outlook client i cannot see this calendar entry.
When the user tried to delete the entry, they receive warning "unknown error" .
It appears the calendar entry is somehow linked to her Outlook profile.
How can i reset this entry without recreating her profile?
RegardsHi
It is a recurring appointment. When you double click on the appointment it states "This is on appointment in a series. What do you want to open?" Click The entire series , and it opens the appointment in READ ONLY mode. When you click Delete
, it throws unknown error.
i have tried the following commands;
Outlook /cleansharing
outlook /cleanreminders
outlook
/cleandmrecords
outlook
/cleanfreebusy
outlook
/cleanprofile
none of which have removed this entry.
I have even tried creating another profile for the user, and this reoccurring appointment is still visible.
The appointment isn't visible on the mailbox where it was created nor is it visible when viewing both mailboxes on OWA.
here is a screen shot showing the issue. -
i currently have a calendar synced that has events scheduled in perpetuity, scheduled as individual events. I would like to delete all events with the same title. I do not want to delete the entire calendar nor do I want to go into every event and delete individually. These were not scheduled by me so I do not know how they were added one by one and go on forever but they are NOT scheduled as reoccurring and thus must be modified individually.
I can do a search and find all events, is there a way to just delete all events with the same title all at once?
this is a Microsoft outlook synced calendar and I am seemingly unable to delete the events all at one time from Microsoft as well.
Please help!If you still have access to the Outlook calendar in Outlook, I would delete them from there. There are a number of ways to do that, but if you open the individual event in Outlook, does it show a repeating pattern? If not, then you may have to delete them individually, but that is not that difficult either. Go into the calendar and then change the view to a list view. From there you can sort the view according to subject. This should bring all of these same appointments together in the list and you can select the group in Outlook and delete them. Once you do that, you can change your view back and then sync the phone. That will remove the events from the phone.
-
ICal on Mavericks is unable to delete events on my CalDav calendar
Dear Apple Support Community,
if somebody else experience the same problem: iCal that comes with Mavericks is unable to delete event on a shared CalDav-based calendar (creating a new and editing works). Any help appreciated.
RegardsHi joelee42,
If you are having issues with your iPhone's Calendar application becoming unresponsive or quitting when your attemp to delete an event, you may want to try some things to troubleshoot.
First, quit all running applications and test again -
Force an app to close in iOS
Next, I would try restarting and if needed resetting the iPhone -
Restart or reset your iPhone, iPad, or iPod touch
If the issue is still present, you may want to restore the iPhone as a new device -
How to erase your iOS device and then set it up as a new device or restore it from backups
Thanks for using Apple Support Communities.
Best,
Brett L -
Unable to delete events?
The response is: "Move Failed, This file could not be moved: (Insufficient access privileges for operation )
Had a recent crash, and so many of my movie files are missing. I just upgraded to IMovie11. Should I just delete them from the Finder?Hi joelee42,
If you are having issues with your iPhone's Calendar application becoming unresponsive or quitting when your attemp to delete an event, you may want to try some things to troubleshoot.
First, quit all running applications and test again -
Force an app to close in iOS
Next, I would try restarting and if needed resetting the iPhone -
Restart or reset your iPhone, iPad, or iPod touch
If the issue is still present, you may want to restore the iPhone as a new device -
How to erase your iOS device and then set it up as a new device or restore it from backups
Thanks for using Apple Support Communities.
Best,
Brett L -
Logical time in deleted time events - RPUAUD00
Dear All,
We are using standard report RPUAUD00 to read deleted time events (Infotype 2011) from system. In certain cases, deletion entries are displayed without any entry for field LTIME (Logical Time). Can any one throw some light, as of why and how this LTIME entry is not logged in change log?
Thank you.
Regards,
KartikDear All,
We tried replicating this behaviour, but unable to. Any thoughts on this behaviour please..
Regards,
Kartik -
BOBJ is unable to delete file from OFRS
System Info:
Business Objects Enterprise XI3.1 SP3 FP3.2
Windows 2003 Server Enterprise Edition SP3
Oracle 10.2
Java 1.6.0_20
APACHE Tomcat 5.5.20
2 clustered servers
FRS located on SAN Disk Drive connected to primary server (Winchester1)
We use WebIntelligence exclusivly.
We are receiving the following error in our event log on our clustered server:
Source: BusinessObjects_CMS
Category: General
Type: Warning
Event ID: 33018
Computer: Winchester2
Unable to delete file from the file repository. Make sure a File Repository Server is running and registered and enabled. Details : Failed to connect to the File Repository Server output. Make sure the server is up and running.
We have verified the FRS is running and we are able to connect to it from our clustered server (Winchester2). The security settings are set to full control for the admin group and the users have Read/Write access to the file store folders. The errors are filling up our event logs and causing issues with the servers. this appears to be happening each morning and the file it is trying to delete is an .xls file.
We have a ticket open with SAP Support but they are just as baffled as we are and keep sending us from one group to another and tell us they need to look at it on thier end and they will get back to us.
Has anyone had this happen on their system?Hi Richard, did you ever get this issue resolved? We are having a similar issue on XI R3 SP4 using NAS/CIFS shares for our File Stores. We see this issue mainly after our servers are patched and a full environment restart is initiated. Like you, our event logs fill up with so many error messages I cannot pinpoint exactly when the issue starts happening.
Any help would be much appreciated. -
Unable to delete emails from care4free using thunderbird
I have just bought an imac and have transfered my thunderbird account from my old pc. I am unable to delete messages from my care4free POP account. Anyone help with this please?
Problems associated with deleting or moving email usually stem from failure to compact mail
folders, especially inboxes. This is because deleted email is not removed from the
application until you compact (expunge is the technical term). This can be done
automatically by a setting in your email account. Manually is simple enough. On any mail
folder do this: right click/compact (or File/Compact Folders). This is especially important
on inboxes but also, any folder from which you regularly delete/move email.
If you are experiencing problems you probably have a lot of uncompacted mail so be patient
the first time and watch the activity bar for its status (at the bottom of the application).
Mario Pauls
Running Thunderbird 24.3.0
Windows Vista Home Premium
Used Thunderbird with Lightning integrated since 2005
Find more useful info here:
http://forums.mozillazine.org/viewtopic.php?f=39&t=2638361
rais
Posts: 951
Joined: May 25th, 2011, 8:57 pm
Post Posted January 7th, 2013, 6:47 pm
two things just for starters:
Archive all the mail currently in the Inbox
http://kb.mozillazine.org/Archiving_your_e-mail
enable AutoCompact
http://kb.mozillazine.org/Compacting_fo ... omatically
Last edited by rais on January 8th, 2013, 3:01 am, edited 1 time in total. -
ICal Help Needed! (cannot delete calendars/events on computer and iPhone)
Hi Everyone,
I need some help with my iCal. Background info:
-Currently have an iPhone 3GS
-Using Google Calendar
-Use separate calendar on iPhone (Pocket Informant)
-Wanted to sync all event from Outlook to Google Calendar to iCal to two calendars on phone (this became an issue with alarms so began attempting to delete all events from the original iPhone calendar that I do not want to use)
I started by syncing my Outlook (one way) with my Google Calendar, which syncs with the iCal on computer and Pocket Informant on iPhone, as well as iCal on iPhone. Duplicate alarms started occurring on the phone (PI and iCal). I then attempted to delete all events from the iCal on the computer. One calendar remains, one that I subscribed to from Yahoo Sports. I have tried everything to delete this calendar, but it seems impossible. After I sync the phone, the subscribed calendar shows up as well as birthdays and one calendar from my Google Calendar, on my phone.
So, the issues, and what I would eventually like to see:
1. I would like all events cleared from iCal on computer (currently just subscribed calendar that will not delete)
2. I would like to delete all events from calendar on phone (subscribed calendar, birthdays, and one calendar from Google) *I cannot even delete these events by hand on my phone.
3. In the end I would like to just continue to sync Outlook with Google which syncs with PI and then do nothing with iCal (on phone and computer) *Well really I would like events from Google synced with iCal on computer, but this doesn't seem feasible so I would settle with not using it at all.
The only thing I can think of to do at this point is to delete iCal, but I am not even sure this would correct the calendar issue on my phone as I am unable to delete that and the sync does not seem to be working correctly.
Any help on this would be much appreciated!
Thank you in advance!!The edit feature was working correctly with the calendars and stopped. Performed a sync through iTunes removing syncing preferences first. Did not resolve the issue. I am considering restoring the iphone.
-
I updated iTunes to 11 and now I am unable to delete anything!! Very annoyed and I hate iTunes updates anymore. It shows a cloud with an arrow for me to download and I dont want to download the items..I already have them! How can I delete this garbage??
I have the same problem. It's showing old podcasts that are available for download and I already watched and I don't want to see them again and I don't want them listed in my iTunes. This latest upgrade is a piece of junk so far. It destroyed my itunes podcast listing on my Windows Machine. I have no intentions of upgrading to iOS7 or my Mac until I hear that things are fixed.
-
Unable to delete rejected clips
When I click on "Move Rejected to Trash" it says "Unable to delete rejected clips." The clips are not from any event, as they are clips from iPhoto Videos. I've searched around the Discussions but couldn't find an answer. Anyone have any insight?
Thanks!iMovie will only delete clips that it "owns". To delete iPhoto clips, you must delete them in iPhoto. I don't know any way to delete partial clips in iPhoto.
You could export the clips from iPhoto and convert them to an iMovie compatible format using a tool like MPEG Streamclip. Then import into iMovie. Then you can reject clips and delete them. -
Unable to delete file from trash because it's "in use" not locked.
I'm unable to delete a file from trash. I keep getting the following message: "The operation can’t be completed because the item is in use." I've confirmed the file isn't locked and I've tried renaming it but still no luck. I'm running OSX 10.8.4. Any thoughts?
Check the 'More Like This' discussions on the right hand column. I suspect you may find the answer there.
Ciao. -
How to delete duplicate events in iCal
Somewhere along the line of upgrading, syncing, etc. with MobileMe we had, no joke, thousands of the same events duplicated. We started out trying to shift-click to delete multiple events at a time, but since it is syncing with MobileMe everytime this is done, it was taking forever. So, I went to View menu, Show Search Results. Then, did a search in the top right corner of iCal. All the duplicates appeared in the Search Results screen at the bottom of the pane. Then, within that pane, you can shift click and delete all/multiple events more easily - way more easily. Hope it helps someone.
Thats a good tip Reggie.
For anyone else reading this post, keep in mind that if you see "duplicates" with the MobileMe calendar it may mean you are seeing two separate copies of the same calendar. Before spending time deleting individual events read this article: http://support.apple.com/kb/TS3505 -
How do I restore events in my iCal and iCloud? I was deleting particular events that weren't relevant to that week and then all of the events in that category have disappeared. I want them back. How do I do this?
did you ever get an answer? The same thing just happened to me!
-
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
-
No Revaluation Amount being posted in CKMLCP
Hello, Please find the issue in more details. We are performing CKMLCP for marking prices. After this process we are releaseing the price for next period through CKME. The revaluation amount is showing zero values despite of having some movement in s
-
Imac wakes from sleep but is unresponsive
My i5 imac with 10.6.8 has recently and randomly started being unresponsive upon waking from sleep. it does not happen all of the time and I can't find a combo of apps or other events that cause the issue to happen. it's only been in the last few wee
-
Why can't I point the Video Importer to a specific USB drive directory
When I (am force) to use the Video Importer (because my clips are on a USB drive) it seems to find and select all videos on this USB drive. This is not what I want. I want to browse to the directory (on the USB drive) that I created. It contains t
-
Experts, I have a exportCollectionActionListener to download table data in excel format. The issue is when i try to download in IE 8, i get the security message by internet explorer and the download doesn't happen. Any ideas on this ? Partial submit
-
When sending document to printer it now says waiting
when sending photos or document to my printer, i now get a message in my print center that says waiting. I have been able to print