unexpected « Exception « JPA Q&A





1. hibernate exception 'unexpected token as'    coderanch.com

Hi, I am getting the below mentioned expetion when I use hibernate in weblogic J2EE project. Can anybody suggest what would be the mistake. I thought it has something to do with finding the class in classpath. But that was not the problem. net.sf.hibernate.QueryException: unexpected token: as [select date1.actualDate,ct.courtName from CourtInformationTypeImpl as ct,DateTypeImpl as date1 where 'XXXX condition XXXX' order by ...

2. hibernate error unexpected token: (    coderanch.com

Hi, I am facing a hibernate error regarding unexpected token: (. I am executing the following query. select opp, tab from Opportunity opp left join fetch opp.prospect as pros left join fetch opp.processTbl as processTbl left join fetch opp.opportunityTeams ot left join fetch ot.employee emp, [B]([/B]select ua.sourcePrimaryId from (select uaa.sourcePrimaryId from UserActionHistory uaa, ActionType atp where upper(atp.actionTypeName) = 'OPPORTUNITY' and atp.actionTypeId ...

3. Unexpected persistence exception    forum.hibernate.org

4. unexpected token error    forum.hibernate.org

Hi i am persisting a class CommodityGroup but when i iterate the query it throws following stack trace. How can i add the code with the topic ? Any suggestion will be of great help. [10/22/03 15:34:15:534 EDT] 34bb5999 SystemErr R net.sf.hibernate.QueryException: unexpected token: as [from CommdityGroup as commGroup where commGroup._id=?] at net.sf.hibernate.hql.FromParser.token(FromParser.java:94) at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87) at net.sf.hibernate.hql.PreprocessingParser.token(PreprocessingParser.java:120) at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:29) at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:146) ...

5. Works on one server, Unexpected Token error on other server    forum.hibernate.org

We deployed our application on two WebSphere servers. On first one, we deploy EAR file. On the other one, we create projects and deploy. All the business methods accessing database are working on both servers except one which involves two tables. This particular query runs on the server where we have deployed EAR file. However it gives Unexpected Token error on ...

6. Unexpected exception while enlisting XAConnection    forum.hibernate.org

Hi, I am using Weblogic 8.1 sp4 / Oracle 9.2.0.6 and Hibernate 3.0.4 The XA connection pool supports local transactions. The application is able to retrieve the SessionFactory from JNDI and create a session from it. But I invoke the session.save() method, I am getting the following error. I havent used Hibernate before and I suspect its some simple configuration problem. ...

7. *** ERROR: :0:0: unexpected AST node    forum.hibernate.org

8. Unexpected end of subree error.    forum.hibernate.org

Hibernate version: hibernate-Using 3.0.3, the problem also occurs with 3.1 rc3 Name and version of the database you are using: Oracle 9i The generated HQL: SELECT dto FROM gov.va.med.domain.model.Cytology dto LEFT JOIN FETCH dto.institution LEFT JOIN FETCH dto.institution.state LEFT join fetch dto.cytologySpecimens WHERE dto.patient.id = :userId AND dto.finalizationDate <= sysdate - 7 The above hql results in the following error: Error> ...

9. Error: unexpected token    forum.hibernate.org

Why does this error occur ? There is a determinated reason or it may occur in many situations ? thanks for help. Hibernate version:3.0.5 Mapping documents: ... Code ...