java.lang.ClassNotFoundException: com.weibo.api.motan.config.handler.MockConfigHandler

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

,
Expert tip

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

java.lang.ClassNotFoundException: com.weibo.api.motan.config.handler.MockConfigHandler
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.weibo.api.motan.core.extension.ExtensionLoader.loadClass(ExtensionLoader.java:351)
at com.weibo.api.motan.core.extension.ExtensionLoader.loadExtensionClasses(ExtensionLoader.java:338)
at com.weibo.api.motan.core.extension.ExtensionLoader.loadExtensionClasses(ExtensionLoader.java:167)
at com.weibo.api.motan.core.extension.ExtensionLoader.checkInit(ExtensionLoader.java:78)
at com.weibo.api.motan.core.extension.ExtensionLoader.getExtension(ExtensionLoader.java:89)
at com.weibo.api.motan.config.RefererConfig.initRef(RefererConfig.java:114)
at com.weibo.api.motan.config.RefererConfig.getRef(RefererConfig.java:85)

Users with the same issue

Once, 6 days ago
144 times, 3 weeks ago
4 times, 1 month ago
Once, 3 months ago
Once, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.