简体   繁体   English

“无法使用带有 arguments 的构造函数 NO_CONSTRUCTOR 实例化 java.util.List ”,

[英]“Failed to instantiate java.util.List using constructor NO_CONSTRUCTOR with arguments ”,

"Failed to instantiate java.util.List using constructor NO_CONSTRUCTOR with arguments ", “使用带有 arguments 的构造函数 NO_CONSTRUCTOR 实例化 java.util.List 失败”,

while fetching data from mongo.. what could be possible reason for this从 mongo 获取数据时..这可能是什么原因

I was having the same issue, It was the aggregation when unwind happened,Dont create the List of Object in Data object,我遇到了同样的问题,这是展开时发生的聚合,不要在数据 object 中创建 Object 列表,

My previous class我以前的 class

Account{
        String _id;
          List<Transaction> trasactionList
       }

Corrected class更正了 class

Account{
          String _id;
          Transaction trasactionList
    }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用带参数的构造函数NO_CONSTRUCTOR实例化java.util.List] - Failed to instantiate java.util.List using constructor NO_CONSTRUCTOR with arguments ] 无法使用带参数的构造函数 NO_CONSTRUCTOR 实例化 java.util.Set - Failed to instantiate java.util.Set using constructor NO_CONSTRUCTOR with arguments Spring data elasticsearch:throws MappingInstantiationException: Failed to instantiate java.util.Set using constructor NO_CONSTRUCTOR with arguments - Spring data elasticsearch:throws MappingInstantiationException: Failed to instantiate java.util.Set using constructor NO_CONSTRUCTOR with arguments 使用带参数的构造函数NO_CONSTRUCTOR无法实例化org.springframework.security.authentication.UsernamePasswordAuthenticationToken - Failed to instantiate org.springframework.security.authentication.UsernamePasswordAuthenticationToken using constructor NO_CONSTRUCTOR with arguments 如何修复不可变类中的“无法使用带参数的构造函数 NO_CONSTRUCTOR 实例化‘className’” - How to fix " Failed to instantiate 'className' using constructor NO_CONSTRUCTOR with arguments" in immutable class Spring-data-mongo 无法使用构造函数实例化 java.util.List - Spring-data-mongo unable to instantiate java.util.List using Constructor 无法解析构造函数&#39;ArrayList(java.util.List <T> )`在Java中 - Cannot resolve constructor 'ArrayList(java.util.List<T>)` in Java 无法实例化[java.util.List]:指定的类是GET请求中的接口 - Failed to instantiate [java.util.List]: Specified class is an interface in GET request spring boot - 如何在HTTP控制器处理程序中避免“无法实例化[java.util.List]:指定的类是一个接口”? - spring boot - how to avoid “Failed to instantiate [java.util.List]: Specified class is an interface” in HTTP controller handler? 找不到AttributedString(java.util.List <java.lang.String> ) - no suitable constructor found for AttributedString(java.util.List<java.lang.String>)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM