Persistent store fails in the device

Hello

I'm developing a mobile application, which uses persistent to store and retrieve data.

My code works fine in the Simulator. But recovered data display does not work in the unit.

I check if the same data is entered twice, it will throw an error that works very well. so, the data get stored.

but retreving details and the display does not work.

Any help on the above will be greatly appreciated.

Hey, I got 23 I changed my logic like that...

his work in the device now...

synchronized (store) {}

System.out.println ("" data saved in Manager | "");

try {dataHandler = store.getContents ((vector));}

} catch (Exception e) {}

If (dataHandler! = null) {}

dataHandler.insertElementAt (hashT, 0);

System.out.println ("" data saved in if loop | "");

} else {}

dataHandler = new Vector();

dataHandler.addElement (hashT);

System.out.println ("' saved data in other loop |" ");

} }

synchronized (store) {}

store.setContents (dataHandler);

Store.Commit ();

}

Tags: BlackBerry Developers

Similar Questions

  • KSOAP2 working on the Simulator, but failed on the device. Help, please!

    Hi all. Please, I need support on this issue.

    I have a request of KSOAP2 running which:

    1) Œuvres ALLWAYS on the Simulator (9700 Simulator)

    2) FAILS on the device when you use 3 G Internet Link

    3) work on the device when hard reseting it and directly using Wi - Fi link (if you switch to 3 G, it starts failing).

    When it do I get the following error:

    type of org.xmlpull.v1.XmlPullParserException:Unexpected (position: TEXT SocketException:...@1:33 in java.io.InputStreamReader@hexhere)

    Some other times I get an IO error faced:

    net.rim.device.cldc.io.ippp.SocketBaseIOException: Connection timed Out

    The funny thing is that it works through 3 G as 1 in 40 times... it seems that 3 G connection is too slow to KSOAP2 to work properly, or something like that. The complex type is small (8 strings).

    My webservice is a webservice VB.NET located on the production IIS server. It works well because it responds to any request of Simulator.

    Additional data:

    -Other Internet applications of device (such as the Internet browser) works well through 3G even when my application does not always succeed. Coverage of 3G service is excellent.

    -J' use JRE 5.0.0.

    -Device is a BlackBerry Bold 9700

    -Webservice is written in VB.NET in the production on the Internet Server, and it works perfectly because it responds to each request of Simulator.

    -J' use javaloader.exe to deploy the cod to the device files (both, ksoap library cod and cod of my project)

    -L'application is not signed.

    -Once the application starts breaks down (when you switch to 3G) it maintains in default if you return to the WiFi again.

    Here is my code:

    String res="";
    boolean error=false;
    Vector seguimientos = null;
    
    SoapObject m_Soapobject=new SoapObject("urn:tempuri", "GetSeguimientos");
    SoapSerializationEnvelope m_Envelope=new SoapSerializationEnvelope(SoapEnvelope.VER11);
    m_Envelope.encodingStyle = SoapSerializationEnvelope.ENC;
    
    m_Soapobject.addProperty("strInstance", "r2sistemas");
    m_Soapobject.addProperty("user", "myuser");
    m_Soapobject.addProperty("password", "mypassword");
    m_Soapobject.addProperty("comercialId", "3");
    
    m_Envelope.addMapping("urn:tempuri/encodedTypes", "Seguimiento", new Seguimiento().getClass());
    m_Envelope.bodyOut = m_Soapobject;
    m_Envelope.setOutputSoapObject(m_Soapobject);
    
    HttpTransport ht = new httpTransport("http://www.productionserver.com/service1.asmx");
    ht.setXmlVersionTag("");
    
    try {
        ht.call("urn:tempuri/GetSeguimientos", m_Envelope);
        SoapObject respuesta=(SoapObject)m_Envelope.bodyIn;
        seguimientos=(Vector)respuesta.getProperty(0);
        } catch (IOException e) {
        error=true; res="IO Problem: " + e.toString();
        } catch (XmlPullParserException e) {
        error=true; res="XMLParser problem: " + e.toString();
        }
    
    if(error!=true) {
        Seguimiento seg=(Seguimiento)seguimientos.elementAt(1);
        res=seg.Comentario;
        }
    
    this.add(new LabelField("aa"+ res));
    

    I read on this forum that ksoap2 cannot treat the http error messages. You must download the KSOAP source and change it to do this. Something like ServiceConnectionMidp. The message is this: link

    I use a port KSOAP2 library: ksoap2-j2me-core-prev - 2.1.2.jar, like I said it works fine on the Simulator. I tried to download the source code of KSOAP to debug in the failing methods, but was unnable to do compile ok on Eclipse.

    I really am stuck at this point. Please, any help would be great.

    Thank you in advance.

    Ok. Further reading took me to the problem.

    AFAIK, there are 5 ways to connect to web addresses from a BlackBerry device.

    Of course, the BB Simulator uses one that works with my WS. When my BB is connected via wifi it works as well. However, when I use the 3g from my device connection, I should mention the destinies of correct connection on the connection URL parameters.

    That's what I did:

    I read this: 1 Source

    And this (Spanish): Source 2

    Of course, I noticed that my BB is connected to a BES company, I must indicate the correct ConnectionUID to my address book of device on the connection string. So now the line in my code is:

    HttpTransport ht = new HttpTransport("http://www.address.com/service1.asmx;deviceside=false;ConnectionUID=YOURCONNECTIONUID");
    

    To find your UID connection, take your device, go to Options - Advanced Options - service book. Choose a book of service applications that connects successfully on your device (in my case Blackberry Internet Browser service), open it and copy the ConnectionUID. Then, paste it in the connection string.

    Now, it works great!

    My next challenge is to find connection string parameters correctly so that the application works on any device, not only on my ones company BES.

    Someone knows what should be the standard setting?

    I hope that my help of inquiry.

    P.S. still cannot complete successfully ServiceConnectionMidp...

  • Cod signed fails on the device with the attempts to access a secure API

    Feature: "BOLD"

    JDE: Eclipse (3.4.1) plugin (1.0.0.67) w/component pack 4.6.0.19

    JDK: 1.5

    Last week, I built and signed myApp. It loaded and run correctly on the device. This week changes have been made to the code, recompiled, signed and redeployed. Now, we get the attempts to reach an eveytime failure secure API that the code is executed. The secure API is PersistentObject and was last week.

    My last attempt, I deleted physically files .alx and .cod, .jar, .jad, .csl, .cso files prior to construction. I have verfied the 352 KB .cod size after compilation and 356 Ko after the signing. All of the code in the signature tool reflects signed. I even removed the .cod from the server where it is deployed and verified that everything is signed. We use the loader of office right now to load the code on the phone.

    EventLog

    S Java Exception - RuntimeException

    | Error at startup myApp:Module "myMod" trying to access a secure API.

    a system - error myApp:Module "myMod" from trying to access a secure API.

    a system - the linker error: "VerifyError" for myApp

    a system - Module 'myMod' attempts to access a secure API.

    a system - module 6803 cannot refer to net.rim.device.api.system.PersistentObject

    a system - VM:LINK myApp

    a system - CMM: myApp (6803) No sig 0 x 33

    a system - the linker error: "VerifyError" for myApp

    a system - Module 'myMod' attempts to access a secure API.

    a system - module 6803 cannot refer to net.rim.device.api.system.PersistentObject

    a system - CMM: myApp (6803) No sig 0 x 545252

    a system - VM:LINK myApp

    I never saw this when the cod file has actually been signed.  You can try to use javaloader to get cod off the coast of the unit and compare it with your signature.  Just a thought.

  • IaaS Service failed on the device vCAC.

    When I check my vCAC device in the services tab, I see that says service iaas is not as shown in the screenshot below.

    When I try to load the endpoints tab in the portal vCAC it says error 503. Someone knows how to fix this?

    IaaS Service error.jpg

    IaaS Service error 1.jpg

    I ended up reinstalling the server IaaS. It was a new Setup and I was stuck with this problem. Because of the constraint of time, I had to go forward with the re-installation.

    Thank you for your response.

  • Hi guys, anyone currently using my Apple ID to buy the Aple store. And the device is not mine? How can I do? Help, please!

    It is a scam: ignore it. He's trying to click on "Cancel and manage subscriptions", which will take you to a fake site asking your Apple ID and password. £23,49 is not the cost of a subscription to Apple's music. You can go to your iTunes account to confirm that you have not been charged this amount.

  • With 'something' in PersistentStore requires a restart of the device after the upgrade/uninstall?

    Hi all

    I am trying to identify what is the maximum feature that can be implemented in a BlackBerry application so that updated/uninstall does not reboot of the device.

    Official information about the persistent objects:

    ==== KB ====

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/What_Is...

    ...
    
    The application contains a live referenceto a persistent object. 
    
    ...
    

    = Forum =.

    http://rim.lithium.com/T5/Java-development/error-module-is-in-use/m-p/131618

    ....
    
    What exactly does it mean that "The application contains a live reference to a persistent object"? More specifically what does "live" mean?
    
    ....
    
    This is an "uncommitted" modified persistent object that is in use by the application.
    
    ....
    

    My current tests show that once you have something stored in PersistentStore, uninstall / upgrade will require restarting the device. Can someone please confirm this or explain what is wrong with my test script (code to follow)?

    Your application being started has nothing to do with the fact that there is a direct reference from your application to the persistent store. At the start of the system, the operating system made a lot of analysis of existing modules, whether or not they are reported to run at startup. During this analysis, it will link the custom object in the modules in your application's persistent store. (This analysis also makes it possible for the system automatically removes the persistent, custom objects that have been orphaned by an application being uninstalled.)

    As Simon posted, is not having an object persistent, but having a custom persistent object that forces a restart. Try your experience using a hash instead of a ConfigObject table.

    Note that the downside of using a generic object as the Hashtable class is that the persistent data of your application will not disappear when your application is removed.

  • Persistent Store - is this good or bad idea?

    Currently, I have setup an application with a vector of objects that I store, works great!  For my next request, I want to save more information and thought of different ways to do this.  This first one saves a whole bunch of a single type of object...

    I want to create 3 vectors over other types of objects I created... I thought I could store each vector with id different, maybe I could make a vector of vectors, or maybe make another object that has inside and just vectors that store... examples below:

    the idea of vectors vector

    Vector vectorOfAObjects;

    Vector vectorOfBObjects;

    Vector vectorOfCObjects;

    Vector vectorOfDObjects;

    Vector storeMyVectors;

    storeMyVectors.insertElementAt (vectorOfAObjects, 0);

    storeMyVectors.insertElementAt (vectorOfBObjects, 0);

    storeMyVectors.insertElementAt (vectorOfCObjects, 0);

    storeMyVectors.insertElementAt (vectorOfDObjects, 0);

    and then to get my stuff back, I would use storeMyVectors.elementAt (0) to return vectorOfAobjects...

    I thought I could do as an object that contained the four vectors as fields... like

    class relatedVectors implements {persistable

    Vector vectorOfAObjects;

    Vector vectorOfBObjects;

    Vector vectorOfCObjects;

    Vector vectorOfDObjects;

    relatedVectors (vector a, vector b, vector c, vector d) {}

    vectorOfAObjects = a;

    vectorOfBObjects = b;

    vectorOfCObjects = c;

    vectorOfDObjects = d;

    }

    }

    Finally, could I simply store different types of objects in the same vector, keeping the tack of indexing point?  For some reason any I have in my head a vector must be of the same type of object, but I don't think it's true...  In this case, I could do a vector and the index 1, 5, 9, etc... Once object type and 2, 6, 10 other etc...

    What idea is the best?

    Thank you!

    Vector objects are not the same.  Mix them as you like.

    Re have one or several store ID persisting, I actually don't think it's important.  I have found that if you update some of the vector, then commit, it does not take too long - I think that only the modified part commits again.  Replacement of the entire vehicle with a completely new would have more load.

    The design basically your data store around the needs of your application, rather than worrying about the consequences this will have on the device.

    BUT, a big concern.

    Remember that the objects that you save in the persistent store must remain the same to be accessible, if persist you an object with 2 integer values, then change this class so that there are three integer values, then your persistent object becomes illegible.  So try to future proof your persistent objects or design a path for them.

  • IT detect policy "allow third party applications to use the persistent store" by program

    Our application uses the persistent store widely, and we try to find a way to fail gracefully, with a coherent, when the it policy error "allow third-party Apps to use persistent store" is disabled.

    Ideally, we would detect this setting programmatically and displays an error to the user to inform them that this is the condition that prevents us from running.  It seems that the ITPolicy class in net.rim.device.api.itpolicy would allow us to do, but I can't understand what I asked for to verify this IT strategy value - I can't find documentation on most of the system properties how to query their status and try the guess of getBoolean ("AllowThirdPartyUsePersistentStore", true) does not appear to return the correct value.

    Or, if there is a better way to detect this State, that would work too.

    Thank you.

    Hello

    The settings to use in the class plan ITPolicy to the ITPolicyTemplate2 of the BlackBerry Enterprise Server BESMgmt database table.

    for the "allow third-party Apps to use store persistent' policy, which is a 24 tag and subtag of 17. However, please pay special attention to the it policy Description:

    This rule is obsolete. || Specify if third-party applications on the BlackBerry smartphone can use the RIM store persistent application programming interface (API). || Computers handhelds with OS version 3.x and below must use policy AllowThirdPartyUsePersistentStore IT. | The 4.0 and later versions must use application control policy. || If you do not set this rule, a default value of True will be used. || This rule applies only to the BlackBerry Java-based instruments version 3.6.0 by 4.0.0.

    A complete list of policies COMPUTER located in the reference of policy here: http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=6199802&sliceId=&dialog...

    Tariq

  • After changing the motherboard in my PC the device software windows 7 cann't be activated. I tried many times to speak with the service the customer but failed.

    After changing the motherboard in my PC the device software windows 7 cann't be activated. I tried many times to speak with customer service through automated phone system, but failed. Now what should I do.

    The OEM of Windows 7 versions are identical to the versions commercial full license with the following exception:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard

    -OEM versions does not move directly from an older Windows operating system

    What is OEM software? :

    http://support.Microsoft.com/GP/oemsupport_1/en-GB

    Licensing FAQ:

    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/licensing_faq.aspx

    --------------------

    Windows 7 - version comparisons:

    http://Windows.Microsoft.com/en-us/Windows7/products/compare-editions

    MS Windows 7 store price:

    http://store.Microsoft.com/Microsoft/Windows-Windows-7/category/102

    --------------------------

  • Store the data in the internal memory of the device

    Hi all

    I need to check my database file in the internal memory of the device because if I save in sdcard chances are there... then delete, how to save db file to internal memory by programming... Please give any suggestions

    Thanku

    Internal "SD card is referenced using store instead of the SD card, but be aware that space is limited, and in fact, this area does not exist on some devices.  You cannot use SQLite data directly from persistent memory, but I guess that you can copy the SQLite database to and from this store, maybe when you open the program and back when you close it.  I would not recommend this if you have a database is larger than 256 KB.

    I suggest that users remove the SD card are just something you will have to program autour.

  • Failed probe the child of FOSS for the name of the device

    Hi all

    I have a problem with my Datastore Vsan.

    When I try to list the files within the vsan data store I got this:

    vmfs/volumes / vsan:521c3b52604c5430 - a83ced64dc019f67 # ls-l

    LS:. / 6b2b0e54-3199-dd02-06ab-002590f94756: no such device or address

    LS:. / Template_Win_100-20 (d7499652-fb71-4e02-a758-1be2ba1549f4): no such device or address

    LS:. / 6a2b0e54-1e88-a311-f29a-002590f961ec: no such device or address


    I also have the following errors on the vmkernel.log


    (2014 09-14 T 17: 36:00.500Z cpu20:467672) free software: OSFS_MountChild:3541: failure to probe FREE for device name '6a2b0e54-1e88-a311-f29a-002590f961ec' children: no file system on the device

    (2014 09-14 T 17: 36:01.743Z cpu20:467672) free software: OSFS_MountChild:3541: failure to probe FREE for device name '6a2b0e54-1e88-a311-f29a-002590f961ec' children: no file system on the device

    (2014 09-14 T 17: 36:02.986Z cpu20:467672) free software: OSFS_MountChild:3541: failure to probe FREE for device name '6a2b0e54-1e88-a311-f29a-002590f961ec' children: no file system on the device

    (2014 09-14 T 17: 36:04.229Z cpu20:467672) free software: OSFS_MountChild:3541: failure to probe FREE for device name '6a2b0e54-1e88-a311-f29a-002590f961ec' children: no file system on the device

    (2014 09-14 T 17: 36:04.229Z cpu31:467671) free software: DebugDumpVmklinkResponse:843: {ID: 2e8; type: SEARCH; pid: [vsan]; status: no file system on the device, cid:521c3b52604c5430 - a83ced64dc019f67; bufLen:0;}

    (2014 09-14 T 17: 36:04.229Z cpu31:467671) free software: OSFS_VmklinkLookup:543: failure (p [vsan], c 521c3b52604c5430-a83ced64dc019f67)

    (2014 09-14 T 17: 36:04.229Z cpu31:467671) free software: OSFS_Lookup:2304: search error: file = Template_Win_100-4 (00b3e2ed-548b-4ab4-b66e-14e3ea15e304), State = no file system on the device


    I tried to delete the folder using the command RMDIR-SOFTWARE, but im getting the same error:


    / usr/lib/VMware/osfs/bin #. / software free-rmdir vmfs/volumes / vsan\:521c3b52604c5430 - a83ced64dc019f67 / Template_Win_100 *.

    Delete the Template_Win_100 directory in the container id 521c3b52604c5430a83ced64dc019f67 supported by vsan

    Failed.  Research journal vmkernel and osfsd journal opID ' osfsIpc - 1410716290.29'.


    I have the same error in any host that is part of the pole...

    Any help will be appreciated.

    TXS

    Ezequiel

    This could be a number of things.

    1. check the network configuration.

    -May all your hosts yet another ping on the VMkernel network

    -Changes that can affect the network? (VLANS, multicast)

    2. check your disks.

    -Starting at RVC, you can run vsan.disks_stats

    - In the vSphere web client, navigate to monitor > Virtual SAN > physical disks and look for disk failure

  • the device has encountered an unexpected error. Setup error: application verification failed

    the device has encountered an unexpected error. Setup error: application verification failed

    I received this message over and over again when you try to publish my iOS for the app store app (I use Flash cc AIR 3.9.1.1080 for iOS and my settings are: "unit test mode interprets", as my application uses several sovereign wealth funds).

    I did everything from scratch, as recommended on the other sections forums: new app of my developer apple ID account, new Distribution certificates, new profiles of commissioning of the Distribution and nothing works.

    I can install my app on my iPad if I use certificate and Provisioning profile development and everything seems OK. But as soon as I use the Distribution certificate and Provisioning profile receive the same message:

    the device has encountered an unexpected error. Setup error: application verification failed

    I've done everything since the beginning, over and over and nothing works. Am I the only one having this problem on Flash cc?

    Hi sinious. Thanks for the reply. I'm on every aspect that you point out. I used 'Explicit ID App', I used the certificate with the appropriate PP. I got the cert on my mac and I was exporting with 'Keychain Access '. Finally, I found that I could generate and export a 'Distribution iOS signing authority' on Xcode. When I did, things worked again! Thank you.

  • How to return to the earlier version of El Capitan (from 10.11.3 at 10.11.1) with Time Machine? My HP LaserJet M475dw MFP printer worked fine with previous versions, but fails miserably to recognize the device on the same Wi - fi network now?

    How to return to the earlier version of El Capitan (from 10.11.3 at 10.11.1) with Time Machine? My HP LaserJet M475dw MFP printer worked fine with previous versions, but fails miserably to recognize the device on the same Wi - fi network now with 10.11.3.  I would like to restore the previous version of the operating system without losing any data created in various applications since the 10.11.1.  Fortunately, I had only to use Time Machine is rare over the years, I do not know if you have to return the entire drive to the chosen date or it can somehow just go back to a previous state of OS.  Any suggestions, much appreciated.

    OS X El Capitan: revert to a previous version of OS X

  • Part 3 EtherCAT Slave: importing XML Device Profile succeeds on host but fails on the target

    Hello

    I'm trying to control a 3rd party via EtherCAT servo drive:

    • Master: NOR-cRIO 9024

    • Slave: Beckhoff AX5203

    I downloaded the files of unit on official website of Beckhoff Description: http://www.beckhoff.com.au/english.asp?download/elconfg.htm (Beckhoff_EtherCAT_XML.zip)

    I followed the instructions to http://digital.ni.com/public.nsf/allkb/FDA1318A8909D02C862574510060DB62 to import the profile description of the device.

    Curiously, the import was successful for the host (and I can now access this device in the LabVIEW LVPROJ file), but it failed for the target.

    Why could this be? (There are no diagnostic messages)

    Hi JKSH,

    Looks like you are using NOR-Industrial Communications for EtherCAT 2.7 or later. What is you project connected to the target when you try to import the file? How are you connected to the target? What is your firewall block FTP transfers? Do you need the ability to programmatically discover slaves EtherCAT (such as DSM or using the VI of Modules Refresh)? If you just want to program the EtherCAT Slave in the LabVIEW project, import the device description files to the host is all that is needed.

    Best regards

  • The driver \Driver\AFAmgt failed to load for the device USBSTOR

    Hardware: Dell PowerEdge R515, AMD Opteron processor

    OS: Windows Server 2008 R2 (64-bit)
    Peripheral USB do not work properly.  Manager devices displays the following error:
    Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might be installed a file that is signed incorrectly or damaged, or maybe it's a malicious software from an unknown source. (Code 52)
    The observer of events displays the following error has occurred when I plugged the USB key:
    Error in kernel-Pnp, event ID 219
    The driver \Driver\AFAmgt failed to load for the device \Disk&Ven_SanDisk&Prod_Cruzer&Rev_1.02\2006077523163E6032E3&0 USBSTOR.
    Dell recommended running the following updates:

    1 HLDS DP10N external USB DVD Firmware Version A102, A02, published 06/03/12, hard drive option: http://downloads.dell.com/FOLDER98923M/11/HLDS_DP10N-EXTERNAL-USB-DVD-_A02_R318499.exe

    2 AMD SP5100 South Bridge Driver, Version 5.10.10, A00, published 10-22-2010, recommended Windows 2003 x 32 / x 64: http://ftp.us.dell.com/chipset/AMD_SP5100-SOUTH-BRIDGE_A00R262335.EXE (this one may or may not work, initially, the driver is for Server 2003 and I'm not 100% sure if they added 2008 R2 compatibility.)

    3 TEAC DV - 28 s-W 12.7 tray SATA 8 x DVD - ROM Firmware, Version R.2B, A01, published on 26/07/11, recommended problem resolves under RHEL 5 and 6 of RHEL which can cause the Machine error check on PowerEdge server platforms.  Windows & Dos: http://ftp.us.dell.com/rmsd/TEAC_DV-28S-W-12-7-TRAY-SATA_A01_R309483.exe (this one is one I think will do the most good.)

    Any other suggestions?

    Hello

    Thank you for visiting the Microsoft answers community site. The question you have posted is related to Windows Server and would be better suited to the TechNet community.

    Please visit the link below to find a community that will provide the support you want.
    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads

    I hope this helps.

Maybe you are looking for