On 24. Apr 2006 - 09:10:32, Schulte Marcus wrote:
| It seems that hivetranse implicitly marks the hibernate session methods
| "mandatory", assuming that eache service using it uses at least "requires".
| Which is basically sound. you might try to mark your HibernateSqueezer's
| squeeze method with ta-required (however you do this in hivetranse).
Thanks for your answer!
I tried the following:
<service-point id="HibernateSqueezer"
interface="org.apache.tapestry.util.io.SqueezeAdaptor">
<invoke-factory>
<construct class="HibernateSqueezer"/>
</invoke-factory>
<interceptor service-id="hivetranse.core.TransactionInterceptor">
<method pattern="squeeze" demarcation="Required"/>
<method pattern="unsqueeze" demarcation="Required"/>
</interceptor>
</service-point>
But now I get the following exception:
org.hibernate.TransientObjectException
proxy was not associated with the session
messages:
* proxy was not associated with the session
throwableCount: 1
throwables:
* org.hibernate.TransientObjectException: proxy was not associated with the
session
Stack Trace:
* org.hibernate.impl.SessionImpl.getEntityName(SessionImpl.java:1701)
* sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
*
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
*
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
* java.lang.reflect.Method.invoke(Method.java:585)
*
net.sourceforge.hivetranse.transaction.hibernate3.SessionProxyFactory$SessionProxy.invoke(SessionProxyFactory.java:213)
* $Proxy33.getEntityName(Unknown Source)
* $Session_10acb48386b.getEntityName($Session_10acb48386b.java)
* $Session_10acb483705.getEntityName($Session_10acb483705.java)
* de.plattform.services.HibernateSqueezer.squeeze(HibernateSqueezer.java:50)
* sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
*
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
*
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
* java.lang.reflect.Method.invoke(Method.java:585)
*
net.sourceforge.hivetranse.transaction.TransactionInterceptorFactory$Interceptor.invoke(TransactionInterceptorFactory.java:125)
* $Proxy36.squeeze(Unknown Source)
* $SqueezeAdaptor_10acb483871.squeeze($SqueezeAdaptor_10acb483871.java)
*
org.apache.tapestry.util.io.DataSqueezerImpl.squeeze(DataSqueezerImpl.java:127)
* $DataSqueezer_10acb4836ff.squeeze($DataSqueezer_10acb4836ff.java)
* org.apache.tapestry.form.Hidden.renderFormComponent(Hidden.java:58)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]