I use LONGTEXT to store XML documents. When I try to access a LONGTEXT column throw mysql-je, I get this exception :
java.lang.IllegalArgumentException
at java.nio.Buffer.<init>(Buffer.java:174)
at java.nio.ByteBuffer.<init>(ByteBuffer.java:259)
at java.nio.ByteBuffer.<init>(ByteBuffer.java:267)
at java.nio.MappedByteBuffer.<init>(MappedByteBuffer.java:64)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:94)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at com.mysql.embedded.jdbc.BindArray.allocateBuffer(Unknown Source)
at com.mysql.embedded.jdbc.BindArray.initialize(Unknown Source)
at com.mysql.embedded.jdbc.MyPreparedStatement.retrieveResult(MyPreparedStatement.java:157)
at com.mysql.embedded.jdbc.MyPreparedStatement.execute(MyPreparedStatement.java:103)
at com.mysql.embedded.jdbc.MyPreparedStatement.executeQuery(MyPreparedStatement.java:462)
I get this exception each time I access a LONGTEXT column.
Does someone have an idea ?
Thanks a lot in advance,
Christophe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I use LONGTEXT to store XML documents. When I try to access a LONGTEXT column throw mysql-je, I get this exception :
java.lang.IllegalArgumentException
at java.nio.Buffer.<init>(Buffer.java:174)
at java.nio.ByteBuffer.<init>(ByteBuffer.java:259)
at java.nio.ByteBuffer.<init>(ByteBuffer.java:267)
at java.nio.MappedByteBuffer.<init>(MappedByteBuffer.java:64)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:94)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
at com.mysql.embedded.jdbc.BindArray.allocateBuffer(Unknown Source)
at com.mysql.embedded.jdbc.BindArray.initialize(Unknown Source)
at com.mysql.embedded.jdbc.MyPreparedStatement.retrieveResult(MyPreparedStatement.java:157)
at com.mysql.embedded.jdbc.MyPreparedStatement.execute(MyPreparedStatement.java:103)
at com.mysql.embedded.jdbc.MyPreparedStatement.executeQuery(MyPreparedStatement.java:462)
I get this exception each time I access a LONGTEXT column.
Does someone have an idea ?
Thanks a lot in advance,
Christophe
fixed in version 1.2