the NTI in storage of persistence storage

I have choice of object field and I store the index of the selected value in the persistent store but when I try to retrieve the value from persistent I'm classcastExccption

String SELECTEDINDEXValue = Integer.toString(pickFont.getSelectedIndex());

                        storeindexvector.addElement(SELECTEDINDEXValue);
                        System.out.println("SELECTEDINDEXValue="+SELECTEDINDEXValue);

                        synchronized(fontIndexstore) {
                            try {
                                fontIndexstore.setContents(SELECTEDINDEXValue);
                                fontIndexstore.commit();
                            } catch (ControlledAccessException e) {
                                // TODO Auto-generated catch block
                                e.printStackTrace();
                            }
                        }

and here, I got the content and putting classcastExccption

second2222 = new Vector();
            synchronized(fontIndexstore) {
                try {
                    if(second2222 == null){
                        System.out.println("--------------------nullllllllllllllllllll-------------------=");
                    }
                    second2222 = (Vector) fontIndexstore.getContents();

                    System.out.println("second2222 = "+second2222.size());

                    //System.out.println("---FONT STYLE----"+second2222.elementAt(0));

                } catch (Exception e) {
                    // 0x4f61b274c07d41f1L
                    System.out.println("err="+e.toString());
                }
            }

you call setContent with a chain but cast the result of the getContents of a vector, it won't work.

Tags: BlackBerry Developers

Similar Questions

  • What is the limit of storage to the notes stored in iCloud?

    I have been using the Notes app for a while and have been loving him. Since any cloud storage service usually has a limit of free storage (Google Drive has a limit of 15 GB), I would like to know the limit of storage for the Notes saved in iCloud.

    Your iCloud free storage is 5 GB - for all the iCloud services you use handsets, Mail, documents, notes, iCloud, photo library,...  The free GB are not counted by app but by AppleID.

    Only the photo My Photo Stream and shared albums do not count against the 5 GB free, there are different limits. (iCloud: My Photo Stream and iCloud Photo Sharing limit)

    In addition, calendar entries, bookmarks, stay, contact:

    See this list: iCloud: limits for Contacts, calendars, reminders and bookmarks - Apple Support

  • The document _ is on a volume that does not support the permanent version storage.  You will not be able to access older versions of this document once you close.

    I recently started getting this strange message, usually when a Pages document is closed:

    «The document _ is on a volume that does not support the permanent version storage.»  You can access older versions of this document once you close. »

    All my research (apple.com and on the internet) have not enabled all the information on this message.

    Hi Larry,

    The 'volume' is a hard disk, a partition on a hard drive or a storage as a USB device.

    OS X automatically saves your document frequent while you work on it. If the volume of the device / it records on a summer formatted to allow 'versioning', you will be able to use Time Machine to open previous versions of your document. If it has not been formatted like that, you get the message see you, and only the current version of the document will be saved.

    Kind regards

    Barry

  • What is the limit of storage for "indexDB" in Firefox 4?

    What is the limit of storage for "indexDB" in Firefox 4?

    I need to know because I write a significant demand with local storage requirements.

    More the 5 MB limit in the Local Storage API.

    Your response is appreciated.

    Thank you
    David

    If the user grants permission for a site to exceed the quota of 50 MB IndexedDB, then as much as I know Firefox is no limit more. The only limits on the size of the IndexedDB database will be the disk space of the user and operating system.

    The quota of localStorage is 5000KB and there is no way for a web site asking the browser for permission to store more than that amount in localStorage.

  • How to reduce the amount of storage to free up more space

    How to reduce the amount of storage to free up more space

    There are several things you could do.

    Save your iPad to iTunes on a computer or create an iCloud account, find out how much storage space you need for data and if you need to buy storage space monthly, to do. Then save your iPad to iCloud.

    HOWEVER the data backup on your iPad using WiFi or Bluetooth wireless, local devices such as portable hard drives or small flash memory drives designed for use with mobile devices, like the iPad.

    Remove the applications that you use is no longer. If you start to use them in the future, you can re-download them the iOS App Store.

    Thin out / remove the amount of music and movies you have on your iPad.

    If you make a backup of your iPad, you can thin out / delete all images stored in the iOS App Photos.

    Thin out / remove all books electronic, iBooks, eMagazines, and PDF documents, you have stored on your iPad. Magazines and e-books can be redownloaded at a later date.

  • Satellite Pro A200 cannot install the driver of storage on an unattended installation

    Hello

    I created an image of XP RIS for a Toshiba Satellite Pro A200 and have downloaded the correct drivers for this laptop.

    I scoured internet solutions on how to configure the .sif file and where to install this driver on the image that he won't seek the intall the storage driver so that it can not find the Sata HD to install the image.

    Everyone knows that before and if so please could you point me in the right direction I've been struggling with this for a few days now!

    Thank you

    Hello

    You must include the SATA drivers.
    The SATA drivers are part of the Intel Matrix Storage Manager, which can be downloaded from the Intel and Toshiba page page.

    Here's a nice instruction how to do this:

    + How to integrate a SATA AHCI driver into a Windows XP Setup CD.
    http://APS2.toshiba-tro.de/KB0/TSB85017Z0000R01.htm

  • My Macbook 2014 pro is almost full. How to free storage space. Most is in the 'other' category in the view of storage.

    My Macbook 2014 pro is almost full. How to free storage space? Most is in the 'other' category in the view of storage. Also, if I delete movies bought from iTunes, I'll be able to download them later for free?

    Bottom line: you need to delete/move files on the internal drive. For important files, you will want to copy them to an external drive.

  • The amount of storage iCloud influences the amount of songs, you can download while being subscribed to iTunes game? Or are considered two different storage plans?

    The amount of storage iCloud influences the amount of songs, you can download while being subscribed to iTunes game? Or are considered two different storage plans?

    Hello

    iTunes game uses no storage iCloud. iTunes game limit is now 100 000 securities.

    Jim

  • SMART of the Intel Matrix Storage Console event message

    It's quite strange.

    I installed Windows 7 Home Premium x 64 bit on my Y530 initially have Vista Home Premium x 64 bit.

    Installation a breeze and we found all the necessary drivers automatically and runs smoothly.

    But suddenly I'm a notifaction from the event of the Intel Matrix Storage Console that my HARD disk fails quickly and get it repaired / replaced soon. So, I downloaded the Western Digital diagnostic tool and it reported "Re-Allocated sector Count" with a value of 30.

    Windows 7 is popping up a window to save and advising me to shut down the computer.

    Someone please advice me what to do. My warranty is still active, I ask for a replacement of the HARD disk or send the laptop for service?

    I bought this laptop in the United States, but I will be in India for about 6 months before returning to the United States.

    Thank you.

    Finally after climbing, the case was taken forward and solved.

    Defective HARD drive has been replaced. It took very little time for them to analyze and get the parts ordered.

    Even the local authorized service center was quick in their lodging and settled the question in my interest.

    Great!

  • root properties in the connected data store: error when accessing the date/time storage

    When you browse the properties my connected data store I get an error message when you try to read the value of the property of 'storage date/time': object doesn't support this property or method.

    Here is a minimal example:

    Dim oMyDataStore, MyProperty, oMyProperties
    Set oMyDataStore = Navigator.ConnectDataStoreByParameter ("TOC", "" & "C:\Program Files (x 86) \National 2012\Examples\Data\Example_data.tdm" & "" ')
    Set oMyProperties = oMyDataStore.RootElements (1). Properties
    For each MyProperty in oMyProperties
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value "")
    Next

    Why can I not access this particular property by default?

    Hi Phex,

    for the date/time properties, an object called UsiTimeDisp is returned. This object allows to that extend features of service as access to each part separately (day, year, hour, seconds,...) of your date/time value. If you want to print the value of time with MessageBoxDisp, you can use the VariantDate this object property.

    Your code might look like this then:

    Dim oMyDataStore, MyProperty, oMyProperties
    Set oMyDataStore = Navigator.ConnectDataStoreByParameter ("TOC", "" & "C:\Program Files (x 86) \National 2012\Examples\Data\Example_data.tdm" & "" ')
    Set oMyProperties = oMyDataStore.RootElements (1). Properties
    For each MyProperty in oMyProperties
    MyProperty.DataType = eTime Then
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value. ' ") VariantDate)
    On the other
    Call MsgBoxDisp ("property name:" & MyProperty.Name & + "\n"&"property value:" & MyProperty.Value "")
    End If
    Next

    I hope this helps.

    Good day

    Eva

  • Somehow a storage tab expanded appear in c:\ drive properties in windows xp? What is the function remote storage tab?

    Somehow a storage tab expanded appear in c:\ drive properties in windows xp? What is the function remote storage tab?

    Hello

    1. Have the software installed on the computer before the show?
    2. Have you enabled all services or no changes to the computer before the show?
     
    For your reference:

    Remote storage is not available on Microsoft Windows XP, Windows Server 2003, Web Edition, or Windows Server 2003, Standard Edition.
    What is the removable storage?
  • "Storage insufficient to create the shadow copy storage file or other shadow copy data"(0x8004231F). "

    I have Windows Vista Home Premium (32 bit) and you cannot create a system restore point.  Despite all attempts, I keep getting the error message "storage insufficient to create the shadow copy storage file or other shadow copy data"(0x8004231F). "  There is a large hard drive space (90 GB free with)< 70="" gb="" used). ="" how="" can="" this="" be="">

    Hi rebick,.

     

    Welcome to Microsoft Answers Forums.

    We would like to get more information about you to help solve your problem. You better, please answer the following questions.

    • When was the last time it worked?
    • Remember to make changes to the computer recently?

    First of all, I would say that you unplug any external drive connected to the computer except the keyboard and mouse.

    This error message can occur if there is some system files corrupted on your computer. Suggest to run a SFC scan, which would be a search for system files corrupted on the computer and replace them.

    Scan SFC enforcement procedure:

    1. click on the Start button

    2. on the Start Menu, click all programs followed by accessories

    3. in the menu accessories, right-click on command line option

    4. in the drop-down menu that appears, click the "Run as Administrator" option

    5 If you have the enabled User Account Control (UAC) you will be asked to consent to the opening of the command line. You simply press the button continue if you are the administrator or insert password etc.

    6. in the command prompt window, type: sfc/scannow then press enter

    7. a message is displayed to indicate that "the analysis of the system will start.

    8. be patient because the analysis may take some time

    9. If all the files need replace SFC will replace them. You may be asked to insert your Vista DVD for this process to continue

    10. If all goes although you should, after the analysis, see the following message "Windows resource protection not found any breach of integrity.

    11 after the scan finished, close the command prompt window reboot the computer and check.

    The analysis may take some time, so be patient. Windows allows to fix corrupt or missing files it finds. If the information of the installation CD is required to fix the problem, you may be asked to insert your Windows Vista.

    For more information please visit the link below.

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista

    http://support.Microsoft.com/kb/936212

    If the step above does not resolve the issue, I would say that you create a new user on the computer account.

    Log on to the new user account and check if you can create a system restore point.

    1. Open user accounts by clicking the Start button, clicking Control Panel, clicking user accounts and family safety, then clicking on user accounts.
    2. Click on manage another account. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    3. Click on create a new account.
    4. Type the name you want to assign to the user account, click an account type, and then click on create an account.

     http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • What is the history of storage PowerVault MD series?

    Hi, I would like to know the history of storage, PowerVault MD, was bought by Dell from another company? So who is this company? LSI?

    Please help on this.

    Thank you!

    Dell OEM of controllers and LSI/Engenio (overwritten on the firmware and software) boxes.

    But since then, LSI has sold Engenio division at Netapp.

  • Problem with the integration of storage - suspicious on PALO adapters

    Hello

    I connect the UCS system storage with mds9124 between the two.

    So far, I joined 2 systems UCS, everything went smoothly.

    Now, the new system UCS arrived, it's the same as before, the only difference is that now we have PALO for the first time.

    Stanard configuration, service profiles, uplinks, etc and now I have a strange situation

    The MDS ports connected to ports of uplink CF on my 6120xp I don't see pwwn to my profile, only WWNs of ports uplink and vsan wwn connected service.

    NPIV is enabled of course, I tried to recreate the profiles to change wwpn-s pools, but no use UCS,... no configuration issues, the ports are on the rise, the associated service profiles... I'm really confused.

    I checked my setup with cisco guides ("design and deployment of a Cisco Unified Computing System SAN using MDS 9000 family switches Cisco"), but I don't see why it does not work.

    Any idea? In past configurations with MENLO adapters, everything went really good.

    Thank you

    It's the way palo works. You will see not Palo connect on the fabric until the drivers are loaded. In the case of SAN boot you need to create a specific boot strategy that assigns the logical unit number to the vhba and in this case, it is programmed and connection to the fabric for SAN boot.

    If you're just turn the blade and expecting Palo to connect on the fabric as a Menlo or Qlogic it won't do.

    Louis

  • How to display this window that lists all the devices of storage connected to my PC?

    How to display this window that lists all the devices of storage connected to my PC? It lists each device, how much space is used and how much is free? I sometimes open it by accident, but I can never find it when I'm looking for it.

    original title: storage devices

    Beginning

    Control Panel

    If you the small icons view do the following:

    Administration tools

    Computer management

    Storage

    Disk Managment

    If you have the category view do the following:

    System and security

    Administration tools

    Computer management

    Storage

    Disk management

Maybe you are looking for

  • I accidentally destroyed my $PATH variable.

    In bash, I have only a ' > ' to the command line and the system seems to be completely oblivious to everything that I type in the terminal.  What is the default $PATH variable in OSX 10.9.5, this directory is he lives in and what is the best way to p

  • Satellite P30: When the drivers for Windows Vista will be available

    Hello I have a Satellite P30, who is quite capable of supporting Windows Vista and I installed it. Now, my problem is that I keep having problems with my graphics card, and Toshiba has not yet published any drivers. When should I expect any solution

  • Example of Agilent U2000 series acquire measure - LabVIEW gets stuck

    Hello! Chasing LabVIEW evaluation in order to take a decision on the purchase of our company. At the moment I encountered the following problem. When I try to use the example of the NOR measure to acquire by Agilent power sensor U2000A, the program t

  • HP 2035N: need an alarm when the page is printed

    We have a HP 2035N that whenever he prints a page, an employee must enter the piece of paper and complete a task as soon as possible. Our environment is not all that loud, but often we do not hear the printer works. Y at - it an alarm in the printer

  • CAN, T GET PLANE TAKING OFF

    I HAVE FLIGHT SIMULATOR X on MY COMPUTER, I ALSO HAVE JUSTFLIGHT 767-200/300 INSTALLED DISC, ALL OF MY SETTING IS CORRECT, I JUST CAN, T KEEP the AIRCRAFT at the time of take-OFF, I TRIED TO GET HELP FROM JUSTFLIGHT SUPPORT, ILS SAY MIS MY TRIM to 4