Delete existing RecordStore and then open a newer one with same name

Hey All,
I'm working in J2Me for Nokia S40 DP2.0 SDK 1.0.
I want to delete my existing RecordStore (i. e; Products) and then open a new RecordStore as same name(Products) But
There is an Exception thrown that RecordStore is Open;
my deletion process is given below :
public void deleteRecStore(String recordName) {
if (RecordStore.listRecordStores() != null) {
try {        
RecordStore.deleteRecordStore(recordName);
} catch (Exception e) {
e.printStackTrace();
public void createRecStore(String recordName, Vector data, int insertType) {
if(recordName.equals("") && (recordName != null)) {
try {
if(insertType == this.NEW_REC) {
rs = RecordStore.openRecordStore(recordName,true);
this.closeRecStore();
this.deleteRecStore(recordName);
rs = RecordStore.openRecordStore(recordName,true);
Can anybody pls help me...
why I can't open a new recordstore like this ??
If there any process then what is that ???
Rania...

This question belongs in the [CLDC and MIDP forum|http://forums.sun.com/forum.jspa?forumID=76]. I'll move it there in an hour or so.
I would suggest that in addition to printing the stack trace of any Exception, you could append the Exception.toString() to a Form (or display it in an Alert) to see whether any exceptions are being thrown.
db

Similar Messages

  • I try to open I photo and  I get the message, your iPhoto library is damaged...please restore from backup. But i din't made backup copy. How can i delete previous library and work wrom the new one?

    I try to open I photo and  I get the message, your iPhoto library is damaged...please restore from backup. But i din't made backup copy. How can i delete previous library and work wrom the new one?

    Try this (assuming you're using iPhoto 12): make a temporary, duplicate copy of the library and try the three fixes below in order as needed:
      Fix #1
    delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your Home/Library/Preferences folder. 
    delete iPhoto's cache files that are located in your Home/Library/Caches/com.apple.iPhoto folder.
    reboot, launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding the the Option key.  You'll also have to reset the iPhoto's various preferences.
    Fix #2
    Launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library.
    Select options #1, #2 and #6. 
    Fix #3
    Rebuild the library using iPhoto Library Manager as follows:
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • When I minimize a window in INDD and then open a new file, my minimized window pops back up. How do I keep it minimized?

    When I minimize a window in INDD and then open a new file, my minimized window pops back up. How do I keep it minimized?

    amandaecarroll wrote:
    How do I keep it minimized?
    Actually, I suspect you can't. You get various behaviors based on a combination of settings in Preferences > Interface; namely Open Documents as Tabs and Enable Floating Document Window Docking; but it doesn't seem to make much sense as far as I can tell. Throw in the additional "application frame" wildcard on a Mac, and even just exploring the effects of the settings and drawing conclusions about them gets tricky. It sounds like you've got your windows floating, whereas I suspect many if not most users have opted for the more structured and seemingly more logical tabbed/docked method, in which case they haven't encountered your issue and don't really understand it. One might ask; if your new/current document is "in front" then what difference does it make if others behind it are minimized, maximized, or something in between?

  • Hi, i wanted to resize my windows partion. I was thinking of using the default backup system for windows. Then switching to mac partion, deleting the bootcamp and then restoring a new enlarged partion from the backup. Is this possible?

    hi,
    i wanted to resize my windows partition. I was thinking of using the default backup system for windows. Then switching to mac partion, deleting the bootcamp and then restoring a new enlarged partition from the backup. Is this possible?

    I see youhave gotten recommendatons for using WinClone or CampTune.  I have used both and they both work well.
    You have asked about using the WIndows 7 utility to backup your drive and restor it onto a larger partition.  I will tell you fro experience that this will probably not do what you want, and may do something that you don't want.  You can use the Windows 7 native backup tool to make a backup of your Windows 7 partition.  It will most liekly end-up making a dive image of the whole drive.  When yourestore that backup, it will try to re-create teh partitions of exactly the same size as they were when the backup was taken, so it won't increase your partition size for you.  Worse, since Windows doesn't natively know how to read./write HFS+ volumes, the backup will make a partition for your MacOS (replacing any you may have now), except that the copy restored by WIndows will be totally worthless, and you will not be able to boot MacOS from it, or even read it under MacOS.
    Now I will tell you that I've also had some fairly good success working with the free tool CloneZilla.  Since it hasn't been mentioned yet, and everything else mentioned does cost you money, I thought I would throw it out.  CloneZilla is not as easy to use as the tools mentioned, but it has worked for me int hte past, so it is something to consider.  I tend to use CampTune myself, but that was because I purchased a bundle deal for them and it was included in that deal.

  • HT5621 I Have followed all the steps and still cant remove iCloud to my existing account and add to the new one, the old email account was changed a year ago and cant get that email plus the password don't work please HELP!!

    I Have followed all the steps and still cant remove iCloud to my existing account and add to the new one, the old email account was changed a year ago and cant get that email plus the password don't work please HELP!

    Welcome to the Apple community.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone".
    You should then change your Apple ID back to its current state, verify it once again, delete the iCloud account from your device and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • I accidentally synced my new iphone5 as an existing phone and not as a new one. I lost my videos! Can I retrieve them?

    I accidentally synced my new iPhone 5 as an existing phone and not as a new one on my itunes account when registering it. I lost some very special videos I had taken of my son. Can those be retrieved somehow?

    If you had content on your phone before syncing it, then no matter whether you set it up as new or as an existing, you would have lost the data that was on the phone.
    If, when you connected the iPhone to iTunes you ran a backup before restoring from the previous device, your data may have been saved in that backup. You can check in iTunes and see if there is a backup there. Also, the only way to get that back is to restore to that backup. However, make sure you do not backup the phone in the condition is in now, because that will overwrite the backup that is there. Check the date and time of the backup in iTunes and see if it is before you did the setup.

  • HT4623 I have an ipad3, iPhone3gs and iPhone5, my problem is my apple ID works all 3 devices but I need a second ID for the iPhone 5. How do I delete my ID and set up a new one for the iPhone5 but keeping my own apple ID for the iPad and iPhone 3GS

    I have an ipad3, iPhone3gs and iPhone5, my problem is my apple ID works all 3 devices but I need a second ID for the iPhone 5. How do I delete my ID and set up a new one for the iPhone5 but keeping my own apple ID for the iPad and iPhone 3GS.

    http://support.apple.com/kb/he37

  • I forgot the answer to the security questions and i forgot the email i put there to resend the link so i can change it. i want to close my apple ID and open a new one with the same email could i?

    i forgot the answer to the security questions and i forgot the email i put there to resend the link so i can change it. i want to close my apple ID and open a new one with the same email could i?

    i live in saudi arabia and i tried calling them and letting them call me but they said that it is unable to my country. ***** i don't know what to do!

  • I have the old ipod touch without the camera and i received a new one with camera as a gift how do I transfer eveything to new ipod from old?

    I have the old ipod touch(without camera) and I received the new one (with camera) as a gift. How do I transfer everything from old one to new one?

    Make one final USB sync with the old iPod. The sync includes a backup. Then connect the new iPod to the same computer/iTunes library and restore from the backup of the old iPOd. All the synced media like apps and music have to be in the iTunes library since synced media is not included in the backup that iTunes makes. For how to restore see:
    iTunes: Backing up, updating, and restoring iOS software

  • I create my apple Id but the email for verifying didnt send! It doesnt workout! and  Icant create the  new one with my email address

    I create my apple Id but the email for verifying didnt send  because of that It doesnt workout! and  Icant create the new one with my email address! what can I do?

    annray wrote:
    I have changed my apple ID as I have a new email address. This was changed but when I go to the store to buy an app or my email it tells me I have the wrong password as it is still showing my old ID.
    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622
    annray wrote:
    How do I change this on my handset and ipad?
    Settings > iTunes and App Store > Apple ID = Sign Out...
    Then Sign In using the preferred Apple ID.

  • My i phone got stolen and i got a new one with the same number but how do i synch it up with my old contacts?  i thought i could do from ituned but it hasnt worked!!

    hello,
    my i phone got stolen and i got a new one with the same number, but i cant get it to synch up with my itunes to make it like my old phone! can you please tell me how i do this. i need all my contacts and content etc etc.

    Plug it into iTunes and tell iTunes what to sync to the device.

  • HT4527 Hi My old computer broke down.   I could not transfer anything across to my new PC.  Unfortunately I forgot my old i-Tunes account and set up a new one with the new PC.  However, I cannot now synch my music on my i-pod to my new PC - how can I do t

    Hi My old computer broke down.   I could not transfer anything across to my new PC.  Unfortunately I forgot my old i-Tunes account and set up a new one with the new PC.  However, I cannot now synch my music on my i-pod to my new PC - how can I do this?
    I'm a bit of a technophobe so any help gratefully received thanks

    It has always been very basic to always maintain a backup copy of your computer.  Use this to put eveything back.

  • How do I delete my Apple ID account and then make a new one again?

    I want to delete my account and then use the same email to create a new one.

    Apple IDs cannot be deleted. You can abandon it and remove your payment info but the account will remain.
    If you do make a new account keep in mind that all apps downloaded or purchased with the original account will always be associated with that original account and require the old ID and password to update.

  • Having multiple tabs open in one window, and then opening a new window and closing it, will close the newly opened window, but it will want to close the other original window with the multiple tabs as well.

    This only happens if the original window has multiple tabs, and the new window has only ONE tab at the moment you close it.
    Also, the problem only occurs when TWO windows of firefox are open. So opening up a 3rd window, and then closing it, will not give you any problems. The interaction occurs between two windows of firefox only.

    This can happen if you drag a tab slightly down in the browser window while clicking.
    Firefox has a feature called tear-off tabs
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
    You can also do this via the right-click context menu of a tab: Move to New Window
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    * https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t

  • When i open firefox it instantly goes to the bottom of the page then opens a new one. i cant close the pages down the bottom and they are running in the background slowly everything down

    when i open firefox it immediately goes to the bottom tool bar and keeps running. a new home page then opens and i cant close the one at the bottom because there is no icon. these hidden pages keep playing old youtube song and another one with adds running. how do i close these pages please? also if i minimise firefox to go onto say, email, i cant retrieve it and have to then open another home page. argggghhhhhhhh. help please. thanks and have a great, 'quiet' day. beth

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • Aero Caption buttons [Minimize, Maximize and, Close] are about 1px slivers on Windows 7.

    Clean install of Firefox 4 on a clean install of Windows 7 there are no buttons in top right corner. No persona installed so https://bugzilla.mozilla.org/show_bug.cgi?id=574833 and https://bugzilla.mozilla.org/show_bug.cgi?id=575406 do no apply. Open

  • Foreign JMS provider

    Hi, I have a pool of MDB's running on wls 9.x (subscriber). MDB pools subscribe to JMS Topics runnng on wls 10 MP1 (publisher). Do I need to import publisher as a foreign jms provider into the subscriber domain ? Why not use simple t3 config from the

  • GPS and voice

    Does anyone know if it possible to add voice to the GPS in the iPhone 3G ?

  • Application update problem with v5 core applications

    The version 6 Desktop Manager consistently tells me that I have a 34.1 MB update of the 5.0.0 core applications pending.  If I "Apply", everything seems to go reasonably well (except that I usually have to fix this or that annoying change the procedu

  • Update AD Attribute directly from OIM

    Hello, I just want to change one attibute in AD from a process task in OIM. This process task is using an adapter that calls a Java method. In that method i'm initializing a com.thortech.xl.integration.ActiveDirectory.tcUtilADTasks instance and then