Expand my Community achievements bar.

Hybris integration error after 6.2 upgrade

Avatar

Level 2

Upgraded Aem from 6.0 to Aem 6.2, after upgrade we have installed cq-hybris-content-6.2.100 package and we were using below dependency with AEM 6.0 <dependency>

                                                <groupId>com.adobe.cq.commerce</groupId>

                                                <artifactId>cq-commerce-hybris-impl</artifactId>

                                                <version>5.7.2</version>

                                                <scope>provided</scope>

                                </dependency>

But after upgrade hybris integration bundle was not in active state and it was showing version error for this dependency, when we checked depfinder for latest version and which was 6.1.2, and this particular version was not available in adobe repository.

So by adding below entry in import packages com.adobe.cq.commerce.hybris.*;version="[6.1,7)" my bundle is in active state now and while running the importer to fetch data from hybris I am getting below errors, Can you please help in resolving this issue?

 

Caused by: java.lang.NoClassDefFoundError: com/adobe/cq/commerce/hybris/api/HybrisConfigurationService$HybrisVersion
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.getDeclaredMethods(Unknown Source)
    at org.apache.felix.scr.impl.helper.BindMethod.getServiceObjectAssignableMethod(BindMethod.java:454)
    at org.apache.felix.scr.impl.helper.BindMethod.doFindMethod(BindMethod.java:186)
    at org.apache.felix.scr.impl.helper.BaseMethod.findMethod(BaseMethod.java:171)
    at org.apache.felix.scr.impl.helper.BaseMethod.access$400(BaseMethod.java:37)
    at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.resolve(BaseMethod.java:558)
    at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.methodExists(BaseMethod.java:580)
    at org.apache.felix.scr.impl.helper.BaseMethod.methodExists(BaseMethod.java:513)
    at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:643)
    at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2137)
    at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.prebind(DependencyManager.java:1048)
    at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1457)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:983)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:812)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:774)
    at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
    ... 86 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.adobe.cq.commerce.hybris.api.HybrisConfigurationService$HybrisVersion not found by com.adobe.cq.commerce.cq-commerce-hybris-impl [671]
    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)
    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1415)
    at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1595)
    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1525)
    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 104 common frames omitted

2 Replies

Avatar

Administrator

It may be a bug.

Please also have a look at this thread:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// Please create a daycare ticket for this

I will also check this internally for some solution.

~kautuk



Kautuk Sahni

Avatar

Level 2

kautuksahni wrote...

It may be a bug.

Please also have a look at this thread:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// Please create a daycare ticket for this

I will also check this internally for some solution.

~kautuk

 

Hi Kautuk,

Thanks for your reply, I have already checked this thread and tried asking for the solution on that thread as well, 

I have raised a daycare ticket for this. Please let me know if you find anything related to this.

Thanks,

Rohit