Announcement Announcement Module
Collapse
No announcement yet.
Problem with iBatis and Abator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with iBatis and Abator

    Hi, I use Abator to generate the code for using iBatis. Almost Everything works fine. but when I try this:

    SrDiagnosticWithBLOBs srDiagnosticWithBlobs =(SrDiagnosticWithBLOBs) srDiagnosticDao.selectByPrimaryKey(19L); //The ID 19 Is an Existing Id on the database

    I get this error:

    Caused by: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0969N En el archivo de mensajes de esta estación de trabajo no hay ningún texto mensaje que se corresponda co el error SQL "-20249". Se ha devuelto el error desde el módulo "SQLRI397" con los símbolos originales "NULLID .SYSSTAT ".

    org.springframework.jdbc.support.SQLStateSQLExcept ionTranslator.translate(SQLStateSQLExceptionTransl ator.java:97)
    org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.translate(SQLErrorCodeSQLExcepti onTranslator.java:258)
    org.springframework.orm.ibatis.SqlMapClientTemplat e.execute(SqlMapClientTemplate.java:171)
    org.springframework.orm.ibatis.SqlMapClientTemplat e.queryForObject(SqlMapClientTemplate.java:208)
    com.lightsoft.aontoyota.dao.SrDiagnosticDAOImpl.se lectByPrimaryKey(SrDiagnosticDAOImpl.java:82)

    I don't know what to do:

    This is the implementation of the method generated by abator:
    Code:
     public SrDiagnosticWithBLOBs selectByPrimaryKey(Long id) {
    	SrDiagnostic key = new SrDiagnostic();
    	key.setId(id);
    	SrDiagnosticWithBLOBs record = (SrDiagnosticWithBLOBs) getSqlMapClientTemplate().queryForObject("TOYOTA_SR_DIAGNOSTIC.abatorgenerated_selectByPrimaryKey", key);
    	return record;
        }
    Anyone has some idea?
    Last edited by Gus_VB; Sep 19th, 2008, 06:41 PM. Reason: I didnt put the code tags
Working...
X