Hi All,

mvn build is failing for "SLING EVENT" bundle in IT test phase when tried  
after upgrading version of "org.apache.sling.api" from 2.9.0 to "2.11.0" in the 
respective pom.xml as it's required to introduce the new ResourceChangeListener 
API. We are getting below mentioned error during execution of IT test cases for 
Sling event bundle.

ERROR: Bundle org.apache.sling.resourceresolver [45] EventDispatcher: Error 
during dispatch. (java.lang.AbstractMethodError: 
org.apache.jackrabbit.core.XASessionImpl.getItemOrNull(Ljava/lang/String;)Ljavax/jcr/Item;)
java.lang.AbstractMethodError: 
org.apache.jackrabbit.core.XASessionImpl.getItemOrNull(Ljava/lang/String;)Ljavax/jcr/Item;
              at 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrItemResourceFactory.getItemOrNull(JcrItemResourceFactory.java:184)
              at 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrItemResourceFactory.createResource(JcrItemResourceFactory.java:96)
              at 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.getResource(JcrResourceProvider.java:283)
              at 
org.apache.sling.resourceresolver.impl.providers.stateful.AuthenticatedResourceProvider.getResource(AuthenticatedResourceProvider.java:135)
              at 
org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.getResource(ResourceResolverControl.java:218)
              at 
org.apache.sling.resourceresolver.impl.ResourceResolverImpl.getAbsoluteResourceInternal(ResourceResolverImpl.java:1067)
              at 
org.apache.sling.resourceresolver.impl.ResourceResolverImpl.getResourceInternal(ResourceResolverImpl.java:688)
              at 
org.apache.sling.resourceresolver.impl.ResourceResolverImpl.getResource(ResourceResolverImpl.java:642)
              at 
org.apache.sling.resourceresolver.impl.mapping.MapEntries.loadResolverMap(MapEntries.java:962)
              at 
org.apache.sling.resourceresolver.impl.mapping.MapEntries.doUpdateConfiguration(MapEntries.java:443)
              at 
org.apache.sling.resourceresolver.impl.mapping.MapEntries.doInit(MapEntries.java:230)
              at 
org.apache.sling.resourceresolver.impl.mapping.MapEntries.<init>(MapEntries.java:191)

TimedJobsTest failed with bellow mentioned error

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1,650.72 sec 
<<< FAILURE! - in org.apache.sling.event.it.TimedJobsTest
testTimedJob(org.apache.sling.event.it.TimedJobsTest)  Time elapsed: 1,650.716 
sec  <<< ERROR!
java.lang.Exception: test timed out after 300000 milliseconds
              at java.lang.Thread.sleep(Native Method)
              at 
org.apache.sling.event.it.AbstractJobHandlingTest.sleep(AbstractJobHandlingTest.java:212)
              at 
org.apache.sling.event.it.AbstractJobHandlingTest.waitConsumerChangeCount(AbstractJobHandlingTest.java:348)
              at 
org.apache.sling.event.it.AbstractJobHandlingTest.registerJobConsumer(AbstractJobHandlingTest.java:363)
              at 
org.apache.sling.event.it.TimedJobsTest.testTimedJob(TimedJobsTest.java:60)


Following mvn bundles are provided in configuration method of 
org.apache.sling.event.it.AbstractJobHandlingTest.java

                // sling
                mavenBundle("org.apache.sling", "org.apache.sling.settings", 
"1.3.8"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.commons.osgi", "2.4.0"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.commons.json", "2.0.18"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.commons.mime", "2.1.8"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.commons.classloader", "1.3.2"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.commons.scheduler", "2.5.0"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.commons.threads", "3.2.6"),

                mavenBundle("org.apache.sling", "org.apache.sling.auth.core", 
"1.3.16"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.discovery.api", "1.0.4"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.discovery.standalone", "1.0.2"),
                mavenBundle("org.apache.sling", "org.apache.sling.api", 
"2.14.0"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.resourceresolver", "1.4.16"),
                mavenBundle("org.apache.sling", "org.apache.sling.adapter", 
"2.1.8"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.jcr.resource", "2.8.0"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.jcr.classloader", "3.2.2"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.jcr.contentloader", "2.1.10"),
                mavenBundle("org.apache.sling", "org.apache.sling.engine", 
"2.4.6"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.serviceusermapper", "1.2.2"),

                mavenBundle("org.apache.sling", 
"org.apache.sling.jcr.jcr-wrapper", "2.0.0"),
                mavenBundle("org.apache.sling", "org.apache.sling.jcr.api", 
"2.4.0"),
                mavenBundle("org.apache.sling", "org.apache.sling.jcr.base", 
"2.4.0"),
                mavenBundle("org.apache.jackrabbit", "jackrabbit-api", 
"2.13.2"),
               mavenBundle("org.apache.jackrabbit", "jackrabbit-jcr-commons", 
"2.13.2"),
                mavenBundle("org.apache.jackrabbit", "jackrabbit-spi", 
"2.13.2"),
                mavenBundle("org.apache.jackrabbit", "jackrabbit-spi-commons", 
"2.13.2"),
                mavenBundle("org.apache.jackrabbit", "jackrabbit-jcr-rmi", 
"2.13.2"),
                mavenBundle("org.apache.derby", "derby", "10.5.3.0_1"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.jcr.jackrabbit.server", "2.3.0"),

                mavenBundle("org.apache.sling", 
"org.apache.sling.testing.tools", "1.0.6"),
                mavenBundle("org.apache.httpcomponents", "httpcore-osgi", 
"4.1.2"),
                mavenBundle("org.apache.httpcomponents", "httpclient-osgi", 
"4.1.2"),
                mavenBundle("com.google.guava", "guava", "15.0"),
                mavenBundle("org.apache.sling", 
"org.apache.sling.discovery.commons", "1.0.12"),


Regards,
Abdul Hameed Pathan

Reply via email to