Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo版本的demo,升级spring到5.0后出现inventoryService报空的问题 #21

Open
heshunwq opened this issue Jun 29, 2018 · 7 comments

Comments

@heshunwq
Copy link

为了适应现有项目,我讲dubbo升级到2.8.2,spring升级到5.0.7.RELEASE。然后大致在com.github.myth.core.service.handler.ActorMythTransactionHandler#handler中,执行demo到协调inventoryService的事务时,mythTransactionContext为null,导致消息没有发送出去。

@yu199195
Copy link
Member

是dubbo 的demo 吗? 把 升级的jar 包maven 发一下

@heshunwq
Copy link
Author

     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <jdk.version>1.8</jdk.version>
-        <spring.version>5.0.7.RELEASE</spring.version>
+        <spring.version>4.3.9.RELEASE</spring.version>
         <spring-cloud.version>Dalston.SR1</spring-cloud.version>
-         <dubbo.version>2.5.3</dubbo.version>
+        <dubbo.version>2.6.2</dubbo.version>
         <motan.version>1.0.0</motan.version>
@@ -83,7 +83,7 @@
         <kryo.version>4.0.0</kryo.version>
         <curator.version>2.9.1</curator.version>
         <nettty.version>4.1.12.Final</nettty.version>
-        <commons.httpclient.version>3.1</commons.httpclient.version>
+        <commons.httpclient.version>3.0.1</commons.httpclient.version>
         <httpclient.version>4.5.1</httpclient.version>
         <okhttp.version>3.7.0</okhttp.version>
         <gson.verions>2.6.2</gson.verions>
@@ -397,6 +397,16 @@
                 <artifactId>spring-expression</artifactId>
                 <version>${spring.version}</version>
             </dependency>

+            <dependency>
+                <groupId>org.apache.curator</groupId>
+                <artifactId>curator-client</artifactId>
+                <version>2.12.0</version>
+            </dependency>
+           <dependency>
+               <groupId>org.apache.curator</groupId>
+              <artifactId>curator-framework</artifactId>
+               <version>2.12.0</version>
+          </dependency>
 
             <dependency>
                 <groupId>org.springframework.cloud</groupId>

@heshunwq
Copy link
Author

@yu199195 改的是 根路径下的那个pom.xml

@heshunwq
Copy link
Author

@yu199195 是dubbo的demo

@yu199195
Copy link
Member

yu199195 commented Jul 2, 2018

let me try

@yu199195
Copy link
Member

yu199195 commented Jul 2, 2018

升级dubbo 的版本是没有任何问题的,mythTransactionContext 是通过dubbo 的rpc 传参数获得。
你升级spring 的版本,spring boot 的版本也要升级,可能会出现不匹配的情况,
demo 的boot 版本为1.5.9

@heshunwq
Copy link
Author

heshunwq commented Jul 2, 2018

是的,我这里是把spring-boot的版本升级到2.0.2.RELEASE了的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants