Skip to main content

RecordStoreFullException

4 replies [Last post]
acassio
Offline
Joined: 2008-06-30
Points: 0

Hi all,

Why the simple code using RMS always return the RecordStoreFullException?

i'm running in lastest build of phoneme feature of davy.

[]z

Acássio

Message was edited by: acassio

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
acassio
Offline
Joined: 2008-06-30
Points: 0

any ideas? :\

acassio
Offline
Joined: 2008-06-30
Points: 0

Hi all,

Can anyone help me?

Give me a simple example of use of the RMS that works...

I hope for help... :\

thanks

Acássio'z

Message was edited by: acassio

themik
Offline
Joined: 2006-10-13
Points: 0

Hi Acássio'z,

I have two ideas about your issue.
First, please check that your appdb directory (it is somewhere not far from runnable binaries) is not write-protected.
Then, if it is not, look into configuration file
./src/configuration/configuration_xml//constants.xml
There is a recordstore volume limit per midlet suite defined by constant STORAGE_SUITE_LIMIT. Is value there big enough? If it is not, increase properly and rebuild.

Does this help? If not, please specify your platform and cite your code that causes the exception.

Here is a simple working code.
byte[] data;
int recordId;

data = new byte[5];
for (int i = 0; i < data.length; i++) {
data[i] = (byte)i;
}

RecordStore store = RecordStore.openRecordStore("STORE_NAME", true);
recordId = store.addRecord(data, 0, data.length);
store.closeRecordStore();

Regards,
Misha

themik
Offline
Joined: 2006-10-13
Points: 0

Hmm... Something's wrong with form editor here. Trying to insert code once again.
Here is a simple working code.
byte[] data = new byte[5];
int recordId;

RecordStore store = RecordStore.openRecordStore("STORE_NAME", true);
recordId = store.addRecord(data, 0, data.length);
store.closeRecordStore();

Message was edited by: themik