Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2611

Intermittent failures in CMP tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.1.0.Final
    • Component/s: EJB
    • Labels:
      None

      Description

      I am seeing what looks like a race condition in the CMP tests.

      It appears that this may be caused by org.jboss.as.cmp.ejbql.Catalog not being synchronized, and if multiple org.jboss.as.cmp.jdbc.JdbcStoreManagerInitService start concurrently concurrent access may result. Not sure if this is the correct diagnosis though.

      20:16:12,652 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-12) MSC00001: Failed to start service jboss.deployment.unit."cmp-relationship.jar".component.A_OneToMany_Uni_Table_EJB.jdbc.store-manager.RELATIONS: org.jboss.msc.service.StartException in service jboss.deployment.unit."cmp-relationship.jar".component.A_OneToMany_Uni_Table_EJB.jdbc.store-manager.RELATIONS: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
      	at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]
      Caused by: java.lang.RuntimeException: Related entity not found: entity=A_OneToMany_Uni_Table_EJB, cmrField=b, relatedEntity=B_OneToMany_Uni_Table_EJB
      	at org.jboss.as.cmp.jdbc.bridge.JDBCCMRFieldBridge.resolveRelationship(JDBCCMRFieldBridge.java:228)
      	at org.jboss.as.cmp.jdbc.bridge.JDBCEntityBridge.resolveRelationships(JDBCEntityBridge.java:257)
      	at org.jboss.as.cmp.jdbc.JDBCStoreManager.resolveRelationships(JDBCStoreManager.java:241)
      	at org.jboss.as.cmp.jdbc.JdbcStoreManagerRelationshipsService.start(JdbcStoreManagerRelationshipsService.java:41)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	... 3 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                swd847 Stuart Douglas
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: