AEM+Hybris integration - OAuthHandler - authentication failed
Hi Friends,
I have tried the AEM + Hybris integration(out of box), I have followed all the steps from docs.adobe.com. when I am trying to import catalog from hybris, I am getting the following error in AEM error logs,
22.02.2016 16:07:40.017 *INFO* [0:0:0:0:0:0:0:1 [1456137459912] POST /libs/commerce/products HTTP/1.1] com.adobe.granite.repository Service [3438, [java.lang.Runnable]] ServiceEvent REGISTERED
22.02.2016 16:07:40.044 *INFO* [0:0:0:0:0:0:0:1 [1456137459912] POST /libs/commerce/products HTTP/1.1] com.adobe.cq.commerce.hybris.importer.DefaultHybrisImporter A /etc/commerce/products/outdoors/outdoors/en
22.02.2016 16:07:40.056 *ERROR* [0:0:0:0:0:0:0:1 [1456137459912] POST /libs/commerce/products HTTP/1.1] com.adobe.cq.commerce.hybris.impl. Server did not respond with 2xx -> authentication failed.
22.02.2016 16:07:40.072 *ERROR* [0:0:0:0:0:0:0:1 [1456137459912] POST /libs/commerce/products HTTP/1.1] com.adobe.cq.commerce.hybris.impl.OAuthHandler Server responded with 400 -> authentication failed.
22.02.2016 16:07:40.075 *ERROR* [0:0:0:0:0:0:0:1 [1456137459912] POST /libs/commerce/products HTTP/1.1] com.adobe.cq.commerce.hybris.importer.DefaultHybrisImporter Importing catalog "outdoors" from Hybris failed:
java.lang.NullPointerException: null
at com.adobe.cq.commerce.hybris.impl.OAuthHandler.authenticateSession(OAuthHandler.java:208)
at com.adobe.cq.commerce.hybris.impl.OAuthHandler.executeAuthenticated(OAuthHandler.java:457)
at com.adobe.cq.commerce.hybris.common.DefaultHybrisConnection.execute(DefaultHybrisConnection.java:167)
at com.adobe.cq.commerce.hybris.importer.DefaultHybrisImporter.importProducts(DefaultHybrisImporter.java:403)
at com.adobe.cq.commerce.hybris.importer.DefaultHybrisImporter.importCatalog(DefaultHybrisImporter.java:197)
at com.adobe.cq.commerce.hybris.importer.DefaultHybrisImporter.doImport(DefaultHybrisImporter.java:236)
at com.adobe.cq.commerce.pim.common.AbstractImporter.run(AbstractImporter.java:167)
Please help..