StartException in service persistenceunit - possible issue Hibernate queries?

I have a Liferay portlet project that I'd like to deploy on JBoss + Liferay. This worked fine earlier but other project that this depends on changed over time. When I try to deploy my portlet, I get the following exception

09:07:40,261 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-7) HHH000397: Using ASTQueryTranslatorFactory
09:07:40,608 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-7) Hibernate Validator 4.2.0.Final
09:07:43,046 ERROR [] (MSC service thread 1-7) MSC00001: Failed to start service jboss.persistenceunit."": org.jboss.msc.service.StartException in service jboss.persistenceunit."": Failed to start service
    at org.jboss.msc.service.ServiceControllerImpl$ [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor.runWorker( [rt.jar:1.7.0_45]
    at java.util.concurrent.ThreadPoolExecutor$ [rt.jar:1.7.0_45]
    at [rt.jar:1.7.0_45]
Caused by: java.lang.NullPointerException
    at org.hibernate.loader.BasicLoader.isBag(
    at org.hibernate.loader.BasicLoader.postInstantiate(
    at org.hibernate.loader.hql.QueryLoader.<init>(
    at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(
    at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(
    at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(
    at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(
    at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(
    at org.hibernate.internal.SessionFactoryImpl.checkNamedQueries(
    at org.hibernate.internal.SessionFactoryImpl.<init>(
    at org.hibernate.cfg.Configuration.buildSessionFactory(
    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService( [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$ [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    ... 3 more

Based on this I suspect that there's a problem with one of the queries in the entity project (containing all the jpa entities and named queries, etc). So is there a tool for checking the correctness of the hql queries? Or do you have any other suspicion regarding what could cause the problem? The above exception is the only exception I get regarding the issue.


Need Your Help

Dreamweaver CS5.5 color theme for Zend Studio or NetBeans 7.1?

netbeans dreamweaver zend-studio color-scheme

Looking for classic color theme of DW CS5.5 to put on Zend Studio or at least on NetBeans. Does anybody know any places to find because my search didn't bring any result.

Problem with Validating the Integer Value in Java

java eclipse-rcp validation

hi i am using Eclipse Rcp and i need to validate the textbox that only accept the integer value for that i have use the code

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.