<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/jeeutils/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/jeeutils/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/jeeutils/bugs/</id><updated>2010-10-25T12:36:48Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Misealing exception message upon DB truncation</title><link href="https://sourceforge.net/p/jeeutils/bugs/1/" rel="alternate"/><published>2010-10-25T12:36:48Z</published><updated>2010-10-25T12:36:48Z</updated><author><name>Jakub Holý</name><uri>https://sourceforge.net/u/malyvelky/</uri></author><id>https://sourceforge.net7ce5f25f7be9b53c17764859fe8970a0f9d2e5ca</id><summary type="html">&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;</summary></entry></feed>