Details
-
Bug
-
Resolution: Unresolved
-
Major
-
2.3.0.Final
-
None
-
None
Description
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
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