I m migrating from PF 4.0.x to PF 5 RC1 and trying to get my hands around showcase chat example. But I m getting NPE at ChatView.java line 20.
Code: Select all
private final EventBus eventBus = EventBusFactory.getDefault().eventBus();
Code: Select all
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.rcent.sample.ChatView]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1000)
... 118 more
Caused by: java.lang.NullPointerException
at com.rcent.sample.ChatView.<init>(ChatView.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
... 120 more
Also I have the dependency for atmosphere 2.1.3 runtime with PF 5 RC1 in my pom for trying out this sample. Is there any other dependency that is needed specifically for push to work ?
Please share your thoughts.
Regards
Priyaesh.