Hi Enric,

the JBehave Embedder uses by default an ExecutorService with a fixed number of threads

Executors.newFixedThreadPool(controls.threads());

You can configure your own ExecutorService via the Embedder.useExecutorService(ExecutorService).

I would recommend you first try to reproduce your issue in a controlled environment, e.g. outside of Jenkins, using a simple test project.

Otherwise, it's very difficult debug and for us to help you.

Cheers

On 19/12/2013 16:52, Enric Ballo wrote:
Hi,

I have a really wierd problem in jenkins running jbehave scenarios, on my local machine I have only one thread with one pool and works perfectly. But in Jenkins server some times there are two pools in the same threat running in the same time, and make my script crash, because some steps clean data, or just expect another value.

Example:
2013-11-22 02:31:48,969 DEBUG *[pool-6-thread-1]* AbstractFileManager - Delete all the files 2013-11-22 02:31:48,970 DEBUG *[pool-6-thread-1]* AbstractFileManager - Disconnect 2013-11-22 02:31:49,288 DEBUG *[pool-5-thread-1]* AbstractProductOrderManager - Opening Order Submit Page 2013-11-22 02:31:50,028 DEBUG *[pool-5-thread-1]* AbstractProductOrderManager - Opening Order Confirmation page 2013-11-22 02:31:50,058 DEBUG *[pool-5-thread-1]* AbstractCommonsSteps - All went good!! and the order is placed!!
Then places the order
Then email account will be created
2013-11-22 02:31:50,233 DEBUG *[pool-5-thread-1]* AbstractFileManager - Delete all the files 2013-11-22 02:31:50,233 DEBUG *[pool-5-thread-1]* AbstractFileManager - Disconnect 2013-11-22 02:31:51,038 DEBUG *[pool-6-thread-1]* AbstractFileManager - Delete all the files 2013-11-22 02:31:51,039 DEBUG *[pool-6-thread-1]* AbstractFileManager - Disconnect 2013-11-22 02:31:52,237 DEBUG *[pool-5-thread-1]* CendrisManagerImpl - fire Agent Status 200
Then send a letter
Then gets out of retention

My question is: somebody knows when is this new pool created and why ?


Thanks in advance,

PD: Sorry I sent the other mail by mistake

--
Enric Ballo

Reply via email to