[JBoss JIRA] (DROOLS-1476) Decision Tables (CSV) - Treat empty cells right from ObjectType declaration as merged
by Tibor Zimanyi (Jira)
[ https://issues.jboss.org/browse/DROOLS-1476?page=com.atlassian.jira.plugi... ]
Tibor Zimanyi commented on DROOLS-1476:
---------------------------------------
Closing this as outdated. Also the cloned issue was closed.
> Decision Tables (CSV) - Treat empty cells right from ObjectType declaration as merged
> -------------------------------------------------------------------------------------
>
> Key: DROOLS-1476
> URL: https://issues.jboss.org/browse/DROOLS-1476
> Project: Drools
> Issue Type: Enhancement
> Components: decision tables
> Affects Versions: 7.0.0.Beta7
> Reporter: Martin Cimbalek
> Assignee: Mario Fusco
> Priority: Minor
>
> Because of CSV doesn't support merging cells like in .xls or .xlsx, saving decision table as .csv currently requires additional binding and matching instead of merging cells, which causes the merged columns are merged into one set of constraints.
> Proposing that empty cells right from ObjectType definition in CSV would be treated as the merged ones in .xls. This approach may be applicable also for .xls
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (DROOLS-1476) Decision Tables (CSV) - Treat empty cells right from ObjectType declaration as merged
by Tibor Zimanyi (Jira)
[ https://issues.jboss.org/browse/DROOLS-1476?page=com.atlassian.jira.plugi... ]
Tibor Zimanyi closed DROOLS-1476.
---------------------------------
Resolution: Won't Do
> Decision Tables (CSV) - Treat empty cells right from ObjectType declaration as merged
> -------------------------------------------------------------------------------------
>
> Key: DROOLS-1476
> URL: https://issues.jboss.org/browse/DROOLS-1476
> Project: Drools
> Issue Type: Enhancement
> Components: decision tables
> Affects Versions: 7.0.0.Beta7
> Reporter: Martin Cimbalek
> Assignee: Mario Fusco
> Priority: Minor
>
> Because of CSV doesn't support merging cells like in .xls or .xlsx, saving decision table as .csv currently requires additional binding and matching instead of merging cells, which causes the merged columns are merged into one set of constraints.
> Proposing that empty cells right from ObjectType definition in CSV would be treated as the merged ones in .xls. This approach may be applicable also for .xls
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (WFLY-12777) Stateful bean with @StatefulTimeout value -1 should not timeout or removed
by Cheng Fang (Jira)
[ https://issues.jboss.org/browse/WFLY-12777?page=com.atlassian.jira.plugin... ]
Cheng Fang updated WFLY-12777:
------------------------------
Description:
Stateful bean with @StatefulTimeout value -1 should not timeout or removed.
A value of -1 means the bean will never be removed due to timeout. When running with the latest WildFly snapshot (2019-11-11), such a stateful bean was unexpectedly timed out and removed.
{code:java}
@Stateful
@StatefulTimeout(value = -1, unit=TimeUnit.DAYS)
@AccessTimeout(value=StatefulTimeoutIF.TIMEOUT_DAYS, unit=TimeUnit.DAYS)
@Local(StatefulTimeoutIF.class)
public class Minus1TimeoutBean {
...
}
{code}
Or the stateful bean timeout can be configured with ejb-jar.xml:
{code:xml}
<session>
<ejb-name>xx</ejb-name>
<business-local>xx</business-local>
<ejb-class>xx</ejb-class>
<session-type>Stateful</session-type>
<stateful-timeout>
<timeout>-1</timeout>
<unit>Days</unit>
</stateful-timeout>
<concurrency-management-type>Container</concurrency-management-type>
</session>
{code}
was:
Stateful bean with @StatefulTimeout value -1 should not timeout or removed.
A value of -1 means the bean will never be removed due to timeout. When running with the latest WildFly snapshot (2019-11-11), such a stateful bean was unexpectedly timed out and removed.
{code:java}
@Stateful
@StatefulTimeout(value = -1, unit=TimeUnit.DAYS)
@AccessTimeout(value=StatefulTimeoutIF.TIMEOUT_DAYS, unit=TimeUnit.DAYS)
@Local(StatefulTimeoutIF.class)
public class Minus1TimeoutBean {
...
}
{code}
Or the stateful bean timeout can be configured with ejb-jar.xml:
{code:xml}
<session>
<ejb-name>xx</ejb-name>
<business-local>xx</business-local>
<ejb-class>xx</ejb-class>
<session-type>Stateful</session-type>
<stateful-timeout>
<timeout>-1</timeout>
<unit>Days</unit>
</stateful-timeout>
<concurrency-management-type>Container</concurrency-management-type>
</session>
{code}
> Stateful bean with @StatefulTimeout value -1 should not timeout or removed
> --------------------------------------------------------------------------
>
> Key: WFLY-12777
> URL: https://issues.jboss.org/browse/WFLY-12777
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 19.0.0.Beta1
> Reporter: Cheng Fang
> Assignee: Cheng Fang
> Priority: Major
> Fix For: 19.0.0.Beta1
>
>
> Stateful bean with @StatefulTimeout value -1 should not timeout or removed.
> A value of -1 means the bean will never be removed due to timeout. When running with the latest WildFly snapshot (2019-11-11), such a stateful bean was unexpectedly timed out and removed.
> {code:java}
> @Stateful
> @StatefulTimeout(value = -1, unit=TimeUnit.DAYS)
> @AccessTimeout(value=StatefulTimeoutIF.TIMEOUT_DAYS, unit=TimeUnit.DAYS)
> @Local(StatefulTimeoutIF.class)
> public class Minus1TimeoutBean {
> ...
> }
> {code}
> Or the stateful bean timeout can be configured with ejb-jar.xml:
> {code:xml}
> <session>
> <ejb-name>xx</ejb-name>
> <business-local>xx</business-local>
> <ejb-class>xx</ejb-class>
> <session-type>Stateful</session-type>
> <stateful-timeout>
> <timeout>-1</timeout>
> <unit>Days</unit>
> </stateful-timeout>
> <concurrency-management-type>Container</concurrency-management-type>
> </session>
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (WFLY-12777) Stateful bean with @StatefulTimeout value -1 should not timeout or removed
by Cheng Fang (Jira)
[ https://issues.jboss.org/browse/WFLY-12777?page=com.atlassian.jira.plugin... ]
Cheng Fang updated WFLY-12777:
------------------------------
Description:
Stateful bean with @StatefulTimeout value -1 should not timeout or removed.
A value of -1 means the bean will never be removed due to timeout. When running with the latest WildFly snapshot (2019-11-11), such a stateful bean was unexpectedly timed out and removed.
{code:java}
@Stateful
@StatefulTimeout(value = -1, unit=TimeUnit.DAYS)
@AccessTimeout(value=StatefulTimeoutIF.TIMEOUT_DAYS, unit=TimeUnit.DAYS)
@Local(StatefulTimeoutIF.class)
public class Minus1TimeoutBean {
...
}
{code}
Or the stateful bean timeout can be configured with ejb-jar.xml:
{code:xml}
<session>
<ejb-name>xx</ejb-name>
<business-local>xx</business-local>
<ejb-class>xx</ejb-class>
<session-type>Stateful</session-type>
<stateful-timeout>
<timeout>-1</timeout>
<unit>Days</unit>
</stateful-timeout>
<concurrency-management-type>Container</concurrency-management-type>
</session>
{code}
was:
Stateful bean with @StatefulTimeout value -1 should not timeout or removed.
A value of -1 means the bean will never be removed due to timeout. When running with the latest WildFly snapshot (2019-11-11), such a stateful bean was unexpectedly timed out and removed.
{code:java}
@Stateful
@StatefulTimeout(value = -1, unit=TimeUnit.DAYS)
@AccessTimeout(value=StatefulTimeoutIF.TIMEOUT_DAYS, unit=TimeUnit.DAYS)
@Local(StatefulTimeoutIF.class)
public class Minus1TimeoutBean {
...
}
{code}
> Stateful bean with @StatefulTimeout value -1 should not timeout or removed
> --------------------------------------------------------------------------
>
> Key: WFLY-12777
> URL: https://issues.jboss.org/browse/WFLY-12777
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 19.0.0.Beta1
> Reporter: Cheng Fang
> Assignee: Cheng Fang
> Priority: Major
> Fix For: 19.0.0.Beta1
>
>
> Stateful bean with @StatefulTimeout value -1 should not timeout or removed.
> A value of -1 means the bean will never be removed due to timeout. When running with the latest WildFly snapshot (2019-11-11), such a stateful bean was unexpectedly timed out and removed.
> {code:java}
> @Stateful
> @StatefulTimeout(value = -1, unit=TimeUnit.DAYS)
> @AccessTimeout(value=StatefulTimeoutIF.TIMEOUT_DAYS, unit=TimeUnit.DAYS)
> @Local(StatefulTimeoutIF.class)
> public class Minus1TimeoutBean {
> ...
> }
> {code}
> Or the stateful bean timeout can be configured with ejb-jar.xml:
> {code:xml}
> <session>
> <ejb-name>xx</ejb-name>
> <business-local>xx</business-local>
> <ejb-class>xx</ejb-class>
> <session-type>Stateful</session-type>
> <stateful-timeout>
> <timeout>-1</timeout>
> <unit>Days</unit>
> </stateful-timeout>
> <concurrency-management-type>Container</concurrency-management-type>
> </session>
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (WFLY-12650) EL does not handle identifiers as JavaBeans
by Ricardo Martin Camarero (Jira)
[ https://issues.jboss.org/browse/WFLY-12650?page=com.atlassian.jira.plugin... ]
Ricardo Martin Camarero commented on WFLY-12650:
------------------------------------------------
Finally it was decided to not delete the ImportedClassELResolver but adding a system property that allows disable it:
{noformat}
-Dorg.wildfly.extension.undertow.deployment.disableImportedClassELResolver=true
{noformat}
So the issue will be in wildfly but you can add that property to completely follow the spec. Note that this issue is a corner case when a variable matches a class name (you can always change the property name, using "testMBean" in the example JSP of teh description). The reason for this is to avoid a [performance penalty problem in the ScopedAttributeELResolver implementation|https://github.com/eclipse-ee4j/jsp-api/issues/57] that was also fixed previously in our own ImportedClassELResolver.
> EL does not handle identifiers as JavaBeans
> -------------------------------------------
>
> Key: WFLY-12650
> URL: https://issues.jboss.org/browse/WFLY-12650
> Project: WildFly
> Issue Type: Bug
> Components: EE, Web (Undertow)
> Affects Versions: 18.0.0.Final
> Reporter: Ricardo Martin Camarero
> Assignee: Ricardo Martin Camarero
> Priority: Major
> Attachments: ELTest.war
>
>
> Even if defined JavaBeans using <jsp:useBean> in jsp, the EL expression is handled as java Class if that class is already imported in jsp.
> {code:title=EX)test1.jsp|borderStyle=solid}
> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
> <%@page import="test.TestMBean"%>
> <html>
> <head>
> <title>Test1</title>
> </head>
> <body>
> <jsp:useBean id="TestMBean" class="test.TestMBean"/>
> TestMBean.test : ${TestMBean.test} <br/>
> </body>
> </html>
> {code}
> Therefore, the following exceptions may occur:
> {noformat}
> Caused by: javax.el.PropertyNotFoundException: Either 'test' is not a public static field of the class 'test.TestMBean' or field is inacessable
> at javax.el.StaticFieldELResolver.getValue(StaticFieldELResolver.java:107)
> at org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:110)
> at com.sun.el.parser.AstValue.getValue(AstValue.java:139)
> at com.sun.el.parser.AstValue.getValue(AstValue.java:203)
> at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:226)
> at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:917)
> at org.apache.jsp.test1_jsp._jspService(test1_jsp.java:107)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
> ... 46 more
> {noformat}
> According [EL spec|https://download.oracle.com/otn-pub/jcp/el-3_0-fr-eval-spec/EL3.0.FR...], Evaluating of the imported static field should be the last.
> {quote}
> 1.5.1 Evaluating Identifiers
> The steps are used for evaluating an identifier.
> ■ If the identifier is a lambda argument passed to a lambda expression invocation, its value is returned.
> ■ Else if the identifier is a variable, the associated expression is evaluated and returned.
> ■ Else if the identifier is resolved by the ELResolvers, the value returned from the ELResolvers is returned.
> ■ Else if the identifier is an imported static field, its value is returned.
> ■ Else return not resolved.
> One implication of the explicit search order of the identifiers is that an identifier hides other identifiers (of the same name) that come after it in the list.
> {quote}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months