Foren

ORM Exception

bhaskar apparao varada, geändert vor 14 Jahren.

ORM Exception

New Member Beiträge: 16 Beitrittsdatum: 05.05.09 Neueste Beiträge
Hi ,

I have created service.xml file with one entity and build ed that xml with ant build-service command it generates me all appropriate classes and mappings in the xml file but when i use those classes i am getting exception like.



ERROR [http-8080-Processor24] (BasePersistenceImpl.java:81) - Caught ORMException
com.liferay.portal.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: Unknown entity:
com.ext.portlet.loginHistory.model.impl.LoginHistoryImpl
        at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePers
istenceImpl.java:91)
        at com.ext.portlet.loginHistory.service.persistence.LoginHistoryPersistenceImpl.fetchByPrima
ryKey(LoginHistoryPersistenceImpl.java:219)
        at com.ext.portlet.loginHistory.service.persistence.LoginHistoryPersistenceImpl.findByPrimar
yKey(LoginHistoryPersistenceImpl.java:197)



what i have observed is in the persistenceImpl class i am not getting the session object ,so that it is throwing the ORM Exception's

If any one know why it is happening please help me.

Thanks,
Bhaskar V.
thumbnail
Lisa Simpson, geändert vor 14 Jahren.

RE: ORM Exception

Liferay Legend Beiträge: 2034 Beitrittsdatum: 05.03.09 Neueste Beiträge
You might try asking in the developer section.