cancel
Showing results for 
Search instead for 
Did you mean: 

Error while adding Hybris Marketing component on CMS manager

Former Member
0 Kudos

Hybris version 6.4.

Installed the Hybris Marketing recipe.

Get following error while adding Hybris Marketing Recommendation Component in the CMS cockpit.

/my300451.s4hana.ondemand.com/?saml2=disabled WARN [Thread-86] [DefaultPropertyInjector] Component injection failed. : Could not get property descriptor 'CMSSAPRecommendationComponent.recotype' java.lang.IllegalStateException: Invalid setCookies=[sap-usercontext=sap-client=100; path=/, sap-login-XSRF_E9P=20170704104423-0imObEIglwMLSo-w62o88A%3d%3d; path=/; secure; HttpOnly] or xcsrfToken=null at com.hybris.ymkt.common.odata.ODataService.refreshToken(ODataService.java:611) ~[classes/:?] at com.hybris.ymkt.common.odata.ODataService.getTokenCache(ODataService.java:542) ~[classes/:?] at com.hybris.ymkt.common.odata.ODataService.executeWithRetry(ODataService.java:444) ~[classes/:?] at com.hybris.ymkt.sapprodreco.services.RecommendationScenarioService.getRecommendationScenarios(RecommendationScenarioService.java:74) ~[classes/:?] at com.hybris.ymkt.sapprodreco.cockpit.editor.DefaultSAPRecommendationTypeUIEditor.createViewComponent(DefaultSAPRecommendationTypeUIEditor.java:95) ~[classes/:?] at de.hybris.platform.cockpit.model.editor.EditorHelper.renderSingleEditor(EditorHelper.java:1343) ~[cockpitserver.jar:?] at de.hybris.platform.cockpit.model.editor.EditorHelper.createEditor(EditorHelper.java:469) ~[cockpitserver.jar:?] at de.hybris.platform.cockpit.model.editor.EditorHelper.createEditor(EditorHelper.java:402) ~[cockpitserver.jar:?] at de.hybris.platform.cmscockpit.injectors.impl.DefaultPropertyInjector.injectProperty(DefaultPropertyInjector.java:169) [cmscockpitserver.jar:?] at de.hybris.platform.cmscockpit.components.contentbrowser.CMSContentEditorInjector.injectProperty(CMSContentEditorInjector.java:415) [cmscockpitserver.jar:?] at de.hybris.platform.cmscockpit.components.contentbrowser.CMSContentEditorInjector.injectComponent(CMSContentEditorInjector.java:252) [cmscockpitserver.jar:?] at sun.reflect.GeneratedMethodAccessor703.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] at bsh.Reflect.invokeMethod(Reflect.java:134) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.Reflect.invokeObjectMethod(Reflect.java:80) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:176) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:120) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.Interpreter.eval(Interpreter.java:645) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.Interpreter.eval(Interpreter.java:739) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:119) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:310) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:797) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:176) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446) [zk-3.6.4-hybris-patched.jar:3.6.4] INFO [Thread-86] [HttpURLConnectionService] HEAD(200) 187ms 0Bout 0Bin - https://my300451.s4hana.ondemand.com/?saml2=disabled WARN [Thread-86] [DefaultPropertyInjector] Component injection failed. : Could not get property descriptor 'CMSSAPRecommendationComponent.leadingitemdstype'

Any idea here?

Former Member
0 Kudos

,

Please provide you input here!

former_member224482
Active Contributor
0 Kudos

For unknown reason, during the login http request, the yMKT cloud is returning the session cookie but not the x-csrf-token.

Former Member
0 Kudos

Response is {null=[HTTP/1.1 200 OK], content-length=[29530], set-cookie=[sap-usercontext=sap-client=100; path=/, sap-login-XSRF_E9P=20170704111232-CnLBlrcFHs1jqyJRxTZyow%3d%3d; path=/; secure; HttpOnly], expires=[0], x-xss-protection=[1; mode=block], x-content-type-options=[nosniff], x-frame-options=[sameorigin], sap-perf-fesrec=[67147.000000], content-type=[text/html; charset=utf-8]}

From this.executeWithBasicAuth(request) method written in refreshToken(final TokenCache token) method of ODataServerice.java.

@Robin Venza,

Is this an issue from yMKT cloud and their team is aware of this?

Accepted Solutions (1)

Accepted Solutions (1)

former_member224482
Active Contributor
0 Kudos

This seems to be the answer from the FAQ.

FUNCTIONAL QUESTIONS

What is the functional scope of this trial?
In this trial you can explore predefined scenarios in Marketing. The trial only offers a selected and limited functional scope and comes with pre-defined demo data.

Can I upload my own data to the trial system?
No. The trial system only offers a limited functional scope including pre-defined demo data.

The predefined scenarios in Marketing does not include the hybris commerce integration scenarios.

Answers (3)

Answers (3)

sreearumilli
Participant
0 Kudos

,are able to figure it out the username and password of trail hybris marketing cloud. I am also having the same issue not able to connect hybris accelerator with trail hybris marketing cloud.

former_member224482
Active Contributor
0 Kudos

Please read the accepted answer.

Former Member
0 Kudos

,

Any other idea that can be looked upon?

Thanks, Vikram

former_member224482
Active Contributor
0 Kudos

In the 6.4 release the root URL must contain the full path of the recommendation service.

Here is the sample value provided :

 sapprodreco.odata.url.root=https://localhost:44300/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV

Looking at the URL in the log, the part /sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV seems to be missing.
I would assume that only the enabled web services end point can provide tokens.

Former Member
0 Kudos

Changed sapprodreco.odata.url.root=https://my300451.s4hana.ondemand.com/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV Now getting following error.

INFO [Thread-68] [HttpURLConnectionService] HEAD(401) 188ms 0Bout 0Bin - https://my300451.s4hana.ondemand.com/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/?saml2=disabled ERROR [Thread-68] [DefaultSAPRecommendationTypeUIEditor] Error filling Recommendation Types dropdown, verify backoffice configuration java.io.IOException: HTTP error (401) : at com.hybris.ymkt.common.odata.ODataService.checkStatus(ODataService.java:157) ~[classes/:

former_member224482
Active Contributor
0 Kudos

Does the technical user configured on ECP has authorizations to use the yMKT service : PROD_RECO_RUNTIME_SRV ?

You can try manually using the same URL : https://my300451.s4hana.ondemand.com/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/?saml2=disabled
You should get a popup to try the user.

Former Member
0 Kudos

How to get accesss to PROD_RECO_RUNTIME_SRV ?

I have created a Hybris Marketing trails account valid for 30 days!

Doesn't it implicit have access to to service PROD_RECO_RUNTIME_SRV?

Or I have do something different to get the access?

former_member224482
Active Contributor
0 Kudos

From what I understood, the Fiori user does not have access to all services. Other types of users must be created.

I could not find a step by step instruction, but I was referred to this section of the documentation : https://help.sap.com/viewer/f544846954f24b9183eddadcc41bdc3b/1705%20500/en-US/2e84a10c430645a88bdbfa...

 SAP_COM_0019
Former Member
0 Kudos

,

I have followed the procedure described on below link https://help.hybris.com/6.4.0/hcd/8c5caf1f86691014ac57e6257f3eef1a.html

To do hybris marketing integration set up on 6.4 but not sure how to give the additional permission to the hybris marketing cloud trail user!

Isn't there any link I can follow to do the same.

nkenji
Explorer
0 Kudos

We are also facing same problem. We can't figure out which username and password to use with Hybris Marketing component. Any help is appreciated.

Former Member
0 Kudos

Yes they might not have proper documentation around the same. At least not easy to locate.