Home » Modeling » EMF » [Teneo] Teneo in JEE environment([Teneo] Teneo in JEE environment)
|
Re: [Teneo] Teneo in JEE environment [message #550717 is a reply to message #550696] |
Wed, 04 August 2010 07:57 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Mark,
Yes Teneo can be used in a non-osgi environment. The EntityManager needs to be created by a Teneo datastore: the
HBEntityDataStore which implements the EntityManagerFactory interface.
But.., I would check out the Texo project. It is targeted at code generation for the server side with support for most
ecore model constructs:
http://wiki.eclipse.org/Texo
http://wiki.eclipse.org/Texo#Code_generation_topics
It provides:
- code generation with support for most ecore model constructs
- orm generation
- XML/XMI serialization
- easy overrideable templates (xpand)
- etc.
We are currently working on JSON serialization.
The advantage of Texo is that it generates pure pojo code without compiletime/runtime EMF dependencies. This means that
the generated code runs directly/out-of-the-box with EclipseLink and other JPA providers and can more easily be
integrated into other frameworks. See here for more info:
http://wiki.eclipse.org/Texo/Texo_and_EMF#Why_Texo_.28compar ed_to_EMF.29
Fyi, here are some Teneo links (but still I would check out Texo more than Teneo for this usecase...):
http://wiki.eclipse.org/Teneo/Hibernate/Download_and_Install #Install_Teneo_for_use_within_a_Web_Container
http://wiki.eclipse.org/Teneo/Hibernate/Hibernate_Datastore# Spring_configuration_and_the_HbSessionDataStore.2FHbEntityDa taStore
gr. Martin
On 08/04/2010 09:39 AM, Mark Hoffmann wrote:
> Hello,
>
> I currently try to connect a RCP client to JEE environment (glassfish v.3).
> What I want to do is to persist my EMF model instances using JPA
> (EclipseLink) in an EJB. For this I evaluate Teneo because its seems to
> be a promising candidate for this. So I have the following questions:
>
> 1. Is ist possible to use Teneo in an non OSGi entvironment?
>
> 2. EJB3 makes it possible to give me an EntityManager via DI. Is it
> possible to give Teneo this EntityManager?
>
> 3. The EJB container handles the transactions of the EntityManager for
> me. In Teneo you have to handle transactions by code. Does this
> delegates to the EntityManager?
>
> Thank you.
>
> Regards,
> Mark
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | | | | | | |
Re: [Teneo] Teneo in JEE environment + Merge EMF Objects [message #776905 is a reply to message #769634] |
Mon, 09 January 2012 13:52 |
fabiangec Missing name Messages: 10 Registered: December 2011 |
Junior Member |
|
|
Hi Martin, I'm trying to do a merge of two objects EMF but I get the following error:
11:26:21,482 ERROR [STDERR] org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [EAccion#11]
11:26:21,482 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:485)
11:26:21,483 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:255)
11:26:21,483 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
11:26:21,483 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:867)
11:26:21,483 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:851)
11:26:21,483 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:855)
11:26:21,483 ERROR [STDERR] at infraestructure.diccionariodatos.manager.ConfiguracionDiccionarioDatosBean.modificarAccion(ConfiguracionDiccionarioDatosBean.java:428)
11:26:21,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:26:21,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:26:21,484 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:26:21,484 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
11:26:21,484 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
11:26:21,484 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
11:26:21,484 ERROR [STDERR] at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:72)
11:26:21,484 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
11:26:21,484 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
11:26:21,485 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:26:21,485 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:26:21,485 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:26:21,485 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
11:26:21,485 ERROR [STDERR] at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
11:26:21,485 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,485 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74)
11:26:21,485 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_32011538.invoke(InvocationContextInterceptor_z_fillMethod_32011538.java)
11:26:21,486 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,486 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
11:26:21,486 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_32011538.invoke(InvocationContextInterceptor_z_setup_32011538.java)
11:26:21,486 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,486 ERROR [STDERR] at org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128)
11:26:21,486 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,486 ERROR [STDERR] at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
11:26:21,487 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,487 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
11:26:21,487 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,487 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
11:26:21,487 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,487 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
11:26:21,487 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,487 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
11:26:21,488 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(SessionInvocationContextAdapter.java:95)
11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247)
11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349)
11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209)
11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
11:26:21,488 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,489 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
11:26:21,489 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,489 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
11:26:21,489 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,489 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
11:26:21,489 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,489 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
11:26:21,489 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,490 ERROR [STDERR] at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
11:26:21,490 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,490 ERROR [STDERR] at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
11:26:21,490 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,490 ERROR [STDERR] at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
11:26:21,490 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,490 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
11:26:21,491 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
11:26:21,491 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
11:26:21,491 ERROR [STDERR] at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
11:26:21,491 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
11:26:21,491 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
11:26:21,491 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
11:26:21,491 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
11:26:21,491 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
11:26:21,492 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
11:26:21,492 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
You make the adjustments mentioned in the following link
Teneo/Hibernate/EMF_Hibernate_Integration_Details#Client-Server_scenario:_requires_explicitly_modelled_id_and_version_properties
In my model I have is an interface which has two EAttributes, one is the id and the other is the version. For the version attribute I put the @ Version. All of my model EClass inherit from this interface.
The properties have the following values:
PropiedadesTeneo Properties = new Properties ();
propiedadesTeneo.setProperty (Environment.DATASOURCE, "java: myDS");
propiedadesTeneo.setProperty (Environment.SHOW_SQL, "true");
propiedadesTeneo.setProperty (Environment.HBM2DDL_AUTO, "update");
propiedadesTeneo.setProperty (Environment.FORMAT_SQL, "true");
propiedadesTeneo.setProperty (PersistenceOptions.CASCADE_POLICY_ON_NON_CONTAINMENT,"REFRESH, PERSIST, MERGE");
propiedadesTeneo.setProperty (PersistenceOptions.ALWAYS_VERSION, "false");
propiedadesTeneo.setProperty (PersistenceOptions.DEFAULT_ID_FEATURE_NAME, "id");
propiedadesTeneo.setProperty (PersistenceOptions.INHERITANCE_MAPPING, "join");
The function that performs the merge from the client receives a new object with the ID exactly as it is already persisted and lines of code where failure is simply this.
PersistenceMngm.getHbDataStoreSessionFactory Session session = (). GetCurrentSession ();
EAccion item2 = (EAccion) session.get (EAccion.class.getSimpleName (), nuevaAccion.getId ());
EAccion accionMergeada = (EAccion) Session.merge (nuevaAccion);
Could you help me with this?
Thank you very much
[Updated on: Mon, 09 January 2012 16:30] Report message to a moderator
|
|
|
Re: [Teneo] Teneo in JEE environment + Merge EMF Objects [message #777293 is a reply to message #776905] |
Tue, 10 January 2012 08:34 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi,
My feel is that the PersistenceOptions.DEFAULT_ID_FEATURE_NAME option is not working as indicated. Can you try with an
@Id annotation?
gr. Martin
On 01/09/2012 02:52 PM, fabiangec Mising name wrote:
> Hi Martin, I'm trying to do a merge of two objects EMF but I get the following error:
>
> 11:26:21,482 ERROR [STDERR] org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction
> (or unsaved-value mapping was incorrect): [EAccion#11]
>
> 11:26:21,482 ERROR [STDERR] at
> org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:485)
>
> 11:26:21,483 ERROR [STDERR] at
> org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:255)
>
> 11:26:21,483 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
>
> 11:26:21,483 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:867)
>
> 11:26:21,483 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:851)
>
> 11:26:21,483 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:855)
>
> 11:26:21,483 ERROR [STDERR] at
> uy.com.gecos.erpm.infraestructure.diccionariodatos.manager.ConfiguracionDiccionarioDatosBean.modificarAccion(ConfiguracionDiccionarioDatosBean.java:428)
>
>
> 11:26:21,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> 11:26:21,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> 11:26:21,484 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> 11:26:21,484 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
>
> 11:26:21,484 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
>
> 11:26:21,484 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
>
> 11:26:21,484 ERROR [STDERR] at
> org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:72)
>
> 11:26:21,484 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
>
> 11:26:21,484 ERROR [STDERR] at
> org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
>
> 11:26:21,485 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> 11:26:21,485 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> 11:26:21,485 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> 11:26:21,485 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
>
> 11:26:21,485 ERROR [STDERR] at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
>
> 11:26:21,485 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,485 ERROR [STDERR] at
> org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74)
>
> 11:26:21,485 ERROR [STDERR] at
> org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_32011538.invoke(InvocationContextInterceptor_z_fillMethod_32011538.java)
>
>
> 11:26:21,486 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,486 ERROR [STDERR] at
> org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
>
> 11:26:21,486 ERROR [STDERR] at
> org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_32011538.invoke(InvocationContextInterceptor_z_setup_32011538.java)
>
>
> 11:26:21,486 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,486 ERROR [STDERR] at
> org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128)
>
> 11:26:21,486 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,486 ERROR [STDERR] at
> org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
>
> 11:26:21,487 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,487 ERROR [STDERR] at
> org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
>
> 11:26:21,487 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,487 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
>
> 11:26:21,487 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,487 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
>
> 11:26:21,487 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,487 ERROR [STDERR] at
> org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
>
> 11:26:21,488 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,488 ERROR [STDERR] at
> org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(SessionInvocationContextAdapter.java:95)
>
> 11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247)
>
> 11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349)
>
> 11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209)
>
> 11:26:21,488 ERROR [STDERR] at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
>
> 11:26:21,488 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,489 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
>
> 11:26:21,489 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,489 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
>
> 11:26:21,489 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,489 ERROR [STDERR] at
> org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
>
> 11:26:21,489 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,489 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
>
> 11:26:21,489 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,490 ERROR [STDERR] at
> org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
>
> 11:26:21,490 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,490 ERROR [STDERR] at
> org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
>
> 11:26:21,490 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,490 ERROR [STDERR] at
> org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
>
> 11:26:21,490 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,490 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
>
> 11:26:21,491 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 11:26:21,491 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
>
> 11:26:21,491 ERROR [STDERR] at
> org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
>
> 11:26:21,491 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
>
> 11:26:21,491 ERROR [STDERR] at
> org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
>
> 11:26:21,491 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
>
> 11:26:21,491 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
>
> 11:26:21,491 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
>
> 11:26:21,492 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
>
> 11:26:21,492 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
>
> You make the adjustments mentioned in the following link
>
> Teneo/Hibernate/EMF_Hibernate_Integration_Details#Client-Server_scenario:_requires_explicitly_modelled_id_and_version_properties
>
>
> In my model I have is an interface which has two EAttributes, one is the id and the other is the version. For the
> version attribute I put the @ Version. All of my model EClass inherit from this interface.
>
> The properties have the following values:
> PropiedadesTeneo Properties = new Properties ();
> propiedadesTeneo.setProperty (Environment.DATASOURCE, "java: myDS");
> propiedadesTeneo.setProperty (Environment.SHOW_SQL, "true");
> propiedadesTeneo.setProperty (Environment.HBM2DDL_AUTO, "update");
> propiedadesTeneo.setProperty (Environment.FORMAT_SQL, "true");
> propiedadesTeneo.setProperty (PersistenceOptions.CASCADE_POLICY_ON_NON_CONTAINMENT,"REFRESH, PERSIST, MERGE");
> propiedadesTeneo.setProperty (PersistenceOptions.ALWAYS_VERSION, "false");
> propiedadesTeneo.setProperty (PersistenceOptions.DEFAULT_ID_FEATURE_NAME, "id");
> propiedadesTeneo.setProperty (PersistenceOptions.INHERITANCE_MAPPING, "join");
>
> The function that performs the merge from the client receives a new object with the ID exactly as it is already
> persisted and lines of code where failure is simply this.
>
> PersistenceMngm.getHbDataStoreSessionFactory Session session = (). GetCurrentSession ();
> EAccion item2 = (EAccion) session.get (EAccion.class.getSimpleName (), nuevaAccion.getId ());
> EAccion accionMergeada = (EAccion) Session.merge (nuevaAccion);
>
> Could you help me with this?
> Thank you very much
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: [Teneo] Teneo in JEE environment + Merge EMF Objects [message #777486 is a reply to message #777447] |
Tue, 10 January 2012 15:35 |
fabiangec Missing name Messages: 10 Registered: December 2011 |
Junior Member |
|
|
I tried it but just keep getting the same error. It will be a problem with respect to how the current session asking?
I have an Singleton class with de static datastore and a function that get session factory
public SessionFactory getHbDataStoreSessionFactory() {
if (dataStore != null){
return dataStore.getSessionFactory();
} else{
return null;
}
}
then in other EJB I call this function to get de current session
@EJB
private DiccionarioPersistenceManager persistenceMngm;
....
Session session = persistenceMngm.getSessionFactory().getCurrentSession();
EAccion item2 = (EAccion) session.get(EAccion.class.getSimpleName(), nuevaAccion.getId());
EAccion accionMerge = (EAccion) session.merge(nuevaAccion);
13:25:37,104 ERROR [STDERR] org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [EAccion#9]
13:25:37,104 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:485)
13:25:37,104 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:255)
13:25:37,104 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
13:25:37,104 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:867)
13:25:37,104 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:851)
13:25:37,104 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:855)
13:25:37,105 ERROR [STDERR] at infraestructure.diccionariodatos.manager.ConfiguracionDiccionarioDatosBean.modificarAccion(ConfiguracionDiccionarioDatosBean.java:441)
13:25:37,105 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:25:37,105 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
13:25:37,105 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
13:25:37,105 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
13:25:37,105 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
13:25:37,105 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
13:25:37,105 ERROR [STDERR] at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:72)
13:25:37,105 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
13:25:37,105 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
13:25:37,105 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:25:37,105 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
13:25:37,105 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
13:25:37,105 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
13:25:37,105 ERROR [STDERR] at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
13:25:37,105 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,105 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74)
13:25:37,105 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_20298077.invoke(InvocationContextInterceptor_z_fillMethod_20298077.java)
13:25:37,105 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
13:25:37,106 ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_20298077.invoke(InvocationContextInterceptor_z_setup_20298077.java)
13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128)
13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(SessionInvocationContextAdapter.java:95)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349)
13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209)
13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,107 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,107 ERROR [STDERR] at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,108 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
13:25:37,108 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
13:25:37,108 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
13:25:37,108 ERROR [STDERR] at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
13:25:37,108 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
13:25:37,108 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
13:25:37,108 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
13:25:37,108 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
13:25:37,108 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
13:25:37,108 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
13:25:37,108 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
13:26:38,785 DEBUG [com.arjuna.ats.arjuna] PeriodicRecovery: background thread Status <== SCANNING
13:26:38,785 DEBUG [com.arjuna.ats.arjuna] PeriodicRecovery: background thread scanning
13:26:38,785 DEBUG [com.arjuna.ats.arjuna] Periodic recovery first pass at mar, 10 ene 2012 13:26:38
13:26:38,785 DEBUG [com.arjuna.ats.arjuna] AtomicActionRecoveryModule first pass
13:26:38,786 DEBUG [com.arjuna.ats.arjuna] processing /StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction transactions
13:26:38,786 DEBUG [com.arjuna.ats.arjuna]
13:26:38,786 DEBUG [com.arjuna.ats.txoj] TORecoveryModule - first pass
13:26:38,801 DEBUG [com.arjuna.ats.arjuna]
13:26:38,801 DEBUG [com.arjuna.ats.jta] Local XARecoveryModule - first pass
13:26:38,802 DEBUG [com.arjuna.ats.arjuna]
13:26:48,802 DEBUG [com.arjuna.ats.arjuna] Periodic recovery second pass at mar, 10 ene 2012 13:26:48
13:26:48,802 DEBUG [com.arjuna.ats.arjuna] AtomicActionRecoveryModule second pass
13:26:48,802 DEBUG [com.arjuna.ats.arjuna]
13:26:48,802 DEBUG [com.arjuna.ats.txoj] TORecoveryModule - second pass
13:26:48,802 DEBUG [com.arjuna.ats.arjuna]
13:26:48,802 DEBUG [com.arjuna.ats.jta] Local XARecoveryModule - second pass
13:26:48,803 DEBUG [com.arjuna.ats.jta] Local XARecoveryModule.transactionInitiatedRecovery completed
13:26:48,803 DEBUG [com.arjuna.ats.jta] Local XARecoveryModule.resourceInitiatedRecovery completed
13:26:48,803 DEBUG [com.arjuna.ats.arjuna]
13:26:48,803 DEBUG [com.arjuna.ats.arjuna] PeriodicRecovery: background thread Status <== INACTIVE
13:26:48,803 DEBUG [com.arjuna.ats.arjuna] PeriodicRecovery: background thread backing off
Thanks for your help!!
[Updated on: Tue, 10 January 2012 15:36] Report message to a moderator
|
|
|
Re: [Teneo] Teneo in JEE environment + Merge EMF Objects [message #777629 is a reply to message #777486] |
Tue, 10 January 2012 20:52 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Does your version have a value also and is it the same as the version number in the database? Hibernate will do a query
with a where statement on the version also.
gr. Martin
On 01/10/2012 04:35 PM, fabiangec Mising name wrote:
> I tried it but just keep getting the same error. It will be a problem with respect to how the current session asking?
> I have an Singleton class with de static datastore and a function that get session factory
>
> public SessionFactory getHbDataStoreSessionFactory() {
> if (dataStore != null){
> return dataStore.getSessionFactory();
> } else{
> return null;
> }
> }
>
> then in other EJB I call this function to get de current session
>
> @EJB private DiccionarioPersistenceManager persistenceMngm;
>
> ....
>
> Session session = persistenceMngm.getSessionFactory().getCurrentSession();
>
> EAccion item2 = (EAccion) session.get(EAccion.class.getSimpleName(), nuevaAccion.getId());
> EAccion accionMerge = (EAccion) session.merge(nuevaAccion);
>
>
>
> 13:25:37,104 ERROR [STDERR] org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction
> (or unsaved-value mapping was incorrect): [EAccion#9]
>
> 13:25:37,104 ERROR [STDERR] at
> org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:485)
>
> 13:25:37,104 ERROR [STDERR] at
> org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:255)
>
> 13:25:37,104 ERROR [STDERR] at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
>
> 13:25:37,104 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:867)
>
> 13:25:37,104 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:851)
>
> 13:25:37,104 ERROR [STDERR] at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:855)
>
> 13:25:37,105 ERROR [STDERR] at
> uy.com.gecos.erpm.infraestructure.diccionariodatos.manager.ConfiguracionDiccionarioDatosBean.modificarAccion(ConfiguracionDiccionarioDatosBean.java:441)
>
>
> 13:25:37,105 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> 13:25:37,105 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> 13:25:37,105 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> 13:25:37,105 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
>
> 13:25:37,105 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
>
> 13:25:37,105 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
>
> 13:25:37,105 ERROR [STDERR] at
> org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:72)
>
> 13:25:37,105 ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
>
> 13:25:37,105 ERROR [STDERR] at
> org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
>
> 13:25:37,105 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> 13:25:37,105 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> 13:25:37,105 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> 13:25:37,105 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
>
> 13:25:37,105 ERROR [STDERR] at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
>
> 13:25:37,105 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,105 ERROR [STDERR] at
> org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74)
>
> 13:25:37,105 ERROR [STDERR] at
> org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_20298077.invoke(InvocationContextInterceptor_z_fillMethod_20298077.java)
>
>
> 13:25:37,105 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,106 ERROR [STDERR] at
> org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
>
> 13:25:37,106 ERROR [STDERR] at
> org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_20298077.invoke(InvocationContextInterceptor_z_setup_20298077.java)
>
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,106 ERROR [STDERR] at
> org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,106 ERROR [STDERR] at
> org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,106 ERROR [STDERR] at
> org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,106 ERROR [STDERR] at
> org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,106 ERROR [STDERR] at
> org.jboss.ejb3.core.context.SessionInvocationContextAdapter.proceed(SessionInvocationContextAdapter.java:95)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:349)
>
> 13:25:37,106 ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,107 ERROR [STDERR] at
> org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,107 ERROR [STDERR] at
> org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,107 ERROR [STDERR] at
> org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,107 ERROR [STDERR] at
> org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
>
> 13:25:37,107 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
>
> 13:25:37,108 ERROR [STDERR] at
> org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
>
> 13:25:37,108 ERROR [STDERR] at
> org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
>
> 13:25:37,108 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
>
> 13:26:38,785 DEBUG [com.arjuna.ats.arjuna] PeriodicRecovery: background thread Status <== SCANNING
> 13:26:38,785 DEBUG [com.arjuna.ats.arjuna] PeriodicRecovery: background thread scanning
> 13:26:38,785 DEBUG [com.arjuna.ats.arjuna] Periodic recovery first pass at mar, 10 ene 2012 13:26:38
> 13:26:38,785 DEBUG [com.arjuna.ats.arjuna] AtomicActionRecoveryModule first pass
> 13:26:38,786 DEBUG [com.arjuna.ats.arjuna] processing /StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction
> transactions
> 13:26:38,786 DEBUG [com.arjuna.ats.arjuna] 13:26:38,786 DEBUG [com.arjuna.ats.txoj] TORecoveryModule - first pass
> 13:26:38,801 DEBUG [com.arjuna.ats.arjuna] 13:26:38,801 DEBUG [com.arjuna.ats.jta] Local XARecoveryModule - first pass
> 13:26:38,802 DEBUG [com.arjuna.ats.arjuna] 13:26:48,802 DEBUG [com.arjuna.ats.arjuna] Periodic recovery second pass at
> mar, 10 ene 2012 13:26:48
> 13:26:48,802 DEBUG [com.arjuna.ats.arjuna] AtomicActionRecoveryModule second pass
> 13:26:48,802 DEBUG [com.arjuna.ats.arjuna] 13:26:48,802 DEBUG [com.arjuna.ats.txoj] TORecoveryModule - second pass
> 13:26:48,802 DEBUG [com.arjuna.ats.arjuna] 13:26:48,802 DEBUG [com.arjuna.ats.jta] Local XARecoveryModule - second pass
> 13:26:48,803 DEBUG [com.arjuna.ats.jta] Local XARecoveryModule.transactionInitiatedRecovery completed
> 13:26:48,803 DEBUG [com.arjuna.ats.jta] Local XARecoveryModule.resourceInitiatedRecovery completed
> 13:26:48,803 DEBUG [com.arjuna.ats.arjuna] 13:26:48,803 DEBUG [com.arjuna.ats.arjuna] PeriodicRecovery: background
> thread Status <== INACTIVE
> 13:26:48,803 DEBUG [com.arjuna.ats.arjuna] PeriodicRecovery: background thread backing off
>
>
> Thanks for your help!!
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 12:44:34 GMT 2024
Powered by FUDForum. Page generated in 0.04948 seconds
|