Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-423

JDBCOptimisticLocking NullPointerException on remove

    XMLWordPrintable

Details

    Description

      SourceForge Submitter: milasx .
      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 strategy. They
      are tagged for cascade delete and when I do a remove on
      the ParentBean I get the following error:

      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,
      11377842, 11377843, 11377844, 11377845, 11377846,
      11377847, 11377848, 11377849, 11377850, 11377851,
      11377852, 11377853, 11377854, 11377855, 11377856,
      11377857, 11377858, 11377859, 11377860, 11377861,
      11377862, 11377863, 11377864, 11377865, 11377866,
      11377867, 11377868, 11377869, 11377870, 11377871,
      11377872, 11377873, 11377874, 11377875, 11377876,
      11377877, 11377878, 11377879, 11377880, 11377881,
      11377882, 11377883, 11377884, 11377885, 11377886,
      11377887, 11377888, 11377889, 11377890, 11377891,
      11377892, 11377893, 11377894, 11377895, 11377896,
      11377897, 11377898, 11377899, 11377900, 11377901,
      11377902, 11377903, 11377904, 11377905]
      readahead=[JDBCReadAheadMetaData : strategy=on-load,
      pageSize=1000, eagerLoadGroup=*]
      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,
      11377843, 11377844, 11377845, 11377846, 11377847,
      11377848, 11377849, 11377850, 11377851, 11377852,
      11377853, 11377854, 11377855, 11377856, 11377857,
      11377858, 11377859, 11377860, 11377861, 11377862,
      11377863, 11377864, 11377865, 11377866, 11377867,
      11377868, 11377869, 11377870, 11377871, 11377872,
      11377873, 11377874, 11377875, 11377876, 11377877,
      11377878, 11377879, 11377880, 11377881, 11377882,
      11377883, 11377884, 11377885, 11377886, 11377887,
      11377888, 11377889, 11377890, 11377891, 11377892,
      11377893, 11377894, 11377895, 11377896, 11377897,
      11377898, 11377899, 11377900, 11377901, 11377902,
      11377903, 11377904, 11377905]
      2003-03-20 15:07:26,012 TRACE
      [org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor]
      invokerBInding is null in ProxyFactoryFinder
      2003-03-20 15:07:26,012 TRACE
      [org.jboss.ejb.plugins.LogInterceptor] Start method=<no
      method>
      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=]
      2003-03-20 15:07:26,012 TRACE
      [org.jboss.ejb.plugins.TxInterceptorCMT] TX_SUPPORTS
      for <no method>
      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=]
      2003-03-20 15:07:26,012 TRACE
      [org.jboss.ejb.plugins.EntityLockInterceptor] Begin
      invoke, key=11377836
      2003-03-20 15:07:26,012 TRACE
      [org.jboss.ejb.plugins.EntityInstancePool] Get instance
      org.jboss.ejb.plugins.EntityInstancePool@1df59bd#0#class
      com.db.jbozz.ejb.entity.mds.MDSVectorCMP
      2003-03-20 15:07:26,012 TRACE
      [org.jboss.ejb.plugins.EntityLockInterceptor] End
      invoke, key=11377836
      2003-03-20 15:07:26,012 ERROR
      [org.jboss.ejb.plugins.LogInterceptor]
      TransactionRolledbackLocalException, causedBy:
      java.lang.NullPointerException
      at
      org.jboss.ejb.plugins.lock.JDBCOptimisticLock.schedule(JDBCOptimisticLock.java:643)
      at
      org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:103)
      at
      org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
      at
      org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:108)
      at
      org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:273)
      at
      org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
      at
      org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      at
      org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
      at
      org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154)
      at
      org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483)
      at org.jboss.ejb.Container.invoke(Container.java:652)
      at
      org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeRemoveRelation(JDBCCMRFieldBridge.java:866)
      at
      org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLinks(JDBCCMRFieldBridge.java:761)
      at
      org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLinks(JDBCCMRFieldBridge.java:739)
      at
      org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:653)
      at
      org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.removeFromRelations(JDBCRemoveEntityCommand.java:134)
      at
      org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.execute(JDBCRemoveEntityCommand.java:69)
      at
      org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.removeEntity(JDBCStoreManager.java:757)
      at
      org.jboss.ejb.plugins.CMPPersistenceManager.removeEntity(CMPPersistenceManager.java:518)
      at
      org.jboss.resource.connectionmanager.CachedConnectionInterceptor.removeEntity(CachedConnectionInterceptor.java:431)
      at
      org.jboss.ejb.EntityContainer.remove(EntityContainer.java:497)
      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.invoke(EntityContainer.java:1032)
      at
      org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:95)
      at
      org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:303)
      at
      org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      at
      org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:91)

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            sourceforge-user SourceForge legacy user (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: