Page 1 of 2

PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 24 Mar 2015, 19:49
by smithh032772

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 10 Apr 2015, 09:14
by tricky10
I would like to confirm null pointer

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 11 Apr 2015, 00:19
by InaLandFarAway
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.

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 11 Apr 2015, 00:32
by InaLandFarAway
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.

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 12 Apr 2015, 09:13
by tricky10
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

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 05 May 2015, 17:59
by meysamabl
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,

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 12 Jun 2015, 21:31
by offroadbiker
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>

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 16 Sep 2015, 22:26
by MarcelCH
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?

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 21 Sep 2015, 17:30
by kukeltje
how this question related to the original post?

Re: PrimeFaces 5.2 - EventBusFactory.getDefault() is NULL

Posted: 19 Nov 2016, 03:21
by djanthony93
This has not worked for me with Primefaces 6.0 and Atmosphere 2.4.8