Subject Re: Error while checking if table aleady exists;
Author Roman Rokytskyy

> I am having an issue with JBoss and the firebird driver. I am
> getting the following error whilst deploying some beans. Has anyone
> encountered this, does anyone have any suggestions. I am using
> JBoss3.2.0RC3 and jaybird 1.0.0RC2.
> ...
> 14:32:57,640 ERROR [EntityContainer] Starting failed
> org.jboss.deployment.DeploymentException: Error while checking if
> table aleady exists; - nested throwable: (java.sql.DataTruncatio
> n: Data truncation)
> at
> org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.tableExists(

Can you confirm the fact that if table name is greater than 10
characters, JBoss CMP will fail with exactly this exception?

I suspect that this happens in PreparedStatement.setString(int,
String), and because of issue in Firebird metadata, JayBird thinks
that column name is max. 10 characters...

So, if you confirm this, I think we should switch off checking of
string size in FBStringField and letting server throw an exception.