错误消息:

de.hybris.platform.servicelayer.dto.converter.ConversionException: Max field set size exceeded. Reason of that can be : too generic configuration, lack of properly defined BASIC field set level for data class, reccurency in data structure

这个错误消息和 handling ‘fields’ parameter 有关。

文档:

https://help.hybris.com/6.7.0/hcd/8c404c5886691014a48c88f4a49f9bf3.html

  • Section ‘Fields configuration’, ‘Field Set Builder’ : https://help.hybris.com/6.7.0/hcd/e571a0e6f7524d4ab62e29cc2b387aeb.html

Mapping mechanism in occ is based on Orika mapper.
There is additional filter which check if currently mapped attribute is on the list of attributes which should be mapped. That list is created based on class definition and fieldSetLevelMappings by fieldSetBuilder (defined in dto-level-mappings-v2-spring.xml)

occ 中的映射机制基于 Orika 映射器。
还有一个额外的过滤器,用于检查当前映射的属性是否在应该映射的属性列表中。 该列表是根据 fieldSetBuilder(在 dto-level-mappings-v2-spring.xml 中定义)的类定义和 fieldSetLevelMappings 创建的。

<alias alias="fieldSetBuilder" name="defaultFieldSetBuilder"/><bean id="defaultFieldSetBuilder"class="de.hybris.platform.webservicescommons.mapping.impl.DefaultFieldSetBuilder"><property name="defaultRecurrencyLevel" value="4"/><property name="defaultMaxFieldSetSize" value="50000"/><property name="fieldSetLevelHelper" ref="fieldSetLevelHelper"/></bean>

There are two parameters which can influence how the field set builder works :

  • defaultRecurrencyLevel
  • defaultMaxFieldSetSize - If the limit is exceeded, an exception is thrown - this is exception you see.
    It looks like for request you try to do - response dto is too complex
    Verify if fieldsSetMapping for that dto class was defined properly.

If you don’t specify any fields attribute in request - value is taken from DEFAULT fieldSetLevelMapping.
Try to specify fields attribute for your call and verify if you still get that exception.

有两个参数可以影响字段集构建器的工作方式:

  • defaultRecurrencyLevel
  • defaultMaxFieldSetSize - 如果超出限制,则会引发异常 - 这是您看到的异常。
    看起来您尝试执行的请求 - 响应 dto 太复杂了
    验证是否正确定义了该 dto 类的 fieldsSetMapping。

如果您未在请求中指定任何字段属性 - 值取自 DEFAULT fieldSetLevelMapping。
尝试为您的呼叫指定 fields 属性并验证您是否仍然遇到该异常。

de.hybris.platform.servicelayer.dto.converter.ConversionException相关推荐

  1. 从产品展示页面谈谈Hybris系列之二: DTO, Converter和Populator

    文章作者:张健(Zhang Jonathan) 上一篇文章 从产品展示页面谈谈Hybris的特有概念和设计结构 我们讲解了Hybris一些特有的概念以及大体架构,并且介绍了Facade层里是如何定义D ...

  2. java hybris_java – Hybris Entity未找到异常

    我们的hybris实现中存在一个相当重要的问题,缺少数据库.我们一直在收到"未找到实体"错误.它在上周一开始相当随机.导致错误的记录在数据库中,我们可以使用flexi-search ...

  3. Hybris Enterprise Commerce Platform 服务层的设计与实现

    Hybris Enterprise Commerce Platform这个系列之前已经由我的同事,SAP成都研究院Hybris开发团队的同事**张健(Zhang Jonathan)**发布过两篇文章了 ...

  4. SAP Commerce(SAP Hybris)学习资料汇总

    版本号:v1.06 2020年11月24日 所有的架构图在这个单独的帖子里. 导航目录 SAP官方帮助文档 configuration 如何运行 Filters 容器化支持 Installer-Rec ...

  5. 使用 cx recipe 安装 Hybris Commerce Cloud 之后,遇到 indexer workder failed 错误

    这个错误导致我在 Accelerator Storefront 上无法进行产品搜索: 我确认 Solr server 已经成功启动了,监听在端口 8983 上: 重新通过 recipe 启动试试: 遇 ...

  6. 自定义hybris生成订单的ID格式

    在项目local.properties里做出如下定义: keygen.order.code.digits=8 keygen.order.code.start=00000000 keygen.order ...

  7. Hybris 属性配置参考

    为什么80%的码农都做不了架构师?>>>    SAP Hybris Commerce依赖 2 个基本配置文件:project.properties和local.properties ...

  8. hybris FlexibleSearch

    基础知识 该FlexibleSearch是内置采用hybris Commerce Suite的一个强大的检索语言.它能采用hybris商务套件使用基于SQL语法搜索类型和物品. 一个FlexibleS ...

  9. SAP Spartacus CORS 设置

    Cross-Origin Resource Sharing (CORS) CORS 是 Web 上的一种标准机制,它使来自 Web 应用程序的跨域请求能够到达不同域上的服务器. 只要响应中没有所需的 ...

最新文章

  1. Spring Webflux: Kotlin DSL [片断]
  2. windows 下Android的开发准备
  3. jQuery Css方法
  4. 在 .NET 中创建对象的几种方式的对比
  5. 标准评分卡分数计算原理_评分卡的形式、刻度及应用场景
  6. MySQL高可用架构对比
  7. 【华为云技术分享】文字识别服务(OCR)基于对抗样本的模型可信安全威胁分析初析
  8. 能够生成动态图片的R模块:rCharts
  9. Atitit 数据库技术体系 艾提拉总结 目录 1. 2. 初始概念 5 2 1.1. 2.1. 数据库的类型,网状,层次,树形数据库,kv数据库。Oodb 多媒体数据库 5 2 1.2. 2.2.
  10. [论文写作笔记] C11论文查重原理及降重
  11. 人人译视界 for Mac智能翻译软件
  12. 一路向前大数据推荐算法团队
  13. 如何连接mac与无线打印机?
  14. Quiz-Style Question Generation for News Stories
  15. day030进程的两种创建方法,验证进程的空间隔离,join等待子进程
  16. ffmpeg学习 pcm文件转wav文件
  17. 关闭腾讯网迷你版(登录qq后的广告弹窗)
  18. iamp是什么意思计算机网络,pop3和imap什么意思
  19. 阿里云dns 接口调用/代码
  20. Apache Cordova development lands on Visual Studio Code

热门文章

  1. Linux系统开机启动流程介绍
  2. Chipmunk僵尸物理对象的出现和解决(七)
  3. 【转】测试架构师团队的管理
  4. retain/copy/assign区别
  5. SVN更新项目A C D M G U R I的含义
  6. 'demangle.h' file not found
  7. Mybatis的下载并搭建核心架构
  8. 上海五校赛 丢史蒂芬妮
  9. [转]notepad++ java编码,输出中文字符时,编译出错
  10. linux 查找进程 删除进程 命令