[ 
https://issues.apache.org/jira/browse/SCB-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16463463#comment-16463463
 ] 

mabin commented on SCB-495:
---------------------------

java-chassis commit lable is 26cbe80ecbc70ad48d1d062a3b4407fc2fd8f01b

Env info,
1.8U16G640GB
2.Ubuntu 16.04.4 LTS(Linux mabin 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 
12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux)
3.JDK8
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
4.Maven 3.5.0
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 
2017-04-04T03:39:06+08:00)
Maven home: /opt/apache-maven-3.5.0
Java version: 1.8.0_172, vendor: Oracle Corporation
Java home: /opt/jdk1.8.0_172/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-104-generic", arch: "amd64", family: "unix"

Error info,
1. Execute the command 'mvn clean install', the stack trace of the error is as 
bellow,
2018-05-03 15:46:48,510 [main           ] ERROR ServiceRegistryConfig          
- cse.service.registry.address invalid :  https://127.0.0.1
java.net.URISyntaxException: Illegal character in scheme name at index 0:  
https://127.0.0.1
        at java.net.URI$Parser.fail(URI.java:2848)
        at java.net.URI$Parser.checkChars(URI.java:3021)
        at java.net.URI$Parser.checkChar(URI.java:3031)
        at java.net.URI$Parser.parse(URI.java:3047)
        at java.net.URI.<init>(URI.java:588)
        at 
org.apache.servicecomb.serviceregistry.config.ServiceRegistryConfig.lambda$getIpPort$0(ServiceRegistryConfig.java:133)
        at java.util.Arrays$ArrayList.forEach(Arrays.java:3880)
        at 
org.apache.servicecomb.serviceregistry.config.ServiceRegistryConfig.getIpPort(ServiceRegistryConfig.java:131)
        at 
org.apache.servicecomb.serviceregistry.config.ServiceRegistryConfig.isSsl(ServiceRegistryConfig.java:121)
        at 
org.apache.servicecomb.serviceregistry.config.TestServiceRegistryConfig.testServiceRegistryConfig(TestServiceRegistryConfig.java:53)
        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 
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 
mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.executeTestMethod(JUnit4TestRunnerDecorator.java:162)
        at 
mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:71)
        at 
mockit.integration.junit4.internal.MockFrameworkMethod.invokeExplosively(MockFrameworkMethod.java:37)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java)
        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.runners.ParentRunner.run(ParentRunner.java:363)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
        at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
        at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.441 sec - in 
org.apache.servicecomb.serviceregistry.TestRegistry
Running org.apache.servicecomb.serviceregistry.config.TestPropertiesLoader
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec <<< 
FAILURE! - in 
org.apache.servicecomb.serviceregistry.config.TestServiceRegistryConfig
testServiceRegistryConfig(org.apache.servicecomb.serviceregistry.config.TestServiceRegistryConfig)
  Time elapsed: 0.006 sec  <<< FAILURE!
java.lang.AssertionError: expected:<true> but was:<false>
        at 
org.apache.servicecomb.serviceregistry.config.TestServiceRegistryConfig.testServiceRegistryConfig(TestServiceRegistryConfig.java:53)


2. Single run all UT tests of service-registry package by Intellij, error is as 
bellow,
2018-05-04 14:30:46,161 [main           ] ERROR ServiceRegistryConfig          
- cse.service.registry.address invalid :  https://127.0.0.1
java.net.URISyntaxException: Illegal character in scheme name at index 0:  
https://127.0.0.1
        at java.net.URI$Parser.fail(URI.java:2848)
        at java.net.URI$Parser.checkChars(URI.java:3021)
        at java.net.URI$Parser.checkChar(URI.java:3031)
        at java.net.URI$Parser.parse(URI.java:3047)
        at java.net.URI.<init>(URI.java:588)
        at 
org.apache.servicecomb.serviceregistry.config.ServiceRegistryConfig.lambda$getIpPort$0(ServiceRegistryConfig.java:133)
        at java.util.Arrays$ArrayList.forEach(Arrays.java:3880)
        at 
org.apache.servicecomb.serviceregistry.config.ServiceRegistryConfig.getIpPort(ServiceRegistryConfig.java:131)
        at 
org.apache.servicecomb.serviceregistry.config.ServiceRegistryConfig.isSsl(ServiceRegistryConfig.java:121)
        at 
org.apache.servicecomb.serviceregistry.config.TestServiceRegistryConfig.testServiceRegistryConfig(TestServiceRegistryConfig.java:53)
        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 
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 
mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.executeTestMethod(JUnit4TestRunnerDecorator.java:162)
        at 
mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:71)
        at 
mockit.integration.junit4.internal.MockFrameworkMethod.invokeExplosively(MockFrameworkMethod.java:37)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java)
        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.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:27)
        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.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)

java.lang.AssertionError: 
Expected :true
Actual   :false
 <Click to see difference>


        at 
org.apache.servicecomb.serviceregistry.config.TestServiceRegistryConfig.testServiceRegistryConfig(TestServiceRegistryConfig.java:53)


> Compile java-chassis 1.0.0-m2-SNAPSHOT failed
> ---------------------------------------------
>
>                 Key: SCB-495
>                 URL: https://issues.apache.org/jira/browse/SCB-495
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>            Reporter: mabin
>            Priority: Major
>         Attachments: errorlog.txt
>
>
> [^errorlog.txt]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to