Caused by: javax.el.ELException: The identifier [new] is not a valid Java identifier as required by

本文分析了一个关于EL表达式中出现的javax.el.ELException异常,指出使用了关键字new作为标识符导致的问题,并提供了禁用检查的方法。

报错:

Caused by: javax.el.ELException: The identifier [new] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true.

原因是:使用了关键字new,在使用el表达式时,不要使用关键字或与保留字

<Aug 20 10:33:48> <Warning> <javax.enterprise.resource.webcontainer.jsf.lifecycle> <javax.el.PropertyNotFoundException: //data/wls/config/domains/lkm_domain1/servers/MS1/stage/LkmPmi/LkmPmi.ear/LkmPmi.war/WEB-INF/lib/EngBoardJsf.jar!/META-INF/resources/xhtml/drawcodeboard/ObliqueHole.xhtml @33,90 value="#{board_ObliqueHoleBean.orderNo}": Target Unreachable, identifier 'board_ObliqueHoleBean' resolved to null javax.faces.FacesException: javax.el.PropertyNotFoundException: //data/wls/config/domains/lkm_domain1/servers/MS1/stage/LkmPmi/LkmPmi.ear/LkmPmi.war/WEB-INF/lib/EngBoardJsf.jar!/META-INF/resources/xhtml/drawcodeboard/ObliqueHole.xhtml @33,90 value="#{board_ObliqueHoleBean.orderNo}": Target Unreachable, identifier 'board_ObliqueHoleBean' resolved to null at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:268) at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57) at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1308) at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:53) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:76) Truncated. see log file for complete stacktrace Caused By: javax.el.PropertyNotFoundException: //data/wls/config/domains/lkm_domain1/servers/MS1/stage/LkmPmi/LkmPmi.ear/LkmPmi.war/WEB-INF/lib/EngBoardJsf.jar!/META-INF/resources/xhtml/drawcodeboard/ObliqueHole.xhtml @33,90 value="#{board_ObliqueHoleBean.orderNo}": Target Unreachable, identifier 'board_ObliqueHoleBean' resolved to null at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:64) at org.primefaces.util.ComponentUtils.getConverter(ComponentUtils.java:152) at org.primefaces.renderkit.InputRenderer.getConvertedValue(InputRenderer.java:199) at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1105) at javax.faces.component.UIInput.validate(UIInput.java:1006) Truncated. see log file for complete stacktrace Caused By: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'board_ObliqueHoleBean' resolved to null at com.sun.el.parser.AstValue.getTarget(AstValue.java:149) at com.sun.el.parser.AstValue.getType(AstValue.java:61) at com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:177) at org.jboss.weld.module.web.el.WeldValueExpression.getType(WeldValueExpression.java:93) at org.jboss.weld.module.web.el.WeldValueExpression.getType(WeldValueExpression.java:93) Truncated. see log file for complete stacktrace > Aug 20, 2025 10:33:48 AM org.primefaces.application.exceptionhandler.PrimeExceptionHandler logException SEVERE: Target Unreachable, identifier 'board_ObliqueHoleBean' resolved to null
最新发布
08-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值