Metamer - rich:dragSource, rich:dragIndicator, rich:dropTarget - setting attributes causes
NPE
----------------------------------------------------------------------------------------------
Key: RF-10057
URL:
https://issues.jboss.org/browse/RF-10057
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-drag/drop
Affects Versions: 4.0.0.Milestone5
Environment: * RichFaces 4.0.0-SNAPSHOT r.20682
* Metamer 4.0.0-SNAPSHOT r.20684
* Mojarra 2.0.3-FCS
* Apache Tomcat 6.0.29
* OpenJDK Runtime Environment 1.6.0_20-b20 @ Linux
* Firefox 1.9.2.13 @ Linux x86_64
Reporter: Lukas Fryc
The issue applies for all the following samples:
rich:dropTarget:
http://localhost:8080/metamer/faces/components/richDropTarget/simple.xhtml
rich:dragSource:
http://localhost:8080/metamer/faces/components/richDragSource/simple.xhtml
rich:dragIndicator:
http://localhost:8080/metamer/faces/components/richDragIndicator/simple.x...
Attached Facelets error page (exception.html).
The problem is that clientId is null in the following condition:
UIComponent:1275
public boolean invokeOnComponent(FacesContext context, String clientId,
ContextCallback callback) throws FacesException {
if (null == context || null == clientId || null == callback) {
throw new NullPointerException();
}
...
Stacktrace:
java.lang.NullPointerException
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1275)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:673)
at org.richfaces.renderkit.DropTargetRenderer.doDecode(DropTargetRenderer.java:38)
at org.richfaces.renderkit.RendererBase.decode(RendererBase.java:82)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:791)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1048)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1043)
at javax.faces.component.UIForm.processDecodes(UIForm.java:212)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1043)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1043)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1043)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:920)
at
com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:74)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira