[JBoss JIRA] (RF-13731) NPE on Tomcat 7 after Ajax request
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13731?page=com.atlassian.jira.plugin.s... ]
Brian Leathem commented on RF-13731:
------------------------------------
[~jhuska] I followed your updated instructions, but I'm still not able to reproduce. I'm using Firefox 31.0 on Ubuntu with tomcat-7.0.40. I ran the browser in "private" mode to make sure I had an empty session.
Can you reproduce this on machines other than your own?
> NPE on Tomcat 7 after Ajax request
> ----------------------------------
>
> Key: RF-13731
> URL: https://issues.jboss.org/browse/RF-13731
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.5.0.Alpha3
> Environment: Tomcat 7 and Firefox only
> Reporter: Juraj Húska
> Fix For: 4.5.0.Beta1
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> There is a NPE thrown after an AJAX request in either showcase (showcase can be deployed only when {{weld-servlet.jar}} is changed manually to higher version - RF-13725) or in Metamer:
> {code}
> SEVERE: java.lang.NullPointerException
> at org.richfaces.application.GlobalResourcesViewHandler.addSkinningResourcesToViewRoot(GlobalResourcesViewHandler.java:148)
> at org.richfaces.application.GlobalResourcesViewHandler.restoreView(GlobalResourcesViewHandler.java:179)
> at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:353)
> at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:197)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:121)
> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
> at org.richfaces.demo.arrangeablemodel.PersistenceLifecycle.execute(PersistenceLifecycle.java:58)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(RewriteFilter.java:172)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> {code}
> Exception is being thrown only after initial page load, after refresh it works.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 4 months
[JBoss JIRA] (RF-13769) placeholder with empty @selector renders twice
by Michal Petrov (JIRA)
[ https://issues.jboss.org/browse/RF-13769?page=com.atlassian.jira.plugin.s... ]
Michal Petrov commented on RF-13769:
------------------------------------
The pre-rendering happens because the components that don't render children wouldn't render the placeholder in the first place. We need to cancel the second rendering during {{RendererBase.encodeEnd}} but it's a final method so we cannot override it. It jumps straight into {{PlaceholderRender.doEncodeEnd}} which is the CDK-generated method (and we need it for the first rendering). I am not sure where to insert the check.
> placeholder with empty @selector renders twice
> ----------------------------------------------
>
> Key: RF-13769
> URL: https://issues.jboss.org/browse/RF-13769
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.5.0.Alpha3
> Reporter: Michal Petrov
> Fix For: 4.5.0.Beta1
>
>
> {code}
> <component>
> <rich:placeholder>
> </component>
> {code}
> will result in
> {code}
> <span> … placeholder JS code … </span>
> <element>
> <span> … placeholder JS code … </span>
> </element>
> {code}
> Doesn't affect components that don't render children (eg. inputText).
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 4 months
[JBoss JIRA] (RF-13769) placeholder with empty @selector renders twice
by Michal Petrov (JIRA)
Michal Petrov created RF-13769:
----------------------------------
Summary: placeholder with empty @selector renders twice
Key: RF-13769
URL: https://issues.jboss.org/browse/RF-13769
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.5.0.Alpha3
Reporter: Michal Petrov
Fix For: 4.5.0.Beta1
{code}
<component>
<rich:placeholder>
</component>
{code}
will result in
{code}
<span> … placeholder JS code … </span>
<element>
<span> … placeholder JS code … </span>
</element>
{code}
Doesn't affect components that don't render children (eg. inputText).
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 4 months
[JBoss JIRA] (RF-13767) Consolidate the RichFaces docs into a single document
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13767?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13767:
-------------------------------
Sprint: 4.5.0.Beta1 - Doc Sprint
> Consolidate the RichFaces docs into a single document
> -----------------------------------------------------
>
> Key: RF-13767
> URL: https://issues.jboss.org/browse/RF-13767
> Project: RichFaces
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: doc
> Reporter: Brian Leathem
> Fix For: 4.5.0.Beta1
>
> Original Estimate: 2 hours
> Remaining Estimate: 2 hours
>
> There is much duplication and ambiguity between the _Component Reference_ and the _Developer Guide_, we would benefit from consolidating the guides into a single document.
> At the same time we can consider dropping the docbook-based pressgang workflow and adopting a simpler asciidoc -> html approach.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 4 months
[JBoss JIRA] (RF-13768) Tests for inplaceInput and inplaceSelect renderer failing
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13768?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13768:
-------------------------------
Sprint: 4.5.0.Beta1 - Upgrade Sprint
> Tests for inplaceInput and inplaceSelect renderer failing
> ---------------------------------------------------------
>
> Key: RF-13768
> URL: https://issues.jboss.org/browse/RF-13768
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input, resource handling
> Affects Versions: 4.5.0.Alpha3
> Reporter: Pavol Pitonak
> Priority: Blocker
> Fix For: 4.5.0.Beta1
>
> Original Estimate: 15 minutes
> Remaining Estimate: 15 minutes
>
> Two tests for inplace input and inplace select started failing. Investigate if the change in rendered HTML is expected.
> {code}
> InplaceInputRendererTest.testDefaultWithControlsEncode:29->InplaceRendererTestBase.doTestDefaultWithControlsEncode:29->RendererTestBase.doTest:91->RendererTestBase.checkXmlStructure:114 XML was not similar:org.custommonkey.xmlunit.Diff
> [different] Expected attribute value '/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif' but was '/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces' - comparing <input src="/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src to <input src="/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src
> {code}
> {code}
> InplaceSelectRendererTest.testDefaultWithControlsEncode:32->InplaceRendererTestBase.doTestDefaultWithControlsEncode:29->RendererTestBase.doTest:91->RendererTestBase.checkXmlStructure:114 XML was not similar:org.custommonkey.xmlunit.Diff
> [different] Expected attribute value '/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif' but was '/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces' - comparing <input src="/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src to <input src="/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 4 months
[JBoss JIRA] (RF-13768) Tests for inplaceInput and inplaceSelect renderer failing
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13768?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13768:
-------------------------------
Original Estimate: 15 minutes
Remaining Estimate: 15 minutes
> Tests for inplaceInput and inplaceSelect renderer failing
> ---------------------------------------------------------
>
> Key: RF-13768
> URL: https://issues.jboss.org/browse/RF-13768
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input, resource handling
> Affects Versions: 4.5.0.Alpha3
> Reporter: Pavol Pitonak
> Priority: Blocker
> Fix For: 4.5.0.Beta1
>
> Original Estimate: 15 minutes
> Remaining Estimate: 15 minutes
>
> Two tests for inplace input and inplace select started failing. Investigate if the change in rendered HTML is expected.
> {code}
> InplaceInputRendererTest.testDefaultWithControlsEncode:29->InplaceRendererTestBase.doTestDefaultWithControlsEncode:29->RendererTestBase.doTest:91->RendererTestBase.checkXmlStructure:114 XML was not similar:org.custommonkey.xmlunit.Diff
> [different] Expected attribute value '/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif' but was '/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces' - comparing <input src="/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src to <input src="/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src
> {code}
> {code}
> InplaceSelectRendererTest.testDefaultWithControlsEncode:32->InplaceRendererTestBase.doTestDefaultWithControlsEncode:29->RendererTestBase.doTest:91->RendererTestBase.checkXmlStructure:114 XML was not similar:org.custommonkey.xmlunit.Diff
> [different] Expected attribute value '/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif' but was '/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces' - comparing <input src="/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src to <input src="/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 4 months
[JBoss JIRA] (RF-13768) Tests for inplaceInput and inplaceSelect renderer failing
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13768?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13768:
-------------------------------
Fix Version/s: 4.5.0.Beta1
> Tests for inplaceInput and inplaceSelect renderer failing
> ---------------------------------------------------------
>
> Key: RF-13768
> URL: https://issues.jboss.org/browse/RF-13768
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input, resource handling
> Affects Versions: 4.5.0.Alpha3
> Reporter: Pavol Pitonak
> Priority: Blocker
> Fix For: 4.5.0.Beta1
>
>
> Two tests for inplace input and inplace select started failing. Investigate if the change in rendered HTML is expected.
> {code}
> InplaceInputRendererTest.testDefaultWithControlsEncode:29->InplaceRendererTestBase.doTestDefaultWithControlsEncode:29->RendererTestBase.doTest:91->RendererTestBase.checkXmlStructure:114 XML was not similar:org.custommonkey.xmlunit.Diff
> [different] Expected attribute value '/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif' but was '/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces' - comparing <input src="/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src to <input src="/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src
> {code}
> {code}
> InplaceSelectRendererTest.testDefaultWithControlsEncode:32->InplaceRendererTestBase.doTestDefaultWithControlsEncode:29->RendererTestBase.doTest:91->RendererTestBase.checkXmlStructure:114 XML was not similar:org.custommonkey.xmlunit.Diff
> [different] Expected attribute value '/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif' but was '/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces' - comparing <input src="/org.richfaces.resources/javax.faces.resource/org.richfaces/ico_ok.gif"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src to <input src="/javax.faces.resource/ico_ok.gif.jsf?ln=org.richfaces"...> at /span[1]/span[2]/span[1]/span[1]/span[1]/span[5]/input[1]/@src
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 4 months