HotswapProjects / HotswapAgent

Java unlimited redefinition of classes at runtime.
GNU General Public License v2.0
2.28k stars 487 forks source link

javax.el.PropertyNotFoundException in xhtml #358

Open Sindhuja1295 opened 4 years ago

Sindhuja1295 commented 4 years ago

Dear Team,

Java verson: jdk1.8.0_191 DCEVM - 181 version Hotswap-agent- 1.4 snapshot.jar

Issue:

  1. Creating boolean variable in Model java class.

    private boolean sampletest; public boolean isTestsample() { return testsample; }

    public void setTestsample(boolean testsample) { this.testsample = testsample; }

  2. Using this variable in xhtml as below,

<p:commandButton id="MAB_samplesearchbtn" icon="fa fa-search" rendered ="true" actionListener="#{MAB.ctrl.btnsampleClassSearchActionPerformed}" disabled="#{MAB.model.testsample}" />

  1. While am opening the module, am getting the below error,

16:38:21,992 ERROR [stderr] (default task-19) Caused by: javax.el.PropertyNotFoundException: The class 'com.svm.lrp.nfr.multiagencyModel.MABModel' does not have the property 'testsample'. 16:38:21,992 ERROR [stderr] (default task-19) at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:567) 16:38:21,992 ERROR [stderr] (default task-19) at javax.el.BeanELResolver.getValue(BeanELResolver.java:229) 16:38:21,992 ERROR [stderr] (default task-19) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) 16:38:21,992 ERROR [stderr] (default task-19) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) 16:38:21,992 ERROR [stderr] (default task-19) at com.sun.el.parser.AstValue.getValue(AstValue.java:139) 16:38:21,992 ERROR [stderr] (default task-19) at com.sun.el.parser.AstValue.getValue(AstValue.java:203) 16:38:21,992 ERROR [stderr] (default task-19) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:226) 16:38:21,992 ERROR [stderr] (default task-19) at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50) 16:38:21,992 ERROR [stderr] (default task-19) at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50) 16:38:21,993 ERROR [stderr] (default task-19) at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

skybber commented 4 years ago

Could you please open BeanELResolver.java using decompiler and send the content of method javax.el.BeanELResolver.getBeanProperty to help find out the problem? There are many implementations of BeanELResolver...

Sindhuja1295 commented 4 years ago

Dear Team,

Kindly find an attached el-api jar.

image

Regards, Sindhuja A J

----- Original Message -----

From: "Vladimir Dvorak" notifications@github.com To: "HotswapProjects/HotswapAgent" HotswapAgent@noreply.github.com Cc: "Sindhuja1295" sindhuja.j@solverminds.com, "Author" author@noreply.github.com Sent: Wednesday, July 8, 2020 5:17:26 PM Subject: Re: [HotswapProjects/HotswapAgent] javax.el.PropertyNotFoundException in xhtml (#358)

Could you please open BeanELResolver.java using decompiler and send the content of method javax.el.BeanELResolver.getBeanProperty to help find out the problem? There are many implementations of BeanELResolver...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or unsubscribe .

Sindhuja1295 commented 4 years ago

Kindly find the below image

image

skybber commented 4 years ago

it seems, we don't have support for this jbossEL version.

Sindhuja1295 commented 4 years ago

May i know, which el version of jboss it supports?

----- Original Message -----

From: "Vladimir Dvorak" notifications@github.com To: "HotswapProjects/HotswapAgent" HotswapAgent@noreply.github.com Cc: "Sindhuja1295" sindhuja.j@solverminds.com, "Author" author@noreply.github.com Sent: Wednesday, July 8, 2020 6:33:03 PM Subject: Re: [HotswapProjects/HotswapAgent] javax.el.PropertyNotFoundException in xhtml (#358)

it seems, we don't have support for this jbossEL version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or unsubscribe .

skybber commented 4 years ago

https://github.com/HotswapProjects/HotswapAgent/blob/master/plugin/hotswap-agent-el-resolver-plugin/src/main/java/org/hotswap/agent/plugin/elresolver/ELResolverPlugin.java#L60

Sindhuja1295 commented 4 years ago

Hi, am using below versions as mentioned in the above url,

image

though the same error occurs, kindly assist us for this issue!

Sindhuja1295 commented 4 years ago

Hi, any update on this!