[forge-issues] [JBoss JIRA] (FORGE-1718) RejectedExecutionException when executing a script

Arun Gupta (JIRA) issues at jboss.org
Mon Mar 31 18:59:13 EDT 2014


Arun Gupta created FORGE-1718:
---------------------------------

             Summary: RejectedExecutionException when executing a script
                 Key: FORGE-1718
                 URL: https://issues.jboss.org/browse/FORGE-1718
             Project: Forge
          Issue Type: Bug
    Affects Versions: 2.3.0.Final
            Reporter: Arun Gupta


Using the following script to create a basic Java EE application:

project-new --named javaee-forge --topLevelPackage org.forge.samples.javaee
servlet-setup; cdi-setup; jpa-setup --container JBOSS_EAP6; rest-setup; constraint-setup; faces-setup; ejb-setup; scaffold-setup
jpa-new-entity --named Author --targetPackage org.forge.samples.javaee.entities
jpa-new-entity --named Book --targetPackage org.forge.samples.javaee.entities
jpa-new-field --targetEntity org.forge.samples.javaee.entities.Author --named name --type String --length 30
jpa-new-field --targetEntity org.forge.samples.javaee.entities.Book --named title --type String --length 30
jpa-new-field --targetEntity org.forge.samples.javaee.entities.Book --named isbn --type String --length 15

Executing the script in forge console is randomly throwing the following exception:

[forge-samples]$ jpa-new-field --targetEntity org.forge.samples.javaee.entities.Author --named name --type String --length 30
jpa-new-field --targetEntity org.forge.samples.javaee.entities.Book --named title --type String --length 30
Exception in thread "Aesh Process Loop 614867598" java.util.concurrent.RejectedExecutionException: Task AeshProcess{pid=12, manager=org.jboss.aesh.console.ProcessManager at 5bc4aef2, consoleCallback=org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl at 5ffb3152, operation=ControlOperator: NONE, Buffer: jpa-new-field --targetEntity org.forge.samples.javaee.entities.Book --named title --type String --length 30} rejected from java.util.concurrent.ThreadPoolExecutor at 1af9a4c9[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 11]
	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)
	at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369)
	at org.jboss.aesh.console.ProcessManager.startNewProcess(ProcessManager.java:44)
	at org.jboss.aesh.console.Console.processOperationResult(Console.java:626)
	at org.jboss.aesh.console.Console.processInternalOperation(Console.java:592)
	at org.jboss.aesh.console.Console.execute(Console.java:580)
	at org.jboss.aesh.console.Console.access$700(Console.java:60)
	at org.jboss.aesh.console.Console$6.run(Console.java:499)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:744)
***SUCCESS*** Field name created

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


More information about the forge-issues mailing list