<p dir="auto">hi,<br>
I am using Sharding-JDBC with a version 5.1.2, and I am wondering if it supports to update actualDataNodes runtime in springboot, if does, how to do it?</p>
<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>
<p dir="auto">3.0.0.M2</p>
<h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Separation of reading and writing</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Separation of reading and writing</p>
<h3 dir="auto">Error</h3>
<p dir="auto">com.google.common.eventbus.EventBus$LoggingHandler.handleException Exception thrown by subscriber method listen(io.shardingsphere.core.transaction.event.TransactionEvent) on subscriber io.shardingsphere.core.transaction.listener.TransactionListener@602c052d when dispatching event: io.shardingsphere.core.transaction.event.WeakXaTransactionEvent@4c54b2ea<br>
java.lang.NullPointerException<br>
at io.shardingsphere.core.transaction.listener.TransactionListener.listen(TransactionListener.java:64)<br>
at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45005)<br>
at java.lang.reflect.Method.invoke(Method.java:498)<br>
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:95)<br>
at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:80)<br>
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456)<br>
at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:76)<br>
at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:119)<br>
at com.google.common.eventbus.EventBus.post(EventBus.java:215)<br>
at io.shardingsphere.core.jdbc.adapter.AbstractConnectionAdapter.commit(AbstractConnectionAdapter.java:96)<br>
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doCommit(DataSourceTransactionManager.java:272)<br>
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)<br>
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)<br>
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:485)<br>
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)<br>
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)<br>
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)</p>