[ 
https://jira.codehaus.org/browse/SUREFIRE-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Rosenvold closed SUREFIRE-907.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.13.0
         Assignee: Kristian Rosenvold

Fixed with IT in r1375109. Thanks for the report!
                
> IllegalArgumentException from ThreadPoolExecutor.<init> in 
> surefire.booterclient.ForkStarter.runSuitesForkPerTestSet
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-907
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-907
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: process forking
>    Affects Versions: 2.12.2
>         Environment: JDK 7u6, Ubuntu
>            Reporter: Jesse Glick
>            Assignee: Kristian Rosenvold
>            Priority: Minor
>             Fix For: 2.13.0
>
>
> In some Maven project, e.g. {{maven-core}}, run:
> {code:none}
> $ mvn -DforkMode=perthread -e test
> ....
> java.lang.IllegalArgumentException
>       at 
> java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1275)
>       at 
> java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1163)
>       at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:142)
>       at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:122)
>       at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:199)
>       at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176)
>       at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:135)
>       at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:98)
> {code}
> Fix seems to be to specify {{-DthreadCount=<something>}}, but the mojo should 
> say so politely.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to