[JBoss JIRA] (ROASTER-100) Can't add array of annotations as annotation value
by George Gastaldi (Jira)
[ https://issues.jboss.org/browse/ROASTER-100?page=com.atlassian.jira.plugi... ]
George Gastaldi commented on ROASTER-100:
-----------------------------------------
[~kaijmueller] I don't have much to add here, but I believe it would involve dealing with the JDT API to achieve that, perhaps converting to String is not the right way to go, needs to be checked.
I think the first step is to understand how that is done in JDT and adapt Roaster to make the same behavior but easier.
> Can't …
[View More]add array of annotations as annotation value
> --------------------------------------------------
>
> Key: ROASTER-100
> URL: https://issues.jboss.org/browse/ROASTER-100
> Project: Roaster
> Issue Type: Feature Request
> Components: API
> Affects Versions: 2.18.4.Final
> Reporter: Simone D'Avico
> Priority: Major
> Fix For: 2.x Future
>
>
> It is not currently possible to generate an annotation such as
> {code:java}
> @MatrixMix (
> mix = { @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }) }
> )
> {code}
> The only workaround is to treat the array as a String and set it as a literal, as discussed [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (ROASTER-100) Can't add array of annotations as annotation value
by Kai Müller (Jira)
[ https://issues.jboss.org/browse/ROASTER-100?page=com.atlassian.jira.plugi... ]
Kai Müller commented on ROASTER-100:
------------------------------------
[~gastaldi]: What do you think?
> Can't add array of annotations as annotation value
> --------------------------------------------------
>
> Key: ROASTER-100
> URL: https://issues.jboss.org/browse/ROASTER-100
> Project: Roaster
> Issue Type: Feature Request
> …
[View More] Components: API
> Affects Versions: 2.18.4.Final
> Reporter: Simone D'Avico
> Priority: Major
> Fix For: 2.x Future
>
>
> It is not currently possible to generate an annotation such as
> {code:java}
> @MatrixMix (
> mix = { @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }) }
> )
> {code}
> The only workaround is to treat the array as a String and set it as a literal, as discussed [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (ROASTER-100) Can't add array of annotations as annotation value
by Kai Müller (Jira)
[ https://issues.jboss.org/browse/ROASTER-100?page=com.atlassian.jira.plugi... ]
Kai Müller commented on ROASTER-100:
------------------------------------
Hi,
I found a way to this. Two questions for this:
1. Where should I add the logic to create an annotation without an assigned java type. For testing purpose I create a dummy class, add the annotation and then use only it. But maybe it makes sense to add a method _createUnparentAnnotation _to JavaType (or any other interface)?
2. Do you …
[View More]know how to the string representation of a annotation without calling toString()?
The current idea looks like this
{code:java}
public AnnotationSource<O> setAnnotationArrayValue(String name, AnnotationSource<O>[] values)
{
final List<String> literals = new ArrayList<>();
for (AnnotationSource<O> value : requireNonNull(values))
{
//TODO not nice
literals.add(requireNonNull(value).toString());
}
return setArrayLiteralValue(name, literals);
}
{code}
BR,
Kai
> Can't add array of annotations as annotation value
> --------------------------------------------------
>
> Key: ROASTER-100
> URL: https://issues.jboss.org/browse/ROASTER-100
> Project: Roaster
> Issue Type: Feature Request
> Components: API
> Affects Versions: 2.18.4.Final
> Reporter: Simone D'Avico
> Priority: Major
> Fix For: 2.x Future
>
>
> It is not currently possible to generate an annotation such as
> {code:java}
> @MatrixMix (
> mix = { @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }) }
> )
> {code}
> The only workaround is to treat the array as a String and set it as a literal, as discussed [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (FORGE-2788) Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
by George Gastaldi (Jira)
[ https://issues.jboss.org/browse/FORGE-2788?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-2788:
----------------------------------------
Thanks for the issue [~alexss138], I'll have a look
> Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
> -------------------------------------------------------------------------------------------------------------------------
>
> …
[View More]Key: FORGE-2788
> URL: https://issues.jboss.org/browse/FORGE-2788
> Project: Forge
> Issue Type: Bug
> Components: Forge Scripting Language
> Affects Versions: 3.9.1.Final, 3.9.2.Final
> Environment: * Windows 10
> * JDK1.8.0
> * Forge 3.9.1
> Reporter: Alex Ferguson
> Priority: Critical
> Fix For: 3.x Future
>
> Attachments: all.forge.init.fsh, all.forge.update.fsh, error.txt
>
>
> During a large batch run forge randomly crashes and throws an exception. Have noticed this happening at random points in the script. See error.txt for full log :
> {code:java}
> [ss-rest-services-generated]$ ***ERROR*** Error while executing 'run'
> java.util.concurrent.TimeoutException: Timeout expired waiting for command [java-new-field --named HGAYZDUWSBMKERNITPOQJXCLF --target-class com.soprasteria.api.model.OIJCFPNHDGLMZAUYTEVWKQRBS --type String --access-type private --generate-getter --generate-setter --update-to-string
> ] to execute.
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.execute(ForgeScriptEngine.java:225)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:131)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:71)
> at org.jboss.forge.addon.script.ui.RunCommand.execute(RunCommand.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.script.ui.RunCommand_$$_jvst260_113.execute(RunCommand_$$_jvst260_113.java)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
> at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ***ERROR*** Execution timed out.
> exit
> DONE
> Process finished with exit code 0
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (FORGE-2788) Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
by George Gastaldi (Jira)
[ https://issues.jboss.org/browse/FORGE-2788?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2788:
-----------------------------------
Fix Version/s: 3.x Future
> Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-2788
> …
[View More] URL: https://issues.jboss.org/browse/FORGE-2788
> Project: Forge
> Issue Type: Bug
> Components: Forge Scripting Language
> Affects Versions: 3.9.1.Final, 3.9.2.Final
> Environment: * Windows 10
> * JDK1.8.0
> * Forge 3.9.1
> Reporter: Alex Ferguson
> Priority: Critical
> Fix For: 3.x Future
>
> Attachments: all.forge.init.fsh, all.forge.update.fsh, error.txt
>
>
> During a large batch run forge randomly crashes and throws an exception. Have noticed this happening at random points in the script. See error.txt for full log :
> {code:java}
> [ss-rest-services-generated]$ ***ERROR*** Error while executing 'run'
> java.util.concurrent.TimeoutException: Timeout expired waiting for command [java-new-field --named HGAYZDUWSBMKERNITPOQJXCLF --target-class com.soprasteria.api.model.OIJCFPNHDGLMZAUYTEVWKQRBS --type String --access-type private --generate-getter --generate-setter --update-to-string
> ] to execute.
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.execute(ForgeScriptEngine.java:225)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:131)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:71)
> at org.jboss.forge.addon.script.ui.RunCommand.execute(RunCommand.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.script.ui.RunCommand_$$_jvst260_113.execute(RunCommand_$$_jvst260_113.java)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
> at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ***ERROR*** Execution timed out.
> exit
> DONE
> Process finished with exit code 0
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (FORGE-2788) Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
by George Gastaldi (Jira)
[ https://issues.jboss.org/browse/FORGE-2788?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2788:
-----------------------------------
Affects Version/s: 3.9.2.Final
> Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-2788
> …
[View More] URL: https://issues.jboss.org/browse/FORGE-2788
> Project: Forge
> Issue Type: Bug
> Components: Forge Scripting Language
> Affects Versions: 3.9.1.Final, 3.9.2.Final
> Environment: * Windows 10
> * JDK1.8.0
> * Forge 3.9.1
> Reporter: Alex Ferguson
> Priority: Critical
> Fix For: 3.x Future
>
> Attachments: all.forge.init.fsh, all.forge.update.fsh, error.txt
>
>
> During a large batch run forge randomly crashes and throws an exception. Have noticed this happening at random points in the script. See error.txt for full log :
> {code:java}
> [ss-rest-services-generated]$ ***ERROR*** Error while executing 'run'
> java.util.concurrent.TimeoutException: Timeout expired waiting for command [java-new-field --named HGAYZDUWSBMKERNITPOQJXCLF --target-class com.soprasteria.api.model.OIJCFPNHDGLMZAUYTEVWKQRBS --type String --access-type private --generate-getter --generate-setter --update-to-string
> ] to execute.
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.execute(ForgeScriptEngine.java:225)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:131)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:71)
> at org.jboss.forge.addon.script.ui.RunCommand.execute(RunCommand.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.script.ui.RunCommand_$$_jvst260_113.execute(RunCommand_$$_jvst260_113.java)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
> at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ***ERROR*** Execution timed out.
> exit
> DONE
> Process finished with exit code 0
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (FORGE-2788) Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
by Alex Ferguson (Jira)
[ https://issues.jboss.org/browse/FORGE-2788?page=com.atlassian.jira.plugin... ]
Alex Ferguson updated FORGE-2788:
---------------------------------
Priority: Critical (was: Blocker)
> Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-2788
> …
[View More] URL: https://issues.jboss.org/browse/FORGE-2788
> Project: Forge
> Issue Type: Bug
> Components: Forge Scripting Language
> Affects Versions: 3.9.1.Final
> Environment: * Windows 10
> * JDK1.8.0
> * Forge 3.9.1
> Reporter: Alex Ferguson
> Priority: Critical
> Attachments: all.forge.init.fsh, all.forge.update.fsh, error.txt
>
>
> During a large batch run forge randomly crashes and throws an exception. Have noticed this happening at random points in the script. See error.txt for full log :
> {code:java}
> [ss-rest-services-generated]$ ***ERROR*** Error while executing 'run'
> java.util.concurrent.TimeoutException: Timeout expired waiting for command [java-new-field --named HGAYZDUWSBMKERNITPOQJXCLF --target-class com.soprasteria.api.model.OIJCFPNHDGLMZAUYTEVWKQRBS --type String --access-type private --generate-getter --generate-setter --update-to-string
> ] to execute.
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.execute(ForgeScriptEngine.java:225)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:131)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:71)
> at org.jboss.forge.addon.script.ui.RunCommand.execute(RunCommand.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.script.ui.RunCommand_$$_jvst260_113.execute(RunCommand_$$_jvst260_113.java)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
> at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ***ERROR*** Execution timed out.
> exit
> DONE
> Process finished with exit code 0
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (FORGE-2788) Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'
by Alex Ferguson (Jira)
[ https://issues.jboss.org/browse/FORGE-2788?page=com.atlassian.jira.plugin... ]
Alex Ferguson updated FORGE-2788:
---------------------------------
Summary: Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run' (was: Forge batch run with large script randomly breaks down after 10 mins of running)
> Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing '…
[View More]run'
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-2788
> URL: https://issues.jboss.org/browse/FORGE-2788
> Project: Forge
> Issue Type: Bug
> Components: Forge Scripting Language
> Affects Versions: 3.9.1.Final
> Environment: * Windows 10
> * JDK1.8.0
> * Forge 3.9.1
> Reporter: Alex Ferguson
> Priority: Blocker
> Attachments: all.forge.init.fsh, all.forge.update.fsh, error.txt
>
>
> During a large batch run forge randomly crashes and throws an exception. Have noticed this happening at random points in the script. See error.txt for full log :
> {code:java}
> [ss-rest-services-generated]$ ***ERROR*** Error while executing 'run'
> java.util.concurrent.TimeoutException: Timeout expired waiting for command [java-new-field --named HGAYZDUWSBMKERNITPOQJXCLF --target-class com.soprasteria.api.model.OIJCFPNHDGLMZAUYTEVWKQRBS --type String --access-type private --generate-getter --generate-setter --update-to-string
> ] to execute.
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.execute(ForgeScriptEngine.java:225)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:131)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:71)
> at org.jboss.forge.addon.script.ui.RunCommand.execute(RunCommand.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.script.ui.RunCommand_$$_jvst260_113.execute(RunCommand_$$_jvst260_113.java)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
> at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ***ERROR*** Execution timed out.
> exit
> DONE
> Process finished with exit code 0
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (FORGE-2788) Forge batch run with large script randomly breaks down after 10 mins of running
by Alex Ferguson (Jira)
[ https://issues.jboss.org/browse/FORGE-2788?page=com.atlassian.jira.plugin... ]
Alex Ferguson updated FORGE-2788:
---------------------------------
Summary: Forge batch run with large script randomly breaks down after 10 mins of running (was: Forge batch run on large script randomly breaks down)
> Forge batch run with large script randomly breaks down after 10 mins of running
> -------------------------------------------------------------------------------
>
> …
[View More] Key: FORGE-2788
> URL: https://issues.jboss.org/browse/FORGE-2788
> Project: Forge
> Issue Type: Bug
> Components: Forge Scripting Language
> Affects Versions: 3.9.1.Final
> Environment: * Windows 10
> * JDK1.8.0
> * Forge 3.9.1
> Reporter: Alex Ferguson
> Priority: Blocker
> Attachments: all.forge.init.fsh, all.forge.update.fsh, error.txt
>
>
> During a large batch run forge randomly crashes and throws an exception. Have noticed this happening at random points in the script. See error.txt for full log :
> {code:java}
> [ss-rest-services-generated]$ ***ERROR*** Error while executing 'run'
> java.util.concurrent.TimeoutException: Timeout expired waiting for command [java-new-field --named HGAYZDUWSBMKERNITPOQJXCLF --target-class com.soprasteria.api.model.OIJCFPNHDGLMZAUYTEVWKQRBS --type String --access-type private --generate-getter --generate-setter --update-to-string
> ] to execute.
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.execute(ForgeScriptEngine.java:225)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:131)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:71)
> at org.jboss.forge.addon.script.ui.RunCommand.execute(RunCommand.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.script.ui.RunCommand_$$_jvst260_113.execute(RunCommand_$$_jvst260_113.java)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
> at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ***ERROR*** Execution timed out.
> exit
> DONE
> Process finished with exit code 0
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month
[JBoss JIRA] (FORGE-2788) Forge batch run with large script randomly breaks down after 10 mins of running
by Alex Ferguson (Jira)
[ https://issues.jboss.org/browse/FORGE-2788?page=com.atlassian.jira.plugin... ]
Alex Ferguson updated FORGE-2788:
---------------------------------
Steps to Reproduce:
I have converted my script to populate the forge script with randomized data and have attached them. To reproduce first run:
{code:java}
forge -b -e "run all.forge.init.fsh"
{code}
this will initialize the project. Next this is where the error happens. You will want to run:
{code:java}
forge -b -e "run all.forge.…
[View More]update.fsh"
{code}
In the all.forge.update.fsh file I have randomized all data but the error will still happen. You have to leave it for 5 - 10 mins for it to happen. Seems like there is some sort of memory leak which happens on large batch runs and it just craps out after a while.
For the commands that it failed on I have tried running them individually and they all work fine.
Also in the forge.bat I have set the environment variable VERBOSE=true
was:
I have converted my script to populate the forge script with randomized data and have attached them. To reproduce first run:
forge -b -e "run all.forge.init.fsh"
this will initialize the project. Next this is where the error happens. You will want to run:
forge -b -e "run all.forge.update.fsh"
In the all.forge.update.fsh file I have randomized all data but the error will still happen. You have to leave it for 5 - 10 mins for it to happen. Seems like there is some sort of memory leak which happens on large batch runs and it just craps out after a while.
For the commands that it failed on I have tried running them individually and they all work fine.
Also in the forge.bat I have set the environment variable VERBOSE=true
> Forge batch run with large script randomly breaks down after 10 mins of running
> -------------------------------------------------------------------------------
>
> Key: FORGE-2788
> URL: https://issues.jboss.org/browse/FORGE-2788
> Project: Forge
> Issue Type: Bug
> Components: Forge Scripting Language
> Affects Versions: 3.9.1.Final
> Environment: * Windows 10
> * JDK1.8.0
> * Forge 3.9.1
> Reporter: Alex Ferguson
> Priority: Blocker
> Attachments: all.forge.init.fsh, all.forge.update.fsh, error.txt
>
>
> During a large batch run forge randomly crashes and throws an exception. Have noticed this happening at random points in the script. See error.txt for full log :
> {code:java}
> [ss-rest-services-generated]$ ***ERROR*** Error while executing 'run'
> java.util.concurrent.TimeoutException: Timeout expired waiting for command [java-new-field --named HGAYZDUWSBMKERNITPOQJXCLF --target-class com.soprasteria.api.model.OIJCFPNHDGLMZAUYTEVWKQRBS --type String --access-type private --generate-getter --generate-setter --update-to-string
> ] to execute.
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.execute(ForgeScriptEngine.java:225)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:131)
> at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:71)
> at org.jboss.forge.addon.script.ui.RunCommand.execute(RunCommand.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> at org.jboss.forge.addon.script.ui.RunCommand_$$_jvst260_113.execute(RunCommand_$$_jvst260_113.java)
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
> at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ***ERROR*** Execution timed out.
> exit
> DONE
> Process finished with exit code 0
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 1 month