You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/06/09 16:42:46 UTC

[GitHub] [shardingsphere] SilentUnicorn commented on issue #5953: sharding-jdbc 4.1.0 version,point Cannot be queried as an entity class field name

SilentUnicorn commented on issue #5953:
URL: https://github.com/apache/shardingsphere/issues/5953#issuecomment-641091360


   I encountered the same problem in version 4.1.1
   exception stack:
   org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
   ### Error querying database.  Cause: java.lang.NullPointerException
   ### The error may exist in com/xiaoju/uemc/optimusprime/core/dao/MultiLangTextMapper.java (best guess)
   ### The error may involve defaultParameterMap
   ### The error occurred while setting parameters
   ### SQL: SELECT  id,key_id AS keyId,multi_lang_key AS multiLangKey,lang AS lang,text AS text,create_user AS createUser,update_user AS updateUser,country AS country,utc_offset AS utcOffset,local_create_time AS localCreateTime,utc_create_time AS utcCreateTime,local_update_time AS localUpdateTime,utc_update_time AS utcUpdateTime  FROM o_tool_multi_lang_text        WHERE (key_id IN (1,2,3))
   ### Cause: java.lang.NullPointerException
   	at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)
   	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
   	at com.sun.proxy.$Proxy123.selectList(Unknown Source)
   	at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230)
   	at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139)
   	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76)
   	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59)
   	at com.sun.proxy.$Proxy144.selectList(Unknown Source)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org