cancel
Showing results for 
Search instead for 
Did you mean: 

error in data hub after placing the order in hybris

Former Member
0 Kudos

Hi Team, i am working on sap erp integration.and i am using asom scenario.i did the required configuration.after placing the order in hybris i am getting error in logs related to idoc.please find the attached logs for your reference.please suggest me on this what needs to be done.link text

former_member224482
Active Contributor
0 Kudos

isMatchingKey => NullPointerException

One of the key ( <exportCode>keyfield=true</exportCode> ) value provided in a segment is null.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member387866
Active Contributor
0 Kudos

Hi Staish,

From your WARN and ERROR in the log:

 DATE [WARN] [c.h.d.s.i.DefaultIDocTargetSystemLookupService] Using fallBackIDocTargetSystem
 com.hybris.datahub.sapidocoutboundadapter.IDocTargetSystemNotFoundException: No SAPHTTPDestination found with key 'null' in pool=DataHubPoolEntity{#9300,name=SAPCONFIGURATION_POOL}
 ...
 DATE [ERROR] [c.h.d.s.i.AbstractTransactionManagingActionHandler] Previous event failure PerformPublicationEvent{actionId=XXXXX, systemUrl='http://IPA.DRE.SSS:8080/datahub-webapp/v1', targetPublicationIds=[XXXX}
 java.lang.NullPointerException: null

It would seem that your local.properties file is lacking some things. Do you have values for the following properties in your local.properties file?

 targetsystem.hybriscore.url=http://...:9001/datahubadapter
 targetsystem.hybriscore.username=...
 targetsystem.hybriscore.password=...
 targetsystem.saperp.url=http://...
 targetsystem.saperp.username=...
 targetsystem.saperp.password=...
 targetsystem.saperp.receivername=...

 sapidocoutboundadapter.usedynamicidocnumberoffset=...
 sapidocoutboundadapter.receivername=...
 sapidocoutboundadapter.sendername=...
 sapidocoutboundadapter.senderport=...

 sapcoreconfiguration.pool=SAPCONFIGURATION_POOL
 sapcoreconfiguration.autocompose.pools=SAPCONFIGURATION_POOL,...
 target.system.publication.configuration=SAPCONFIGURATION_POOL.HybrisCore

I hope that this points you in the right direction,
Luke

Former Member
0 Kudos

Hi Luke, thanks for your reply.some of the entries in above are missing from my side.i added those things but i am not sure for following entry sapidocoutboundadapter.receivername,targetsystem.saperp.receivername , what i need give the value(receiver name).can you guide me on this.after placing the above entries also i am getting the same exceptions what i shared the logs earlier.and i attached the local.properties file please check and guide me if i am missing any thinglink text

former_member387866
Active Contributor
0 Kudos

Hi Satish,

The sapidocoutboundadapter.receivername is the logical system name of SAP ERP, for example: ABCDE12.

The targetsystem.saperp.receivername is Receiver partner name of SAP ERP, it can be the same, or different that the sapidocoutboundadapter.receivername.

I hope this can help you, Luke