While I'm at it might as well mention another bug/feature I have encoutered.
When an exception is thrown from a method called by an expresion in the
page-definition, then it swallowed by the SeamExpression in its
| return new Expression()
| {
| private MethodExpression me;
| private ValueExpression ve;
|
| private void initMethodExpression()
| {
| me =
EL.EXPRESSION_FACTORY.createMethodExpression(EL.EL_CONTEXT, expression,
returnType, new Class[0]);
| }
|
| private void initValueExpression()
| {
| ve =
EL.EXPRESSION_FACTORY.createValueExpression(EL.EL_CONTEXT, expression,
returnType);
| }
|
| @Override
| public Object evaluate(VariableResolver resolver) throws
ELException
| {
| try {
| try {
| if (me==null && ve==null)
| {
| initMethodExpression();
| }
| if (me!=null && ve==null)
| {
| return me.invoke(createELContext(resolver,
mapper), new Object[0]);
| }
| }
| catch (javax.el.ELException e)
| {
| if (ve==null)
| {
| initValueExpression();
| }
| if (ve!=null)
| {
| return ve.getValue(createELContext(resolver,
mapper));
| }
| }
| throw new ELException();
| }
| catch (javax.el.ELException e)
| {
| throw new ELException(e);
| }
| }
| };
|
I then catch a JbpmException but there is no access to the original exception
anymore.
I am also not sure whether an exception element in pages.xml is suppose to work
during a page flow. I can not get it to work and am forced to put decision
nodes for every action I call from the page flow.
Any help appreciated.
Pieter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108568#4108568
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108568
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user