MyBatis Errors

MyBatis Errors

Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'class name'. Cause: java.lang.ClassNotFoundException: Cannot find class: class name

Verify that the class name is correct.

Error updating database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for

Verify that the xml file is really loaded.

org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2

This is an error that occurs when the selectOne method returns two or more items instead of one.

Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for SQLID

This error occurs when a duplicate SQLID is set.

### Error updating database.  Cause: java.sql.DataTruncation: Data truncation

This is an error that occurs when an insert statement contains an odd value.

コメント

Discover more from 株式会社CONFRAGE ITソリューション事業部

Subscribe now to keep reading and get access to the full archive.

Continue reading

Copied title and URL