zone1511 commented on issue #763: Decouple JDBCURL parser logic from URLParser
URL: 
https://github.com/apache/incubator-skywalking/issues/763#issuecomment-359024172
 
 
   @wu-sheng I found if I use `AgentClassLoader.getDefault()` in the service 
loader, it will throws 
   ```java
   java.util.ServiceConfigurationError: 
org.apache.skywalking.apm.plugin.jdbc.connectionurl.parser.ConnectionURLParser: 
Provider org.apache.skywalking.apm.plugin.jdbc.h2.parser.H2URLParser not a 
subtype
   ```
   where `ConnectionURLParser` is the SPI interface and `H2URLParser` is the 
SPI implementation
   and debug shows the Concrete class and Service interface are not loaded from 
`AgentClassLoader.getDefault()` but loaded by another instance of 
AgentClassLoader
   Is this expected?  or I should use the default `load()` method instead 
specifying the class loader?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to