[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 ziad saade (Jira)
[ https://issues.jboss.org/browse/WFLY-11116?page=com.atlassian.jira.plugin... ]
ziad saade commented on WFLY-11116:
-----------------------------------
Dear Paul
I noticed that the problem is only with Session Bean variables (session.getAttribute("testBean") ) where other Session variable are passing correctly,
Note that in the provided example there only two variable in the testBean however in the reproduced scenario there's 30 variables, which causing the load delay.
Best Regards
> 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-3875) Executable model - Invalid packages loaded for classpath container
by Olli Johnson (Jira)
[ https://issues.jboss.org/browse/DROOLS-3875?page=com.atlassian.jira.plugi... ]
Olli Johnson updated DROOLS-3875:
---------------------------------
Steps to Reproduce:
Create a simple multi-module project like that attached, where there are multiple kjar modules.
Build this without the executable model (mvn clean install -DgenerateModel=NO), create the classpath container and print the produced bases and packages (e.g. run as mvn -f modA/pom.xml -q -e exec:java -Dexec.mainClass=olijohns.Run). Observe the expected output:
{code:java}
BASE: modC
PACKAGE: olijohns.modC
FACTTYPE: olijohns.modC.FactC
BASE: modB
PACKAGE: olijohns.modB
FACTTYPE: olijohns.modB.FactB
BASE: modA
PACKAGE: olijohns.modA
FACTTYPE: olijohns.modA.FactA
{code}
Repeat the process but with the executable model (-DgenerateModel=YES) and observe the invalid output:
{code:java}
BASE: modC
BASE: modB
PACKAGE: olijohns.modA
FACTTYPE: olijohns.modA.FactA
BASE: modA
PACKAGE: olijohns.modA
FACTTYPE: olijohns.modA.FactA
{code}
was:
Create a simple multi-module project like that attached, where there are multiple kjar modules.
Build this without the executable model (mvn clean install -DgenerateModel=NO), create the classpath container and print the produced bases and packages. Observe the expected output:
{code:java}
BASE: modC
PACKAGE: olijohns.modC
FACTTYPE: olijohns.modC.FactC
BASE: modB
PACKAGE: olijohns.modB
FACTTYPE: olijohns.modB.FactB
BASE: modA
PACKAGE: olijohns.modA
FACTTYPE: olijohns.modA.FactA
{code}
Repeat the process but with the executable model (-DgenerateModel=YES) and observe the invalid output:
{code:java}
BASE: modC
BASE: modB
PACKAGE: olijohns.modA
FACTTYPE: olijohns.modA.FactA
BASE: modA
PACKAGE: olijohns.modA
FACTTYPE: olijohns.modA.FactA
{code}
> Executable model - Invalid packages loaded for classpath container
> ------------------------------------------------------------------
>
> Key: DROOLS-3875
> URL: https://issues.jboss.org/browse/DROOLS-3875
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.19.0.Final, 7.20.0.Final
> Reporter: Olli Johnson
> Assignee: Luca Molteni
> Priority: Blocker
> Attachments: drools-classpath-error.zip
>
>
> When building and running a maven multi-module project using several kjar modules the class-path container is incorrect and differs from the container created when not built with the executable model.
> See steps to reproduce and attached project.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 1 month