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>