Unable to delete dead instances
Due to somethin g wrong happened (shuch as an abnormal end or crash), it seems that the oidmon tables contain wrong information.
Now trying to stop oidmon also tries to stop non-existing processes. And so oidmon hangs.
Here are messages displayed in oidmon log:
2001/06/29::11:01:24: Could not delete the Instance
2001/06/29::11:01:24: OIDLDAPD Instance 2 deletion failed
2001/06/29::11:01:24: Cannot Stop server instances with PID 0
2001/06/29::11:01:24: Deleting OIDLDAPD instance 4 from Process table
2001/06/29::11:01:24: Instance cn=instance4,cn=osdldapd,cn=subregistrysubentry not found.
I'm looking for any method to refreshing info for oidmon, thus seeting its internal tables into consitent state.
hi,
Try restarting your oidctl processes with
the argument flags=" -f" on the oidctl command line. Use other arguments to oidctl as you did previously, before the processes were killed abnormally.
eg,
oidctl connect=xxxxxx server=oidldapd instance=4 flags=" -f" start
The -f flag means "force" this command to overwrite oid info in the database.
Similar Messages
-
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. -
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!! -
Unable to delete file on NW6.5 sp8.
I'm unable to delete a file on a NW6.5 sp8 server.
This is only a copy, so it's not mission critical, but it's starting to frustrate the hell out of me!
A colleague was given a helpdesk problem about a misbehaving pdf, he made a copy of the pdf in a different directory to do some testing but now finds that he cannot delete this copy!
I've tried deleting it using Windows Explorer, Dos, Filer.Exe, Console One, and possibly one or 2 others. I get various errors but they all seem to infer that either I'm using a user who doesn't have the necessary rights (I'm using our standard admin user, so that shouldn't be the problem) or that the file is in use by others. Using the JRBUtil 'Openfile.exe', I find that the file is being used by 4 instances of my admin user.
If I try and disconnect these instanceswith 'Openfile.exe', I get confirmation that the connections have been terminated, but I'm still not able to delete the file. If I go back to 'Openfile.exe' it tells me that the same 4 connections (same connection numbers throughout) are still in use! If I try to close the connections using the Console Monitor then it appears to close the connections, they disappear from the list and if I re-check then they are still not visible, but if I go back to 'Openfile.exe' then it reports that the connections are still current! I've tried using iManage to close the connections, but with no success!
The server in question is our main data server so the chances of rebooting it just because it 'may' fix this problem is unlikely to happen.
Again it's only a copy and not mission critical, but it would be good to find an answer to this. So, is there a command or utility that will just delete a file when asked?
Many thanks
Ian.Originally Posted by dgersic
On Tue, 27 Sep 2011 10:56:02 +0000,
If the server thinks the file is open / locked, you will not be able to
delete it without resolving that first. You could try dismounting the
volume, which should force the OS to close the file.
David
I think that it is this open / locked issue that is causing the problem. The idea of dismounting the volume sounds like a less brutal version of my original idea of having to reboot the server to clear the connections.
However, as I said to Tom above, I've got to try and get this past the server admin, and as this is only a copy on our main data server which is in constant use, I'm not sure that I'll get permission to try this. Unfortunately I think that I may have to accept that I'll have to wait until the server is taken down for a more important reason. Frustrating, but that's life.
So, thanks to all who replied and for the suggestions. I'll certainly log them for future use, so if nothing else this has been a good learning experience for me.
Ian
(Now I've just got to work out how to close this thread!) -
"unable to delete" file on 6267
I have a Nokia 6267 S40 phone made for Malaysia and I am in the US.
I’ve got a file that I cannot delete from the phone memory (no mem card) which seems to be causing problems in other applications. It is a downloaded video file with the extension .3gp.
When I try to delete it, I get the message “unable to delete” or if I mark it and I try to “delete marked” I get the message “item being used by another application”.
When I try to open the file, the phone locks up, then I have to remove the battery.
I am unable to rename the file, I get the message: “unable to rename”.
If I try to move the file and get message “file in use, unable to move”.
Sometimes I cannot even open the “gallery,” and get the message “file system is busy”
Other problems:
Cannot access the internet, the phone tries, but does not get past “processing data” then if I try to exit, phone locks up.
Cannot open any applications, however I can open the folders
Calculator will not open
Games will not open
Cannot save a note, will edit but not save, phone locks up if I try to save, same happens with the calander.
I’ve tried restoring the factory settings, both “settings only” and “restore all.” In both instances this message appears, “Restoring settings. Please wait.” And I wait and wait and wait…and then I remove the battery and try something else.
The only way I seem to be able to do anything with this particular file is if I am able to open the “gallery,” highlight the file, select options, select use video clip--as contact video then go into that contact and choose to edit—then I can view the video.
I have tried using PC Suite also, with the same results. When I try to delete from file manager I get this error: “Operation failed. A file or folder you are trying to delete, rename, move or copy is protected from access.”
Please help.It seems that this file got corrupted. An advice: never download and save files into the cellfone memory. Save them in the memory card to avoid these problems.
If there is a nokia care centre in the USA, better take it now. Or try to upgrade (not a sure thing that fix the problem)
Sharing is Good!!!
Nokia5200; Sony Ericsson w710i; Nokia 3250; Nokia 5610XM -
I cannot fully uninstall iTunes because I am unable to delete the commonfiles\apple folder
I received error 42404 after updating to itunes 11, and have attempted to follow the instructions at http://support.apple.com/kb/HT1925. However, my Vista will not let me delete the commonfiles\apple folder. How can I delete it?
The day of iTunes 11's release, I updated my iTunes, then opened up the prgm to take a look at it. I was immediately brought to the attention that the program didn't install correctly (with error 42404), so I uninstalled iTunes and reinstalled it, with the same error coming up. I continued to use iTunes and see if i could ignore the issue, however I discovered I was unable to log into my itunes acount on the store.
So I followed the isntructions at http://support.apple.com/kb/HT1925 correctly, deleted the remaining files/folders, except I am still unable to delete the C:\Program Files\Common Files\Apple\ folder. I attempt to delete it, it asks me for permission to do so, I say continue, and even after I give it permission to delete the folder, it instantly says to me, "You need permission to perform this action," and it gives me the options to cancel or try again (which immediately brings this same window up again asking me to try again).
I've done plenty of research for the past two days, from attempting to delete the individual files within this folder via the Command Prompt, using Safe Mode, and many other options, yet nothing works. I've seen many forums advise using a program called "Unlocker," however, anyone googling the program will find that it is offered from a plethora of various sites, and I honestly dont trust programs from these sites.
Is there ANYTHING anyone knows to do for an issue like this? All I need is that one folder deleted, and all my problems are gone!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!! -
Unable to delete the file. (Some times deletes and sometime fails to delet)
Please help me in deleting the file from the temporary location .
Below is my code
//Append the session is with filename as there is possibility of having same name of file.
try{
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if (isMultipart)
// Create a factory for disk-based file items
factory = new DiskFileItemFactory();
// Create a new file upload handler
upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// Process the uploaded items
Iterator iter = items.iterator();
if(strInputFileName.lastIndexOf("\\")== -1)
strInputFileName = (String)mPropBag.get("TempUploadDirM") + strInputFileName;
}else
strInputFileName = (String)mPropBag.get("TempUploadDir") + strInputFileName.substring(strInputFileName.lastIndexOf("\\"));
strInputFileName = strInputFileName + "_" + request.getSession().getId();
uploadedFile = new File(strInputFileName);
item.write(uploadedFile); //// I am Writing the file in this location appened with the session Id because there might //be a possibility of having same name of file.
catch(......)
finally
uploadedFile.delete();
uploadedFile = null;
upload = null;
}I am unable to delete the file from the temporary location
some times it is deleting and some times it is not deleting.. I have also tried ...deleteOnExit();Make sure you've got no other processes holding onto it (Windows Explorer, for instance) and that you've closed any streams involved with the file. If that fails, try calling System.gc() just before deleting the file. This is a workaround for a bug in certain JVMs on Windows machines
-
Unable to delete the Redolog of Thread 2 in RAC
Hi,
Oracle 10gR2 ( 10.2.0.4), Rac Environment, Instance name orcl1, orcl2
Recently the orcl2 got crashed so we rebuilt the machine and orcl2 node and added the node again back to cluster
There was a failed attempt in DBCA (Addition instance part) where the redolog05 & 06 got created in ASM.
We created instance orcl02 as thread 3 instead of thread 2 and successfully added the node to cluster.
The redolog of thread 2 (redo05, redo06) created due to the failed DBCA add instance activity in unable to delete from the v$log entries.
GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB)
1 1 +ORCLDG3/orcl/redo01.log YES ACTIVE 50
2 1 +ORCLDG3/orcl/redo02.log NO CURRENT 50
5 2 +ORCLDG3/orcl/redo05.log YES UNUSED 50
6 2 +ORCLDG3/orcl/redo06.log NO CURRENT 50
8 3 +ORCLDG3/orcl/redo08.log NO CURRENT 50
9 3 +ORCLDG3/orcl/redo09.log YES INACTIVE 50
When i tried to disable the thread 2 i am getting the below errors, as the redo log 05, 06 are not physically present in the ASM
SQL> alter database disable thread 2;
alter database disable thread 2
ERROR at line 1:
ORA-00313: open failed for members of log group 6 of thread 2
ORA-00312: online log 6 thread 2: '+ORCLDG3/orcl/redo06.log'
ORA-17503: ksfdopn:2 Failed to open file +ORCLDG3/orcl/redo06.log
ORA-15173: entry 'redo06.log' does not exist in directory 'orcl'
Please help in removing the Thread 2 redo log files as this warning are getting written in the alert log every second and fills the mount point.
RegardsThe method suggested in the thread is not working, please find the below errors,
SQL> alter database clear logfile group 5;
SQL> alter database clear logfile group 6;
alter database clear logfile group 6
ERROR at line 1:
ORA-00350: log 6 of instance orcl2 (thread 2) needs to be archived
ORA-00312: online log 6 thread 2: '+orclDG3/orcl/redo06.log'
SQL> alter database drop logfile group 5;
alter database drop logfile group 5
ERROR at line 1:
ORA-01567: dropping log 5 would leave less than 2 log files for instance orcl2 (thread 2)
ORA-00312: online log 5 thread 2: '+orclDG3/orcl/redo05.log'
SQL> alter database drop logfile group 6;
alter database drop logfile group 6
ERROR at line 1:
ORA-01623: log 6 is current log for instance orcl2 (thread 2) - cannot drop
ORA-00312: online log 6 thread 2: '+orclDG3/orcl/redo06.log'
SQL> alter database disable thread 2;
alter database disable thread 2
ERROR at line 1:
ORA-00313: open failed for members of log group 6 of thread 2
ORA-00312: online log 6 thread 2: '+orclDG3/orcl/redo06.log'
ORA-17503: ksfdopn:2 Failed to open file +orclDG3/orcl/redo06.log
ORA-15173: entry 'redo06.log' does not exist in directory 'orcl'
Any ideas, -
Why can't I uninstall AirPort 4.2 from my Windows 7 PC.. I tried downloading and reinstalling the 4.2 but during the installation process I get an error. It reads... "1608: Unable to Create InstallDriver instance Return Code -2147024894
You should not install it again..
Boot the computer into safe mode and try the uninstall again.
No luck you will have to manually uninstall which is a pain. Delete the files and open regedit and delete the registry entries.. better still use the system restore to go back to a previous system where you had no 4.2 installed..
Or just ignore it and install the latest 5.6.1 and if it gives trouble well do a clean install of windows. -
Why am I unable to delete the default track (which seems to act as the master, right?) after making a rough mix? Is it possible to delete the default track after having rendered a mix? I did a rough mix and now cannot change the song as the tracks that were a part of the rough mix seem to remain in the song even though I mute the tracks for a new mix. For instance, I played and recorded a different bass line. Muted the original, but when trying to create the new mix I can hear the original bass line even though I have muted that track. It seems to remain in the previous master (default) track. Please send help. Thank you.
Before answering your question, you have to make sure you understand the difference between the different track types in GarageBand.
Tracks, you record your music on
There are three types of those Tracks.
MIDI Tracks (aka Software Instrument Tracks)
Audio Tracks (aka Real Instrument Tracks)
Drummer Track (only one per Project)
Global Tracks
These are the Tracks that can be shown/hidden at the top of the Tracks Area for specific purposes.
Arrangement Track
Movie Track
Transposition Track
Tempo Track
Master Track
This Track can also be shown/hidden in the Tracks Area. Please note, you cannot delete that Track, only hide it, similar to the Global Tracks
Regarding the Tracks you record your music on, you can delete any of those. It doesn't matter if you created them or there are part of a Template (maybe that is what you refer to as the default track). Once you delete the last Track, the "New Track Window" will pop up to add a new track.
I will explain all that in much more detail in my manual "GarageBand X - How it Works".
Hope that helps
Edgar Rothermich
http://DingDingMusic.com/Manuals/
'I may receive some form of compensation, financial or otherwise, from my recommendation or link.' -
Deleting database instances of previous Oracle Installations
How to delete database instances of previous Oracle Installations
I have Installed new instance of Oracle onto my server but on services window I can still see the older instances of oracle.
Apart from this I am unable to create database instance with same name as previous instance name.Search in the windows registy and delete all occurrence of Oracle
-
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. -
Unable to delete Address Book File
I am unable to delete nor copy over an Address Book file that I have on an external HD connected via Airport Extreme. When I connect the HD directly to my Macbook Pro, I am able to delete the file - but not via Airport Extreme. When I attempt to delete the file, I get a message from Trash as follows: The operation cannot be completed because the item "Metadata" is in use. Same message when I attempt to replace the file with a new file. In other words, I am unable to use AE to transfer my Address Book file to my external HD, unless I change the name of the file. What is going on here?
Hello Bob.
You may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
If you want support for one of your add-ons, you'll need to contact its author. -
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. -
I'm unable to delete a a file from the filesystem.
String fileName = "dummy.xml"
boolean delete = (new File(fileName)).delete();It's not deleting this file from the filesystem.Can anything else delete that file? Is the fileopen?
I don't know what you mean by can anything else
delete the file.I mean can you delete the file from the command line, a window, whatever. Is it just Java's delete that is having this problem or is it the file system?
No this is not opened/or use.How do you know?
DO I have to specify a path for this. Certainly. How else would Java know which file to delete?
If yes, please read on ........
the path where this xml file resides could by
anywhere in the file system. If it is how do I access
it since there is no specific location (it is left to
the user's choise to save the file anywhere he
wants)Keep the user's choice.
Maybe you are looking for
-
How to read the error message like clipping positive or -ve in Tektronix oscillioscope 3012B
During acquiring the Sine wave or triangular wave from TDS3012B, if the amplitude or Max or min is clipping, how do you read the error? I used *ESR?, first time when I ran the error query program, it gave me Error message saying it is clipping, afte
-
12c Agent causes abrt full crash report on OEL 6.4 (64 bit)
We have a brand new server that we've installed OEL 6.4 x86_64 on with Oracle 11.2.0.3 and the 12c agent. Periodically I'm getting the following ABRT (Automatic Bug Report Tool) whenever the agent tries to run the "chkconfig --list" command. The orac
-
How do I escalate this to someone who actually cares and can fix the problem?
We have an ongoing problem related to our phone service, bundle, and billing that has been ongoing for months now (It's a long and complex story so I'm not going to post the details here unless it'll really help). My wife and I have repeatedly made c
-
Why won't apps load to iPod?
Have a 4th Gen IPod. When dragging apps from apps section to left margin to add to IPod the + sign changes to the circle with slash sign as margin line is crossed and apps wont load. Also, when using screen to rearrange apps, the app list an screen
-
"OSX Mavericks cannot be installed on this computer" is the message that I receive when trying to download Maveracks. I have a late 2007 iMac with Snow Leopard 10.6.8 installed, 167gb free space and 3 gb memory. What are reasons that it won't downloa