求助!为什么单击我的grouptable会出现以下的报错

ClassCastException: class java.lang.String cannot be cast to class com.haulmont.cuba.core.entity.Entity (java.lang.String is in module java.base of loader ‘bootstrap’; com.haulmont.cuba.core.entity.Entity is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @726e5805)
grouptable报错

单击了哪里?方便发一下错误堆栈吗

微信图片_20211013155349

后面这个错跟第一个错不一样。后面这个错是做组件的代理方法时有误,在界面中没有找到 ordersTable.allocated:
image

抱歉 刚才弄叉了错误堆栈1 错误堆栈2

看堆栈最上面两行,是在调用 WebPickerField.setValue() 时出错:String 不能转换成 Entity。可以查查界面哪里用了 PickerField,以及背后关联的数据是怎么样的,是不是关联了字符串。

1 个赞

好滴感谢!