atmosphere

HTTP Request returns 200 OK but no content in response

无人久伴 提交于 2019-12-09 09:35:35
问题 In developing a particular web site, I have an intermittent issue when loading the site in Firefox (haven't been able to compare in IE or Chrome). The site loads several javascript files, css stylesheets, images, etc. Occasionally, one or more of the files fail to load properly. The response indicates a status of 200 OK, but the content-length indicates 0. This happens on different files at different times. When it is a javascript file that fails to load, the site does not function properly,

Atmosphere socket established but no data being received/sent

好久不见. 提交于 2019-12-09 07:43:28
I am following the Atmosphere tutorial to get a basic chat application setup. Currently when running the javascript, it appears to be able to establish a connection to the server using web sockets. I get the following in the Chrome console: Invoking executeWebSocket core.js:2298 Using URL: ws://localhost:8080/web-transport/chat?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json core.js:2298 Websocket successfully opened However, when I attempt to publish data (subSocket.push(...)) nothing seems to happen. I have

Wicket atmosphere initialization exception

为君一笑 提交于 2019-12-08 18:06:32
I have the following setup: wicket: 6.1.0 wicket-atmosphere: 0.4 (via Maven) On Application.init() I get a NullPointerException during instantiation of EventBus new EventBus(this); Exception: java.lang.NullPointerException at org.apache.wicket.atmosphere.EventBus.<init>(EventBus.java:105) This is caused because the method public synchronized static BroadcasterFactory getDefault() delivers null (the protected static member "factory" is not initialized). How do I use Wicket/Atmosphere properly? Did I forget something to initialize? I'm starting Wicket as a ServletFilter. <filter> <filter-name

not able to get broadcast on WebSocketHandlerAdapter

那年仲夏 提交于 2019-12-08 13:17:19
问题 I'm building a websocket proof of concept based on atmosphere. Created a javascript client that subscribes to 2 channels, and created thread on the server that creates two broadcasters and keep sending data to then, but I'm not able to get the data on the client. Is there a way to check if the messages are getting stuck on the server side or client side ? Am I dropping the ball somewhere ? :) This is what I have until now : PublishServerState - create the broadcasters and send message import

Wicket atmosphere initialization exception

依然范特西╮ 提交于 2019-12-08 07:51:36
问题 I have the following setup: wicket: 6.1.0 wicket-atmosphere: 0.4 (via Maven) On Application.init() I get a NullPointerException during instantiation of EventBus new EventBus(this); Exception: java.lang.NullPointerException at org.apache.wicket.atmosphere.EventBus.<init>(EventBus.java:105) This is caused because the method public synchronized static BroadcasterFactory getDefault() delivers null (the protected static member "factory" is not initialized). How do I use Wicket/Atmosphere properly?

MultivaluedMap exception

℡╲_俬逩灬. 提交于 2019-12-08 04:08:51
问题 I am trying to run one sample of atmosphere but when i run the Restful web services its giving me following error , i guess because of following code its generating error , i don't know what is wrong i am using glassfish 3 and Netbeans IDE , here is the sample link @Broadcast({XSSHtmlFilter.class, JsonpFilter.class}) @Consumes("application/x-www-form-urlencoded") @POST public String publishMessage(MultivaluedMap<String, String> form) { String action = form.getFirst("action"); String name =

How do I configure Tomcat and HAProxy to work with the WebSocket Framework Atmosphere?

≯℡__Kan透↙ 提交于 2019-12-07 14:32:47
问题 I have a Java application running on Tomcat7, which uses the Atmosphere Framework. Atmosphere is a Websocket Framework. I used a sample application from the Atmosphere Sample Chat. My problem is that I did not get the connectors as well as the proper configuration for my Websocket Atmosphere application running. The questions I have are: How do I have to configure my HAProxy? How do I have to configure my Tomcat server? How do I have to configure Tomcat for APR and for the NIO connector? Do I

Scala - how to go resolve “Value is not a member of Nothing” error

こ雲淡風輕ζ 提交于 2019-12-07 06:56:10
问题 This example code is based on Atmosphere classes, but if someone could give me some insights into what the error means in general, I think I can figure out any Atmosphere-specific solution... val bc = BroadcasterFactory.getDefault().lookup(_broadcasterId) bc.broadcast(message) After the first line, bc should contain a handle to an object whose class definition includes the method broadcast() -- in fact, it contains several overloaded variations. However, the compiler chokes on the second line

Atmosphere can't get session on Glassfish 3.1.2

╄→尐↘猪︶ㄣ 提交于 2019-12-06 13:14:32
问题 I got the chat example working from Atmosphere, and now I want to get the session, but I get a null pointer exception. My configuration: GlassFish 3.1.2 Atmosphere 1.0.0-SNAPSHOT My ChatAtmosphereHandler.java file: @Override public void onRequest(AtmosphereResource r) throws IOException { AtmosphereRequest req = r.getRequest(); // First, tell Atmosphere to allow bi-directional communication by suspending. if (req.getMethod().equalsIgnoreCase("GET")) { /* ------- ADDED LINES BY ME ------- */

Broadcasting to a subset of subscribers in Atmosphere

社会主义新天地 提交于 2019-12-06 09:32:09
问题 What I'm trying to do: Be able to have users subscribed to a number of different 'chat rooms' and use reverse AJAX / comet to send messages from a chat room to everyone logged into that room. (a bit more complicated but this is a similar use case). What I'm doing: Using Grails with JMS and Atmosphere. When a message is sent, I'm using JMS to send the message object which is received by a Grails service which is then broadcasted to the atmosphere URL (i.e. atmosphere/messages). Obviously JMS