This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes org.springframework.dao.EmptyResultDataAccessException: No entity found for query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "org.springframework.dao.EmptyResultDataAccessException: No entity found for query" Watch "org.springframework.dao.EmptyResultDataAccessException: No entity found for query" New topic
Author

org.springframework.dao.EmptyResultDataAccessException: No entity found for query

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hello,

With Spring 3.5.1, Liferay 5.2.8 (EE SP4), when I deploy the WAR file to liferay hot deploy directory, it thrown the following exception:

Caused by: org.springframework.dao.EmptyResultDataAccessException: No entity found for query
at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:295)
at org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect.ajc$afterThrowing$org_springframework_orm_jpa_aspectj_JpaExceptionTranslatorAspect$1$18a1ac9(JpaExceptionTranslatorAspect.aj:15)
at com.ix.msp.persistence.jpa.ServiceFacade.findByName(ServiceFacade.java:53)
at com.ix.msp.persistence.jpa.ServiceFacade.findByName(ServiceFacade.java:1)
at com.ix.msp.domain.loader.VocabularyLoader.afterPropertiesSet(VocabularyLoader.java:113)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)


Here is the ServiceFacade.java file:



The Service.java file:



Thank you in advance for your help

Thanks
Sam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.springframework.dao.EmptyResultDataAccessException: No entity found for query
 
Similar Threads
JBoss 4.2 + Hibernate 3 + Java - NullPointerException + persistence.xml
hashCode() & equals() method test
Duplicated rows on the database
How to query a thirt-party datatabase table with Hibernate CriteriaBuilder/JPA?
ava.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to