Re: Truncation Error
"Francisco J. Bido" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Tim, Really appreciate the tip. I will go with MySQL. Take care, -Francisco On Jul 11, 2005, at 10:35 AM, Tim Anderson wrote: > It looks like the serialized message size is bigger than that > allowed by Derby > for the LONG VARCHAR column. > > From http://incubator.apache.org/derby/docs/ref/rrefsqlj30118.html: > > "The LONG VARCHAR FOR BIT DATA type allows storage of bit strings > up to 32,700 bytes" > > It may be possible to change the database schema to use BLOB > instead of LONG VARCHAR FOR BIT DATA (aka LONG VARBINARY). > OpenJMS uses LONG VARBINARY instead of BLOB as vendor support > for BLOB is patchy. > > Another workaround is to use another database which doesn't have this > size restriction, such as MySQL. > > -Tim > > > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:openjms-user- > [email protected]] On Behalf Of Francisco J. Bido > Sent: Saturday, 9 July 2005 9:52 AM > To: [email protected] > Subject: [openjms-user] Truncation Error > > Hi Everyone, > > Not sure what to make out this one... Has anyone seen it before? > > http://openjms.sourceforge.net > 13:21:48.688 INFO [main] - Server accepting connections on tcp:// > 10.173.141.52:3035/ > 13:21:48.693 INFO [main] - JNDI service accepting connections on > tcp://10.173.141.52:3035/ > 13:21:48.696 INFO [main] - Admin service accepting connections on > tcp://10.173.141.52:3035/ > 13:21:48.813 INFO [main] - Server accepting connections on rmi:// > 10.173.141.52:1099/ > 13:21:48.814 INFO [main] - JNDI service accepting connections on > rmi://10.173.141.52:1099/ > 13:21:48.815 INFO [main] - Admin service accepting connections on > rmi://10.173.141.52:1099/ > 13:24:30.347 ERROR [RMI TCP Connection(4)-10.123.140.57] - Failed > to make message persistent > org.exolab.jms.persistence.PersistenceException: > ERROR 22001: A truncation error was encountered trying to shrink > LONG VARCHAR FOR BIT DATA 'XX-RESOLVE-XX' to length 32700. > at org.apache.derby.iapi.error.StandardException.newException > (StandardException.java) > at org.apache.derby.iapi.types.SQLBinary.checkHostVariable > (SQLBinary.java) > at org.apache.derby.exe.ac601a400fx0104xf7aex87f0xffffd7390ab56.e0 > (Unknown Source) > at org.apache.derby.impl.services.reflect.DirectCall.invoke > (ReflectGeneratedClass.java) > at org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore > (RowResultSet.java) > at > org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore > (NormalizeResultSet.java) > at > org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore > (DMLWriteResultSet.java) > at org.apache.derby.impl.sql.execute.InsertResultSet.open > (InsertResultSet.java) > at org.apache.derby.impl.sql.GenericPreparedStatement.execute > (GenericPreparedStatement.java) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement > (EmbedStatement.java) > at > org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement > (EmbedPreparedStatement.java) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate > (EmbedPreparedStatement.java) > at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate > (DelegatingPreparedStatement.java:233) > at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate > (DelegatingPreparedStatement.java:233) > at org.exolab.jms.persistence.Messages.add(Messages.java:175) > at org.exolab.jms.persistence.RDBMSAdapter.addMessage > (RDBMSAdapter.java:326) > at org.exolab.jms.messagemgr.MessageMgr.addPersistentMessage > (MessageMgr.java:302) > at org.exolab.jms.messagemgr.MessageMgr.add(MessageMgr.java:227) > at org.exolab.jms.server.JmsServerSession.send > (JmsServerSession.java:221) > at org.exolab.jms.server.net.RemoteServerSession.send > (RemoteServerSession.java:152) > at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > > > Best, > -Francisco