PFPush Counter Showcase Null-Pointer Exception

UI Components for JSF
Post Reply
mStarlinger
Posts: 1
Joined: 05 Jan 2016, 09:52

18 Jan 2016, 12:53

Hi everybody,

I am trying to do the PFPush Counter Showcase (http://www.primefaces.org/showcase/push/counter.xhtml), but I always get a Null-Pointer-Exception in the following Code:

Code: Select all

EventBus eventBus = EventBusFactory.getDefault().eventBus();
        eventBus.publish("/counter", String.valueOf(count));
I am using PrimeFaces-5.3, Mojarra-2.2.8 and Atmosphere-2.4.2

Any ideas?

The Showcase is implemented with PrimeFaces-5.3.4. Is there any difference to PrimeFaces 5.3?

Thanks in advance,

Mario

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

20 Jan 2016, 20:54

Recommendation: search and read topics in this (Push) forum, because someone else may have experienced this error and provided/recommended a workaround/solution already.
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

Houdre
Posts: 12
Joined: 29 Apr 2013, 12:22

05 Feb 2016, 14:35

This was our issue with PF 5.3 and Atmosphere 2.4.2: http://forum.primefaces.org/viewtopic.p ... 10#p138020

I also wrote how we did the workaround if it will help you.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests