2011-03-10 4 views
0

내 응용 프로그램에서 parametermap을 SQL 문으로 초기화하는 데 예외가 있습니다. 오류 :Ibatis 매개 변수 초기화 문제

Caused By: com.ibatis.common.jdbc.exception.NestedSQLException: 
--- The error occurred in /com/***/cusman/cusbilman/postpaid/main/product/data/ibatis/sqlMap/THSSqlMap.xml. 
--- The error occurred while applying a parameter map. 
--- Check the invoicing.invoice.ths.paymentInfoMap. 
--- Check the statement (query failed). 
--- Cause: java.sql.SQLException: ORA-00904: : invalid identifier 
     at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201) 
     at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) 
     at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567) 
     at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541) 
     at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) 
     at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:298) 
     at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:209) 
     at org.springframework.orm.ibatis.SqlMapClientTemplate.executeWithListResult(SqlMapClientTemplate.java:249) 
     at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:296) 

정의는 완전히 지속되는 서로 (자바 측과 내 말은 XML 쪽).

아이디어가 있으십니까?

답변

0

발견했습니다. 문제는 오라클이 오류에 대한 스택 추적 유형 정의가 없다는 것입니다. 내가 선택에서 함수를 사용했지만 내 DB를 사용자가 그것을 실행하는 권한이 없었어요, 그래서 바보 오라클처럼 그것을 실행하려고, 함수 이름은 열 이름입니다. 그래서 그것과 같은 열 이름을 찾을 수 없습니다. 그래서 그것은 실제 문제를 숨 깁니다 ...