EventBusFactory throws NPE

UI Components for JSF
Post Reply
Nachtfalke
Posts: 3
Joined: 15 Apr 2014, 15:49

16 Apr 2014, 08:23

Hello there,

i am playing around a bit with the new push-component. I copied the sources from the showcase 'Counter' into my project. Testing it i got a NPE in GlobalCounterView.java, line 26. Debugging it, I discovered that EventBusFactory.getDefault() resolves to null. Does anyone have a hint where the problem might be? I am using the latest primefaces snapshot and atmosphere runtime 2.1.3. Maybe i missed some other dependency? Here is a snippet of my pom.xml:

Code: Select all

<dependency>
    <groupId>javax.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>2.1</version>
</dependency>
<dependency>
    <groupId>org.primefaces</groupId>
    <artifactId>primefaces</artifactId>
    <version>5.0-SNAPSHOT</version>
</dependency>
[...]
<dependency>
    <groupId>org.atmosphere</groupId>
    <artifactId>atmosphere-runtime</artifactId>
    <version>2.1.3</version>
</dependency>        
<dependency>
    <groupId>javax.inject</groupId>
    <artifactId>javax.inject</artifactId>
    <version>1</version>
</dependency>

jfarcand
Posts: 19
Joined: 02 Feb 2010, 20:23

17 Apr 2014, 11:44

Can you try with latest SNAPSHOT? I think you have a dependencies issue.

Nachtfalke
Posts: 3
Joined: 15 Apr 2014, 15:49

17 Apr 2014, 12:21

jfarcand wrote:Can you try with latest SNAPSHOT? I think you have a dependencies issue.
I checked out the latest sources of primefaces from svn and installed it into my local repository as version 5.0-SNAPSHOT. Or did you mean the latest snapshot of atmosphere?

jfarcand
Posts: 19
Joined: 02 Feb 2010, 20:23

23 Apr 2014, 23:51

The latest 5.0 SNAPSHOT. I've just tested and for me verything works fine.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests