I have a problem with my beans... when I execute the client, its function
is to create some records of an entity bean through a session bean, but
when it is doing so the entity passivates without any reason cause it has
passed no time to determinate that the bean it's not being used.
This is the output of the server:
NOTA-actualizarNota:Fijado parametro hora
NOTA-actualizarNota:Fijado parametro id_generador_nota
NOTA-actualizarNota:Fijado parametro id_nota
NOTA-ejbPassivate
com.evermind.transaction.MarshallingXAException
at com.evermind.server.ejb.EntityEJBObject.g2(JAX)
at com.evermind.server.ApplicationServerTransaction.commit(JAX,
Compiled
Code)
at com.evermind.server.ApplicationServerTransaction.end(JAX)
at
StatefulSessionBeanWrapper4.introducirNotaAg(StatefulSessionBeanWrapp
er4.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.a9.run(JAX)
at com.evermind.server.rmi.a7.gw(JAX, Compiled Code)
at com.evermind.server.rmi.a7.run(JAX, Compiled Code)
at com.evermind.util.e.run(JAX, Compiled Code)
NOTA-unsetEntityContext:Entramos en el m�todo
...and in this point it hangs down.
The output of my client is:
C:\orion\APPLIC~1\Agenda\AGENDA~1>java -classpath
.;C:\orion\orion.jar;C:\orion\
ejb.jar;C:\orion\jndi.jar; AgendaSClient
Se realizo el contexto inicial
Se realizo el lookup
Se realizo el PortableRemoteObject
Se realizo metodo create de AgendaS
Lanzada una excepcion.
com.evermind.server.rmi.OrionRemoteException: Transaction was rolled
back: Error
preparing bean instance: com.evermind.transaction.MarshallingXAException
at
StatefulSessionBeanWrapper4.introducirNotaAg(StatefulSessionBeanWrapp
er4.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.a9.run(JAX)
at com.evermind.server.rmi.a7.gw(JAX, Compiled Code)
at com.evermind.server.rmi.a7.run(JAX, Compiled Code)
at com.evermind.util.e.run(JAX, Compiled Code)
at connection to localhost/127.0.0.1 as admin
at com.evermind.server.rmi.a7.invokeMethod(JAX, Compiled Code)
at com.evermind.server.rmi.az.invoke(JAX)
at com.evermind.server.rmi.a_.invoke(JAX, Compiled Code)
at __Proxy2.introducirNotaAg(Unknown Source)
at AgendaSClient.main(AgendaSClient.java:29)
Nested exception is:
com.evermind.transaction.MarshallingXAException
at com.evermind.server.rmi.OrionRemoteException.g_(JAX)
at com.evermind.server.rmi.a7.gu(JAX)
at com.evermind.server.rmi.a7.run(JAX, Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Nested exception is:
javax.ejb.EJBException: NOTA-ejbStore:ORA-01407: cannot update
("JAVI"."NOTAS"."
DIA") to NULL
at NotaEJB.ejbStore(NotaEJB.java:98)
at EntityBeanWrapper2.saveState(EntityBeanWrapper2.java:1332)
at com.evermind.server.ejb.EntityEJBObject.g2(JAX)
at com.evermind.server.ApplicationServerTransaction.commit(JAX,
Compiled
Code)
at com.evermind.server.ApplicationServerTransaction.end(JAX)
at
StatefulSessionBeanWrapper4.introducirNotaAg(StatefulSessionBeanWrapp
er4.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.a9.run(JAX)
at com.evermind.server.rmi.a7.gw(JAX, Compiled Code)
at com.evermind.server.rmi.a7.run(JAX, Compiled Code)
at com.evermind.util.e.run(JAX, Compiled Code)
at connection to localhost/127.0.0.1
javax.ejb.EJBException: NOTA-ejbStore:ORA-01407: cannot update
("JAVI"."NOTAS"."
DIA") to NULL
Why does it passivates if it has passed almost no time from the creation
of the bean????
Is there any possibility to eliminate the passivate option in Orion???
What so you suggest?????
THANK YOU !!!!!
-------------------------------------------------------------
David Sierra Fern�ndez
Ingeniero Tecnico de Telecomunicaci�n
AULA RETECAL (CEDETEL) Universidad de Valladolid
Campus Miguel Delibes E-Mail: [EMAIL PROTECTED]
47011 Valladolid (SPAIN)
--------------------------------------------------------------
-- Sierr@ --