This one time, at band camp, Jeszenszky Peter said:
JP>I store blobs in a table column of type bytea using PostgreSQL.
JP>Everything works fine but if the size of the blob exceeds a
JP>certain limit somewhere around 10 megabytes I get the following
JP>exception:
JP>
JP>org.exolab.castor.jdo.PersistenceException: Nested error:
java.nio.BufferOverflowException
JP> at
org.exolab.castor.persist.TransactionContext.create(TransactionContext.java:921)
JP> at org.exolab.castor.jdo.engine.DatabaseImpl.create(DatabaseImpl.java:366)
JP>
JP>Is it a bug? Any idea how to resolve the problem?
Peter,
The exception you're receiving is indicative of Castor not being aware of
the mapping for the class you're attempting to persist. It seems extremely
odd that this would work with smaller BLOBs but not with larger ones. If
it works once, then Castor should not suddenly think that the class is
not persist capable.
Unfortunately I've never stored LOBs in PostgreSQL before, I've always
done that with Oracle. Ned used to be our PostgreSQL guru with LOBs. Right
before Ned went inactive he wrote the doc about BLOBs and PostgreSQL:
http://www.castor.org/postgresql-blobs.html
Unfortunately this doc doesn't provide a lot of detail as I believe he
only took one cut at it before he had to go inactive. Does anyone in
the community have any experience with this topic? Anyone?
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://incubator.apache.org/projects/geronimo.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev