• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

RMS Problem With Nokia 6230

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im trying to run this segment of code to save some records in RMS

try {
print("\n RMS Size "+recordStore.getSize());
print("\n Available Size "+recordStore.getSizeAvailable());
print("\n Current Record Size "+recData.length);
print("\n AAA: GOING TO SAVE RECORD " + (recordsCount+1));

recordID = rs.addRecord(recData, 0, recData.length);
print("\n BBB: RECORD SAVED " + (recordsCount+1));
recordsCount++;

}
catch (RecordStoreNotOpenException rsnoe) {
print("\n CCC: RSNOExc WHILE SVING RECORD ID " +
recordsCount);
print("\n DDD: EXCEPTION MSG: " +rsnoe.toString());

}catch(RecordStoreException rse){
print("\n EEE: RecordstoreException RECORD ID " +
recordsCount);
print("\n FFF: EXCEPTION MSG: " +rse.toString());

}

and get this output


RMS size 29568
Available size 1386358
Current record size 3476
AAA: going to save record 9
EEE: RecordStoreException at Record id 9
FFF: Exception msg: javax.microedition.rms.RecordStoreFullException

now check this output which shows that Available size over than 13MB but it get RecordStoreFullException while adding record of 3479 bytes

Could you please tell me why this exception is being raised or is there any solution to fix it
Thanx in advance
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, not sure if this is correct. But adding the used amount to record #9 size, it makes it go over 32K. Maybe the phone has a limitation of up to 32K per RecordStore.

Mark
 
author
Posts: 1432
5
Python TypeScript Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
Well, not sure if this is correct. But adding the used amount to record #9 size, it makes it go over 32K. Maybe the phone has a limitation of up to 32K per RecordStore.

Mark



True. Series 40 devices do have such limitations. It is a bummer but you have to live with it.
 
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic