hybris CMS Cockpit:预览不起作用

hybris CMS Cockpit: preview doesn't work

我刚刚设置了一个新的干净的 hybris 实例,使用 ant modulegen 和 receipe b2c_acc 创建了一个 b2c 加速器店面 - 当然,我在这些步骤之后初始化了我的系统。一切正常,但 CMS Cockpit 预览。

每次我尝试在 CMS Cockpit 中打开页面预览时,我都会收到 HTTP 500 错误,这是由 DefaultUrlEncoderService class 的此方法中的 NullPointerException 引起的:

@Override
public Collection<String> getEncodingAttributesForSite()
{

    return getCmsSiteService().getCurrentSite().getUrlEncodingAttributes();
}

原因是 getCurrentSite() 没有 return 任何网站,尽管我尝试打开的页面(例如主页)已分配给 "apparel-de" 网站。

有人知道问题出在哪里吗? 我错过了什么吗?

将位置协议从 http 更改为 https:

https://localhost:9002/cmscockpit/index.zul