-->
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: org.hibernate.exception.DataException: could not execute que
PostPosted: Wed Jul 28, 2010 3:39 pm 
Newbie

Joined: Wed Jul 28, 2010 3:31 pm
Posts: 6
Hi,

I have an application that uses Hibernate for implementing the persistence layer. I need to run this application as a jar. When I developed this application in Weblogic Workshop, I ran it thru the IDE and it had no issues. But, when I created a JAR and tried to run I get the below error. I modified the MANIFEST file and have all the dependent JARs for the CLASS_PATH variable. I don't have any problems with accessing Oracle DB but just DB2. Any idea what did I miss here?
I have db2jcc.jar and db2jcc_license_cisuz.jar available for the application to access DB2.

org.hibernate.exception.DataException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2214)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
at org.hibernate.loader.Loader.list(Loader.java:2090)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)

Caused by: com.ibm.db2.jcc.b.SqlException: [ibm][db2][jcc][10275][10041] Unsupported ccsid, encoding, or locale: "Cp037".
at com.ibm.db2.jcc.b.p.a(p.java:483)
at com.ibm.db2.jcc.a.cc.a(cc.java:2358)
at com.ibm.db2.jcc.a.db.a(db.java:3155)
at com.ibm.db2.jcc.a.db.a(db.java:1814)
at com.ibm.db2.jcc.a.db.a(db.java:1745)
at com.ibm.db2.jcc.a.db.m(db.java:681)
at com.ibm.db2.jcc.a.db.i(db.java:244)
at com.ibm.db2.jcc.a.db.c(db.java:53)
at com.ibm.db2.jcc.a.t.c(t.java:46)
at com.ibm.db2.jcc.a.sb.g(sb.java:154)
at com.ibm.db2.jcc.b.nh.o(nh.java:1228)
at com.ibm.db2.jcc.b.oh.d(oh.java:2437)
at com.ibm.db2.jcc.b.oh.T(oh.java:426)
at com.ibm.db2.jcc.b.oh.executeQuery(oh.java:409)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1778)
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2211)
... 11 more
Caused by: java.io.UnsupportedEncodingException: Cp037
at sun.io.Converters.getConverterClass(Unknown Source)
at sun.io.Converters.newConverter(Unknown Source)
at sun.io.ByteToCharConverter.getConverter(Unknown Source)
at com.ibm.db2.jcc.b.t.<init>(t.java:10)
at com.ibm.db2.jcc.b.r.a(r.java:10)
at com.ibm.db2.jcc.b.p.a(p.java:479)

Thanks.


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.