Weird RecordStore error - help...anybody?

I am receiving an error from a command of the following form:
setRecord(1, data, 0, data.length)
where data is a byte array (defined by a toByteArray() from a ByteArrayOutputStream).
The error states:
javax:microedition.rms.RecordStoreException: Error setting record data: java.io.IOException: write exceeds maximum file size.
The thing I find weird is that, when I display the getSize() and getSizeAvailable() on the RecordStore, I get really big numbers, like:
size is 62200
size available is 546972
while my data is small,
data.length = 9536
So I am confused by the "exceeds maximum file size" notice. The data is definitely small enough to fit in what memory I have available. And...Is there a file involved or is something not quite right with the message, which also appears to have the form of two error messages merged as one.
Does anyone have any ideas as to what I am encountering here? Would anyone know of anyway I can track down such a problem? I'm a bit lost as to how to debug this since it seems like there isn't much I can play around with given the somewhat limited amount of things I can do (and mess up) with RecordStores. Could it be a memory leak/overwrite? (I'm not sure that that is too likely, particularly in Java, but I'm at a bit of a loss as to where to find problems to try to get my hands on.)
Thanks for any help, advice or thoughts!

Hi, I'm writing app, which saves images to RS.
public void saveImage(String path) {
        RecordStore rs = null;    // Record store
        String RECORD_STORE = path; // Name of record store
        addImageName(path);
        try {
            rs = RecordStore.openRecordStore(RECORD_STORE, true );
            rs.addRecord(data, 0, data.length);
            System.out.println("data lenght : " + data.length);
            System.out.println("writing finished");
            rs.closeRecordStore();
        catch (Exception e) {
        dpy.setCurrent(l);
    }this works...this methos saved even 25kB...

Similar Messages

  • Weird JBuilder error, help is appreciated

    I built an application using notepad and command line comilation which worked fine. However, now we've got JBuilder and I have to put all the code into it. Just putting it directly in did not work, so any advice on that in general would be appreciated, because I'm not at all familiar with JBuilder.
    I'm trying to copy paste some of my classes into JBuilder, they're really just support classes for my application itself. In particular, I have an extension of a JTable called MyTable with supporting files. There is a main class MyTable in file MyTable.java and a supporting interface CellColor in file CellColor.java along with many other supporting classes & interfaces in their own files.
    I am just trying to get it to compile without even using it in the application yet. However, JBuilder keeps giving this error:
    "CellColor.java": Duplicate definition of class automated_base_schedule.CellColor, defined in \src\automated_base_schedule\CellColor.java and also defined in \src\automated_base_schedule\MyTable.java.I have checked and rechecked file MyTable.java (it's not a big file anyways), but it definitely does not redefine CellColor interface. In fact it doesn't even mention it (it's implemented by another class that supports MyTable). I've also checked all the other files in case it was redefined by them.
    I can't do anything until I fix this problem. Any advice that might help would be greatly appreciated. Thanks!

    You have duplicates.
    I would suggest starting another project, workspace (or whatever is is called) and put your stuff in there.
    If someone else created the work space then get that again and completely remove your existing one and then replace it with the other one. (Completely means finding the directory and removing it.)

  • HT1766 my iphone version is 7.0 and it has been expired im trying to downgrade it but itunes gives me errors can anybody help ?

    my iphone version is 7.0 and it has been expired im trying to downgrade it but itunes gives me errors can anybody help ?

    You should be posting this in the Developer Forums, to which, as a developer, you have access. Discussion of beta software isn't permitted in the public forums due to the NDAs you sign as a developer.
    Best of luck.

  • Hi on MAC OSX 10.7.4 update on Aperture 3.3.1 has been done, still gget the error message "By opening the databank  for the Mediathek „~/Pictures/Aperture Library.aplibrary" is an error" is anybody out there to help me?

    Hi on MAC OSX 10.7.4 update on Aperture 3.3.1 has been done, still gget the error message "By opening the databank  for the Mediathek „~/Pictures/Aperture Library.aplibrary“ is an error" is anybody out there to help me?

    Alex,
    did you just upgrade from an Aperture 3.2.x version to Aperture 3.3.1? This error message usually occures after the upgrade to 3.3.1, when Aperture cannont convert the library format to 3.3. format.
    I'd try to repair the Aperture Library (Mediathek), before upgrading it. Hold down the option-command key combination (⌥⌘) while double-clicking Aperture. This will bring the "Aperture Library First Aid Tools" panel forward. Select "Rebuild Database" and see, if it will resolve the the problem.
    Good luck
    Léonie

  • My Iphone 5 give me a error (-1) anybody knows what should i do. I need Help.

    my Iphone 5 give me a error (-1) anybody knows what should i do. I need Help.

    Complain to your carrier in Portugal, as this has nothing to do with Apple. Of the three official carriers in Portugal, only Vodafone offers official unlocking. So, if your carrier is not Vodafone, you're out of luck.

  • HT1491 When I try to download a song from iTunes or try to buy an App, or even purchase an extra set of lives on Candy Crush (!), I get an error message - 'Unknown Error'. Anybody have any ideas?

    When I try to download a song from iTunes or try to buy an App, or even purchase an extra set of lives on Candy Crush (!), I get an error message - 'Unknown Error'. Anybody have any ideas?

    Try this and see if it helps. Refresh your iTunes account. Sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to purchase again.

  • I have an hp office jet 4500 and os maverick 10.9.4 and I can't get it to print after last upgrade, multiple malfunctions and error, help?

    I have an hp office jet 4500 and os maverick 10.9.4 and I can’t get it to print after last upgrade, multiple malfunctions and error, help? I have tried deleting and resetting printer and re-installing update 6 times. Last update attempt showed none available??? I can’t load the software directly from HP because their only option is to use the software update option on the mac....frustrated!!! Help!!
    I get blank pages that just run through the printer and a stats window that just 33% complete and goes no further.

    I am going on the guess that an old driver is still installed...
    Use Finder Go > go to folder, and go to /Library/Printers and delete the HP folder(s).
    Reset the Printing System:
    OS X Mavericks: Reset the printing system
    Now, Add the printer in Print & Scan prefs.

  • I updated to the latest IOS and now my passwords don't work.  Reset 4 time which reset for my iPad and iPhone but I cant log into my itunes account using my apple ID it indicates an error, Help?

    I updated to the latest IOS and now my passwords don't work.  Reset 4 time which reset for my iPad and iPhone but I cant log into my itunes account using my apple ID it indicates an error, Help?

    This may sound crazy, but download any free app.  This often "shocks" the other apps into working.

  • HT6208 Cannot download the latest update 7.1.1 even though plugged in and on wifi keeps saying error help!!!!!

    Cannot download the latest update 7.1.1 even though plugged in and on wifi keeps saying error help!!!!!

    I am not getting an errr #. It just says that there are purchases on my ipod, not in my itunes. I transfer all of my ipod purchases into itunes. Then I try an download the new version of my ipod 7.1.1. It still says there are purchases on my ipod touch. So I just hit continue because their are not purchases on my ipod, that aren't in itunes. It extracts the software, and backs up ipod. Then itunes just closes. When I reopen it I get the same message A new iPod software version (7.1.1) is available for the iPod “My" iPodl”. Would you like to update your iPod now? My imac has recently been restored to as new, I have the newest ipod touch, and my version of itunes is also the newest version. The only thing that I can assume is that the problem, is another untested & bad update, from Capn Cook.

  • Trying to make a photobook but can't get pages to open by double clicking. Photos from Iphoto 9.6. Help anybody?

    Trying to make a photobook but can't get pages to open by double clicking. Photos from Iphoto 9.6. Help anybody?

    What do you mean? Are you not able to switch from "All pages" view of the book to a single page view by double-clicking a selected page? Or what is the problem?
    Or can you not open the book at all from the source list?

  • When m testing webdynpro abap application m getting this error  help me to get solution

    hi all,
    when m testing webdynpro abap application m getting this error  help me to get solution.
    plz find the screen shot

    Hi
    I think you are using the IDES system, Can you check the services in SICF transaction. If the service is not activated you activate it again.
    In this path you will find  in the below path and try to check/activate the services relevant to the WDA stack.
    sap/bc/webdynpro/sap

  • Can't authorize ADE, get an activation server error - help?

    can't authorize ADE, get an activation server error - help?

    per YuvrajShinde071 
    Follow these steps,
    1. Launch Adobe Digital Editions
    2. Keeping ADE program active on your screen, Hold Ctrl+Shift+D keys.
         - you will get a prompt window to Erase Authorization (ADE 2.0) & Deauthorize (ADE 1.7.2)
         - Deauthorize ADE and Re-launch it.
    3. Navigate to Help > Authorize Computer (in ADE 2.0) & Library > Authorize ( in ADE 1.7.2, usually you will be prompted to authorize when you launch the program ) .

  • I have ipod nano 6G.I was trying to restore it to clear all the data but it showed error 1439 and couldn't restore.I tried every method given in errors help page but nothing worked.What should i do?

    I have ipod nano 6G.I was trying to restore it to clear all the data but it showed error 1439 and couldn't restore.I tried every method given in errors help page but nothing worked.What should i do?

    Just in case (even though your symptoms aren't explicitly mentioned in the document), let's check to see if there's a LSP problem in play here:
    Apple software on Windows: May see performance issues and blank iTunes Store

  • Not able to download ios 5 it says network error help me plz...

    not able to download ios 5 it says network error help me plz...

    hi,
    Have you try to download in your iTunes putting off your firewall ?
    Be careful with this aunction and put in on after the download.
    Have a nice day

  • MSI GE620DX weird problem pls help anyone^

    My laptop has this weird issue, whenever I open my lappy, its overheating, the nvidia processor is always running even if no games are opened, so to avoid this I need to open the winddows task manager, and the overheating stops, the laptop is good again, even on games.. the issue is I had to open the task manager to avoid overheating which is kind of weird.. any help???   
    the msi ge620 has blue and red light on its power button.. when not on gaming and other intensive apps it should be in color blue which is the integrated graphics... my issue is it stays in red whenever bootup, and its overheating,,,, so to avoid this I had to open the task manager everytime, and it would be fine.. weird

    Quote from: n2th2n on 03-December-12, 14:58:17
    My laptop has this weird issue, whenever I open my lappy, its overheating, the nvidia processor is always running even if no games are opened, so to avoid this I need to open the winddows task manager, and the overheating stops, the laptop is good again, even on games.. the issue is I had to open the task manager to avoid overheating which is kind of weird.. any help???   
    the msi ge620 has blue and red light on its power button.. when not on gaming and other intensive apps it should be in color blue which is the integrated graphics... my issue is it stays in red whenever bootup, and its overheating,,,, so to avoid this I had to open the task manager everytime, and it would be fine.. weird
    I dont want to hjack this topic but I got the same issue, same pc (GE620DX). At the momment its on repairs and whats the temperature you recieve when task manager is on? (in-game, without game).
    Because my laptop overheats to 85 in-game and 65 without.

Maybe you are looking for

  • Sync via wifi to desktop no longer works after update

    Hi all I was running ios 7.0.2 and syncing to itunes on my desktop via  was fine.  Now I've updated to 7.0.4 (I skipped 7.0.3) I'm now unable to sync via wifi???????! I have hear that iCloud Keychain could be the problem but I haven't set up an accou

  • Creative Sound Blaster Audigy Platinum

    Im having issues with this card when I bought it it was great but now after reformats and installing from the software disc I frist recieve an error saying it cant find the remote reciever then I recieve an exclamation mark next to the audio media co

  • Wiping my hard drive

    I've been having a lot of problems with software lately and I want to completely start over. I have both install CD's and everything else that I need to keep backed up. The only thing is I am not sure how to completely erase my hard drive. I'm curren

  • Adobe Audition 3 Errors

    Hi When I started Adobe audition 3 today I encountered an error and on searching forums my problem is the same as described by others. The cut and paste below is from 2008, but same problems If you have advice Thankyou I don't know what caused this,

  • MEDIA PENDING - what is it?

    I left my project opened for an hour, and after i returned i saw yellow screen instead of video with "media pending" written in different languages what is it, who knows?