{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/1231","repository_url":"https://api.github.com/repos/cucumber/cucumber-jvm","labels_url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/1231/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/1231/comments","events_url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/1231/events","html_url":"https://github.com/cucumber/cucumber-jvm/issues/1231","id":261231413,"node_id":"MDU6SXNzdWUyNjEyMzE0MTM=","number":1231,"title":"Weld containers are shut down several times","user":{"login":"hfauche","id":1167742,"node_id":"MDQ6VXNlcjExNjc3NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1167742?v=4","gravatar_id":"","url":"https://api.github.com/users/hfauche","html_url":"https://github.com/hfauche","followers_url":"https://api.github.com/users/hfauche/followers","following_url":"https://api.github.com/users/hfauche/following{/other_user}","gists_url":"https://api.github.com/users/hfauche/gists{/gist_id}","starred_url":"https://api.github.com/users/hfauche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfauche/subscriptions","organizations_url":"https://api.github.com/users/hfauche/orgs","repos_url":"https://api.github.com/users/hfauche/repos","events_url":"https://api.github.com/users/hfauche/events{/privacy}","received_events_url":"https://api.github.com/users/hfauche/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-28T08:18:41Z","updated_at":"2018-10-24T23:12:43Z","closed_at":"2017-09-28T09:36:20Z","author_association":"NONE","body":"<!-- These sections are meant as guidance for you, to help you give the kind of information we'll need to help with your issue. If a section  doesn't seem to fit, just skip it.\r\n\r\nIn general: Please provide as much information as you can to help us solving your problem -->\r\n\r\nEach scenario initializes a different weld container using WeldFactory.start() and shut it down using WeldFactory.stop(). The problem is that containers are kept in a map but never removed from it and the stop() methods tries to shutdown all of them.\r\nSo when the second scenario ends, invoking the stop() method tries to shutdown the two containers that have been created. The first one has been already shut down at the end of the first scenario, and trying to shut it down again raises an exception.\r\n\r\nA normal behavior would be, either to reuse the same container all the time (since tests are not executed in parallel), or to shutdown the containers individually by invoking WeldContainer.shutdown() instead of WeldFactory.stop().\r\n\r\nReproducing the problem only requires to run more than one scenario.\r\n\r\n* Version used: cucumber-weld 1.2.5, weld-se-core 3.0.1\r\n* Operating System and version: Ubuntu 17.04, Java HotSpot 1.8.0_131 \r\n"},"comment":{"url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/comments/432859145","html_url":"https://github.com/cucumber/cucumber-jvm/issues/1231#issuecomment-432859145","issue_url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/1231","id":432859145,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjg1OTE0NQ==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-10-24T23:12:43Z","updated_at":"2018-10-24T23:12:43Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.\n"}}
{"actor":{"display_login":"lock"}}