Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha2
-
Fix Version/s: 2.0-Alpha3, 2.0.0
-
Component/s: Framework
-
Labels:None
-
Environment:jsf2.0, ICEfaces2, compat jars, JBoss 6.0 M2
Description
Progress example of compat showcase throws exception to server log:-
13:42:52,782 ERROR [STDERR] Exception in thread "pool-5-thread-1" java.lang.RuntimeException: FacesContext is not present for thread Thread[pool-5-thread-1,5,jboss]
13:42:52,810 ERROR [STDERR] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:122)
13:42:52,810 ERROR [STDERR] at org.icefaces.application.PushRenderer.render(PushRenderer.java:104)
13:42:52,810 ERROR [STDERR] at org.icefaces.application.showcase.view.bean.examples.component.progressBar.OutputProgressController$LongOperationRunner.run(OutputProgressController.java:132)
13:42:52,811 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
13:42:52,811 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
13:42:52,811 ERROR [STDERR] at java.lang.Thread.run(Thread.java:637)
13:42:52,782 ERROR [STDERR] Exception in thread "pool-5-thread-1" java.lang.RuntimeException: FacesContext is not present for thread Thread[pool-5-thread-1,5,jboss]
13:42:52,810 ERROR [STDERR] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:122)
13:42:52,810 ERROR [STDERR] at org.icefaces.application.PushRenderer.render(PushRenderer.java:104)
13:42:52,810 ERROR [STDERR] at org.icefaces.application.showcase.view.bean.examples.component.progressBar.OutputProgressController$LongOperationRunner.run(OutputProgressController.java:132)
13:42:52,811 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
13:42:52,811 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
13:42:52,811 ERROR [STDERR] at java.lang.Thread.run(Thread.java:637)
Since this is the "compat" component showcase, this use of PushRenderer should make use of SessionRenderer.
An alternative fix will be to use PortableRenderer (but this should be considered only if the above fails).