Scala POJO聚合器异常
我得到以下错误: 线程“main”org.apache.camel.RuntimeCamelException中的异常: java.lang.IllegalArgumentException:索引0处的参数注释 方法:public java.util.List上不支持 com.musi.tec.ofp.model.instrument.ext.InstrumentContainer.add(com.musi.tec.ofp.model.instrument.ext.InstrumentContainer,com.musi.tec.ofp.model.instrument.ext.InstrumentContainer) 位于org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363) 尝试执行以下Scala聚合器方法时:Scala POJO聚合器异常,scala,apache-camel,Scala,Apache Camel,我得到以下错误: 线程“main”org.apache.camel.RuntimeCamelException中的异常: java.lang.IllegalArgumentException:索引0处的参数注释 方法:public java.util.List上不支持 com.musi.tec.ofp.model.instrument.ext.InstrumentContainer.add(com.musi.tec.ofp.model.instrument.ext.InstrumentConta
def add(existing: InstrumentContainer, next: InstrumentContainer):
JList[Instrument] = {....}
已通过Spring XML对路由进行了如下配置:
<bean id="instrumentContainer" class="com.musi.tec.ofp.model.instrument.ext.InstrumentContainer"/>
...
<route id="aggregateInstruments">
<from uri="direct:instruments"/>
<aggregate strategyRef="instrumentContainer" strategyMethodName="add" completionSize="2">
<correlationExpression>
<constant>true</constant>
</correlationExpression>
<to ...
</aggregate>
...
真的
您的示例代码未发布。您能编辑并添加它吗?问题已编辑为包含代码。