[
https://wcm-io.atlassian.net/browse/WTES-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21407#comment-21407 ]
Stefan Seifert commented on WTES-69:
------------------------------------
first time i managed to capture a run with logging about a missing StringInterpolationProvider.
from the log it is seen that it is actually registered, but not found as service reference directly afterwards.
{noformat}
2021-12-07T10:16:18.1933969Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Creating MockBundleContext, bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1938572Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.osgi.service.cm.ConfigurationAdmin), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1943415Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.osgi.service.event.EventAdmin), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1948553Z [main] DEBUG org.apache.sling.testing.mock.sling.ThreadsafeMockAdapterManagerWrapper - Set bundle context for AdapterManager, bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1954218Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.api.adapter.AdapterManager), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1959471Z [main] DEBUG io.wcm.testing.mock.aem.context.ContextResourceResolverFactory - Start initialize resource resolver factory, bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1964215Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (java.util.concurrent.Executor), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1969024Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.jcr.api.SlingRepository), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1974635Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.commons.classloader.DynamicClassLoaderManager), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1980609Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.spi.resource.provider.ResourceProvider), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1986468Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.serviceusermapping.ServiceUserMapper), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.1992772Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.resourceresolver.impl.ResourceAccessSecurityTracker), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.2003138Z [pool-481-thread-1] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.serviceusermapping.ServiceUserMapped), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.2009246Z [pool-481-thread-1] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.serviceusermapping.ServiceUserMapped), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.2015812Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Register null (org.apache.sling.resourceresolver.impl.mapping.StringInterpolationProvider), bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.2021806Z [main] ERROR io.wcm.testing.mock.aem.context.ContextResourceResolverFactory - Failed initializing resource resolver factory, bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.2043707Z org.apache.sling.testing.mock.osgi.ReferenceViolationException: Unable to inject mandatory reference 'stringInterpolationProvider' (org.apache.sling.resourceresolver.impl.mapping.StringInterpolationProvider) for class org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator : no matching services were found. bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
2021-12-07T10:16:18.2051076Z at org.apache.sling.testing.mock.osgi.OsgiServiceUtil.injectServiceReference(OsgiServiceUtil.java:626)
2021-12-07T10:16:18.2054359Z at org.apache.sling.testing.mock.osgi.OsgiServiceUtil.injectServices(OsgiServiceUtil.java:439)
2021-12-07T10:16:18.2057042Z at org.apache.sling.testing.mock.osgi.MockOsgi.injectServices(MockOsgi.java:163)
2021-12-07T10:16:18.2059389Z at org.apache.sling.testing.mock.osgi.MockOsgi.injectServices(MockOsgi.java:151)
2021-12-07T10:16:18.2064766Z at org.apache.sling.testing.mock.sling.ResourceResolverFactoryInitializer.initializeResourceResolverFactoryActivator(ResourceResolverFactoryInitializer.java:156)
2021-12-07T10:16:18.2071360Z at org.apache.sling.testing.mock.sling.ResourceResolverFactoryInitializer.setUp(ResourceResolverFactoryInitializer.java:81)
2021-12-07T10:16:18.2075227Z at org.apache.sling.testing.mock.sling.MockSling.newResourceResolverFactory(MockSling.java:87)
2021-12-07T10:16:18.2078742Z at io.wcm.testing.mock.aem.context.ContextResourceResolverFactory.get(ContextResourceResolverFactory.java:55)
2021-12-07T10:16:18.2082247Z at io.wcm.testing.mock.aem.context.AemContextImpl.newResourceResolverFactory(AemContextImpl.java:99)
2021-12-07T10:16:18.2086180Z at org.apache.sling.testing.mock.sling.context.SlingContextImpl.resourceResolverFactory(SlingContextImpl.java:151)
2021-12-07T10:16:18.2089900Z at org.apache.sling.testing.mock.sling.context.SlingContextImpl.setUp(SlingContextImpl.java:135)
2021-12-07T10:16:18.2092487Z at io.wcm.testing.mock.aem.context.AemContextImpl.setUp(AemContextImpl.java:104)
2021-12-07T10:16:18.2094459Z at io.wcm.testing.mock.aem.junit.AemContext.access$400(AemContext.java:56)
2021-12-07T10:16:18.2096138Z at io.wcm.testing.mock.aem.junit.AemContext$2.execute(AemContext.java:208)
2021-12-07T10:16:18.2097693Z at io.wcm.testing.mock.aem.junit.AemContext$2.execute(AemContext.java:203)
2021-12-07T10:16:18.2100040Z at io.wcm.testing.junit.rules.parameterized.RepeatedStatement.evaluate(RepeatedStatement.java:55)
2021-12-07T10:16:18.2102432Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
2021-12-07T10:16:18.2104083Z at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
2021-12-07T10:16:18.2106068Z at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
2021-12-07T10:16:18.2108087Z at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
2021-12-07T10:16:18.2110359Z at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
2021-12-07T10:16:18.2112126Z at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
2021-12-07T10:16:18.2113404Z at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
2021-12-07T10:16:18.2114898Z at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
2021-12-07T10:16:18.2116570Z at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
2021-12-07T10:16:18.2117971Z at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
2021-12-07T10:16:18.2119473Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
2021-12-07T10:16:18.2120838Z at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
2021-12-07T10:16:18.2122697Z at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364)
2021-12-07T10:16:18.2125317Z at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
2021-12-07T10:16:18.2128121Z at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237)
2021-12-07T10:16:18.2130624Z at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158)
2021-12-07T10:16:18.2133411Z at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
2021-12-07T10:16:18.2135971Z at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
2021-12-07T10:16:18.2138058Z at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
2021-12-07T10:16:18.2144801Z at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
2021-12-07T10:16:18.2148455Z [main] DEBUG org.apache.sling.testing.mock.osgi.MockBundleContext - Shutting down MockBundleContext, bundleContext=org.apache.sling.testing.mock.osgi.MockBundleContext@674ad470
{noformat}