PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

UI Components for JSF
smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

24 Mar 2015, 19:49

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

tricky10
Posts: 79
Joined: 25 Oct 2010, 08:52
Location: Poland

10 Apr 2015, 09:14

I would like to confirm null pointer
Glassfish Application Server V3.1.2.2
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20

InaLandFarAway
Posts: 4
Joined: 17 Jan 2013, 12:06

11 Apr 2015, 00:19

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.

InaLandFarAway
Posts: 4
Joined: 17 Jan 2013, 12:06

11 Apr 2015, 00:32

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.

tricky10
Posts: 79
Joined: 25 Oct 2010, 08:52
Location: Poland

12 Apr 2015, 09:13

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

meysamabl
Posts: 1
Joined: 27 Jun 2013, 07:35

05 May 2015, 17:59

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.

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>
P.S I am using wildfly 8.2-Final.

I hope it helps.

Regards,

offroadbiker
Posts: 30
Joined: 29 Nov 2012, 09:13

12 Jun 2015, 21:31

All I needed to do when I upgraded was to change the following:

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>
to this:

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

MarcelCH
Posts: 1
Joined: 12 Jul 2014, 02:33

16 Sep 2015, 22:26

Hi!
I have add <load-on-startup>1</load-on-startup> in the web.xml and it work. but when i refresh the page lost the push connection.
Does anyone know why this happens? and what is the solution?

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

21 Sep 2015, 17:30

how this question related to the original post?

djanthony93
Posts: 7
Joined: 18 Nov 2016, 00:29

19 Nov 2016, 03:21

This has not worked for me with Primefaces 6.0 and Atmosphere 2.4.8

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests