<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/jeeutils/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/jeeutils/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 25 Oct 2010 12:36:48 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jeeutils/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Misealing exception message upon DB truncation</title><link>https://sourceforge.net/p/jeeutils/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When DB initialization fails because data for a field is larger then its schema definition allows, a misleading exception regarding nonexistant schema is thrown and the cause must be check to find the real error.:&lt;/p&gt;
&lt;p&gt;[WARN] EmbeddedDbTester - If the initial DB cleanup failed because of nonexistant schema (usually same as logged-in user name, for derby SA), set the System property PropertiesBasedJdbcDatabaseTester.DBUNIT_SCHEMA to an existing schema. &lt;br /&gt;
Error: A truncation error was encountered trying to shrink CHAR 'ManagerCnum' to length 10. &amp;lt;java.sql.SQLException: A truncation error was encountered trying to shrink CHAR 'ManagerCnum' to length 10.&amp;gt;java.sql.SQLException: A truncation error was encountered trying to shrink CHAR 'ManagerCnum' to length 10.&lt;br /&gt;
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source)&lt;br /&gt;
at org.dbunit.database.statement.SimplePreparedStatement.addBatch(SimplePreparedStatement.java:67)&lt;br /&gt;
at org.dbunit.database.statement.AutomaticPreparedBatchStatement.addBatch(AutomaticPreparedBatchStatement.java:57)&lt;br /&gt;
at org.dbunit.operation.AbstractBatchOperation.execute(AbstractBatchOperation.java:187)&lt;br /&gt;
at org.dbunit.operation.CompositeOperation.execute(CompositeOperation.java:67)&lt;br /&gt;
at org.dbunit.AbstractDatabaseTester.executeOperation(AbstractDatabaseTester.java:132)&lt;br /&gt;
at org.dbunit.AbstractDatabaseTester.onSetup(AbstractDatabaseTester.java:60)&lt;br /&gt;
at net.jakubholy.testing.dbunit.embeddeddb.impl.EnhancedDatabaseTesterDecorator.onSetup(EnhancedDatabaseTesterDecorator.java:153)&lt;br /&gt;
at net.jakubholy.testing.dbunit.embeddeddb.EmbeddedDbTester.onSetup(EmbeddedDbTester.java:491)&lt;br /&gt;
at com.ibm.education.saba.interfaces.batch.master.extract.jdbc.JdbcPersonExtractorImplTest.setUp(JdbcPersonExtractorImplTest.java:34)&lt;br /&gt;
...&lt;br /&gt;
Caused by: ERROR 22001: A truncation error was encountered trying to shrink CHAR 'ManagerCnum' to length 10.&lt;br /&gt;
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)&lt;br /&gt;
at org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(Unknown Source)&lt;br /&gt;
at org.apache.derby.iapi.types.SQLChar.normalize(Unknown Source)&lt;br /&gt;
at org.apache.derby.iapi.types.SQLChar.normalize(Unknown Source)&lt;br /&gt;
at org.apache.derby.iapi.types.DataTypeDescriptor.normalize(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeRow(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)&lt;br /&gt;
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)&lt;br /&gt;
... 35 more&lt;/p&gt;
&lt;p&gt;Version: 1.1.0&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakub Holý</dc:creator><pubDate>Mon, 25 Oct 2010 12:36:48 -0000</pubDate><guid>https://sourceforge.net7ce5f25f7be9b53c17764859fe8970a0f9d2e5ca</guid></item></channel></rss>