-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: org.springframework.orm.hibernate3.HibernateSystemException:
PostPosted: Fri Apr 07, 2006 7:31 am 
Newbie

Joined: Tue Jan 17, 2006 1:02 am
Posts: 6
Location: mumbai,india
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:hibernate 3

Mapping documents:

<!--
- Mapping class I18NDescriptionModel to the database table db_pdm_i18ndescription of PDM
-->
<class name="com.dss.core.i18n.models.I18NDescriptionModel" entity-name="PDM" table="DB_PDM_I18NDESCRIPTION" lazy="true">
<composite-id>
<key-property name="oid" column="OID" type="long"/>
<key-property name="languageId" column="LANGUAGE_ID" type="long"/>
</composite-id>
<property name="description" column="DESCRIPTION" type="string"/>
<property name="shortDescription" column="SHORT_DESCRIPTION" type="string"/>
<property name="longDescription" column="LONG_DESCRIPTION" type="string"/>
<property name="isDeleted" column="ISDELETED" type="integer"/>
<property name="addUserId" column="ADD_USER_ID" type="long"/>
<property name="addDate" column="ADD_DATE" type="timestamp"/>
<property name="editUserId" column="EDIT_USER_ID" type="long"/>
<property name="editDate" column="EDIT_DATE" type="timestamp"/>
</class>



Code between sessionFactory.openSession() and session.close():


if (actionType.equals(CommonInfo.DELETE)) {
i18NDescriptionModel.setIsDeleted(CommonInfo.IS_DELETED);
getDataAccessor().update(entityName, i18NDescriptionModel);
}

and update method is

public void update(String entityName, Object object) throws DataAccessException {
Session session = null;
try {
session = getHibernateSession();
session.update(entityName, object);
session.flush();
} catch (HibernateException ex) {
handleHibernateException(ex);
} finally {
// to avoid NonUniqueObjectExceptions and to control the size of first level (session) cache
session.clear();
if (isAllowCreate()) {
// only if the session was created as in the secondary data accessor, release it
if (session != null) {
SessionFactoryUtils.releaseSession(session, getSessionFactory());
}
}
}
}


Full stack trace of any exception that occurs:


Hibernate: select this_.OID as OID0_, this_.LANGUAGE_ID as LANGUAGE2_0_, this_.DESCRIPTION as DESCRIPT3_24_0_, this_.SHORT_DESCRIPTION as SHORT4_24_0_, this_.LONG_DESCRIPTION as LONG5_24_0_, this_.ISDELETED as ISDELETED24_0_, this_.ADD_USER_ID as ADD7_24_0_, this_.ADD_DATE as ADD8_24_0_, this_.EDIT_USER_ID as EDIT9_24_0_, this_.EDIT_DATE as EDIT10_24_0_ from DB_PDM_I18NDESCRIPTION this_ where this_.OID=? and this_.ISDELETED=? order by this_.LANGUAGE_ID asc
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: com.dss.core.i18n.models.I18NDescriptionModel; nested exception is org.hibernate.MappingException: Unknown entity: com.dss.core.i18n.models.I18NDescriptionModel
org.hibernate.MappingException: Unknown entity: com.dss.core.i18n.models.I18NDescriptionModel
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:569)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:62)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:621)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:614)
at com.dss.core.dataaccess.impl.HibernateDataAccessor.get(HibernateDataAccessor.java:259)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163)
at $Proxy1.get(Unknown Source)
at com.dss.core.audit.AuditLogInterceptor.onFlushDirty(AuditLogInterceptor.java:138)
at org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:212)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:131)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:190)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:70)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
at com.dss.core.dataaccess.impl.HibernateDataAccessor.update(HibernateDataAccessor.java:424)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163)
at $Proxy1.update(Unknown Source)
at com.dss.core.i18n.impl.I18NDescriptionHandler.saveUpdateI18NDescription(I18NDescriptionHandler.java:325)
at com.dss.core.i18n.impl.I18NDescriptionHandler.deleteI18NDescription(I18NDescriptionHandler.java:451)
at com.dss.pdm.components.masters.impl.FitManager.createEditUpdateI18nDescription(FitManager.java:204)
at com.dss.pdm.components.masters.impl.FitManager.editFitModel(FitManager.java:183)
at com.dss.pdm.components.masters.impl.FitManager.saveEditDeleteFitModel(FitManager.java:109)
at com.dss.pdm.components.masters.impl.FitManager.saveEditDeleteFitModels(FitManager.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:97)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
at $Proxy8.saveEditDeleteFitModels(Unknown Source)
at com.dss.pdm.components.delegate.PdmDelegator.saveEditDeleteFitModels(PdmDelegator.java:771)
at com.dss.pdm.ulc.controllers.FitsMasterTableController.deleteSelectedRecords(FitsMasterTableController.java:120)
at com.dss.pdm.ulc.controllers.FitsMasterTableController.access$0(FitsMasterTableController.java:110)
at com.dss.pdm.ulc.controllers.FitsMasterTableController$1.yesButtonAction(FitsMasterTableController.java:98)
at com.dss.core.basics.ulcframework.server.factory.AlertDialog.actionPerformed(AlertDialog.java:198)
at com.ulcjava.base.application.event.ActionEvent.dispatch(Unknown Source)
at com.ulcjava.base.application.ULCProxy.distributeToListeners(Unknown Source)
at com.ulcjava.base.application.ULCAbstractButton.handleEvent(Unknown Source)
at com.ulcjava.base.application.ULCProxy.handleRequest(Unknown Source)
at com.ulcjava.base.application.ULCComponent.handleRequest(Unknown Source)
at com.ulcjava.base.server.ULCSession.a(Unknown Source)
at com.ulcjava.base.server.ULCSession.processRequests(Unknown Source)
at com.ulcjava.base.development.DevelopmentContainerAdapter.processRequests(DevelopmentContainerAdapter.java:27)
at com.ulcjava.base.development.DevelopmentConnector.sendRequests(DevelopmentConnector.java:48)
at com.ulcjava.base.client.F.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)



databse used oracle 9i

can anyone help me to solve this problem


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.