hybris

java.lang.IllegalArgumentException: 'json' argument must be an instance of: [class java.lang.String, class [B

余生颓废 提交于 2021-02-11 13:43:19
问题 I am making a third party request in Hybris1811 framework using Spring Rest Template . But after getting response I am Getting below error: Could not properly initialize user sessionorg.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: 'json' argument must be an instance of: [class java.lang.String, class [B, class java.io.File, class java.net.URL, class java.io.InputStream, class java.io.Reader] , but gotten:

Is there additional configuration needed to make the breadcrumbs visible in a Spartacus site?

徘徊边缘 提交于 2021-01-29 17:22:01
问题 Is there additional configuration needed to make the breadcrumbs visible in a Spartacus-based site? There is a BreadcrumComponent instance inside the BottomHeaderSlot. If I load the page in the JSP-based site, a breadcrumb like "HOME / Warranty" is displayed for a /warranty page. But when I load the Spartacus-based site, it only shows "HOME". What am I missing? Do I need to edit the CMS controllers or map a breadcrumbBuilder to it? 回答1: I'm updating my answer as I misunderstood earlier, sorry

Product information not coming in Adaptive Search Hybris 1808

孤街浪徒 提交于 2021-01-28 06:19:54
问题 I have enabled Adaptive search for my project on Hybris 1808_7. I am getting solr facets and search profile information but still, product information is not getting rendered in the editor area. Can anyone let me know what I am missing? Please find attached screen. 回答1: Backoffice is build with widgets. I suggest you to read the documentation that I've provided and read about ZK Framework too because that is how widget UI is created (it's almost like a HTML but it's a little bit different.

How to write unit test for Hybris OCC controllers

浪子不回头ぞ 提交于 2020-12-15 03:43:23
问题 We are writing unit test for commerce webservices (OCC) controllers, for example CartsControllers, UsersController etc. Almost all the methods within these controllers return web service DTO i.e the ones that ends with *WsDTO. This object conversion is done by dataMapper which is part of spring web application context. The challenge we are facing is unit test or integration tests cannot access web application context and fetch the bean from there. 90% of commerce webservices (OCC) controller

How to write unit test for Hybris OCC controllers

大兔子大兔子 提交于 2020-12-15 03:43:00
问题 We are writing unit test for commerce webservices (OCC) controllers, for example CartsControllers, UsersController etc. Almost all the methods within these controllers return web service DTO i.e the ones that ends with *WsDTO. This object conversion is done by dataMapper which is part of spring web application context. The challenge we are facing is unit test or integration tests cannot access web application context and fetch the bean from there. 90% of commerce webservices (OCC) controller

Can I see spartacus storefront in smartedit preview mode of local environment?

我的梦境 提交于 2020-12-13 04:55:32
问题 I built a local development environment with CX 2005 & spartacus for study purpose. Spartacus storefront works like a charm. Url is http://localhost:4200 But I can't see spartacus storefront in local smartedit's preview mode. (Url is https://localhost:9002/smartedit. Smartdit > Spartacus Electronics Site > Online > Home) So I realized the spartacus storefront's url in iframe src is start with https not http. Could I change this iframe src to http or Can I launch my spartacus server to https

Can I see spartacus storefront in smartedit preview mode of local environment?

谁说我不能喝 提交于 2020-12-13 04:55:13
问题 I built a local development environment with CX 2005 & spartacus for study purpose. Spartacus storefront works like a charm. Url is http://localhost:4200 But I can't see spartacus storefront in local smartedit's preview mode. (Url is https://localhost:9002/smartedit. Smartdit > Spartacus Electronics Site > Online > Home) So I realized the spartacus storefront's url in iframe src is start with https not http. Could I change this iframe src to http or Can I launch my spartacus server to https