Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8140

The descriptor file generated for the RepositoryPrinterProvider component is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Base 3.0.4
    • JCR Base 3.0.6
    • None
    • None

    Description

      Switch to the official OSGi annotations

       

      During the build this exception is logged:

      Running org.apache.sling.jcr.base.RepositoryInitializersTest
      [Fatal Error] :1:1: Premature end of file.
      [main] WARN org.apache.sling.testing.mock.osgi.OsgiMetadataUtil - Error reading SCR metadata XML document from OSGI-INF/org.apache.sling.jcr.base.internal.RepositoryPrinterProvider.xml
      java.lang.RuntimeException: Unable to read classpath resource: OSGI-INF/org.apache.sling.jcr.base.internal.RepositoryPrinterProvider.xml
      at org.apache.sling.testing.mock.osgi.OsgiMetadataUtil.toXmlDocument(OsgiMetadataUtil.java:230)
      at org.apache.sling.testing.mock.osgi.OsgiMetadataUtil.parseMetadataDocument(OsgiMetadataUtil.java:194)
      at org.apache.sling.testing.mock.osgi.OsgiMetadataUtil.parseMetadataDocuments(OsgiMetadataUtil.java:183)
      at org.apache.sling.testing.mock.osgi.OsgiMetadataUtil.initMetadataDocumentCache(OsgiMetadataUtil.java:171)
      at org.apache.sling.testing.mock.osgi.OsgiMetadataUtil.<clinit>(OsgiMetadataUtil.java:114)
      at org.apache.sling.testing.mock.osgi.MapMergeUtil.propertiesMergeWithOsgiMetadata(MapMergeUtil.java:73)
      at org.apache.sling.testing.mock.osgi.MapMergeUtil.propertiesMergeWithOsgiMetadata(MapMergeUtil.java:55)
      at org.apache.sling.testing.mock.osgi.MockBundleContext.registerService(MockBundleContext.java:119)
      at org.apache.sling.testing.mock.osgi.MockBundleContext.registerService(MockBundleContext.java:107)
      at org.apache.sling.testing.mock.osgi.MockBundleContext.<init>(MockBundleContext.java:80)
      at org.apache.sling.testing.mock.osgi.MockOsgi.newBundleContext(MockOsgi.java:50)
      at org.apache.sling.testing.mock.osgi.ComponentContextBuilder.build(ComponentContextBuilder.java:69)
      at org.apache.sling.testing.mock.osgi.MockOsgi.newComponentContext(MockOsgi.java:67)
      at org.apache.sling.testing.mock.osgi.context.OsgiContextImpl.componentContext(OsgiContextImpl.java:74)
      at org.apache.sling.testing.mock.osgi.context.OsgiContextImpl.bundleContext(OsgiContextImpl.java:83)
      at org.apache.sling.testing.mock.osgi.context.OsgiContextImpl.registerInjectActivateService(OsgiContextImpl.java:153)
      at org.apache.sling.testing.mock.osgi.context.OsgiContextImpl.registerInjectActivateService(OsgiContextImpl.java:141)
      at org.apache.sling.testing.mock.osgi.context.OsgiContextImpl.registerDefaultServices(OsgiContextImpl.java:66)
      at org.apache.sling.testing.mock.osgi.context.OsgiContextImpl.setUp(OsgiContextImpl.java:47)
      at org.apache.sling.testing.mock.sling.context.SlingContextImpl.setUp(SlingContextImpl.java:96)
      at org.apache.sling.testing.mock.sling.junit.SlingContext.access$000(SlingContext.java:32)
      at org.apache.sling.testing.mock.sling.junit.SlingContext$1.before(SlingContext.java:113)
      at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
      at org.apache.sling.testing.mock.osgi.OsgiMetadataUtil.toXmlDocument(OsgiMetadataUtil.java:226)
      ... 39 more

      Attachments

        Activity

          People

            enorman Eric Norman
            enorman Eric Norman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: