肩膀上的阳光
Thinking in Java
![](images/star2.gif) ![](images/star1.gif) ![](images/star1.gif) ![](images/star1.gif)
发贴: 19
积分: 0
|
于 2006-03-17 09:45
![user profile](images_zh_CN/icons/icon_profile.gif) ![send a private message to user](images_zh_CN/icons/icon_pm.gif) ![search all posts by](images_zh_CN/icons/icon_find.gif) ![select and copy to clipboard.
ie only, sorry for netscape users:-)](images_zh_CN/icons/icon_copy.gif)
这里是我对一张表拿它的主键时抛出来的异常.不知怎么解决?之前还是运进的好好地.
java.sql.SQLException: Not in a transaction at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:273) at oracle.jdbc.driver.OracleConnection.needLine(OracleConnection.java:1621) at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:412) at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:432) at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:182) at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:165) at oracle.jdbc.driver.OracleConnection.privatePrepareStatement(OracleConnection.java:608) at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:489) at oracle.jdbc.OracleDatabaseMetaData.getPrimaryKeys(OracleDatabaseMetaData.java:2908) at com.whbhk.apps.dim.db.DB.primaryKeyColumnName(DB.java:567) at com.whbhk.apps.dim.db.DB.dbSelectTable(DB.java:491) at com.whbhk.apps.dim.db.DB.dbSelectRecord(DB.java:89) at com.whbhk.apps.dim.db.DTY.getDtyRecord(DTY.java:1329) at com.whbhk.apps.dim.bus.EditDocType.queryOneDocInfos(EditDocType.java:192) at com.whbhk.apps.dim.req.BRTI_EDIT.processONE_DOC_TYPE_INFOS(BRTI_EDIT.java:108)
|