Problem Statement:
Error Description:
Caused by: java.lang.RuntimeException: Invalid contractId: 400158002 was specified.
at com.ibm.commerce.foundation.internal.server.services.search.util.StoreHelper.getUsableContractAsList(StoreHelper.java:1856)
at com.ibm.commerce.foundation.internal.server.services.search.util.StoreHelper.getUsableContractAsString(StoreHelper.java:1726)
at com.ibm.commerce.foundation.internal.server.services.search.util.EntitlementHelper.getContractFromRemoteOrLocal(EntitlementHelper.java:559)
at com.ibm.commerce.foundation.internal.server.services.search.util.EntitlementHelper.getFinalUsableContract(EntitlementHelper.java:529)
Root Cause:
Two reasons for the occurrence of the issue
(a) Search Server does not recognize multiple organizations for the user.
(b) Mismatch in session key between wc-server.xml and namespace binding variable configured in WAS console.
Resolving the issue:
(a) Search Server does not recognize multiple organizations:
User having affiliation (organization participant role) to multiple organization will get affected. Search sever could only recognize one organization. Find below URL for information to resolve it
http://www-01.ibm.com/support/docview.wss?uid=swg1JR53170
(b) Mismatch in session key between wc-server.xml and namespace binding variable
(i) Verify the namespace binding variable
com.ibm.commerce.foundation.server.services.commerce.integration.sessionkey value
configured in WAS console
matches with the value configured in wc-server.xml
<Instance BootstrapMulti="wcs.bootstrap_multi_en_US.xml,wcs.bootstrap_multi_fr_FR.xml,wcs.bootstrap_multi_de_DE.xml,wcs.bootstrap_multi_it_IT.xml,wcs.bootstrap_multi_es_ES.xml,wcs.bootstrap_multi_pt_BR.xml,wcs.bootstrap_multi_zh_CN.xml,wcs.bootstrap_multi_zh_TW.xml,wcs.bootstrap_multi_ko_KR.xml,wcs.bootstrap_multi_ja_JP.xml,wcs.bootstrap_multi_ru_RU.xml,wcs.bootstrap_multi_ro_RO.xml,wcs.bootstrap_multi_pl_PL.xml,wcs.bootstrap_multi_en_US.xml," ChannelOrgDN="ou=Channel Organization,o=Manufacturer Organization,o=Root Organization" ConfigFilePath="/opt/ibm/wcs70/instances/emdi" DefaultLang="-1" DefaultStoreAlias="wcsstore" DistributorProxyOrgDN="ou=distributor proxy organization,o=demand chain management organization,o=root organization" EnableDoubleClickHandler="true" FrameSupported="true" InstanceName="emdi " InstanceType="local" MerchantKey="GHjhjkkjki9gtybsgsyahsysjsu" PDIEncrypt="on" PVCHeader="false" ParentResellerOrgDN="o=reseller organization,o=root organization" SessionKey=" erqnGdwspRHNCwroW9KbvsHhhzzjKbNpLNBZxUOLDIejsBzfHwEU6V3Q ==" SiteAdminID="wcsadmin" SiteAdminPassword="TG/pdVG3OJV42j8Sgc8/Ww==" StoreWebModuleName="Stores" SupportedLanguages="-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -20, -21, -22, -23" UseGlobalInstance="false" WCSInstallDir="/opt/ibm/wcs70" WorkspacePath=""/>
(ii) If both values are different then we will see the exception specified above
No comments:
Post a Comment