<p dir="auto">For English only, other languages we will close it directly.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of Sharding-Sphere do you using?</h3>
<h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3>
<h3 dir="auto">Expected behavior</h3>
<h3 dir="auto">Actual behavior</h3>
<h3 dir="auto">Reason analyze</h3>
<h3 dir="auto">Steps to reproduce the behavior</h3>
<h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3>
<p dir="auto">`八月 09, 2018 3:31:06 下午 com.google.common.eventbus.EventBus dispatch 严重: Could not dispatch event: io.shardingsphere.core.transaction.event.WeakXaTransactionEvent@41a399e3 to handler [wrapper public void io.shardingsphere.core.transaction.listener.TransactionListener.listen(io.shardingsphere.core.transaction.event.TransactionEvent) throws java.sql.SQLException] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at io.shardingsphere.core.jdbc.adapter.AbstractConnectionAdapter.setAutoCommit(AbstractConnectionAdapter.java:91) at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:225) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at com.alibaba.druid.support.spring.stat.DruidStatInterceptor.invoke(DruidStatInterceptor.java:72) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) at com.jiurun.iot.util.aop.MethodTimeAdvice.invoke(MethodTimeAdvice.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)</p>
<p dir="auto">at com.jiurun.iot.service.impl.DeviceLogServiceImpl$$EnhancerBySpringCGLIB$$53769fcd.updateCreateIfNotExistsTable()<br>
at com.jiurun.iot.data.runnable.util.pool.CreateTable.run(CreateTable.java:21)<br>
at java.lang.Thread.run(Thread.java:748)<br>
Caused by: java.lang.NullPointerException<br>
at io.shardingsphere.core.transaction.listener.TransactionListener.listen(TransactionListener.java:61)<br>
... 33 more`</p>
<p dir="auto">Environment：</p>
<p dir="auto">mybatis-plus-boot-starter：3.3.1<br>
druid: 1.1.22<br>
mysql-connector-java: 8.0.19<br>
spring-boot-starter-parent: 2.1.7.RELEASE</p>
<p dir="auto">Downgrading to 3.1.0 does not have this problem！！！</p>
<hr>
<p dir="auto">Throws below exception when executed a query sql statement by Mybatis Plus.</p>
<p dir="auto">2020-04-15 19:50:00.489[http-nio-8080-exec-2]|INFO|ShardingSphere-SQL - Logic SQL: SELECT  id,mobile,ip,ture_ip,create_time  FROM t_user_ip<br>
2020-04-15 19:50:00.489[http-nio-8080-exec-2]|INFO|ShardingSphere-SQL - SQLStatement: SelectSQLStatementContext(super=CommonSQLStatementContext(sqlStatement=org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement@74312c28, tablesContext=TablesContext(tables=[Table(name=t_risk_user_ip, alias=Optional.absent())], schema=Optional.absent())), projectionsContext=ProjectionsContext(startIndex=8, stopIndex=39, distinctRow=false, projections=[ColumnProjection(owner=null, name=id, alias=Optional.absent()), ColumnProjection(owner=null, name=mobile, alias=Optional.absent()), ColumnProjection(owner=null, name=ip, alias=Optional.absent()), ColumnProjection(owner=null, name=ture_ip, alias=Optional.absent()), ColumnProjection(owner=null, name=create_time, alias=Optional.absent())], columnLabels=[id, mobile, ip, ture_ip, create_time]), groupByContext=org.apache.shardingsphere.sql.parser.relation.segment.select.groupby.GroupByContext@15bb7ccd, orderByContext=org.apache.shardingsphere.sql.parser.relation.segment.select.orderby.OrderByContext@717614c0, paginationContext=org.apache.shardingsphere.sql.parser.relation.segment.select.pagination.PaginationContext@35ebcabb, containsSubquery=false)<br>
2020-04-15 19:50:00.489[http-nio-8080-exec-2]|INFO|ShardingSphere-SQL - Actual SQL: ds_master_0_slave_0 ::: SELECT  id,mobile,ip,ture_ip,create_time  FROM t_risk_user_ip<br>
2020-04-15 19:50:03.454[http-nio-8080-exec-2]|ERROR|com.zzc.cloud.rest.ExceptionAdvice - 服务器内部错误<br>
org.springframework.dao.InvalidDataAccessApiUsageException: Error attempting to get column 'create_time' from result set.  Cause: java.sql.SQLFeatureNotSupportedException: getObject with type<br>
; getObject with type; nested exception is java.sql.SQLFeatureNotSupportedException: getObject with type<br>
at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:96)<br>
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)<br>
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)<br>
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:88)<br>
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)<br>
at com.sun.proxy.$Proxy140.selectList(Unknown Source)<br>
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223)<br>
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177)<br>
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78)<br>
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96)<br>
at com.sun.proxy.$Proxy141.selectList(Unknown Source)<br>
at com.baomidou.mybatisplus.extension.service.IService.list(IService.java:275)<br>
at com.baomidou.mybatisplus.extension.service.IService.list(IService.java:284)<br>
at com.baomidou.mybatisplus.extension.service.IService$$FastClassBySpringCGLIB$$f8525d18.invoke()<br>
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)<br>
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)<br>
at com.jyblife.risk.commons.db.mybatis.service.impl.RiskUserIpServiceImpl$$EnhancerBySpringCGLIB$$95470790.list()<br>
at com.jyblife.risk.analysis.controller.UserController.find1(UserController.java:32)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)<br>
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)<br>
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)<br>
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)<br>
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)<br>
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)<br>
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1039)<br>
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)<br>
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)<br>
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)<br>
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.zalando.logbook.servlet.NormalStrategy.doFilter(NormalStrategy.java:38)<br>
at org.zalando.logbook.servlet.LogbookFilter.doFilter(LogbookFilter.java:39)<br>
at org.zalando.logbook.servlet.HttpFilter.doFilter(HttpFilter.java:31)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114)<br>
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)<br>
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:118)<br>
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)<br>
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)<br>
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)<br>
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)<br>
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)<br>
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)<br>
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)<br>
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)<br>
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)<br>
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)<br>
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)<br>
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)<br>
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)<br>
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br>
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br>
at java.lang.Thread.run(Thread.java:745)<br>
Caused by: java.sql.SQLFeatureNotSupportedException: getObject with type<br>
at org.apache.shardingsphere.shardingjdbc.jdbc.unsupported.AbstractUnsupportedOperationResultSet.getObject(AbstractUnsupportedOperationResultSet.java:223)<br>
at org.apache.ibatis.type.LocalDateTimeTypeHandler.getNullableResult(LocalDateTimeTypeHandler.java:38)<br>
at org.apache.ibatis.type.LocalDateTimeTypeHandler.getNullableResult(LocalDateTimeTypeHandler.java:28)<br>
at org.apache.ibatis.type.BaseTypeHandler.getResult(BaseTypeHandler.java:81)<br>
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.applyAutomaticMappings(DefaultResultSetHandler.java:521)<br>
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.getRowValue(DefaultResultSetHandler.java:402)<br>
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleRowValuesForSimpleResultMap(DefaultResultSetHandler.java:354)<br>
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleRowValues(DefaultResultSetHandler.java:328)<br>
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleResultSet(DefaultResultSetHandler.java:301)<br>
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleResultSets(DefaultResultSetHandler.java:194)<br>
at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:65)<br>
at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79)<br>
at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:67)<br>
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)<br>
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)<br>
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:136)<br>
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)<br>
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)<br>
... 81 common frames omitted</p>
<hr>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1559608/79335027-ed642d80-7f53-11ea-980d-84dcc250a36e.png"><img src="https://user-images.githubusercontent.com/1559608/79335027-ed642d80-7f53-11ea-980d-84dcc250a36e.png" alt="1" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1559608/79335104-0a98fc00-7f54-11ea-8232-1e2222c50b46.png"><img src="https://user-images.githubusercontent.com/1559608/79335104-0a98fc00-7f54-11ea-8232-1e2222c50b46.png" alt="2" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1559608/79335110-0cfb5600-7f54-11ea-86d0-172d7952cdd3.png"><img src="https://user-images.githubusercontent.com/1559608/79335110-0cfb5600-7f54-11ea-86d0-172d7952cdd3.png" alt="3" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1559608/79335114-0d93ec80-7f54-11ea-8f65-dd0e40c185a0.png"><img src="https://user-images.githubusercontent.com/1559608/79335114-0d93ec80-7f54-11ea-8f65-dd0e40c185a0.png" alt="4" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1559608/79335120-0ff64680-7f54-11ea-9e3f-e37ff68374fe.png"><img src="https://user-images.githubusercontent.com/1559608/79335120-0ff64680-7f54-11ea-9e3f-e37ff68374fe.png" alt="5" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1559608/79335122-108edd00-7f54-11ea-896a-0c7e4c864f99.png"><img src="https://user-images.githubusercontent.com/1559608/79335122-108edd00-7f54-11ea-896a-0c7e4c864f99.png" alt="6" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1559608/79335126-1258a080-7f54-11ea-836e-e96e6f13ffc1.png"><img src="https://user-images.githubusercontent.com/1559608/79335126-1258a080-7f54-11ea-836e-e96e6f13ffc1.png" alt="7" style="max-width: 100%;"></a></p>