[
https://issues.jboss.org/browse/WFLY-11116?page=com.atlassian.jira.plugin...
]
Paul Ferraro commented on WFLY-11116:
-------------------------------------
{quote}the delay in loading the session variables is not happening at the level of the
session since i'm able to retrieve session variables of type int and String (Object
cased to int and String), the delay is only happening with session variables of object
type Serializable classes with getter and setter methods as shown in the example above
(public class TestBean ...............){quote}
OK. As I've mentioned several times on this thread, I was not able to reproduce your
issue given the code in the jira description. Please attach a full reproducer that
demonstrates the problem. Until then, I'm afraid I don't have sufficient
information to identify the cause.
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)