dubbo-lcn-demo
dubbo-lcn-demo copied to clipboard
LCN分布式事务框架v4.0 dubbo-lcn-demo
INFO relational.LCNStartConnection: rollback label [05/12/18 04:23:44:044 CST] DubboServerHandler-192.168.17.113:20009-thread-2 DEBUG datasource.DataSourceTransactionManager: Could not reset JDBC Connection after transaction java.sql.SQLException: connection holder is null at com.alibaba.druid.pool.DruidPooledConnection.checkStateInternal(DruidPooledConnection.java:1157) at com.alibaba.druid.pool.DruidPooledConnection.checkState(DruidPooledConnection.java:1148) at com.alibaba.druid.pool.DruidPooledConnection.setAutoCommit(DruidPooledConnection.java:701) at com.codingapi.tx.datasource.relational.LCNStartConnection.setAutoCommit(LCNStartConnection.java:199)...
org.apache.http.impl.execchain.RetryExec 112 Retrying request to {}->http://127.0.0.1:8899
Could not publish to the server. java.lang.IndexOutOfBoundsException
wiki中截图是在dubbo的jar包里面的,那改如何修改呢?
问题:jdbc版本的demo代码配置有问题; 问题描述: 1.applicationContext_db_mysql.xml中的lcnDataSourceProxy对象中并没有对应的dataSource成员变量,强制赋值,容器启动会提示(org.springframework.beans.NotWritablePropertyException: Invalid property 'dataSource' of bean class [com.codingapi.tx.datasource.relational.LCNTransactionDataSource]: Bean property 'dataSource' is not writable or has an invalid setter method. Does the parameter type of the setter match...
服务启动都正常,就是访问 http://127.0.0.1:8080/save 时候报/0的500,然后数据库还插入了mybatis_demo2一条数据。。。请问会是什么原因? 另外,我看这个demo模块里所有的service方法都没加TxTransaction注解,是不需要加吗(加了也没成功)