Nextflow keeps throwing a 'Plugin system was already setup' exception for all versions after 22.06.0 #4019
Unanswered
UmmulkiramR
asked this question in
Q&A
Replies: 3 comments 1 reply
-
Hi Team, is there an update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, is there any updates on this? This is blocking our projects, please take a look when you have chance. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We’re seeing the same issue here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
I recently upgraded the version of the nextflow.io library to version 22.10.7 in our spring boot app and since then my code has started breaking. My app calls the
run()
method of theK8SDriverLauncher
class to create workflow pods.Now, after the upgrade each time I run my workflows it runs perfectly fine for the 1st time but for all the subsequent runs it gives me this -
IllegalArgumentException("Plugin system was already setup")
Expected behavior and actual behavior
Upon further investigation what I found is that as a part of the 22.06.0-edge release the following 2 changes were introduced in the library's code.
loadConfig()
method there is an additional call made to thePlugins.init()
setup()
method is changed toinit()
and an if statement is added that throws theIllegalArgumentException
What is happening is that the
init()
method of the PluginsFacade class looks for the presence of the plugins manager on this line ->if( manager )
every time. For the 1st run it does not find a manager so it creates one. For the 2nd, 3rd, 4th... runs it finds the manager it created during the 1st run and that's when it throws the exception.Here is the code snippet
Why have the IllegalArgumentException thrown when it does find the plugins manager? What is wrong with one being there already?
Program output
Here's the stack trace of the exception I see.
Environment
Beta Was this translation helpful? Give feedback.
All reactions