【问题标题】:Why is the error ORA-01008 appearing?为什么会出现错误 ORA-01008?
【发布时间】:2013-06-11 18:09:57
【问题描述】:

我在 spring 集成中有一个查询,它被映射,但是当我运行我的查询时,我收到错误:ORA-01008 not all variables are bind.

这是我的spring集成代码:

<bean id="cAlarmaMapper" class="com.praxis.desvucem.alarms.jdbc.ContactoAlarmaRepositorioMapper" />


<jdbc:inbound-channel-adapter id="consultaClavesAlarma" channel="alarmChannel" data-source="dataSource"
                query="SELECT cAlarma.CON_CANAL
                       FROM MF_C_CONTACTO_ALARMA  cAlarma WHERE cAlarma.CON_ALARMA_CLAVE in(:payload.clave)"
                row-mapper="cAlarmaMapper" max-rows-per-poll="${database.alarms.registros.consulta}">
</jdbc:inbound-channel-adapter>

这是我的映射器代码:

public class ContactoAlarmaRepositorioMapper implements RowMapper<MfCContactoAlarma> {

  public MfCContactoAlarma mapRow(ResultSet rs, int rowNum) throws SQLException {
    MfCContactoAlarma contacto = new MfCContactoAlarma();
    contacto.setConCanal(rs.getString("CON_CANAL"));
    return contacto;
  }
}

提前致谢。

【问题讨论】:

    标签: java spring oracle11g spring-integration


    【解决方案1】:

    我的有效载荷似乎没有得到信息。所以在我将数据放入我的有效负载之后。它开始工作了。

    【讨论】:

      猜你喜欢
      • 2016-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多