Repository navigation
Closed
Description
Environment
- Dubbo version: 2.6.3
- Operating System version: window 7
- Java version: 1.8
Steps to reproduce this issue
- run test case of abstractInterfaceConfigTest
Pls. provide [GitHub address] to reproduce this issue.
paased
What do you expected from the above steps?
Failed
What actually happens?
[11/10/18 04:17:11:011 CST] main INFO logger.LoggerFactory: using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter
[11/10/18 04:17:11:011 CST] main INFO config.AbstractConfig: [DUBBO] Use System Property dubbo.application.name to config dubbo, dubbo version: , current host: 192.168.81.1
junit.framework.ComparisonFailure:
Expected :100
Actual :null
<Click to see difference>
at junit.framework.Assert.assertEquals(Assert.java:100)
at junit.framework.Assert.assertEquals(Assert.java:107)
at junit.framework.TestCase.assertEquals(TestCase.java:269)
at com.alibaba.dubbo.config.AbstractInterfaceConfigTest.checkApplication1(AbstractInterfaceConfigTest.java:90)
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:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Metadata
Metadata
Assignees
Labels
No labels
Activity
carryxyh commentedon Oct 11, 2018
Passed in my mac.
[Dubbo-2637] fix the issue apache#2637 to make sure the properties lo…
Jeff-Lv commentedon Oct 11, 2018
:) As the code, it will be loaded from os filesystem if filename is started with '/'. It will be invalid in windows.
carryxyh commentedon Oct 11, 2018
Oh, I remember there is a pr to fix this issue.
Let me check.
carryxyh commentedon Oct 11, 2018
#2562
Pr is here. It didn't effect on the 2.6.x branch.
I will remind him to submit this pr to the 2.6.x branch. Thank you for your issue.
:)
chickenlj commentedon Oct 11, 2018
@carryxyh If it's not easy to reach him, I think you can do it directly.
Jeff-Lv commentedon Oct 11, 2018
@carryxyh cool.
carryxyh commentedon Oct 11, 2018
No problem. fix it soon.
chickenlj commentedon Oct 11, 2018
Jeff-Lv@7cd86a1
@carryxyh I think the change made by Jeff-Lv is more reasonable.
carryxyh commentedon Oct 11, 2018
@chickenlj
I agree with this modification. Compared to our judgment of the environment information in the code, I agree more that the user should set different dubbo.properties.file according to the current environment. All we have to do is determine if the input dubbo.properties.file exists.
@Jeff-Lv
We can reach a consensus on this issue, please submit a pr to optimize it.
Jeff-Lv commentedon Oct 12, 2018
carryxyh commentedon Oct 12, 2018
Hi, @Jeff-Lv
I have seen this pr.
I think there is no problem with modifying the part of this issue. But there are other parts of your pr, I am not very familiar, and may need someone to review.
Maybe he can help u : @chickenlj .
:)
remove serviceclassHolder and also fix the issue #2637 (#2607)
carryxyh commentedon Oct 31, 2018
Close via #2637
fix default setting (#4955)