java.io.IOError: java.io.IOException: File too large

1,365 views
Skip to first unread message

meta...@gmail.com

unread,
Feb 28, 2013, 6:24:39 AM2/28/13
to ma...@googlegroups.com
Hello.

First of all great job with this MadDB framework seems really quite useful.

However, Im getting the impression that Im missing something.

When i try to put and commit an entry to the map I keep getting this exception: java.io.IOError: java.io.IOException: File too large
Im trying to store a byte[] enclosed in serializable class. The array as 50KB. With would be no problem as in previous topics people were talking about N GBs of data.

Why is this happening and how can i work around it ??.

Thank you.

There is my code;
File dbFile = new File("MapDBPersistent");
   DB db = DBMaker.newFileDB(dbFile)
     .closeOnJvmShutdown().cacheLRUEnable()
     .make();
       
mem = db.getTreeMap("bigMemory");       
dbEngine = db.getEngine();
___________________________________
mem.put(key, new ByteArray(array));
dbEngine.commit();

Jan Kotek

unread,
Mar 4, 2013, 8:30:33 PM3/4/13
to ma...@googlegroups.com

Hi,

>First of all great job with this MadDB

It is MapDB, but sometimes I feel your name is more correct ;-)

 

I have no idea why this error is happening. 50KB arrays are way bellow practical limits. Would you provide working code example? Where is 'ByteArray' class coming from?

 

Also try to use 'DBMaker.randomAccessFileEnable()', this may workaround the problem.

 

Jan

--
You received this message because you are subscribed to the Google Groups "MapDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapdb+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



meta...@gmail.com

unread,
Mar 6, 2013, 2:10:49 PM3/6/13
to ma...@googlegroups.com, j...@kotek.net
Hi. Sorry for the typo I did not noticed that I wrote Mad instead of Map xD.

I spent the last couple of days trying to figure out what were the problems of MapDB when applied to my workflow.
Firstly let me say that I'm trying to use MapDB to store persistently "BinaryData" that for some reasons (not relevant) i cannot store it directly on the hard drive.

The features of MapDB are quite nice and innovative, and I think you have a pretty good work so far.

I am going to open a new debate on this group so I will put every information available for you to debug this problem to its origin.
I believe MapDB has some "serious"/"tricky" problem related to Serialization or something as such I believe that my data will make you solve the problem easily. Please, see my new post.

My Best Regards.
Reply all
Reply to author
Forward
0 new messages