Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Suppressing or Redirecting Stacktraces from Workflow
Suppressing or Redirecting Stacktraces from Workflow [message #1839840] Tue, 30 March 2021 04:40 Go to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

We are using the ant workflow implementation for coordinating builds. Occasionally, we execute speculative steps in eol and wrap them with an ant-level catch construct. This works ok from a functional point of view, but produces a substantial stack dump from the task as it fails. The stack dump is not very useful, as it does not refer to the eol program and its state, but rather to the state of the interpreter running the EOL. We would like to suppress this, but would like to do this declaratively, rather than subclassing the ant build logger that relays this information.

Is this possible?

learn:
[epsilon.eol - learn_element.eol] EXCEPTION: Undefined variable, type or model: 'contained'
[epsilon.eol - learn_element.eol] 
[epsilon.eol - learn_element.eol] 	at org.eclipse.epsilon.eol.dom.NameExpression.execute(NameExpression.java:84)
[epsilon.eol - learn_element.eol] 	at org.eclipse.epsilon.eol.dom.NameExpression.execute(NameExpression.java:96)
[epsilon.eol - learn_element.eol] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeImpl(ExecutorFactory.java:204)
[epsilon.eol - learn_element.eol] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.execute(ExecutorFactory.java:233)
[epsilon.eol - learn_element.eol] 	at org.eclipse.epsilon.eol.dom.OperationCallExpression.execute(OperationCallExpression.java:149)
[epsilon.eol - learn_element.eol] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.executeImpl(ExecutorFactory.java:204)
[epsilon.eol - learn_element.eol] 	at org.eclipse.epsilon.eol.execute.ExecutorFactory.execute(ExecutorFactory.java:233)
[epsilon.eol - learn_element.eol] 	at org.eclipse.epsilon.eol.dom.PropertyCallExpression.execute(PropertyCallExpression.java:47)

Re: Suppressing or Redirecting Stacktraces from Workflow [message #1839851 is a reply to message #1839840] Tue, 30 March 2021 08:49 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Jörn,

In my setup, the exception also contains information about the location of the exception in the EOL program. Could you please check with the latest interim version of Epsilon and let me know if the problem persists?

main:
[epsilon.eol - tree.eol] EXCEPTION: Property 'foo' not found in object t_tree
[epsilon.eol - tree.eol] 	at (.../tree.eol@1:0-1:11)
[epsilon.eol - tree.eol] 	at (.../tree.eol@1:0-1:22)
[epsilon.eol - tree.eol] 	at (.../tree.eol@1:0-1:22)
[epsilon.eol - tree.eol] 	at (...tree.eol@1:0-1:22)
[epsilon.eol - tree.eol] 	at (.../tree.eol@1:0-1:22)
[epsilon.eol - tree.eol] 
[epsilon.eol - tree.eol] 	at org.eclipse.epsilon.eol.execute.introspection.java.JavaPropertyGetter.invoke(JavaPropertyGetter.java:60)
[epsilon.eol - tree.eol] 	at org.eclipse.epsilon.eol.dom.PropertyCallExpression.execute(PropertyCallExpression.java:76)


Best,
Dimitris
Re: Suppressing or Redirecting Stacktraces from Workflow [message #1839991 is a reply to message #1839851] Sat, 03 April 2021 06:54 Go to previous messageGo to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

Thanks. We will have to consider this carefully, as we want to keep disturbance in the system low.

Best,
JG
Re: Suppressing or Redirecting Stacktraces from Workflow [message #1840110 is a reply to message #1839991] Wed, 07 April 2021 00:04 Go to previous messageGo to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

I have just tried out the advice to switch to intermediate. I see the changed IUs, but I am on not seeing a difference in the behaviour of the build. Is there anything else that I need to be aware of to achieve the interpreter log behaviour? Flags? Properties? Environment variables?
Re: Suppressing or Redirecting Stacktraces from Workflow [message #1840131 is a reply to message #1840110] Wed, 07 April 2021 08:34 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hmm - that's odd. Could you please share a minimal example we can use to reproduce the behaviour you're encountering?

Best,
Dimitris
Previous Topic:Junit eunit example - test with resource models
Next Topic:Read-only Access to Epsilon source code
Goto Forum:
  


Current Time: Thu Apr 25 00:33:32 GMT 2024

Powered by FUDForum. Page generated in 0.03347 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top