pg-yang opened a new issue, #9594:
URL: https://github.com/apache/skywalking/issues/9594

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache SkyWalking Component
   
   OAP server (apache/skywalking)
   
   ### What happened
   
   The  default value  of  `oapServices` is  
`${SW_OAP_ADDRESS:-localhost:12800}`.
   
   
https://github.com/apache/skywalking/blob/12a18e6977a29f5e25f8db53a4053629ab6c0986/apm-webapp/src/main/resources/application.yml#L20
   `URI.create("localhost:12800").getAuthority()` would get  null  , and  cause 
NPE in finally  .
   
   
https://github.com/apache/skywalking/blob/12a18e6977a29f5e25f8db53a4053629ab6c0986/apm-webapp/src/main/java/org/apache/skywalking/oap/server/webapp/OapProxyService.java#L48
   
   
   
   ### What you expected to happen
   
   `URI.create("http://localhost:12800";).getAuthority()` is  right , the  
result  is  `localhost:12800`
   
   ### How to reproduce
   
   Start apm-webapp through   default config 
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to