ClassNotFoundException: com.intellij.database.dataSource.DataSourceStorage$Listener PluginClassLoader

Answered

Develop a idea plugin,Why is ClassNotFoundException

Class from DatabaseTools.

Debug model is correct,but production environment error.ClassNotFoundException

test  intellijVersion=2022.1.2

production  intellijVersion=2022.1.2

plugins.set(listOf("DatabaseTools"…

com.intellij.diagnostic.PluginException: Cannot load class com.github.houkunlin.ui.TemplateNotificationPanel$Listener (
  error: com/intellij/database/dataSource/DataSourceStorage$Listener,
  classLoader=PluginClassLoader(plugin=PluginDescriptor(name=Database Generator, id=com.github.houkunlin.database.generator, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IntelliJIdea2022.1\plugins\Database Generator, version=2.8.7, package=null, isBundled=false), packagePrefix=null, instanceId=343, state=active)
)
	at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:412)
	at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:240)
0
2 comments

Hi,

Did you add <depends> element in your plugin.xml, according to the documentation?
https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html

If not, please share all the build script code and related files (including gradle.proeprties) and plugin.xml.

0

com.intellij.modules.platform  BUG,remove it.very good;  thank you !!!!!

0

Please sign in to leave a comment.