Poblem to persistence storage
Hi all
In my application, I use the persistence store object to store the array of objects of the class defined by the user. But whenever I run my application it showed me the error 'Error JVM 104 NonPersistableObjectException' 7 stucks execution.
In the integer part of the persistence object & all what I have try-catch instructions & I also tried with execution clean.bat hundreds of times. But I didn't come to any solution.
Is there be no problem by storing the array of objects of class user-defined?... Please help me...
Any help would be appreciated...
Concerning
Please note that all the objects that you want to store in the persistent store must be an instance of the class that implements the Persistable.
In addition, all areas inside these objects must be an instance of the class that implements the Persistable.
If the container object implements the Peristable interface, but there is a field that is not persistent, you get problems.
Another point is that if you have an instance of Vector field, check this vector elements.
All objects in this vector (or another container as an instance of the Hashtable object) must be an instance of the class that implements the Persistable.
Tags: BlackBerry Developers
Similar Questions
-
Suppose if the Blackberry app is open and it uses persistence storage to store objects in the process and in this case if the flash memory crosses. What wil happen to application or persistence will store the data in the SD card or an external to the process card remaining?
Welcome to the forums.
persistence always uses the internal storage. If it is complete there will be errors.
-
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.
-
PersistentStore.ObjectdestroyPersistent
Hello everyone!
How can I remove the Runtime object persistent data?
When I do PersistentStore.ObjectdestroyPersistent it removes only after I closed my request. I need to update my object persistent at runtime, and not after I close my application.
Can someone help me?
Hi rentepatrick,
You need not destroy the persistent store so that you can update its content. As mentioned by peter_strange, you can simply call setContent. You can see the dev guide. There are a few examples precisely against the persistence storage.
-
Install the application by JAD
Hi all
I developed an application of BB. I installed the application of files .alx file IE using Desktop Manager.
now, I tried to install the same application using the jad file, so I pasted the file .cod .jad, .jar in the SD card, then I install jad, a dialog box shows like "Download failed" it when I click Details-> 907 invalid COD unable to import ZIP file.
in this application, I used the persistence storage. (I'm testing on emulator)
on the other application that I haven't used persistence store is do install by JAD.
How can I solve the problem / where I have error
I could be wrong but it seems to me that your application is great, isn't it? In this case the .cod produced by CAP file is a zip of the real .cod files. In this case OTA would be better unzip them and change jad to make reference to all the. Hope this helps
-
Hi all
VVOLS still supported in VMSC (vSphere 5.5 u3 deployment) uses replication Array (HPE 3Par synchronous remote copy & persistence storage backend)?
If not, is their a road map high level that shows when this feature might be supported?
Thank you
Dryv
No, table according to replication is not currently managed with VASA 2.0 so vMSC and SRM is not supported unless you use vSphere replication. VVols itself is not supported in vSphere 5.5, it is only available in vSphere 6. Replication support is a part of the VASA 3.0 Roadmap but we cannot disclose dates on it.
-
Starting the server takes a long time due to the storage of JMS persistence files
Hello
We use WebLogic 9.2 on a windows machine.
Recently, we have improved our request to work with JMS.
We are on 2 different servers in a cluster using 2 JMS servers and works with distributed destinations.
We use file storage as our persistence store.
Recently, we found boot server takes a long time because of the actions that are performed on the storage of files.
Analysis of this problem, we have seen that the size of the file is of ~ 2 GB.
We understand that the file size does not fear (unless it is compacted manually), and its size matches the largest number ever of pending messages in the queues (as a mark of high tide).
We shot also store debugging, using weblogic. Debug.DebugStoreIOPhysical and we saw a lot of recovery after newspapers file storage is open.
We have checked and checked our JMS transactions are completed successfully. We also checked that the current messages and number of courses is 0.
We stopped the server gracefully, check that there are no messages pending.
However, several times takes start server ~ 30 minutes due to heavy work on the persistence store.
Compaction or remove storage of files eliminates the delay.
However, we want to avoid the manual operations whenever we want to start the server.
Please share your ideas.
Thank you
ItsikThe only suggestions I have off the top of my head are:
* Ensure (1) the host system has at least 2 GB (the store file size) memory physics in addition to the memory used by the current process, and (2) the host system is not rebooted between each restart WebLogic. If you ensure that both of these, then the operating system puts implicitly cached content of the file of the store in memory even between boots - when WebLogic starts subsequently storing files, the o/s should be the content of the file much more quickly.
* You can move to a JDBC store. Runtime JDBC store performance are lower, but since you have generally has only a small amount of records to retrieve, startup performance should be higher in this case.
* Not that it helps your case, but it happens that we have significant performance improvements of starting process for a future version (if all goes well a near future release).
Tom
-
Persistence of info external storage device music
I have a 16 GB USB with adapter OTG. Because I'm running out of space on my phone, I keep my music on the USB port. I can download music info (which is a bit incorrect, but that's another story) for music, but as soon as I eject the USB, all the music info is lost. This only happens when the phone is turned on. Is there a way to stop the lost music info when external storage devices are removed with music on them?
Yes: Connect this USB to your PC and use software Media Go update info music, phone updates is stored locally on the phone itself, so if you remove the USB key, reset the phone or deleted from the media database updates will be lost. Also is it better to update the media on the USB.
-
Persistence is a persistent storage
The API says:
"The persistent store provides a way for objects to persist through the unit resets." A persistent object consists of a key-value pair. When a persistent object is validated in the persistent store, value of this object is stored in a Flash through a deep copy. »
Means that this storage is "never" destroyed/erased unless I have clear it programmatically? It does not survive a change of battery, for example?
What I said, she survives everything except the OS upgrades. The RecordStore will survive everything, including upgrades of the OS, but it is less robust.
Edit: Also, the previous poster said that it will be deleted if the application is removed. This is partially true. If the object that you store in the PersistentStore interface defined in your application, then it will be erased with your application. If not, he must remain on the device. So for example, if your application stores a string String will persist even if your application is uninstalled.
-
Storage format of the file persistence database
We run OpenMQ 4.4u1 and you have multiple queues that use file-based persistence. We limit our use for the transport of mqssl to ensure that all our ObjectMessage instances are encrypted as they are sent on our internal network. However, a question arose yesterday who goes to the safety of these messages.
The question is this: are messages when you use the persistence based on files written to disk in an encrypted format?
I'm guessing that they are simply serialized and someone who understands the Java serialization could deserialize them and read the content of the message in clear text. If this is the case, we need to encrypt our load before the transmission of the message, if we want to protect the confidential data included in the message.
Thank you
Billare messages when you use the persistence based on files written to disk in an encrypted format?
N °
-
Hello
I'm going to develop a new application which need the user create a new 'book' and in this book, the user can add data name, address Pentecost and more values.
My man its what I have to use the OS 4.6.1, but I see that the support for SQLlite are up to 5.0.
So that I can use for storage and allow that user to manipulate the information?
There are several options, with permanent store the more commonly implemented a method. Check out these links:
http://supportforums.BlackBerry.com/T5/Java-development/storing-persistent-data/Ta-p/442785
-
How stored persistence of BB10
Hello
I need to store sensitive data in storage of persistence with QSettings API. Please let me know how secure it is.
Everyone can this stored trap of data persistence somehow. Likes: Reverse engineering etc.
Any link in this regard would be highly appreciated.
Thanks in advance.
lol all parameters are in a sandbox (encrypted).
only if the application stores data in the shared directory can other apps to access. -
Hi all
I use a persistent storage to store my data.
Question: Persistent data are automatically get updated while recovery of persistence data and store it in a variable local object and then modify this local variable, observe that the persistent data are also changed without saving my new changes.
I'm storage array of user defined class in persistent for example myclass [];
I used to store vector which has been also get updated so I have changes to my class, I'm storage table because I store the list of objects of 'MyClass '. By changing the vector in [myclass] problem has been solved, but now I'm getting same result once again.
I create a listener in the background that will read persistent data and send only data used to my application in the foreground, but when I do some changes in my local object again once it finds that the data gets reflected in persistent.
Please let me know what I am doing wrong. I created a library of my persistent classes so that the foreground and background the two application could access.
Looks like my storage
Class Myclass implements persistable
{
certain types of data from premitive
MyClass2 [] arrayOfSecondClass;
}
class Myclass2 implements persistable
{
certain types of data from premitive
Myclass3 [] arrayOfThirdClass;
}
class Myclass3 implements {persistable
Some data from premitive
}
//////////////////////////////////////////////////////////////
call persistent to save and retrieve data:
Thank you Peter and James,.
It's corrected now. Your example simple singleton helped to understand the major concept.
Kind regards
Aparna Bloe
-
vSphere Profile-Driven Storage Service crashing
Any ideas?
vCenter runs on a box of Windows 2008 Std x 64 with 32 GB of memory and 4vCPUs. It is a virtual machine. We run vCenter version 5.5 1891313.
We have a problem where the VMware vSphere Profile-Driven Storage service hangs. Everything started after we rebooted the server vCenter two days ago. The only change we have made to the system installed the NetApp Storage Console plugin virtual on the vCenter server. I deleted since. The event log shows "VMware vSphere service oriented storage taken end with 1 special service error service profile (0 x 1).» Any attempt to vmotion a server causes the error "a general error has occurred: invalid response code: 503 service unavailable '. VMware suggestion is to run a fix for Windows 2008 (not R2), Windows6. 0-KB950319 - x 64. It is referenced in an article KB of VMware. This fix is not applicable, as is wrapped in a service pack already applied. If I try to run wrapper.exe use the wrapper.conf for service, the output is as follows:
Wrapper | --> Wrapper started as Console
Wrapper | Java Service Wrapper Professional Edition 64-bit 3.4.0
Wrapper | Copyright (C) 1999-2010 Tanuki Software, Ltd.. All rights reserved.
wrapper | http://wrapper.tanukisoftware.org
Wrapper | Global VMware, Inc. a license for VMware vSphere Profile-Driven storage
Wrapper |
Wrapper | Launching a JVM...
JVM 1 | WrapperManager: initializing...
JVM 1 | WrapperManager: 31300 already in service Port, using the port 31301 instead.
JVM 1 | March 10, 2015 init org.apache.catalina.core.AprLifecycleListener 13:28:53
JVM 1 | NEWS: APR based Apache Tomcat Native library that allows optimal performance in production environments was not found on the java.library.path:... / lib
JVM 1 | March 10, 2015 init org.apache.coyote.AbstractProtocol 13:28:53
JVM 1 | INFO: Initializing ProtocolHandler [' bio-http - 0.0.0.0 - 8200 ']
JVM 1 | March 10, 2015 init org.apache.coyote.AbstractProtocol 13:28:53
JVM 1 | INFO: Initializing ProtocolHandler [' bio-http - 0.0.0.0 - 8201 "]
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.core.StandardService startInternal
JVM 1 | INFO: Start the Tomcat service
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.core.StandardEngine startInternal
JVM 1 | INFO: Starting the Servlet engine: VMware vFabric tc LIFE 2.8.1.RELEASE/7.0.32.B.RELEASE
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.startup.DigesterFactory register
JVM 1 | WARNING: Could not get url for /javax/servlet/jsp/resources/jsp_2_0.xsd
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.startup.DigesterFactory register
JVM 1 | WARNING: Could not get url for /javax/servlet/jsp/resources/jsp_2_1.xsd
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.startup.DigesterFactory register
JVM 1 | WARNING: Could not get url for /javax/servlet/jsp/resources/jsp_2_2.xsd
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.startup.DigesterFactory register
JVM 1 | WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.startup.DigesterFactory register
JVM 1 | WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.startup.DigesterFactory register
JVM 1 | WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_2_0.xsd
JVM 1 | March 10, 2015 13:28:53 org.apache.catalina.startup.DigesterFactory register
JVM 1 | WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd
JVM 1 | March 10, 2015 start of org.apache.coyote.AbstractProtocol 13:28:54
JVM 1 | INFO: From ProtocolHandler [' bio-http - 0.0.0.0 - 8200 ']
JVM 1 | March 10, 2015 start of org.apache.coyote.AbstractProtocol 13:28:54
JVM 1 | INFO: From ProtocolHandler [' bio-http - 0.0.0.0 - 8201 "]
JVM 1 | March 10, 2015 init org.apache.coyote.AbstractProtocol 13:28:55
JVM 1 | INFO: Initializing ProtocolHandler [' bio-http - 0.0.0.0 - 32010 ']
JVM 1 | March 10, 2015 init org.apache.coyote.AbstractProtocol 13:28:55
JVM 1 | INFO: Initializing ProtocolHandler [' bio-http - 0.0.0.0 - 32100 "]
JVM 1 | March 10, 2015 13:28:55 org.apache.catalina.core.StandardService startInternal
JVM 1 | INFO: Start the Tomcat service
JVM 1 | March 10, 2015 13:28:55 org.apache.catalina.core.StandardEngine startInternal
JVM 1 | INFO: Starting the Servlet engine: VMware vFabric tc LIFE 2.8.1.RELEASE/7.0.32.B.RELEASE
JVM 1 | March 10, 2015 start of org.apache.coyote.AbstractProtocol 13:28:55
JVM 1 | INFO: From ProtocolHandler [' bio-http - 0.0.0.0 - 32010 ']
JVM 1 | March 10, 2015 start of org.apache.coyote.AbstractProtocol 13:28:55
JVM 1 | INFO: From ProtocolHandler [' bio-http - 0.0.0.0 - 32100 "]
JVM 1 | 13:28:56 opId = ERROR - cannot save the SPS in QS:com.vmware.vim.binding.dataservice.fault.AlreadyExistsFault:
JVM 1 |
JVM 1 | inherited from com.vmware.vim.binding.dataservice.fault.AlreadyExistsFault
JVM 1 | 13:28:57 opId ERROR = - Impossible to add the XML document to QS:com.vmware.vim.query.client.exception.ValidationException: got the status code: reason 400: bad request
JVM 1 | 13:28:57 opId ERROR = - politics of Storage Service could not be initialized: com.vmware.sps.fault.PersistenceException: failure of persistence with the exception
JVM 1 | WrapperSimpleApp:
JVM 1 | WrapperSimpleApp: Encountered an error main running:
JVM 1 | WrapperSimpleApp: com.vmware.sps.fault.SpsInitializedException: politics of Storage Service could not be initialized.
JVM 1 |
JVM 1 | WrapperSimpleApp: at com.vmware.sps.SpsLocalService.run (unknown Source)
JVM 1 | WrapperSimpleApp: at com.vmware.sps.StorageMain.main (unknown Source)
JVM 1 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
JVM 1 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
JVM 1 | WrapperSimpleApp: at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
JVM 1 | WrapperSimpleApp: at java.lang.reflect.Method.invoke (unknown Source)
JVM 1 | WrapperSimpleApp: to org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:244)
JVM 1 | WrapperSimpleApp: at java.lang.Thread.run (unknown Source)
JVM 1 | WrapperSimpleApp: Due: com.vmware.sps.fault.PersistenceException: failure of persistence with the exception
JVM 1 | WrapperSimpleApp: at com.vmware.sps.qs.InventoryServiceImpl.persistEntityAsString (unknown Source)
JVM 1 | WrapperSimpleApp: at com.vmware.sps.qs.InventoryServiceImpl.persistEntity (unknown Source)
JVM 1 | WrapperSimpleApp: at com.vmware.sps.datastore.StorageCapabilityServiceImpl.createSystemLabelCapability (unknown Source)
JVM 1 | WrapperSimpleApp: at com.vmware.sps.datastore.StorageCapabilityServiceImpl.createSystemLabelCapability (unknown Source)
JVM 1 | WrapperSimpleApp: at com.vmware.sps.datastore.StorageCapabilityServiceImpl.initializeSystemCapability (unknown Source)
JVM 1 | WrapperSimpleApp: at com.vmware.sps.datastore.StorageCapabilityServiceImpl.initializeService (unknown Source)
JVM 1 | WrapperSimpleApp:... 8 more
JVM 1 | WrapperSimpleApp: Due: com.vmware.sps.fault.QsQueryException: document adding XML to query the xDB service failed:
JVM 1 | WrapperSimpleApp: at com.vmware.sps.qs.SpsQsProvider.addContent (unknown Source)
JVM 1 | WrapperSimpleApp:... 14 more
JVM 1 | WrapperSimpleApp: Due: com.vmware.vim.query.client.exception.ValidationException: got the status code: reason 400: bad request
JVM 1 | WrapperSimpleApp: to com.vmware.vim.query.client.impl.ValidationHelper.validateResponseCode(ValidationHelper.java:29)
JVM 1 | WrapperSimpleApp: to com.vmware.vim.query.client.impl.HttpUtil.executeWithNoResponse(HttpUtil.java:65)
JVM 1 | WrapperSimpleApp: to com.vmware.vim.query.client.provider.impl.AtomFeedPosterImpl.postFeedImpl(AtomFeedPosterImpl.java:76)
JVM 1 | WrapperSimpleApp: to com.vmware.vim.query.client.provider.impl.AtomFeedPosterImpl.access$ 000 (AtomFeedPosterImpl.java:28)
JVM 1 | WrapperSimpleApp: to com.vmware.vim.query.client.provider.impl.AtomFeedPosterImpl$ 1.doAction(AtomFeedPosterImpl.java:44)
JVM 1 | WrapperSimpleApp: to com.vmware.vim.query.client.provider.impl.AtomFeedPosterImpl$ 1.doAction(AtomFeedPosterImpl.java:41)
JVM 1 | WrapperSimpleApp: to com.vmware.vim.query.client.impl.RetryAction.execute(RetryAction.java:33)
JVM 1 | WrapperSimpleApp: to com.vmware.vim.query.client.provider.impl.AtomFeedPosterImpl.postFeed(AtomFeedPosterImpl.java:41)
JVM 1 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
JVM 1 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
JVM 1 | WrapperSimpleApp: at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
JVM 1 | WrapperSimpleApp: at java.lang.reflect.Method.invoke (unknown Source)
JVM 1 | WrapperSimpleApp: to com.vmware.sps.util.impl.ServiceProxyFactory$ ProxyInvocationHandler.invokeMethod (unknown Source)
JVM 1 | WrapperSimpleApp: to com.vmware.sps.util.impl.ServiceProxyFactory$ ProxyInvocationHandler.invokeMethod (unknown Source)
JVM 1 | WrapperSimpleApp: to com.vmware.sps.util.impl.ServiceProxyFactory$ ProxyInvocationHandler.invoke (unknown Source)
JVM 1 | WrapperSimpleApp: at com.sun.proxy. $Proxy41.postFeed (unknown Source)
JVM 1 | WrapperSimpleApp: at com.vmware.sps.qs.SpsQsProvider.createAtomFeed (unknown Source)
JVM 1 | WrapperSimpleApp:... 15 more
Wrapper | <-wrapper order
Thank you. I could see this thread before I post my article. Finally, I supported on VMware to help me despite not being able to apply the patch. I was up to a high level engineer who determined that the Inventory Service database is corrupted and to rebuild. After completing this task, everything is now operational. I hope this helps anyone else who encounters this situation.
-
PowerCLI script necessary comments and storage.
Hello
I was wondering if someone can help me with a script. I'm looking for a script that will list all guests in a vCenter and their storage.
Thank you in advance,
Something like that?
Get-VM | %{ $vm = $_ $vm | Get-HardDisk | Select @{N="VM";E={$vm.Name}},Name, Capacity,Storageformat,Persistence,Filename }
Or are you looking for other properties to storage?
____________
Blog: LucD notes
Twitter: lucd22
Maybe you are looking for
-
Where to get cheap for Equium power cable
Can anyone tell where to find a power cord AC cheap for an out of warranty Equium laptop.
-
Qosmio G35 - need latest version of the driver for GEForce Go 6600 drivers
The drivers provided with this laptop, driver 7.1.1.8 version cannot handle Microsoft CFS3. Cause is the Simulator to lock. It runs Microsoft FS2004, but the land is horrible looking. Anyone know where I can download the latest drivers for this lapto
-
and why he doesn't remember my password, even if I ask him in?
-
I recently lost the mouse and that you have not saved my files on the computer, ive done nothing to cause this problem, any help is appreciated. I think that it must be something windows of width for do not cause computer usb sound and the area of th
-
Hi allThere are a lot of accounts to my outline that were never used and is never used. What is the best way to remove them from the sketch?Thank you