[
https://issues.jboss.org/browse/FORGE-1415?page=com.atlassian.jira.plugin...
]
Esteve Aviles commented on FORGE-1415:
--------------------------------------
George,
You can clone
https://github.com/esteveavi/forge-test .
To reproduce the problem, remove errors configuration from web.xml and try to save the
entity 'Item' twice with the field 'name' with the same value. It will
cause a ConstraintViolationException as it is marked Unique. When you change the field
name to a different value you will get:
javax.servlet.ServletException: /item/create.xhtml @41,72
value="#{itemBean.item.name}": Target Unreachable, 'item' returned null
javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
root cause
javax.el.PropertyNotFoundException: /item/create.xhtml @41,72
value="#{itemBean.item.name}": Target Unreachable, 'item' returned null
com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:95)
javax.faces.component.UIInput.getConvertedValue(UIInput.java:1030)
javax.faces.component.UIInput.validate(UIInput.java:960)
javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
javax.faces.component.UIInput.processValidators(UIInput.java:698)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIForm.processValidators(UIForm.java:253)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1172)
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
Thanks in advance.
Target Unreachable, 'entityName' returned null after Bean
Validation failure
----------------------------------------------------------------------------
Key: FORGE-1415
URL:
https://issues.jboss.org/browse/FORGE-1415
Project: Forge
Issue Type: Bug
Affects Versions: 1.4.3.Final
Environment: JBossAS7.1
Reporter: Esteve Aviles
Hi,
When you want to persist a new entity through create.xhtml page and the information
produces a server side error then the error is show and when you fix it and try to summit
again an Exception occurs:
{noformat}
/view/operacio/inventariMobilePos/create.xhtml @50,58
value="#{inventariMobilePosBean.inventariMobilePos.codiTmb}": Target
Unreachable, 'inventariMobilePos' returned null
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira