]
George Gastaldi updated FORGE-1718:
-----------------------------------
Fix Version/s: 2.x Future
RejectedExecutionException when executing a script
--------------------------------------------------
Key: FORGE-1718
URL:
https://issues.jboss.org/browse/FORGE-1718
Project: Forge
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.3.0.Final
Reporter: Arun Gupta
Fix For: 2.x Future
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@5bc4aef2,
consoleCallback=org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl@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@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