Hi Alex,

    I just did a test and looks that there is the same error even without
the cascadedelete.  Is it possible?

Thanks!!!

Simone
----- Original Message -----
From: "Alex Loubyansky" <[EMAIL PROTECTED]>
To: "Simone Milani" <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 3:50 PM
Subject: Re: [JBoss-user] Optimistic Locking error


> Please, submit a bug report and include all this info.
>
> Thank you,
> alex
>
> Thursday, March 20, 2003, 5:20:34 PM, Simone Milani wrote:
>
> SM> Hi,
>
> SM>     I am using 3.2.0 RC3 and have a an entity bean with a one to many
relation with another entity bean.  Both uses Optimistic Locking with
modified startegy.  They are tagged for cascade delete
> SM> and when I do a remove I get the following error:
>
> SM> 2003-03-20 15:07:25,997 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSVector] Add finder
results: entity=MDSVector results=[11377836, 11377837, 11377838, 11377839,
11377840, 11377841,
> SM> 11377842, 11377843, 11377844, 11377845, 11377846, 11377847, 11377848,
11377849, 11377850, 11377851, 11377852, 11377853, 11377854, 11377855,
11377856, 11377857, 11377858, 11377859, 11377860,
> SM> 11377861, 11377862, 11377863, 11377864, 11377865, 11377866, 11377867,
11377868, 11377869, 11377870, 11377871, 11377872, 11377873, 11377874,
11377875, 11377876, 11377877, 11377878, 11377879,
> SM> 11377880, 11377881, 11377882, 11377883, 11377884, 11377885, 11377886,
11377887, 11377888, 11377889, 11377890, 11377891, 11377892, 11377893,
11377894, 11377895, 11377896, 11377897, 11377898,
> SM> 11377899, 11377900, 11377901, 11377902, 11377903, 11377904, 11377905]
readahead=[JDBCReadAheadMetaData : strategy=on-load, pageSize=1000,
eagerLoadGroup=*]
> SM> 2003-03-20 15:07:25,997 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.MDSVector] Removing
dereferenced results: [11377836, 11377837, 11377838, 11377839, 11377840,
11377841, 11377842,
> SM> 11377843, 11377844, 11377845, 11377846, 11377847, 11377848, 11377849,
11377850, 11377851, 11377852, 11377853, 11377854, 11377855, 11377856,
11377857, 11377858, 11377859, 11377860, 11377861,
> SM> 11377862, 11377863, 11377864, 11377865, 11377866, 11377867, 11377868,
11377869, 11377870, 11377871, 11377872, 11377873, 11377874, 11377875,
11377876, 11377877, 11377878, 11377879, 11377880,
> SM> 11377881, 11377882, 11377883, 11377884, 11377885, 11377886, 11377887,
11377888, 11377889, 11377890, 11377891, 11377892, 11377893, 11377894,
11377895, 11377896, 11377897, 11377898, 11377899,
> SM> 11377900, 11377901, 11377902, 11377903, 11377904, 11377905]
> SM> 2003-03-20 15:07:26,012 TRACE
[org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor] invokerBInding is null
in ProxyFactoryFinder
> SM> 2003-03-20 15:07:26,012 TRACE [org.jboss.ejb.plugins.LogInterceptor]
Start method=<no method>
> SM> 2003-03-20 15:07:26,012 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Current transaction in MI is TransactionImpl:XidImpl [FormatId=257,
GlobalId=dblon34056//10, BranchQual=]
> SM> 2003-03-20 15:07:26,012 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TX_SUPPORTS for <no method>
> SM> 2003-03-20 15:07:26,012 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Thread came in with tx TransactionImpl:XidImpl [FormatId=257,
GlobalId=dblon34056//10, BranchQual=]
> SM> 2003-03-20 15:07:26,012 TRACE
[org.jboss.ejb.plugins.EntityLockInterceptor] Begin invoke, key=11377836
> SM> 2003-03-20 15:07:26,012 TRACE
[org.jboss.ejb.plugins.EntityInstancePool] Get instance
[EMAIL PROTECTED]
com.db.jbozz.ejb.entity.mds.MDSVectorCMP
> SM> 2003-03-20 15:07:26,012 TRACE
[org.jboss.ejb.plugins.EntityLockInterceptor] End invoke, key=11377836
> SM> 2003-03-20 15:07:26,012 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackLocalException, causedBy:
> SM> java.lang.NullPointerException
> SM>  at
org.jboss.ejb.plugins.lock.JDBCOptimisticLock.schedule(JDBCOptimisticLock.ja
va:643)
> SM>  at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
a:103)
> SM>  at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce
ptor.java:69)
> SM>  at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:108)
> SM>  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:273)
> SM>  at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
> SM>  at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:13
0)
> SM>  at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
> SM>  at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
rInterceptor.java:154)
> SM>  at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
> SM>  at org.jboss.ejb.Container.invoke(Container.java:652)
> SM>  at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeRemoveRelatio
n(JDBCCMRFieldBridge.java:866)
> SM>  at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLink
s(JDBCCMRFieldBridge.java:761)
> SM>  at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLink
s(JDBCCMRFieldBridge.java:739)
> SM>  at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JD
BCCMRFieldBridge.java:653)
> SM>  at
org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.removeFromRelations(J
DBCRemoveEntityCommand.java:134)
> SM>  at
org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.execute(JDBCRemoveEnt
ityCommand.java:69)
> SM>  at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.removeEntity(JDBCStoreManage
r.java:757)
> SM>  at
org.jboss.ejb.plugins.CMPPersistenceManager.removeEntity(CMPPersistenceManag
er.java:518)
> SM>  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.removeEntit
y(CachedConnectionInterceptor.java:431)
> SM>  at org.jboss.ejb.EntityContainer.remove(EntityContainer.java:497)
> SM>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> SM>  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
> SM>  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
> SM>  at java.lang.reflect.Method.invoke(Method.java:324)
> SM>  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.ja
va:1032)
> SM>  at
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationIn
terceptor.java:95)
> SM>  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron
izationInterceptor.java:303)
> SM>  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionInterceptor.java:186)
> SM>  at
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt
erceptor.java:91)
>
>
> SM> Any idea?
>
> SM> Thanks
>
> SM> Simone
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Tablet PC.
> Does your code think in ink? You could win a Tablet PC.
> Get a free Tablet PC hat just for playing. What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to