PF5 RC1 - Push Showcase chat - EventBusFactory NPE..

UI Components for JSF
priyaesh
Posts: 26
Joined: 07 Feb 2011, 03:37

24 Apr 2014, 05:05

priyaesh

Primefaces 4, JSF 2.1, Spring 3.2, SpringSecurity 3, JPA 2.0, Tomcat 7

priyaesh
Posts: 26
Joined: 07 Feb 2011, 03:37

30 Apr 2014, 00:26

Hi JF.. Are you planning to wrap this by PF 5 Final (this week). Just thinking to wait for this fix or try the Atmosphere Spring class injection option that you have mentioned in the link.
priyaesh

Primefaces 4, JSF 2.1, Spring 3.2, SpringSecurity 3, JPA 2.0, Tomcat 7

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

30 Apr 2014, 09:48

If it is an RFE (as JF states) I most certainly hope this is nod added to an RC... RC is for bug fixing, not introducing new functionality

priyaesh
Posts: 26
Joined: 07 Feb 2011, 03:37

30 Apr 2014, 16:09

Oh is it ? I didnt understand what he refers to FCS..
jfarcand wrote:@priyaesh Please file an issue, I will make sure it works properly with Spring in 5.0 FCS
So then I will post the group after testing the option provided in the below and let you guys know..

https://github.com/Atmosphere/atmospher ... -Injection
priyaesh

Primefaces 4, JSF 2.1, Spring 3.2, SpringSecurity 3, JPA 2.0, Tomcat 7

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

30 Apr 2014, 16:22

priyaesh wrote:So then I will post the group after testing the option provided in the below and let you guys know..

https://github.com/Atmosphere/atmospher ... -Injection
+1 yes, do that, please.
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

priyaesh
Posts: 26
Joined: 07 Feb 2011, 03:37

11 Sep 2014, 05:43

Please note that the subject of this discussion topic is changed.

Okay.. Just wanted to update you (those who have this issue can benefit by following) on the latest development around the issue of unable to run basic PF push example counter & chat example in our application (CDI inject instead of ManagedBean).

https://code.google.com/p/primefaces/is ... %20Summary

The alternate (latest) option provided in url (https://github.com/Atmosphere/atmospher ... -Injection) didn't worked and JF (Atmosphere lead) would be helping to solve it.

The current error that we face is below.

WARN o.a.c.AtmosphereFramework.info No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache
ERROR o.p.p.PushServlet.configureFramework No Annotated class using @PushEndpoint found. Push will not work.

If any one have this scenario or facing this issue, please wait for some time.
priyaesh

Primefaces 4, JSF 2.1, Spring 3.2, SpringSecurity 3, JPA 2.0, Tomcat 7

bademba
Posts: 5
Joined: 25 Aug 2015, 11:23

13 Jan 2016, 12:31

Hi Guys, this is all I did in my web.xml. I added this to it.

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>
Pros
It eliminated the NEP at EventBusFactory and the chat app ran
Cons
.1st. It did not log me in when i clicked Login button
.2nd. It gave rise to another error again

Code: Select all

evere:   java.lang.NullPointerException
	at kchat.ChatUsers.contains(ChatUsers.java:43)
	at kchat.ChatView.login(ChatView.java:108)
ChatUser:43

Code: Select all

return this.users.contains(user);
ChatView;108

Code: Select all

if(users.contains(username)) {...}
I hope this sheds some light.
Primefaces 6.0 | Glassfish 4.1 | JSF 2.1 |Chrome 58.0
MySQL | Netbeans 8.0.2 |JavaEE | Atmosphere 2.4.2 |
Firefox 53.0.2

codercui
Posts: 1
Joined: 08 Nov 2015, 08:46

04 Nov 2016, 03:44

bademba wrote:Hi Guys, this is all I did in my web.xml. I added this to it.

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>
Pros
It eliminated the NEP at EventBusFactory and the chat app ran
Cons
.1st. It did not log me in when i clicked Login button
.2nd. It gave rise to another error again

Code: Select all

evere:   java.lang.NullPointerException
	at kchat.ChatUsers.contains(ChatUsers.java:43)
	at kchat.ChatView.login(ChatView.java:108)
ChatUser:43

Code: Select all

return this.users.contains(user);
ChatView;108

Code: Select all

if(users.contains(username)) {...}
I hope this sheds some light.
Thanks "bademba" so much! :D :D
Good boy. i was fix it 2 days, but it didnt work. i dont think it so easy -> Just coppy and paste to web.xml.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests