[
https://issues.jboss.org/browse/FORGE-1784?page=com.atlassian.jira.plugin...
]
Antonio Goncalves commented on FORGE-1784:
------------------------------------------
Strange, I've executed the same script again, and this time I have a stack trace
{code}
[agoncal-training-javaee6-advanced]$ scaffold-generate --webRoot admin --targets
org.agoncal.training.javaee6adv.* ;
Exception in thread "Aesh Process Loop 104588629"
java.util.concurrent.RejectedExecutionException: Task AeshProcess{pid=86,
manager=org.jboss.aesh.console.ProcessManager@150f7bf0,
consoleCallback=org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl@2b91d45d,
operation=ControlOperator: END, Buffer: scaffold-generate --webRoot admin --targets
org.agoncal.training.javaee6adv.* } rejected from
java.util.concurrent.ThreadPoolExecutor@730d3c03[Shutting down, pool size = 1, active
threads = 1, queued tasks = 0, completed tasks = 85]
at
java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
at org.jboss.aesh.console.ProcessManager.startNewProcess(ProcessManager.java:44)
at org.jboss.aesh.console.Console.processOperationResult(Console.java:628)
at org.jboss.aesh.console.Console.processInternalOperation(Console.java:594)
at org.jboss.aesh.console.Console.execute(Console.java:582)
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:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
{code}
When having a scaffold-generate command in a script, it times out
-----------------------------------------------------------------
Key: FORGE-1784
URL:
https://issues.jboss.org/browse/FORGE-1784
Project: Forge
Issue Type: Sub-task
Components: UI - Shell
Affects Versions: 2.5.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
I have a long script with several commands and at the end, when I scaffold JSF pages, the
script times out :
{code}
[CD.java]$ scaffold-setup ;
***SUCCESS*** CDI has been installed.
***SUCCESS*** EJB has been installed.
***SUCCESS*** Servlet API has been installed.
***SUCCESS*** JavaServer Faces has been installed.
***SUCCESS*** Scaffold was setup successfully.
[CD.java]$ scaffold-generate --webRoot admin --targets org.agoncal.training.javaee6adv.*
;
***ERROR*** 02-Forge/generate.fsh: timed out.
[agoncal-training-javaee6-advanced]$ ***SUCCESS*** Scaffold was generated successfully.
{code}
Nothing special in the logs. But because the {{scaffold-generate}} command takes time to
execute, it displays a time out message. The worse is that it displays {{***ERROR***}} and
then {{***SUCCESS***}}. At the end of the day, my JSF artifacts are created, but the
script ends and it doesn't execute the commands that follow.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)