PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
Howard
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
-
- Posts: 4
- Joined: 17 Jan 2013, 12:06
Just experienced the same issue (immediately after updating from 5.1 to 5.2). The documentation does not indicate any breaking changes from 5.1 to 5.2.
If you've found a solution, please let us know.
If you've found a solution, please let us know.
-
- Posts: 4
- Joined: 17 Jan 2013, 12:06
Updating the atmosphere-runtime module did not resolve the issue. With, 2.3.0-RC6 (latest as of this writing), the NPE continues to be thrown.
Unfortunetly this makes 5.2 unstable for me - probably i will have to wait until 5.3 beacuse i don't have pro account - unless some work around will be found or some 5.2.1 will be community avaliable
Glassfish Application Server V3.1.2.2
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20
I had the same problem. what I did was to put these lines in my web.xml and then place my xhtml file under primepush folder.
P.S I am using wildfly 8.2-Final.
I hope it helps.
Regards,
Code: Select all
<servlet-name>PrimePushServlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<init-param>
<param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
<param-value>org.atmosphere.cache.UUIDBroadcasterCache</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>PrimePushServlet</servlet-name>
<url-pattern>/primepush/*.xhtml</url-pattern>
</servlet-mapping>
I hope it helps.
Regards,
-
- Posts: 30
- Joined: 29 Nov 2012, 09:13
All I needed to do when I upgraded was to change the following:
to this:
In other words I added
Code: Select all
<servlet>
<servlet-name>Push Servlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<init-param>
<param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
<param-value>org.atmosphere.cache.UUIDBroadcasterCache</param-value>
</init-param>
<async-supported>true</async-supported>
</servlet>
Code: Select all
<servlet>
<servlet-name>Push Servlet</servlet-name>
<servlet-class>org.primefaces.push.PushServlet</servlet-class>
<init-param>
<param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
<param-value>org.atmosphere.cache.UUIDBroadcasterCache</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
In other words I added
Code: Select all
<load-on-startup>1</load-on-startup>
primefaces-5.2
primefaces-extensions-3.2.0
atmosphere-runtime-2.3.4
Mojarra 2.2.6
wildfly-8.1.0.Final
primefaces-extensions-3.2.0
atmosphere-runtime-2.3.4
Mojarra 2.2.6
wildfly-8.1.0.Final
-
- Posts: 7
- Joined: 18 Nov 2016, 00:29
This has not worked for me with Primefaces 6.0 and Atmosphere 2.4.8
-
- Information
-
Who is online
Users browsing this forum: No registered users and 22 guests