on 07-21-2016 11:53 AM - last edited on 02-04-2024 6:04 AM by postmig_api_4
Hi,
I'm using Datahub 6 and Hybris 6 versions. My tomcat port is 7080. After composition when I try to publish to Hybris, I'm facing the following error.
INFO [hybrisHTTP30] [: , , , , ] [ItemImportController] Received request PUT: /import/pools/SAPCUSTOMER_INBOUND_POOL/publications/2 INFO [hybrisHTTP30] [: , , , , ] [ItemImportController] resultCallbackUrl: http://localhost:7080/datahub-webapp/v1/core-publications/2 INFO [TaskExecutor-master-215-Task [8798321542070]] [: , , , , ] [ImpexDataImportClient] Requesting data from resource http://localhost:7080/datahub-webapp/v1/core-publications/2/TargetSalesDistrict.txt?targetName=Hybri... INFO [TaskExecutor-master-215-Task [8798321542070]] [: , , , , ] [ImpexDataImportClient] Requesting data from resource http://localhost:7080/datahub-webapp/v1/core-publications/2/TargetAddress.txt?targetName=HybrisCore&... INFO [TaskExecutor-master-215-Task [8798321542070]] [: , , , , ] [ImpexDataImportClient] Requesting data from resource http://localhost:7080/datahub-webapp/v1/core-publications/2/TargetSoldTo.txt?targetName=HybrisCore&l... INFO [TaskExecutor-master-215-Task [8798321542070]] [: , , , , ] [ImpexDataImportClient] Requesting data from resource http://localhost:7080/datahub-webapp/v1/core-publications/2/TargetShipTo.txt?targetName=HybrisCore&l... INFO [TaskExecutor-master-215-Task [8798321542070]] [: , , , , ] [ImpExImportJob] Starting multi-threaded ImpEx cronjob "ImpEx-Import" (5 threads) INFO [TaskExecutor-master-215-Task [8798321542070]] [: , , , , ] [ImpExImportJob] Starting multi-threaded ImpEx cronjob "ImpEx-Import" (5 threads) INFO [TaskExecutor-master-215-Task [8798321542070]] [: , , , , ] [ImpexDataImportClient] Returning SUCCESS to http://localhost:7080/datahub-webapp/v1/core-publications/2 INFO [hybrisHTTP24] [: , , , , ] [ItemImportController] Received request PUT: /import/pools/SAPCUSTOMER_INBOUND_POOL/publications/3 INFO [hybrisHTTP24] [: , , , , ] [ItemImportController] resultCallbackUrl: http://localhost:8080/datahub-webapp/v1/core-publications/3 INFO [TaskExecutor-master-215-Task [8798321542070]] [: , , , , ] [ImpexDataImportClient] Response status from http://localhost:7080/datahub-webapp/v1/core-publications/2: 200 INFO [TaskExecutor-master-227-Task [8798321574838]] [: , , , , ] [ImpexDataImportClient] Requesting data from resource http://localhost:8080/datahub-webapp/v1/core-publications/3/TargetMMMContactsRelation.txt?targetName... INFO [TaskExecutor-master-227-Task [8798321574838]] [: , , , , ] [ImpexDataImportClient] Requesting data from resource http://localhost:8080/datahub-webapp/v1/core-publications/3/TargetMMMContactsRelation.txt?targetName... INFO [TaskExecutor-master-227-Task [8798321574838]] [: , , , , ] [ImpexDataImportClient] Returning ERROR(Error writing media file (mediaId: 8803008380958, file:C:\appdata\data02_hybris50\media\sys_master\impex\hfa\h93\8803008380958.bin, dir:C:\appdata\data02_hybris50\media\sys_master\impex\hfa\h93)) to http://localhost:8080/datahub-webapp/v1/core-publications/3 INFO [TaskExecutor-master-227-Task [8798321574838]] [: , , , , ] [ImpexDataImportClient] Response status from http://localhost:8080/datahub-webapp/v1/core-publications/3: 401 ERROR [TaskExecutor-master-227-Task [8798321574838]] [: , , , , ] [ImpexDataImportClient] Failed to communicate to http://localhost:8080/datahub-webapp/v1/core-publications/3 java.lang.IllegalStateException: Unauthorized response from http://localhost:8080/datahub-webapp/v1/core-publications/3 at com.hybris.datahub.core.rest.client.ImpexDataImportClient.returnImportResult(ImpexDataImportClient.java:79) at com.mmm.bcom.mmmbcomcommon.datahub.core.facades.impl.MMMItemImportFacadeImpl.callbackToDataHub(MMMItemImportFacadeImpl.java:93) at com.mmm.bcom.mmmbcomcommon.datahub.core.facades.impl.MMMItemImportFacadeImpl.importItems(MMMItemImportFacadeImpl.java:41) at com.hybris.datahub.core.tasks.ItemImportTaskRunner.run(ItemImportTaskRunner.java:48) at com.hybris.datahub.core.tasks.DefaultDataHubTaskExecutionStrategy.run(DefaultDataHubTaskExecutionStrategy.java:33) at de.hybris.platform.task.impl.DefaultTaskService.processTask(DefaultTaskService.java:1505) at de.hybris.platform.task.impl.DefaultTaskService.process(DefaultTaskService.java:1409) at de.hybris.platform.task.impl.DefaultTaskService.processInTenant(DefaultTaskService.java:1378) at de.hybris.platform.task.impl.DefaultTaskService$5.run(DefaultTaskService.java:1257) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ERROR [TaskExecutor-master-227-Task [8798321574838]] [: , , , , ] [ItemImportTaskRunner] ItemImportTaskRunner.handleError() de.hybris.platform.servicelayer.exceptions.SystemException: java.lang.IllegalStateException: Failed to communicate to http://localhost:8080/datahub-webapp/v1/core-publications/3 at com.hybris.datahub.core.tasks.DefaultDataHubTaskExecutionStrategy.run(DefaultDataHubTaskExecutionStrategy.java:41) at de.hybris.platform.task.impl.DefaultTaskService.processTask(DefaultTaskService.java:1505) at de.hybris.platform.task.impl.DefaultTaskService.process(DefaultTaskService.java:1409) at de.hybris.platform.task.impl.DefaultTaskService.processInTenant(DefaultTaskService.java:1378) at de.hybris.platform.task.impl.DefaultTaskService$5.run(DefaultTaskService.java:1257) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalStateException: Failed to communicate to http://localhost:8080/datahub-webapp/v1/core-publications/3 at com.hybris.datahub.core.rest.client.ImpexDataImportClient.returnImportResult(ImpexDataImportClient.java:85) at com.mmm.bcom.mmmbcomcommon.datahub.core.facades.impl.MMMItemImportFacadeImpl.callbackToDataHub(MMMItemImportFacadeImpl.java:93) at com.mmm.bcom.mmmbcomcommon.datahub.core.facades.impl.MMMItemImportFacadeImpl.importItems(MMMItemImportFacadeImpl.java:41) at com.hybris.datahub.core.tasks.ItemImportTaskRunner.run(ItemImportTaskRunner.java:48) at com.hybris.datahub.core.tasks.DefaultDataHubTaskExecutionStrategy.run(DefaultDataHubTaskExecutionStrategy.java:33) ... 7 more Caused by: java.lang.IllegalStateException: Unauthorized response from http://localhost:8080/datahub-webapp/v1/core-publications/3 at com.hybris.datahub.core.rest.client.ImpexDataImportClient.returnImportResult(ImpexDataImportClient.java:79) ... 11 more
It is returning SUCCESS for the one with publication id 2 but later it is again getting called with a different port i.e., the default one 8080 which doesn't exist in my case and throwing the error.
Anyone experienced the same?
Can you please help me on this issue.
Thanks, Subhash.
in your hybris config local.properties you have to have the entry as
datahubadapter.datahuboutbound.url=http://localhost:7080/datahub-webapp/v1
And in the tomcat->web-inf/classes/local.properties datahub.server.url=http://localhost:7080/datahub-webapp/v1 entry should be there..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dependent on where the publication was triggered from the url can be determined from there. as a fallback strategy the value provided to datahub.server.url property is used. This defaults to localhost:8080
You can fix your problem by setting datahub.server.url=http://localhost:7080/datahub-webapp/v1 in your local.properties
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.