diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java index 380dbbf1905..aa32b8f0fbb 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java @@ -643,7 +643,7 @@ private void loadDirectory(Map> extensionClasses, String dir, S } } } catch (Throwable t) { - logger.error("Exception occured when loading extension class (interface: " + + logger.error("Exception occurred when loading extension class (interface: " + type + ", description file: " + fileName + ").", t); } } @@ -680,14 +680,14 @@ private void loadResource(Map> extensionClasses, ClassLoader cl reader.close(); } } catch (Throwable t) { - logger.error("Exception occured when loading extension class (interface: " + + logger.error("Exception occurred when loading extension class (interface: " + type + ", class file: " + resourceURL + ") in " + resourceURL, t); } } private void loadClass(Map> extensionClasses, java.net.URL resourceURL, Class clazz, String name) throws NoSuchMethodException { if (!type.isAssignableFrom(clazz)) { - throw new IllegalStateException("Error occured when loading extension class (interface: " + + throw new IllegalStateException("Error occurred when loading extension class (interface: " + type + ", class line: " + clazz.getName() + "), class " + clazz.getName() + " is not subtype of interface."); }