-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate fails with Tomcat 8 and DB2
PostPosted: Thu Feb 12, 2015 6:16 am 
Newbie

Joined: Thu Feb 12, 2015 6:07 am
Posts: 1
Hello

I am facing some weird issues while using hibernate with Tomcat and DB2. We are developing an application that used Hibernate 3.5.6 and now is upgraded to 4.3.8. We are using almost everywhere the default setup, plain hibernate, with no custom queries or complex entities. Just plain JPA anotations and only few tables. The problem that we face is that we get an error while connecting to DB2 9.7/9.8 which is totally unreasonable. We rely on jdbc connection on Tomcat resources to detect the dialect and this works for other DB vendors.
The error code that we get is DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null, DRIVER=4.16.53. Tomcat 8 with Java 7 is the most interesting env information for our setup.

The error from DB2 seems to be related to the size of a column not being acceptable. Hibernate seems to produce queries that do not comply with the expected column size from DB2.
Any ideas why DB2 fails with that error code when we try to validate or update the schema through hibernate?

Thanks in advance


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.