on ‎2018 Mar 19 7:09 AM
Hi Everyone,
While replicating product from S4HANA system to Hybris using Datahub, we are able to replicate the first product in Backoffice. But in SQL database, record in Publication Action table is hanging to IN-PROGRESS status.
We are getting below mentioned error in Hybris Console and Data Hub Console:
Error in Hybris Console: ERROR [TaskExecutor-master-190-Task [8796256895926]] [ClientRetryListener] Faile d to communicate to http://localhost:8080/datahub-webapp/v1/core-publications/30 11 java.lang.IllegalStateException: Failed to communicate to http://localhost:8080/ datahub-webapp/v1/core-publications/3011 at com.hybris.datahub.core.rest.client.ImpexDataImportClient.returnImpor tResultWithRetry(ImpexDataImportClient.java:107) ~[datahubadapterserver.jar:?]
Error on Tomcat Console: 2018-03-18 07:43:38,352 [ERROR] [c.h.d.r.r.m.BaseExceptionMapper] An exception intercepted org.springframework.security.access.AccessDeniedException: User is not authorized for this operation at com.hybris.datahub.security.auth.ContextUserInfo.checkRole(ContextUserInfo.java:55) ~[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4] at com.hybris.datahub.security.auth.AccessAuthorizationAspect.authorizeAccess(AccessAuthorizationAspect.java:27) ~[datahub-service-6.6
Note: Can anyone help.
Thanks, Vijay
Request clarification before answering.
Hi Vijay , Try to run "ant clean all updatesystem" on Hybris. Probably user is not reflected in cache.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Which user are you using for communication from Commerce to DataHub? Please have a look at this page: Application Security and paragraph "Default Spring Security Configuration". You should set these properties in Commerce:
datahubadapter.datahuboutbound.user=
datahubadapter.datahuboutbound.password=
These 2 properties should match these 2 from DataHub: datahub.security.basic.admin.user=
datahub.security.basic.admin.password=
More info can be found on this page: Configuring the Data Hub Adapter, paragraph "Configuring Outbound Communication". Please make sure that http is enabled in DataHub because by default it uses HTTPS (see HTTPS and SSL) and from the log I can see that you are trying to access it by HTTP (Failed to communicate to http://localhost:8080/datahub-webapp/v1/core-publications/3011).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marcin,
Thanks for your response.
We are using these properties in local.properties file with ADMIN User.
datahubadapter.datahuboutbound.user= admin datahubadapter.datahuboutbound.password= nimda datahub.security.basic.admin.user=admin datahub.security.basic.admin.password=nimda
Secondly, we have updated the below property in local.properties : datahub.security.https.enabled=false
I am attaching my local.properties from Data Hub & Hybris config folder for your reference.
Thanks,
[1]: /storage/temp/10584-localproperties.zip
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.