org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate for 'class net.grinder.scriptengine.jython.JythonScriptEngineService'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate for 'class net.grinder.scriptengine.jython.JythonScriptEngineService'

DianFu
What's wrong with this exception?

2017-01-19 09:38:00,364 ERROR worker-bootstrap: Error running worker process
org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate for 'class net.grinder.scriptengine.jython.JythonScriptEngineService'
        at org.picocontainer.DefaultPicoContainer.addAdapterInternal(DefaultPicoContainer.java:438) ~[picocontainer-2.13.6.jar:na]
        at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:548) ~[picocontainer-2.13.6.jar:na]
        at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:501) ~[picocontainer-2.13.6.jar:na]
        at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:488) ~[picocontainer-2.13.6.jar:na]
        at net.grinder.engine.process.ScriptEngineContainer.<init>(ScriptEngineContainer.java:84) ~[grinder-core-3.9.1.jar:na]
        at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:289) ~[ngrinder-runtime-3.4.jar:na]
        at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87) [grinder-core-3.9.1.jar:na]
        at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60) [grinder-core-3.9.1.jar:na]
Reply | Threaded
Open this post in threaded view
|

Re: org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate for 'class net.grinder.scriptengine.jython.JythonScriptEngineService'

WaitUntil
<dependency>
                        <groupId>org.ngrinder</groupId>
                        <artifactId>ngrinder-groovy</artifactId>
                        <version>${ngrinder.version}</version>
                        <scope>provided</scope>
                </dependency>

add <scope> property in your pom file for ngrinder dependency,your script will run ok!
Reply | Threaded
Open this post in threaded view
|

Re: org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate for 'class net.grinder.scriptengine.jython.JythonScriptEngineService'

Frank.Wang
I am also meet  this problem.
I try do what you say. but it can't help.