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

itest/implementation-osgi produces bundle cache errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-1.6
    • Java-SCA-1.x
    • None
    • Windows

    Description

      When building itest/implementation-osgi on Windows, a number of messages are produced reporting errors in the bundle cache. Here's an example:

      Running supplychain.services.DSServicesTestCase
      01-Jul-2010 08:36:16 org.apache.tuscany.sca.node.impl.NodeImpl <init>
      INFO: Creating node: services-ds-test.composite
      01-Jul-2010 08:36:16 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
      INFO: Loading contribution: file:/E:/td/sca1x/trunk/itest/osgi-implementation/ta
      rget/classes/services/ds/
      ERROR: org.apache.felix.framework.cache.BundleCache: Error creating archive. (ja
      va.io.FileNotFoundException: E:\td\sca1x\trunk\itest\osgi-implementation\target\
      .felix\bundle4\version0.0\revision.location (The system cannot find the file spe
      cified))
      java.io.FileNotFoundException: E:\td\sca1x\trunk\itest\osgi-implementation\targe
      t\.felix\bundle4\version0.0\revision.location (The system cannot find the file s
      pecified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:106)
      at org.apache.felix.framework.util.SecureAction.getFileInputStream(Secur
      eAction.java:340)
      at org.apache.felix.framework.cache.BundleArchive.getRevisionLocation(Bu
      ndleArchive.java:775)
      at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
      ava:201)
      at org.apache.felix.framework.cache.BundleCache.initialize(BundleCache.j
      ava:371)
      at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:
      95)
      at org.apache.felix.framework.Felix.<init>(Felix.java:248)
      at org.apache.felix.framework.Felix.<init>(Felix.java:125)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
      orAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
      onstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.apache.tuscany.sca.osgi.runtime.FelixRuntime.startRuntime(FelixRu
      ntime.java:144)
      at org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.getRuntime(OSGiRuntim
      e.java:135)
      at org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.getRuntime(OSGiRuntim
      e.java:124)
      at org.apache.tuscany.sca.contribution.osgi.impl.OSGiBundleReferenceMode
      lResolver.resolveModel(OSGiBundleReferenceModelResolver.java:89)
      at org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver.
      resolveModel(ExtensibleModelResolver.java:179)
      at org.apache.tuscany.sca.implementation.osgi.xml.OSGiImplementationProc
      essor.resolve(OSGiImplementationProcessor.java:242)
      at org.apache.tuscany.sca.implementation.osgi.xml.OSGiImplementationProc
      essor.resolve(OSGiImplementationProcessor.java:79)
      at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProc
      essorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcess
      orExtensionPoint.java:388)
      at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactP
      rocessor.resolve(ExtensibleStAXArtifactProcessor.java:183)
      at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImpl
      ementation(BaseAssemblyProcessor.java:340)
      at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(Compos
      iteProcessor.java:1028)
      at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(Compos
      iteProcessor.java:90)
      at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProc
      essorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcess
      orExtensionPoint.java:388)
      at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactP
      rocessor.resolve(ExtensibleStAXArtifactProcessor.java:183)
      at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolv
      e(CompositeDocumentProcessor.java:231)
      at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolv
      e(CompositeDocumentProcessor.java:59)
      at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactPr
      ocessor.resolve(ExtensibleURLArtifactProcessor.java:106)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
      mpl.processResolvePhase(ContributionServiceImpl.java:625)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
      mpl.addContribution(ContributionServiceImpl.java:430)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
      mpl.contribute(ContributionServiceImpl.java:198)
      at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java
      :524)
      at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:381)
      at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFa
      ctoryImpl.java:47)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(Defau
      ltSCADomain.java:175)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(Def
      aultSCADomain.java:100)
      at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCAD
      omain.java:182)
      at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.
      java:76)
      at test.OSGiTestCase.setUp(OSGiTestCase.java:58)
      at supplychain.SupplyChainTestCase.setUp(SupplyChainTestCase.java:39)
      at junit.framework.TestCase.runBare(TestCase.java:132)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.
      java:79)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
      java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
      tSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
      stractDirectoryTestSuite.java:125)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
      refireBooter.java:308)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
      ava:879)
      java.io.FileNotFoundException: E:\td\sca1x\trunk\itest\osgi-implementation\targe
      t\.felix\bundle4\version0.0\bundle.jar (The system cannot find the file specifie
      d)
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:114)
      at java.util.jar.JarFile.<init>(JarFile.java:133)
      at java.util.jar.JarFile.<init>(JarFile.java:97)
      at org.apache.felix.framework.util.JarFileX.<init>(JarFileX.java:36)
      at org.apache.felix.framework.util.SecureAction.openJAR(SecureAction.jav
      a:517)
      at org.apache.felix.framework.cache.JarRevision.getManifestHeader(JarRev
      ision.java:95)
      at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
      at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
      at org.apache.felix.framework.BundleContextImpl.installBundle(BundleCont
      extImpl.java:132)
      at org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.installBundle(OSGiRun
      time.java:251)
      at org.apache.tuscany.sca.contribution.osgi.impl.OSGiBundleProcessor.ins
      tallNestedBundle(OSGiBundleProcessor.java:110)
      at org.apache.tuscany.sca.contribution.osgi.impl.OSGiBundleReferenceMode
      lResolver.resolveModel(OSGiBundleReferenceModelResolver.java:104)
      at org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver.
      resolveModel(ExtensibleModelResolver.java:179)
      at org.apache.tuscany.sca.implementation.osgi.xml.OSGiImplementationProc
      essor.resolve(OSGiImplementationProcessor.java:242)
      at org.apache.tuscany.sca.implementation.osgi.xml.OSGiImplementationProc
      essor.resolve(OSGiImplementationProcessor.java:79)
      at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProc
      essorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcess
      orExtensionPoint.java:388)
      at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactP
      rocessor.resolve(ExtensibleStAXArtifactProcessor.java:183)
      at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImpl
      ementation(BaseAssemblyProcessor.java:340)
      at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(Compos
      iteProcessor.java:1028)
      at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(Compos
      iteProcessor.java:90)
      at org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProc
      essorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcess
      orExtensionPoint.java:388)
      at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactP
      rocessor.resolve(ExtensibleStAXArtifactProcessor.java:183)
      at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolv
      e(CompositeDocumentProcessor.java:231)
      at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolv
      e(CompositeDocumentProcessor.java:59)
      at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactPr
      ocessor.resolve(ExtensibleURLArtifactProcessor.java:106)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
      mpl.processResolvePhase(ContributionServiceImpl.java:625)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
      mpl.addContribution(ContributionServiceImpl.java:430)
      at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceI
      mpl.contribute(ContributionServiceImpl.java:198)
      at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java
      :524)
      at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:381)
      at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFa
      ctoryImpl.java:47)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(Defau
      ltSCADomain.java:175)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(Def
      aultSCADomain.java:100)
      at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCAD
      omain.java:182)
      at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.
      java:76)
      at test.OSGiTestCase.setUp(OSGiTestCase.java:58)
      at supplychain.SupplyChainTestCase.setUp(SupplyChainTestCase.java:39)
      at junit.framework.TestCase.runBare(TestCase.java:132)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.
      java:79)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
      java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
      tSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
      stractDirectoryTestSuite.java:125)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
      refireBooter.java:308)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
      ava:879)
      01-Jul-2010 08:36:16 org.apache.tuscany.sca.implementation.osgi.xml.OSGiImplemen
      tationProcessor
      SEVERE: Could not locate OSGi bundle: ds.services.supplychain.retailer.Retailer
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.509 sec <<< FA
      ILURE!
      test(supplychain.services.DSServicesTestCase) Time elapsed: 0.504 sec <<< ERRO
      R!
      org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.monitor.MonitorRunt
      imeException: Could not locate OSGi bundle: ds.services.supplychain.retailer.Ret
      ailer
      at org.apache.tuscany.sca.node.impl.NodeImpl.analyzeProblems(NodeImpl.ja
      va:713)
      01-Jul-2010 08:36:16 org.apache.tuscany.sca.node.impl.NodeImpl <init>
      INFO: Creating node: properties-test.composite
      at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java
      :525)
      at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:381)
      at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(NodeFa
      ctoryImpl.java:47)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(Defau
      ltSCADomain.java:175)
      at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(Def
      aultSCADomain.java:100)
      at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCAD
      omain.java:182)
      at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.
      java:76)
      at test.OSGiTestCase.setUp(OSGiTestCase.java:58)
      at supplychain.SupplyChainTestCase.setUp(SupplyChainTestCase.java:39)
      at junit.framework.TestCase.runBare(TestCase.java:132)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.
      java:79)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
      java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
      tSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
      stractDirectoryTestSuite.java:125)
      01-Jul-2010 08:36:16 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
      INFO: Loading contribution: file:/E:/td/sca1x/trunk/itest/osgi-implementation/ta
      rget/classes/properties/
      at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
      refireBooter.java:308)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
      ava:879)
      Caused by: org.apache.tuscany.sca.monitor.MonitorRuntimeException: Could not loc
      ate OSGi bundle: ds.services.supplychain.retailer.Retailer
      ... 28 more

      Attachments

        Activity

          People

            scnash Simon Nash
            scnash Simon Nash
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: