View Single Post
Old 04-07-2009, 10:54 AM   #173
jig
Junior Member
jig began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2009
Device: itouch
lrf won't convert, NegativeArraySize exception

I get the following trying to convert several books from LRF to EPUB with ver 204.

java.lang.NegativeArraySizeException
at lrf.objects.Book.getMetaData(Book.java:228)
at lrf.objects.Book.<init>(Book.java:113)
at lrf.RecurseDirs.convertAction(RecurseDirs.java:515 )
at lrf.RecurseDirs.convertActionParams(RecurseDirs.ja va:342)
at lrf.RecurseDirs.<init>(RecurseDirs.java:88)
at lrf.RecurseDirs.main(RecurseDirs.java:40)

Have successfully converted many other books (on a Mac). But a few won't convert.

I also have one book that gets the following exception:
java.lang.IndexOutOfBoundsException
at java.nio.Buffer.checkIndex(Buffer.java:520)
at java.nio.DirectByteBuffer.getInt(DirectByteBuffer. java:648)
at lrf.buffer.MappedReader.getInt(MappedReader.java:7 0)
at lrf.objects.Book.loadObjects(Book.java:342)
at lrf.objects.Book.<init>(Book.java:115)
at lrf.RecurseDirs.convertAction(RecurseDirs.java:515 )
at lrf.RecurseDirs.convertActionParams(RecurseDirs.ja va:342)
at lrf.RecurseDirs.<init>(RecurseDirs.java:88)
at lrf.RecurseDirs.main(RecurseDirs.java:40)

It might be possible the files are corrupt as I don't have another method to test their correctness.

Also, many (most? all?) conversions end up with Unknown as author and title and no cover art.

Great set of tools. Any help appreciated.
Thanks.
jig is offline   Reply With Quote