[JBoss JIRA] (WFLY-11116) Wildfly 12.0.0 Final Delay in Getting the Value Attributes of the Session Variables (Result in Null Pointer Exception)
by Paul Ferraro (Jira)
[ https://issues.jboss.org/browse/WFLY-11116?page=com.atlassian.jira.plugin... ]
Paul Ferraro commented on WFLY-11116:
-------------------------------------
Actually, I wonder if your issue is that you're not encoding your redirect url. Try replacing your sendRedirect(...) with:
{code:java}
response.sendRedirect(response.encodeRedirectURL("BookPreview"));
{code}
> Wildfly 12.0.0 Final Delay in Getting the Value Attributes of the Session Variables (Result in Null Pointer Exception)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-11116
> URL: https://issues.jboss.org/browse/WFLY-11116
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 14.0.1.Final, 12.0.0.Final, 13.0.0.Final, 15.0.0.Final
> Reporter: ziad saade
> Assignee: Paul Ferraro
> Priority: Critical
>
> I have two Servlets Book and BookPreview the attribute is set in Book Servlet as follow:
>
> Book.java
> TestBean testBean=null;
> if(session.getAttribute("testBean")!=null)
> testBean = (TestBean)session.getAttribute("testBean");
> else{
> testBean=new TestBean();
> session.setAttribute("testBean",testBean);
> }
> testBean.setAmount("10");
>
> response.sendRedirect("BookPreview");
>
>
> The session attribute can be retrieved and the page is loaded normally and the Amount value is displayed however when submitting the form (Post Action in BookPreview.java) Null Pointer exception is generated.
>
> BookPreview.java
>
> TestBean testBean = (TestBean)session.getAttribute("testBean");
> String amount = testBean.getAmount; //Null pointer exception when submitting the form
>
> <form method="Post" action="BookPreview">
>
> </form>
>
> TestBean.java
>
> public class TestBean implements java.io.Serializable {
>
> private static final long serialVersionUID = 1L;
> private String amount;
>
> public String getAmount() {
> return amount;
> }
>
> public void setAmount(String amount) {
> this.amount = amount;
> }
> }
>
> Kindly advice how to fix the problem at the level of the server configuration.
> PS: I am not getting the exception when deploying the same application under other J EE application servers (Tomcat....)
>
> Thanks and Best Regards
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 1 month
[JBoss JIRA] (WFLY-11116) Wildfly 12.0.0 Final Delay in Getting the Value Attributes of the Session Variables (Result in Null Pointer Exception)
by Paul Ferraro (Jira)
[ https://issues.jboss.org/browse/WFLY-11116?page=com.atlassian.jira.plugin... ]
Paul Ferraro commented on WFLY-11116:
-------------------------------------
Not really. Authentication and user sessions are not intrinsically related - though the server may use the HttpSession to store the user principal.
> Wildfly 12.0.0 Final Delay in Getting the Value Attributes of the Session Variables (Result in Null Pointer Exception)
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-11116
> URL: https://issues.jboss.org/browse/WFLY-11116
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 14.0.1.Final, 12.0.0.Final, 13.0.0.Final, 15.0.0.Final
> Reporter: ziad saade
> Assignee: Paul Ferraro
> Priority: Critical
>
> I have two Servlets Book and BookPreview the attribute is set in Book Servlet as follow:
>
> Book.java
> TestBean testBean=null;
> if(session.getAttribute("testBean")!=null)
> testBean = (TestBean)session.getAttribute("testBean");
> else{
> testBean=new TestBean();
> session.setAttribute("testBean",testBean);
> }
> testBean.setAmount("10");
>
> response.sendRedirect("BookPreview");
>
>
> The session attribute can be retrieved and the page is loaded normally and the Amount value is displayed however when submitting the form (Post Action in BookPreview.java) Null Pointer exception is generated.
>
> BookPreview.java
>
> TestBean testBean = (TestBean)session.getAttribute("testBean");
> String amount = testBean.getAmount; //Null pointer exception when submitting the form
>
> <form method="Post" action="BookPreview">
>
> </form>
>
> TestBean.java
>
> public class TestBean implements java.io.Serializable {
>
> private static final long serialVersionUID = 1L;
> private String amount;
>
> public String getAmount() {
> return amount;
> }
>
> public void setAmount(String amount) {
> this.amount = amount;
> }
> }
>
> Kindly advice how to fix the problem at the level of the server configuration.
> PS: I am not getting the exception when deploying the same application under other J EE application servers (Tomcat....)
>
> Thanks and Best Regards
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 1 month
[JBoss JIRA] (DROOLS-1790) [Guided Decision Table] Row Expander page throws NPE with dependent enumerations
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-1790?page=com.atlassian.jira.plugi... ]
Jozef Marko closed DROOLS-1790.
-------------------------------
Resolution: Rejected
Closing this issue. It is not a bug. It is not reported by a customer. The component is not actively developed anymore.
> [Guided Decision Table] Row Expander page throws NPE with dependent enumerations
> --------------------------------------------------------------------------------
>
> Key: DROOLS-1790
> URL: https://issues.jboss.org/browse/DROOLS-1790
> Project: Drools
> Issue Type: Bug
> Components: Guided Decision Table Editor
> Affects Versions: 7.1.0.Final
> Reporter: Michael Anstis
> Assignee: Michael Anstis
> Priority: Major
>
> If you have a model with "dependent enumerations" defined the "Row Expander" page of the "New Guided Decision Table" Wizard throws a NPE. The workaround is to untick the "Expand all" checkbox before clicking "Finish". The "New Guided Decision Table" Wizard should ideally expand correctly for dependent enumerations or, at the very least, not throw the NPE!
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 1 month
[JBoss JIRA] (DROOLS-1852) Guided decision table: "Value Lists" should be created with list widget rather than separating with commas
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-1852?page=com.atlassian.jira.plugi... ]
Jozef Marko closed DROOLS-1852.
-------------------------------
Resolution: Rejected
Closing this issue. It is not a bug. It is not reported by a customer. The component is not actively developed anymore.
> Guided decision table: "Value Lists" should be created with list widget rather than separating with commas
> ----------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-1852
> URL: https://issues.jboss.org/browse/DROOLS-1852
> Project: Drools
> Issue Type: Feature Request
> Components: Guided Decision Table Editor
> Affects Versions: 5.5.0.Final
> Reporter: Michael Anstis
> Assignee: Guilherme Gomes
> Priority: Minor
>
> A list of possible values are defined by typing literal values separated by commas into a TextBox. This should be changed to use a new widget that allows a list of values to be created, with the value editor being correct for the field's data-type. This widget will also need to be used in the Wizard.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 1 month
[JBoss JIRA] (DROOLS-1923) Guided rule editor: When the operator is "in" or "not in" values should be created with list widget rather than separating with commas
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-1923?page=com.atlassian.jira.plugi... ]
Jozef Marko closed DROOLS-1923.
-------------------------------
Resolution: Rejected
Closing this issue. It is not a bug. It is not reported by a customer. The component is not actively developed anymore.
> Guided rule editor: When the operator is "in" or "not in" values should be created with list widget rather than separating with commas
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-1923
> URL: https://issues.jboss.org/browse/DROOLS-1923
> Project: Drools
> Issue Type: Feature Request
> Components: Guided Rule Editor, Guided Template Editor
> Affects Versions: 5.5.0.Final
> Reporter: Michael Anstis
> Assignee: Guilherme Gomes
> Priority: Minor
>
> When the operator is "in" or "not in" the list of values (for types other than enums) are defined by typing literal values separated by commas into a TextBox. This should be changed to use a new widget that allows a list of values to be created, with the value editor being correct for the field's data-type. This widget will also need to be used in the Template Data grid when the list is defined as a template key.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 1 month
[JBoss JIRA] (DROOLS-1831) Guided decision table: When the operator is "in" or "not in" values should be created with list widget rather than separating with commas
by Jozef Marko (Jira)
[ https://issues.jboss.org/browse/DROOLS-1831?page=com.atlassian.jira.plugi... ]
Jozef Marko closed DROOLS-1831.
-------------------------------
Resolution: Rejected
Closing this issue. It is not a bug. It is not reported by a customer. The component is not actively developed anymore.
> Guided decision table: When the operator is "in" or "not in" values should be created with list widget rather than separating with commas
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-1831
> URL: https://issues.jboss.org/browse/DROOLS-1831
> Project: Drools
> Issue Type: Feature Request
> Components: Guided Decision Table Editor
> Affects Versions: 5.5.0.Final
> Reporter: Michael Anstis
> Assignee: Guilherme Gomes
> Priority: Minor
>
> When the operator is "in" or "not in" the list of values (for types other than enums) are defined by typing literal values separated by commas into a TextBox. This should be changed to use a new widget that allows a list of values to be created, with the value editor being correct for the field's data-type. This widget will also need to be used to define Default Values, the Wizard and Limited Entry types.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 1 month