日期:2014-05-18  浏览次数:20707 次

ibates的初级问题
com.ibatis.common.jdbc.exception.NestedSQLException:      
---   The   error   occurred   in   examples/sqlmap/maps/Account.xml.    
---   The   error   occurred   while   executing   mapped   statement.    
---   Check   the   insertAccount.    
---   Check   the   statement   or   the   result   map.    
---   Cause:   java.sql.SQLException:   Io   异常:   Connection   refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
Caused   by:   java.sql.SQLException:   Io   异常:   Connection   refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
at   com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:91)
at   com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:446)
at   com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:82)
at   com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:60)
at   examples.domain.text.text.main(text.java:27)
Caused   by:   java.sql.SQLException:   Io   异常:   Connection   refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at   oracle.jdbc.driver.OracleConnection. <init> (OracleConnection.java:404)
at   oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at   oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at   java.sql.DriverManager.getConnection(Unknown   Source)
at   java.sql.DriverManager.getConnection(Unknown   Source)
at   com.ibatis.common.jdbc.SimpleDataSource.popConnection(SimpleDataSource.java:580)
at   com.ibatis.common.jdbc.SimpleDataSource.getConnection(SimpleDataSource.java:222)
at   com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.init(JdbcTransaction.java:48)
at   com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:89)
at   com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:78)
...   4   more

Caused   by:  
java.sql.SQLException:   Io   异常:   Connection   refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at   oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at   oracle.jdbc.driver.OracleConnection. <init> (OracleConnection.java:404)
at   oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at   oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at   java.sql.DriverManager.getConnection(Unknown   Source)
at   java.sql.DriverManager.getConnection(Unknown   Source)
at   com.ibatis.common.jdbc.SimpleDataSource.popConn