Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2093

Hangs in osgi itests

    XMLWordPrintableJSON

Details

    Description

      I get hangs running various of the osgi itests, the test run part way through then just appear to hang for ever, no IO or CPU activity on the process. Eg, the output on the console for some hangs are:

      Running org.apache.tuscany.sca.test.osgi.tuscany.OSGiSupplyChainTestCase
      -> Run tests from : ../../../samples/osgi-supplychain
      Loaded Tuscany, time taken = 31625 ms
      Running test null(supplychain.SupplyChainClientTestCase)
      Started OSGi bundle with activator OSGiCustomerImpl
      Started OSGi bundle with activator OSGiShipperImpl

      another:

      [INFO] Building Apache Tuscany OSGi Contribution tests
      [INFO] task-segment: [clean, install]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Deleting directory C:\Tuscany\SVN\LATEST\itest\osgi-contribution\contribution-test\target
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      [INFO] Compiling 1 source file to C:\Tuscany\SVN\LATEST\itest\osgi-contribution\contribution-test\target\classes
      [INFO] [resources:testResources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:testCompile]
      [INFO] Compiling 4 source files to C:\Tuscany\SVN\LATEST\itest\osgi-contribution\contribution-test\target\test-classes
      [INFO] [surefire:test]
      [INFO] Surefire report directory: C:\Tuscany\SVN\LATEST\itest\osgi-contribution\contribution-test\target\surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.tuscany.sca.contribution.osgi.test.OSGiResolverTestCase
      -> Created supplychain.customer.JavaCustomerComponentImpl using classloader 6.0
      Created supplychain.retailer.JavaRetailerComponentImpl using classloader 7.0
      Created supplychain.warehouse.JavaWarehouseComponentImpl using classloader 8.0
      Created supplychain.shipper.JavaShipperComponentImpl using classloader 9.0

      another:

      Running supplychain.wiring.DSWiring1TestCase
      -> Main thread Thread[main,5,main]
      Created OSGiCustomerComponentImpl supplychain.customer.OSGiCustomerComponentImpl@1cebc9f
      Activated OSGiCustomerComponentImpl bundle
      OSGiCustomerComponentImpl.purchaseBooks, retailer1 is [Proxy - org.apache.tuscany.sca.core.invocation.JDKInvocationHandler@1fc1a6]
      Activated OSGiRetailerComponentImpl bundle
      Activated OSGiRetailerComponentImpl bundle
      OSGiRetailerComponentImpl.submitOrder , warehouse is [Proxy - org.apache.tuscany.sca.core.invocation.JDKInvocationHandler@1c286e2]
      JavaWarehouseComponentImpl.fulfillOrder : shipper is [Proxy - org.apache.tuscany.sca.core.invocation.JDKInvocationHandler@1d6fbb3]
      Activated OSGiShipperComponentImpl bundle
      Activated OSGiShipperComponentImpl bundle
      OSGiShipperComponentImpl.processShipment, customer is [Proxy - org.apache.tuscany.sca.core.invocation.JDKInvocationHandler@1827d1]

      This is easily recreateable so i can help debug, just right now i'm not sure where to look.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aelder ant elder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: