[
http://opensource.atlassian.com/projects/hibernate/browse/HB-1568?page=all ]
Christian Bauer resolved HB-1568:
---------------------------------
Resolution: Rejected
This doesn't even hit the database. You have some (possibly not visible) character in
your HQL query string that the parser doesn't like. Please use
http://forum.hibernate.org
Error when running hql on IBM MainFrame z/OS
--------------------------------------------
Key: HB-1568
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HB-1568
Project: Hibernate2
Type: Bug
Versions: 3.0 rc 1
Environment: MainFrame z/OS
DB - DB2
Dialect: org.hibernate.dialect.DB2390Dialect
Reporter: Dotan Hen
I tried to use Hibernate on MainFrame and it was working fine when I used get and set
Objects but when I try to exe sql and hql quereis I recieved the error below Sql to run
-> select kpi.id , kpi.value, kpi.key from KPI kpi
Exception in thread "main" org.hibernate.QueryException: unexpected char: 0xA2
[
select kpi.id , kpi.value, kpi.key from KPI kpi]
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorIm
pl.java:165)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl
.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.jav
a:414)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:821)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:779)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at TestHiber.exeQuery(TestHiber.java:59)
at TestHiber.main(TestHiber.java:30)
Caused by: line 1:1: unexpected char: 0xA2
at org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:279)
at antlr.TokenBuffer.fill(TokenBuffer.java:69)
at antlr.TokenBuffer.LA(TokenBuffer.java:80)
at antlr.LLkParser.LA(LLkParser.java:52)
at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:13
0)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira