Announcement Announcement Module
No announcement yet.
Problem with iBatis and Abator Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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: [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 ". ionTranslator.translate(SQLStateSQLExceptionTransl ceptionTranslator.translate(SQLErrorCodeSQLExcepti
    org.springframework.orm.ibatis.SqlMapClientTemplat e.execute(
    org.springframework.orm.ibatis.SqlMapClientTemplat e.queryForObject( lectByPrimaryKey(

    I don't know what to do:

    This is the implementation of the method generated by abator:
     public SrDiagnosticWithBLOBs selectByPrimaryKey(Long id) {
    	SrDiagnostic key = new SrDiagnostic();
    	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