DEV Community

Cover image for atmosphere-kafka problem very hard
costaluisa
costaluisa

Posted on

atmosphere-kafka problem very hard

Hi to all.
I have a problem with atmopshere-kafka and i'm desperate.

I'm trying to use atmosphere-kafka lib for balancing 2 tomcat.
I added this dependency to the my pom.xml.

org.atmosphere
atmosphere-kafka
2.5.2

in place of

org.atmosphere
atmosphere-runtime
2.5.4

With the second dependency i don't have problem.

I commit my file with change here.
https://github.com/costaluisa/costaluisa

The problem, as you can see from the attached image, is that the AtmosphereResources is lost due to a null pointer in the AtmosphereResourceImpl.notifyListeners method that causes the removal of the resource, and being sent in the DefaultBroadcaster.deliverPush method, line 658, the resource is empty [].

Without lib kafka this not a problem.
From the attached files do you see any configuration missing or incorrect?

I use kafka e zookeeper service in windows (they run correctly)

Can you help me?
thank
Marco

Top comments (0)