I think I got it,

you go through a "loadEntity" from the "nonValid" state...

my bad, too many points of entry in this container, gotta map them all :(

marc


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of marc fleury
> Sent: Friday, August 25, 2000 11:14 AM
> To: jBoss Developer; Justin Forder; jboss-jaws
> Subject: [JAWS] RE: [jBoss-Dev] Entity caching
>
>
> Ingo there is *exactly* such a test with TestBeans.jar (look at
> EjbossClient
> under zola) and it works fine.
>
> One thing that caught my eye is that the SSC (Stateful Session
> Container) is
> answering the question, is this normal?
>
> marc
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Ingo Bruell
> > Sent: Friday, August 25, 2000 6:10 AM
> > To: Justin Forder; jboss-dev; jboss-jaws
> > Subject: [jBoss-Dev] Entity caching
> >
> >
> > Hi,
> >
> > i have found a new error it could be also a problem with the
> caching from
> > EntityBeans.
> >
> > If I get a EntityBean with findByPrimaryKey() use it with setter
> > and getter
> > methods and throw the reference to the EntityBean away (= null)
> > and get the
> > same EntityBean with findByPrimaryKey()  again and then use a
> > setter method
> > then JAWS have NULL in the key field and throws following Exceptions:
> >
> > ---- snip ----
> > [Default] JRMPCI:invokeHome create
> > [Default] Tx is null
> > [wb/Workbench] TX_REQUIRED for create
> > [wb/Workbench] Begin tx
> > [wb/Workbench] SSC:invokeHome:mi is create map is createHome
> > [wb/Workbench] Benutzer: IBRUELL
> > [wb/Workbench] JRMPCI:invokeHome create
> > [wb/Workbench] Tx is tx:Xid:2
> > [wb/UserManager] TX_REQUIRED for create
> > [wb/UserManager] TX_REQUIRED for login
> > [wb/UserManager] login(IBRUELL)
> > [wb/UserManager] user.findByPrimaryKey()
> > [wb/UserManager] JRMPCI:invokeHome findByPrimaryKey
> > [wb/UserManager] Tx is tx:Xid:2
> > [wb/UserManager] invokeHome
> > [wb/User] TX_REQUIRED for findByPrimaryKey
> > [JAWS] Exists command executing: SELECT COUNT(*) AS Total FROM
> > wbuser WHERE
> > id=?
> >
> > [JAWS] Set parameter: idx=1, jdbcType=CHAR, value=IBRUELL
> > [wb/UserManager] user.setLoginDate()
> > [wb/User] TX_REQUIRED for setLoginDate
> > [JAWS] Load command executing: SELECT
> > name,loginDate,role,id,userShort FROM
> > wbus
> > er WHERE id=?
> > [JAWS] Set parameter: idx=1, jdbcType=CHAR, value=NULL
> > [wb/User] Load failed; nested exception is:
> >         java.rmi.ServerException: Load failed; nested exception is:
> >         java.rmi.NoSuchObjectException: Entity null not found
> > [wb/UserManager] java.rmi.ServerException: Load failed; nested
> > exception is:
> >         java.rmi.ServerException: Load failed; nested exception is:
> >         java.rmi.NoSuchObjectException: Entity null not found
> > [wb/UserManager] java.rmi.ServerException: Load failed; nested
> > exception is:
> >         java.rmi.NoSuchObjectException: Entity null not found
> >         at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult(JD
> > BCLoadEntityCommand.java:117)
> >         at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAndH
> > andleResult(JDBCQueryCommand.java:59)
> >         at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.j
> > ava:116)[wb/UserManager] java.rmi.NoSuchObjectException: Entity null not
> > found
> >
> >         at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoa
> > dEntityCommand.java:93)
> >         at
> > org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPers
> > istenceManager.java:149)
> >         at
> > org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistence
> > Manager.java:205)
> >         at
> > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntityS
> > ynchronizationInterceptor.java:166)
> >         at
> > org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstance
> > Interceptor.java:106)
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.invokeNext(TxInterceptor.java:128
> > )
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxInterceptor
> > .java:189)
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:96)
> >         at
> > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
> > java:140)
> >         at
> > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:156)
> >         at
> org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:320)
> >         at
> > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCon
> > tainerInvoker.java:200)
> >         at
> > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCon
> > tainerInvoker.java:177)
> >         at
> > org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.
> > java:166)
> >         at $Proxy11.setLoginDate(Unknown Source)
> >         at
> > de.oblgmbh.wb.server.UserManagerBean.login(UserManagerBean.java:109)
> >         at java.lang.reflect.Method.invoke(Native Method)
> >         at
> > org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
> > tatelessSessionContainer.java:445)
> >         at
> > org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
> > elessSessionInstanceInterceptor.java:83)
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.invokeNext(TxInterceptor.java:128
> > )
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxInterceptor
> > .java:189)
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:96)
> >         at
> > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
> > java:140)
> >         at
> > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:156)
> >         at
> > org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContai
> > ner.java:264)
> >         at
> > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCon
> > tainerInvoker.java:200)
> >         at
> > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCon
> > tainerInvoker.java:177)
> >         at
> > org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(St
> > atelessSessionProxy.java:164)
> >         at $Proxy8.login(Unknown Source)
> >         at
> > de.oblgmbh.wb.server.WorkbenchBean.ejbCreate(WorkbenchBean.java:34)
> >         at java.lang.reflect.Method.invoke(Native Method)
> >         at
> > org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.createSes
> > sion(StatefulSessionFilePersistenceManager.java:142)
> >         at
> > org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionCont
> > ainer.java:368)
> >         at java.lang.reflect.Method.invoke(Native Method)
> >         at
> > org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHom
> > e(StatefulSessionContainer.java:508)
> >         at
> > org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep
> > tor.java:122)
> >         at
> > org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(S
> > tatefulSessionInstanceInterceptor.java:60)
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.invokeNext(TxInterceptor.java:130
> > )
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxInterceptor
> > .java:189)
> >         at
> > org.jboss.ejb.plugins.TxInterceptor.invokeHome(TxInterceptor.java:83)
> >
> >         at
> > org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1
> > 03)
> >         at
> > org.jboss.ejb.StatefulSessionContainer.invokeHome(StatefulSessionCont
> > ainer.java:304)
> >         at
> > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRM
> > PContainerInvoker.java:192)
> >         at
> > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRM
> > PContainerInvoker.java:146)
> >         at java.lang.reflect.Method.invoke(Native Method)
> >         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
> >         at sun.rmi.transport.Transport$1.run(Unknown Source)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
> >         at
> > sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
> >         at
> > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
> > Sour
> > ce)
> >         at java.lang.Thread.run(Unknown Source)
> > [wb/UserManager] Load failed; nested exception is:
> >         java.rmi.ServerException: Load failed; nested exception is:
> >         java.rmi.NoSuchObjectException: Entity null not found; nested
> > exception
> > is:
> >         java.rmi.ServerException: Load failed; nested exception is:
> >         java.rmi.ServerException: Load failed; nested exception is:
> >         java.rmi.NoSuchObjectException: Entity null not found
> > [wb/Workbench] java.rmi.RemoteException: Load failed; nested
> exception is:
> >         java.rmi.ServerException: Load failed; nested exception is:
> >         java.rmi.NoSuchObjectException: Entity null not found; nested
> > exception
> > is:
> >         java.rmi.ServerException: Load failed; nested exception is:
> >         java.rmi.ServerException: Load failed; nested exception is:
> >         java.rmi.NoSuchObjectException: Entity null not found
> > [wb/Workbench] null
> > [wb/Workbench] commiting
> > ---- snap ----
> > CU
> >
> > ---
> > Ingo Bruell
> > OBL GmbH ([EMAIL PROTECTED])
> > Hude (Oldenburg)
> > Germany
> >
> >
> >
>
> --
> This is the JAWS mailing list. Please send email to '[EMAIL PROTECTED]'
> with the command 'unsubscribe jaws [email@address]' in the body
> of the mail
> to be removed from this list.
>


Reply via email to