Bugs item #738166, was opened at 2003-05-15 11:38 Message generated for change (Comment added) made by milasx You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=738166&group_id=22866
Category: JBossCMP Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Simone (milasx) Assigned to: Nobody/Anonymous (nobody) Summary: Random error on finder method Initial Comment: I have a finder method and the executed SQL finds ALWAYS one row. Strangely the finder method randomly fails. I guess that the entity cache must be in some kind of inconsistent state.That happens when the server is under load. I could not think of any workaround. Is it possible that one entity in the entity cache is corrupted because of some weak references to its fields? Attached a TRACE level log. ---------------------------------------------------------------------- >Comment By: Simone (milasx) Date: 2003-06-02 18:11 Message: Logged In: YES user_id=698828 Hi Alex, Same problem with 3.2.2Beta as of 02/06/03. Thanks!!! Simone 2003-06-02 18:03:06,977 DEBUG [org.jboss.logging.Log4jService] Installed System.out adapter 2003-06-02 18:03:06,977 DEBUG [org.jboss.logging.Log4jService] Installed System.err adapter 2003-06-02 18:03:18,647 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000 2003-06-02 18:03:50,438 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.MDSKeyVector.findByMandatoryParameters] Executing SQL: SELECT t0_o.MK_MDS_ID, t0_o.MK_ASOFDATE, t0_o.MK_BUSINESS_AREA, t0_o.MK_CLASS, t0_o.MK_CURRENCY, t0_o.MK_CURVE_ID, t0_o.MK_DATE_SAVED, t0_o.MK_INSTANCE, t0_o.MK_LOCATION, t0_o.MK_NAME, t0_o.MK_PROCESS, t0_o.MK_TIMESTAMP, t0_o.MK_USER FROM MDS_KEY t0_o WHERE t0_o.MK_CLASS = ? AND t0_o.MK_CURRENCY = ? AND t0_o.MK_INSTANCE = ? AND t0_o.MK_PROCESS = ? AND t0_o.MK_ASOFDATE = ? AND t0_o.MK_LOCATION = ? AND t0_o.MK_BUSINESS_AREA = ? AND t0_o.MK_NAME = ? 2003-06-02 18:03:50,454 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.MDSKeyVector.findByMandatoryParameters] Find failed java.lang.IllegalArgumentException: Entity primary key is null at org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache$PreloadKey.<init>(ReadAheadCache.java:640) at org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.getPreloadDataMap(ReadAheadCache.java:489) at org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.addPreloadData(ReadAheadCache.java:428) at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:175) at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:91) at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:44) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:591) at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:312) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:301) at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:628) 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.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1006) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:91) at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:478) at org.jboss.ejb.Container.invoke(Container.java:693) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:272) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) at $Proxy209.findByMandatoryParameters(Unknown Source) at com.db.gm.mercury.ejb.session.mds.MDSKeyVectorFacadeBean.setMDSKeyVectorValue(Unknown Source) 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:646) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 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:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117) 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:323) at org.jboss.ejb.Container.invoke(Container.java:673) 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.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:536) ---------------------------------------------------------------------- Comment By: Simone (milasx) Date: 2003-05-28 11:34 Message: Logged In: YES user_id=698828 Alex, I will do some testing early next week. Thanks Simone ---------------------------------------------------------------------- Comment By: Alexey Loubyansky (loubyansky) Date: 2003-05-23 09:36 Message: Logged In: YES user_id=543482 Simone, could you, please, check whether it still occurs in the current CVS version? Thank you, alex ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=738166&group_id=22866 ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development