-->
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.  [ 3 posts ] 
Author Message
 Post subject: unsaved-value problems with <timestamp>
PostPosted: Mon Mar 22, 2004 4:14 pm 
Newbie

Joined: Tue Mar 16, 2004 1:07 am
Posts: 5
Hi Folks,

I am using Hibernate 2.1.2, Oracle 9i, and Jboss3.2.3. The application is a web based system that selects the object(s) and then later updates the objects(s). I am using optimistic locking via the <timestamp> element. I am having a problem getting hibernate to use <id> property for the unsaved-value.

I have a parent-child relationship, when I update the child and have only the id and timestamp version properties of the parent populated everything works fine. But when the timestamp version property is not populated but the id property is populated in the parent the update of the child fails with a transient exception on the parent. I have tried to set the <timestamp> and <id> unsaved-values correctly

Mapping files:

//////////////
//Parent
/////////////

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >

<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin

http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/
-->

<class
name="net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdf"
table="OFFICE_UDFS"
optimistic-lock="version"
dynamic-update="true"
batch-size="10"
>

<meta attribute="class-description" inherit="false">
@hibernate.class
table="OFFICE_UDFS"
</meta>

<id
name="officeUdfId"
type="java.lang.Long"
column="OFFICE_UDF_ID"
unsaved-value="null"
>
<meta attribute="field-description">
@hibernate.id
generator-class="sequence"
type="java.lang.Long"
column="OFFICE_UDF_ID"

@hibernate.generator-param
name="sequence"
value="OFFICE_UDFS_SEQ"
</meta>
<generator class="sequence">
<param name="sequence">OFFICE_UDFS_SEQ</param>
</generator>
</id>

<timestamp
column="UPDATED_DATE"
name="updatedDate"
unsaved-value="undefined"

/>

<property
name="officeId"
type="java.lang.Long"
column="OFFICE_ID"
not-null="true"
unique="true"
length="10"

>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="OFFICE_ID"
length="10"
not-null="true"
</meta>
</property>
<property
name="udfName"
type="java.lang.String"
column="UDF_NAME"
not-null="true"
length="30"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="UDF_NAME"
length="30"
not-null="true"
</meta>
</property>
<property
name="udfShortDesc"
type="java.lang.String"
column="UDF_SHORT_DESC"
not-null="true"
unique="true"
length="4"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="UDF_SHORT_DESC"
length="4"
not-null="true"
</meta>
</property>
<property
name="isMandatory"
type="java.lang.String"
column="IS_MANDATORY"
not-null="true"
length="1"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="IS_MANDATORY"
length="1"
not-null="true"
</meta>
</property>
<property
name="createdUserId"
type="java.lang.Long"
column="CREATED_USER_ID"
not-null="true"
length="10"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="CREATED_USER_ID"
length="10"
not-null="true"
</meta>
</property>
<property
name="createdDate"
type="java.sql.Timestamp"
column="CREATED_DATE"
not-null="true"
length="7"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="CREATED_DATE"
length="7"
not-null="true"
</meta>
</property>
<property
name="updatedUserId"
type="java.lang.Long"
column="UPDATED_USER_ID"
not-null="true"
length="10"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="UPDATED_USER_ID"
length="10"
not-null="true"
</meta>
</property>


<!-- associations -->
<!-- bi-directional one-to-many association to OfficeUdfValue -->
<set
name="officeUdfValue"
lazy="true"
inverse="true"
cascade="all"
>
<meta attribute="field-description">
@hibernate.set
lazy="true"
inverse="true"

@hibernate.collection-key
column="OFFICE_UDF_ID"

@hibernate.collection-one-to-many
class="net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdfValue"
</meta>
<key>
<column name="OFFICE_UDF_ID" />
</key>
<one-to-many
class="net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdfValue"
/>
</set>
<!-- bi-directional many-to-one association to LtUdfUsag -->
<many-to-one
name="ltUdfUsage"
class="net.stafftrack.domain.office.udf.data.valueobjects.LtUdfUsage"
not-null="true"
cascade="none"
>
<meta attribute="field-description">
@hibernate.many-to-one
not-null="true"
@hibernate.column name="LT_UDF_USAGE_ID"
</meta>
<column name="LT_UDF_USAGE_ID" />
</many-to-one>
<!-- bi-directional many-to-one association to LtUdfType -->
<many-to-one
name="ltUdfType"
class="net.stafftrack.domain.office.udf.data.valueobjects.LtUdfType"
not-null="true"
cascade="none"


>
<meta attribute="field-description">
@hibernate.many-to-one
not-null="true"
@hibernate.column name="LT_UDF_TYPE_ID"
</meta>
<column name="LT_UDF_TYPE_ID" />
</many-to-one>

</class>
</hibernate-mapping>


///////////////////
// Child
///////////////////
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >

<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin

http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/
-->

<class
name="net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdfValue"
table="OFFICE_UDF_VALUES"
optimistic-lock="version"
dynamic-update="true"
batch-size="10"
lazy="true">


<meta attribute="class-description" inherit="false">
@hibernate.class
table="OFFICE_UDF_VALUES"
</meta>

<id
name="officeUdfValueId"
type="java.lang.Long"
column="OFFICE_UDF_VALUE_ID"
unsaved-value="null"
>
<meta attribute="field-description">
@hibernate.id
generator-class="sequence"
type="java.lang.Long"
column="OFFICE_UDF_VALUE_ID"

@hibernate.generator-param
name="sequence"
value="OFFICE_UDF_VALUES_SEQ"
</meta>
<generator class="sequence">
<param name="sequence">OFFICE_UDF_VALUES_SEQ</param>
</generator>
</id>

<timestamp
column="UPDATED_DATE"
name="updatedDate"
unsaved-value="undefined"
/>

<property
name="officeUdfValueShortDesc"
type="java.lang.String"
column="OFFICE_UDF_VALUE_SHORT_DESC"
not-null="true"
length="2"

>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="OFFICE_UDF_VALUE_SHORT_DESC"
length="2"
not-null="true"
</meta>
</property>
<property
name="officeUdfValueDesc"
type="java.lang.String"
column="OFFICE_UDF_VALUE_DESC"
length="30"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="OFFICE_UDF_VALUE_DESC"
length="30"
</meta>
</property>
<property
name="createdUserId"
type="java.lang.Long"
column="CREATED_USER_ID"
not-null="true"
length="10"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="CREATED_USER_ID"
length="10"
not-null="true"
</meta>
</property>
<property
name="createdDate"
type="java.sql.Timestamp"
column="CREATED_DATE"
not-null="true"
length="7"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="CREATED_DATE"
length="7"
not-null="true"
</meta>
</property>
<property
name="updatedUserId"
type="java.lang.Long"
column="UPDATED_USER_ID"
not-null="true"
length="10"
>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="field-description">
@hibernate.property
column="UPDATED_USER_ID"
length="10"
not-null="true"
</meta>
</property>


<!-- associations -->
<!-- bi-directional many-to-one association to OfficeUdf -->
<many-to-one
name="officeUdf"
class="net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdf"
not-null="true"
>
<meta attribute="field-description">
@hibernate.many-to-one
not-null="true"
@hibernate.column name="OFFICE_UDF_ID"
</meta>
<column name="OFFICE_UDF_ID" />
</many-to-one>

</class>

</hibernate-mapping>


///////////////////////////
// code to update child
////////////////////////////

//officeUdfValue is the child table it contains the parent object(officeUdf)
//with only the id set
s.update(officeUdfValue);


////////////////////////////////
//Exception stack trace
//////////////////////////////////

12:05:20,571 INFO [STDOUT] Hibernate: update OFFICE_UDF_VALUES set UPDATED_DATE=?, OFFICE_UDF_VALUE_SHORT_DESC=?, OFFICE_UDF_VALUE_DESC=?, CREATED_USER_ID=?, CREATED_DATE=?, UPDATED_USER_ID=?, OFFICE_UDF_ID=? where OFFICE_UDF_VALUE_ID=? and UPDATED_DATE=?
12:05:20,618 ERROR [SessionImpl] Could not synchronize database state with session
net.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdf
at net.sf.hibernate.impl.SessionImpl.throwTransientObjectException(SessionImpl.java:2734)
at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2726)
at net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
at net.sf.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:46)
at net.sf.hibernate.persister.EntityPersister.dehydrate(EntityPersister.java:393)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:667)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:641)
at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2382)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2336)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2204)
at net.stafftrack.fw.data.hbn.HibernateUtil.cleanUpHibernateFromDao(HibernateUtil.java:129)
at net.stafftrack.domain.office.udf.data.hbn.dao.OfficeUdfValueDAO.update(OfficeUdfValueDAO.java:114)
at net.stafftrack.domain.office.udf.data.ejb.OfficeUdfVoFactoryBean.saveOfficeUdfValue(OfficeUdfVoFactoryBean.java:415)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:700)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy413.saveOfficeUdfValue(Unknown Source)
at net.stafftrack.domain.office.udf.bl.ejb.OfficeUdfSessionFacadeBean.editOfficeUdfValue(OfficeUdfSessionFacadeBean.java:598)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:700)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy414.editOfficeUdfValue(Unknown Source)
at net.stafftrack.domain.office.udf.ui.WebOfficeUdfDelegateImpl.editOfficeUdfValue(WebOfficeUdfDelegateImpl.java:556)
at net.stafftrack.ui.web.maintenance.office.udf.struts.action.OfficeUdfValueAddEditTile_EditAction.execute(OfficeUdfValueAddEditTile_EditAction.java:110)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at net.stafftrack.ui.web.struts.requestprocessor.StaffTrackRequestProcessor.process(StaffTrackRequestProcessor.java:75)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at net.stafftrack.fw.data.hbn.HbnFilterSessionClose.doFilter(HbnFilterSessionClose.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:534)
12:05:20,634 ERROR [OfficeUdfVoFactoryBean] saveOfficeUdfValue HibernateExceptionobject references an unsaved transient instance - save the transient instance before flushing: net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdf
12:05:20,634 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract void net.stafftrack.domain.office.udf.data.interfaces.OfficeUdfVoFactoryLocal.saveOfficeUdfValue(net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdfValue) throws net.stafftrack.fw.util.exception.StaffTrackSystemFailureException,net.stafftrack.fw.util.data.exception.DataConcurrencyEjbException,net.stafftrack.domain.office.udf.exception.OfficeUdfNotFoundException, causedBy:
net.stafftrack.fw.util.exception.StaffTrackSystemFailureException: saveOfficeUdfValue Create exception on
at net.stafftrack.domain.office.udf.data.ejb.OfficeUdfVoFactoryBean.saveOfficeUdfValue(OfficeUdfVoFactoryBean.java:428)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:700)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy413.saveOfficeUdfValue(Unknown Source)
at net.stafftrack.domain.office.udf.bl.ejb.OfficeUdfSessionFacadeBean.editOfficeUdfValue(OfficeUdfSessionFacadeBean.java:598)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:700)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy414.editOfficeUdfValue(Unknown Source)
at net.stafftrack.domain.office.udf.ui.WebOfficeUdfDelegateImpl.editOfficeUdfValue(WebOfficeUdfDelegateImpl.java:556)
at net.stafftrack.ui.web.maintenance.office.udf.struts.action.OfficeUdfValueAddEditTile_EditAction.execute(OfficeUdfValueAddEditTile_EditAction.java:110)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at net.stafftrack.ui.web.struts.requestprocessor.StaffTrackRequestProcessor.process(StaffTrackRequestProcessor.java:75)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at net.stafftrack.fw.data.hbn.HbnFilterSessionClose.doFilter(HbnFilterSessionClose.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:534)
Caused by: net.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdf
at net.sf.hibernate.impl.SessionImpl.throwTransientObjectException(SessionImpl.java:2734)
at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2726)
at net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
at net.sf.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:46)
at net.sf.hibernate.persister.EntityPersister.dehydrate(EntityPersister.java:393)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:667)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:641)
at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2382)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2336)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2204)
at net.stafftrack.fw.data.hbn.HibernateUtil.cleanUpHibernateFromDao(HibernateUtil.java:129)
at net.stafftrack.domain.office.udf.data.hbn.dao.OfficeUdfValueDAO.update(OfficeUdfValueDAO.java:114)
at net.stafftrack.domain.office.udf.data.ejb.OfficeUdfVoFactoryBean.saveOfficeUdfValue(OfficeUdfVoFactoryBean.java:415)
... 88 more
12:05:20,665 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract void net.stafftrack.domain.office.udf.bl.interfaces.OfficeUdfSessionFacadeLocal.editOfficeUdfValue(net.stafftrack.fw.security.bl.UserContext,net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdfValue) throws net.stafftrack.fw.util.exception.StaffTrackSystemFailureException,net.stafftrack.fw.security.exception.NotAuthorizedSecurityException,net.stafftrack.fw.util.data.exception.DataConcurrencyEjbException,net.stafftrack.fw.util.exception.StafftrackValidationException, causedBy:
net.stafftrack.fw.util.exception.StaffTrackSystemFailureException: saveOfficeUdfValue Create exception on
at net.stafftrack.domain.office.udf.data.ejb.OfficeUdfVoFactoryBean.saveOfficeUdfValue(OfficeUdfVoFactoryBean.java:428)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:700)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy413.saveOfficeUdfValue(Unknown Source)
at net.stafftrack.domain.office.udf.bl.ejb.OfficeUdfSessionFacadeBean.editOfficeUdfValue(OfficeUdfSessionFacadeBean.java:598)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:700)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
at $Proxy414.editOfficeUdfValue(Unknown Source)
at net.stafftrack.domain.office.udf.ui.WebOfficeUdfDelegateImpl.editOfficeUdfValue(WebOfficeUdfDelegateImpl.java:556)
at net.stafftrack.ui.web.maintenance.office.udf.struts.action.OfficeUdfValueAddEditTile_EditAction.execute(OfficeUdfValueAddEditTile_EditAction.java:110)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at net.stafftrack.ui.web.struts.requestprocessor.StaffTrackRequestProcessor.process(StaffTrackRequestProcessor.java:75)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at net.stafftrack.fw.data.hbn.HbnFilterSessionClose.doFilter(HbnFilterSessionClose.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:534)
Caused by: net.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: net.stafftrack.domain.office.udf.data.valueobjects.OfficeUdf
at net.sf.hibernate.impl.SessionImpl.throwTransientObjectException(SessionImpl.java:2734)
at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2726)
at net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
at net.sf.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:46)
at net.sf.hibernate.persister.EntityPersister.dehydrate(EntityPersister.java:393)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:667)
at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:641)
at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2382)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2336)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2204)
at net.stafftrack.fw.data.hbn.HibernateUtil.cleanUpHibernateFromDao(HibernateUtil.java:129)
at net.stafftrack.domain.office.udf.data.hbn.dao.OfficeUdfValueDAO.update(OfficeUdfValueDAO.java:114)
at net.stafftrack.domain.office.udf.data.ejb.OfficeUdfVoFactoryBean.saveOfficeUdfValue(OfficeUdfVoFactoryBean.java:415)
... 88 more
12:05:20,665 ERROR [WebOfficeUdfDelegateImpl] editOfficeUdfValue TransactionRolledbackLocalExceptionsaveOfficeUdfValue Create exception on ; CausedByException is:
saveOfficeUdfValue Create exception on
12:05:20,665 ERROR [OfficeUdfValueAddEditTile_EditAction] system failure:net.stafftrack.fw.util.exception.StaffTrackSystemFailureException editOfficeUdfValue+` TransactionRolledbackLocalExceptionsaveOfficeUdfValue Create exception on ; CausedByException is:
saveOfficeUdfValue Create exception on
12:05:20,665 ERROR [STDERR] net.stafftrack.fw.util.exception.StaffTrackSystemFailureException: editOfficeUdfValue+` TransactionRolledbackLocalExceptionsaveOfficeUdfValue Create exception on ; CausedByException is:
saveOfficeUdfValue Create exception on
12:05:20,680 ERROR [STDERR] at net.stafftrack.domain.office.udf.ui.WebOfficeUdfDelegateImpl.editOfficeUdfValue(WebOfficeUdfDelegateImpl.java:590)
12:05:20,680 ERROR [STDERR] at net.stafftrack.ui.web.maintenance.office.udf.struts.action.OfficeUdfValueAddEditTile_EditAction.execute(OfficeUdfValueAddEditTile_EditAction.java:110)
12:05:20,680 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
12:05:20,680 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
12:05:20,680 ERROR [STDERR] at net.stafftrack.ui.web.struts.requestprocessor.StaffTrackRequestProcessor.process(StaffTrackRequestProcessor.java:75)
12:05:20,680 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
12:05:20,680 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
12:05:20,680 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
12:05:20,680 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
12:05:20,680 ERROR [STDERR] at net.stafftrack.fw.data.hbn.HbnFilterSessionClose.doFilter(HbnFilterSessionClose.java:68)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
12:05:20,680 ERROR [STDERR] at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
12:05:20,680 ERROR [STDERR] at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
12:05:20,680 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
12:05:20,680 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
12:05:20,680 ERROR [STDERR] at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
12:05:20,680 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
12:05:20,680 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
12:05:20,680 ERROR [STDERR] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
12:05:20,680 ERROR [STDERR] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
12:05:20,680 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)


////////////////////////
Any help would be appreciated.

Thanks,
Dan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 1:14 pm 
Newbie

Joined: Tue Mar 16, 2004 1:07 am
Posts: 5
It turns out that the unsaved-value attribute for the <timestamp> element is used for composite-ids and cannot be used to tell Hibernate to use the id's unsaved-value to determine if an object is transient.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 1:17 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Not correct. If set to "undefined", the unsaved-value of the <id> will be used. It will not work if the timestamp or version is null, as this means that the object is no longer safe from concurrency problems anyway. I think I answered that already :)

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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

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.