You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an application with multiple instances of ScalatraServlet implementing AtmosphereSupport, the atmosphere internals will yield the following log messages:
12:12:27.406 [run-main-0] WARN org.atmosphere.cpr.Universe - More than one Universe configured. Universe class will gives wrong object reference org.atmosphere.cpr.ScalatraBroadcasterFactory@294d80e5
12:12:27.406 [run-main-0] WARN org.atmosphere.cpr.Universe - More than one Universe configured. Universe class will gives wrong object reference org.atmosphere.cpr.DefaultAtmosphereResourceFactory@6b169751
12:12:27.406 [run-main-0] WARN org.atmosphere.cpr.Universe - More than one Universe configured. Universe class will gives wrong object reference org.scalatra.atmosphere.ScalatraAtmosphereFramework@69a94550
As far as I can tell, this is due to the AtmosphereFramework being unconditionally initialized twice. Apparently the framework holds some global state in org.atmosphere.cpr.Universe which produces the log messages above.
When creating an application with multiple instances of
ScalatraServlet
implementingAtmosphereSupport
, the atmosphere internals will yield the following log messages:As far as I can tell, this is due to the
AtmosphereFramework
being unconditionally initialized twice. Apparently the framework holds some global state inorg.atmosphere.cpr.Universe
which produces the log messages above.Here's an example that reproduces the warning logs, based on the reference atmosphere app running on top of embedded Jetty:
CarlEkerot/scalatra-website-examples@41bcd20
I've bumped the versions to match the versions in the environment I saw the warning logs.
The text was updated successfully, but these errors were encountered: