KarelHusa's avatar
KarelHusa
Champion Level 1
8 years ago
Status:
New Idea

Resolving "An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory]"

Every time I launch SoapUI (5.3.0, but the same was in 5.2.1) I get an error:

 

Thu Jan 26 18:42:52 CET 2017:INFO:Adding plugin from [C:\Users\Karel\.soapuios\plugins\soapui-swagger-plugin-2.2-dist.jar]
Thu Jan 26 18:42:53 CET 2017:ERROR:An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details

 

Can you please resolve this issue and advice a temporary workaround?

 

The plugins actually work, but every time I launch SoapUI (either GUI or programatically) I get an error and need to check whether it's this known error or some other issue with my projects.

 

The only advice I have seen to resolve this is to remove the .soapuios directory, which is actually a workaround, not a solution, as long as we want to use the plugins.

 

  • rupert_anderson's avatar
    rupert_anderson
    Valued Contributor

    Thanks for adding this as a feature request, it would be nice to clear it up, as it looks untidy and alarms people!

     

    A while ago I hesitated about committing a quick fix - basically I was going to:

    • Catch the exception
    • Instead display a warning level log message e.g. 'Plugin uses annotation [<Annotation Name .e.g AutoImportMethodFactory>], which is not supported in this version of SoapUI.'

    Does something like this sound acceptable? It would at least look less alarming. The reason I hesitated before was because I'd assumed that the mismatch in plugin technology was work in progress i.e. the SoapUI O/S plugin framework could be made compatible in a future release, but this does not seem to be the case, at least no so far.

     

    I think I wrote code to do this somewhere, so if that approach seems ok to people I could try committing it and raising a pull request.

     

    Thanks,

    Rupert

  • I am having this same issue and it's quite annoying.  I've copies the jars to the ext folder.  I've tried renaming the .soapui folder and the plugin folder name.  I think your solution would ease many peoples minds :)

  • seenickcode's avatar
    seenickcode
    New Contributor
    Hey guys, is this a solution to this? Seems like it's still a problem with v5.4.0: Running SoapUI LoadTestRunner for [REST Project 1] directory: /Applications/SoapUI-5.4.0.app/Contents/Resources/app/bin command: sh -c ./loadtestrunner.sh /Users/seenickcode/code/verkstedt/cms-renderer/soapui-loadtest.xml ================================ = = SOAPUI_HOME = /Applications/SoapUI-5.4.0.app/Contents/java/app = ================================ SoapUI 5.4.0 LoadTest Runner Configuring log4j from [/Applications/SoapUI-5.4.0.app/Contents/java/app/bin/soapui-log4j.xml] 11:46:05,270 INFO [DefaultSoapUICore] Creating new settings at [/Users/seenickcode/soapui-settings.xml] 11:46:07,574 INFO [PluginManager] Adding plugin from [/Users/seenickcode/.soapuios/plugins/ready-mqtt-plugin-dist.jar] 11:46:07,574 INFO [PluginManager] Adding plugin from [/Users/seenickcode/.soapuios/plugins/soapui-swagger-plugin-2.2-dist.jar] 11:46:09,776 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:113) at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80) at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141) at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104) at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54) at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141) at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43) at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.computeSequentially(PluginManager.java:420) at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:377) at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:382) at com.eviware.soapui.plugins.PluginManager$LoadPluginsTask.compute(PluginManager.java:365) at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) 11:46:09,868 ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory], see error log for details 11:46:09,879 INFO [PluginManager] Adding plugin from [/Users/seenickcode/.soapuios/plugins/ready-uxm-plugin-1.0.1-dist.jar] java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.eviware.soapui.plugins.LoaderBase.loadAutoFactories(LoaderBase.java:113) at com.eviware.soapui.plugins.LoaderBase.loadFactories(LoaderBase.java:80) at com.eviware.soapui.plugins.PluginLoader.loadPluginFactories(PluginLoader.java:141) at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:104) at com.eviware.soapui.plugins.PluginLoader.loadPlugin(PluginLoader.java:54) at com.eviware.soapui.plugins.PluginManager.doInstallPlugin(PluginManager.java:141) at com.eviware.soapui.plugins.PluginManager.access$600(PluginManager.java:43) at ....