Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the solution to the ibatis resultMap error report?

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what is the solution to the error report of ibatis resultMap. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Ibatis resultMap error message:

SQLErrorCodesFactory-Database product name cached for DataSource [org.apache.commons.dbcp.BasicDataSource@19c5048]: name is' MySQL'

SQLErrorCodesFactory-SQL error codes for 'MySQL' found

SQLErrorCodeSQLExceptionTranslator-Unable to translate SQLException with Error code '0mm, will now try the fallback translator

DataSourceUtils-Returning JDBC Connection to DataSource

Exception in thread "main" org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0]

-The error occurred in net/jbbs/dao/ibatis/map/user.xml.

-The error occurred while applying a result map.

-Check the user.userResult.

-The error happened while setting a property on the result object.

-Cause: net.sf.cglib.beans.BulkBeanException; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:

-The error occurred in net/jbbs/dao/ibatis/map/user.xml.

-The error occurred while applying a result map.

-Check the user.userResult.

-The error happened while setting a property on the result object.

-Cause: net.sf.cglib.beans.BulkBeanException

Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:

-The error occurred in net/jbbs/dao/ibatis/map/user.xml.

-The error occurred while applying a result map.

-Check the user.userResult.

-The error happened while setting a property on the result object.

-Cause: net.sf.cglib.beans.BulkBeanException

At com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback (GeneralStatement.java:188)

At com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForObject (GeneralStatement.java:104)

At com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject (SqlMapExecutorDelegate.java:566)

At com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject (SqlMapExecutorDelegate.java:541)

At com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject (SqlMapSessionImpl.java:106)

At org.springframework.orm.ibatis.SqlMapClientTemplate$1.doInSqlMapClient (SqlMapClientTemplate.java:243)

At org.springframework.orm.ibatis.SqlMapClientTemplate.execute (SqlMapClientTemplate.java:193)

At org.springframework.orm.ibatis.SqlMapClientTemplate.queryForObject (SqlMapClientTemplate.java:241)

At net.jbbs.dao.ibatis.UserDAOImpl.findByEmail (UserDAOImpl.java:54)

At net.jbbs.test.UserTest.findByEmail (UserTest.java:42)

At net.jbbs.test.UserTest.main (UserTest.java:34)

Caused by: net.sf.cglib.beans.BulkBeanException

At net.jbbs.domain.User$$BulkBeanByCGLIB$$88b6b34d.setPropertyValues ()

At com.ibatis.sqlmap.engine.accessplan.EnhancedPropertyAccessPlan.setProperties (EnhancedPropertyAccessPlan.java:33)

At com.ibatis.sqlmap.engine.exchange.JavaBeanDataExchange.setData (JavaBeanDataExchange.java:112)

At com.ibatis.sqlmap.engine.mapping.result.BasicResultMap.setResultObjectValues (BasicResultMap.java:373)

At com.ibatis.sqlmap.engine.mapping.statement.RowHandlerCallback.handleResultObject (RowHandlerCallback.java:64)

At com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults (SqlExecutor.java:382)

At com.ibatis.sqlmap.engine.execution.SqlExecutor.handleMultipleResults (SqlExecutor.java:301)

At com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery (SqlExecutor.java:190)

At com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.sqlExecuteQuery (GeneralStatement.java:205)

At com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback (GeneralStatement.java:173)

... 10 more

This ibatis resultMap error message indicates that there is a problem in resultMap. It is said that the error occurred when setting a property, but did not specify what kind of error it was. Because I don't know much about ibatis, I don't know what to do for a while. I can only write an article in ibatis resultMap and comment out some of it. Haha, the program actually runs normally. It seems that I am about to find the error, then continue to rule out the others, and finally let me find the wrong line:

What is the solution to the ibatis resultMap error report is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report