Skip to main content

Questions tagged [atmosphere]

The Asynchronous WebSocket/Comet Framework

atmosphere
Filter by
Sorted by
Tagged with
125 votes
9 answers
523k views

Can not deserialize instance of java.lang.String out of START_OBJECT token

I'm running into an issue where my deployable jar hits an exception that doesn't happen when I run this locally in IntelliJ. Exception: Receiving an event {id=2, socket=0c317829-69bf-43d6-b598-...
Ben's user avatar
  • 61.7k
45 votes
3 answers
98k views

Websocket frame size limitation

I'm sending huge chunks of JSON data through websockets. The JSON may have over 1000 entries. Due to the frame size limitation, the Websocket protocol automatically splits the JSON into frames, which ...
Gaurav Bhor's user avatar
  • 1,117
29 votes
1 answer
1k views

Ignore WebSocket connection in Spring Security SavedRequest

I have a Grails application with spring-security-core plugin and Atmosphere framework. If I log out from a page that has opened a WebSocket connection, then Spring Security keeps the URL of the ...
Aram Arabyan's user avatar
  • 2,349
16 votes
1 answer
16k views

How to design push notifications using Atmosphere

I want to use atmosphere to develop a notification System. I am very new to Atmosphere so apologies if I am wrong somewhere. What i understood is when a Actor publishes something I save the ...
Saurabh Kumar's user avatar
15 votes
7 answers
9k views

unable to add roles to user with meteor using 'roles' package

I'm trying to use the 'roles' package available on Atmosphere but I can't get it to work with Accounts.onCreateUser(), I can get the example on github. When I register a user, I want to add a role to ...
user1627990's user avatar
  • 2,605
15 votes
2 answers
33k views

A message body writer for Java class ... and MIME media type text/html was not found [duplicate]

I am using the jms/atmosphere framework to make communication between two applications. One of the applications is a message producer for a topic, sending custom objects of the following type: @...
mejas's user avatar
  • 297
13 votes
6 answers
26k views

Websockets connection failure on amazon ec2

I have a netty server running the atmosphere framework for a real-time notification system over websockets. The system works perfectly on my local machine, but when I deploy it on EC2, It just does ...
user371427's user avatar
13 votes
2 answers
60k views

HTTP Request returns 200 OK but no content in response

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 ...
pacifier21's user avatar
9 votes
2 answers
30k views

Tomcat crashes with error java.lang.OutOfMemoryError: GC overhead limit exceeded

After the tomcat ran several months, I got unexpectetly the error below. We restarted the tomcat and the error do not appear now but may be will come again in the future. I saw that another users had ...
Vesselin's user avatar
9 votes
2 answers
10k views

Websocket best practice for groups chat / one websocket for all groups or one websocket per group?

I have to implement a chat application using websocket, users will chat via groups, there can be thousands of groups and a user can be in multiple groups. I'm thinking about 2 solutions: [1] for each ...
Dzung BUI's user avatar
  • 188
9 votes
1 answer
1k views

Atmosphere: How to get logged in user from webSocket connection in Grails?

I am working on bringing WebSockets functionality to my Grails application. I use Atmosphere Meteor plugin 0.7.1 for this purpose. The workflow is simple: User logs in the system. User open page ...
Humanity's user avatar
  • 241
7 votes
3 answers
7k views

How to get Vaadin Push work through Apache HTTP server?

I'm trying to get Vaadin 7.1.5 Push to work on Apache Tomcat 7.0.42 + Apache HTTP server (2.2.14 with mod_proxy_wstunnel). The Vaadin application and push with WebSocket works fine when I access ...
miq's user avatar
  • 2,766
7 votes
1 answer
3k views

Websocket failed. Downgrading to Comet and resending

I am using Atmosphere framework 2.0.0.RC5 to extend my web application with websocket functionality and faced some strange error 'Websocket failed. Downgrading to Comet and resending', which I can't ...
Evgeny Tugarev's user avatar
7 votes
1 answer
1k views

Atmosphere Jersey - Server messages

Is it possible to let the server send messages to all connected clients without waiting for any action from them? Let me explain it :-) I've been reading the docs/examples and I have found nothing ...
jarandaf's user avatar
  • 4,407
6 votes
4 answers
8k views

Vaadin 7, Atmosphere and Server Push problems

I've started to build a project using the Maven archetype for Vaadin 7.2.4 and am getting a lot of errors thrown up relating to Atmosphere startup issues. As things stand, I won't be able to enable ...
rustproofFish's user avatar
6 votes
1 answer
3k views

Atmosphere: Multiple subscriptions over single HttpConnection

I'm using Atmosphere in my Spring MVC app to facilitate push, using a streaming transport. Throughout the lifecycle of my app, the client will subscribe and unsubscribe for many different topics. ...
Marty Pitt's user avatar
  • 29.1k
6 votes
1 answer
721 views

`mrt add` throws unknown error when installing Atmosphere packages with Vagrant on Windows

Using Vagrant ssh on Windows 7, mrt add scss (as an example) displays the following in the console: vagrant@vagrant:/vagrant/MyMeteorApp$ mrt add scss scss tag: https://github.com/fourseven/...
Fallexe's user avatar
  • 596
6 votes
1 answer
11k views

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

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 =...
mjk's user avatar
  • 659
6 votes
1 answer
2k views

What are the most useful Smart Packages for Meteor.js [closed]

I'm starting to learn Meteor and found that knowing of several smart packages can greatly speed up development. What are some of the most useful Smart Packages that you wish you knew when you first ...
Nyxynyx's user avatar
  • 62.8k
6 votes
3 answers
1k views

Atmosphere broadcasts don't reach client when running in Tomcat

Substantial update below (October 15, 2014) ========== Original posting =================== I have a notification service webapp using Atmosphere and Jersey. I am trying to run it in Tomcat on Linux,...
jwismar's user avatar
  • 12.2k
5 votes
1 answer
8k views

Atmosphere framework Spring mvc integration

I am trying to integrate Atmosphere framework with Spring MVC the samples war files given here http://async-io.org/download.html don't contain the .java files in the src folder. I also went ...
techPackets's user avatar
  • 4,496
5 votes
3 answers
6k views

Broadcast to only one client with Atmosphere

How do I broadcast messages from only one client to another with Atmosphere (Meteor)?I have currently this implementation based on meteor tutorial @Override public void doGet(HttpServletRequest req, ...
Petr Mensik's user avatar
  • 27.3k
5 votes
2 answers
3k views

Missing dependencies with Atmosphere and Jersey

I am trying Atmosphere together with Jersey to be able to broadcast messages to users. However on request to the Jersey endpoint, the following appears in the log and results in ServletException. ...
Kristoffer's user avatar
  • 1,653
5 votes
3 answers
1k views

play framework atmosphere

There is a list of usable frameworks in the creators blog of Atmosphere. I want to use scala and the Play Framework included with Atmosphere. In the blog he writes that Atmosphere works with "every" ...
Ghashange's user avatar
  • 1,187
5 votes
2 answers
7k views

Configure secured websockets using Apache httpd 2.4.6 and Tomcat 8

I'm trying to configure websockets using httpd proxy and reverse proxy but it doesn't seem to work. If I use directly the tomcat server everything is fine, if I call it through apache httpd, the ...
spauny's user avatar
  • 5,056
5 votes
2 answers
2k views

Use Atmosphere or Cometd

What are the differences between these two Java comet libraries? Is there a reason to pick one over the other?
Jimmy's user avatar
  • 1,433
5 votes
0 answers
19k views

Some cookies are misusing the recommended “sameSite“ attribute

I'm building a react application that uses atmosphere library to listen to a SpringBoot websocket, when the client tries to connect to the server, it throws an error in the console saying Some cookies ...
Arar's user avatar
  • 2,056
5 votes
0 answers
297 views

Unexpected redirect after login with JAAS and Vaadin Push

I am using Vaadin Push in one of my applications that relies on JAAS login. There seems to be a situation where the two frameworks collide. I have configured the security constraints like this: <!...
kalsowerus's user avatar
  • 1,008
5 votes
2 answers
2k views

Atmosphere framework, BroadcasterFactory.getDefault() alternative

I am using Atmosphere framework and it looks in the newest version(s) of the library the method: BroadcasterFactory.getDefault() is depricated. (and this method was essentially used everywhere and I ...
jNayden's user avatar
  • 1,610
5 votes
0 answers
507 views

AngularJS+Atmosphere Websockets: Is it possible to retrieve attributes in AtmosphereResource from a HttpServlet?

I'm new to Atmosphere framework & websockets. I'm developing a single page app, As a first step I want to implement a basic authentication using AngularJs(Client side) and Atmosphere websockets(...
Siva Kumar's user avatar
5 votes
0 answers
429 views

Implementing HeartBeat in Atmosphere Framework (Android) [closed]

1)How can we Implement Heart Beat in Android. I already Implemented Atmosphere framework. Currently what happening is webscoket connection got dismissed which we are not able to Identify
Lijo Joy's user avatar
  • 261
4 votes
2 answers
3k views

Atmosphere + Jersey: How do I have multiple broadcasters?

I have a working Jersey/Atmosphere/Guice application which has two Atmosphere Resources. The first is pretty much a clone of the example chat application: @Path("/chat") @AtmosphereService(...
Steve N's user avatar
  • 1,391
4 votes
1 answer
4k views

Unable to broadcast to single connection using Atmosphere runtime

I am using Atmosphere runtime 0.6 Snapshot. Tomcat 7 is logging correctly that I am using the Http11 Nio connector and there is no warning that BlockingIO will be used. I am trying to send messages ...
Srividya Sharma's user avatar
4 votes
1 answer
3k views

Primefaces push with GlassFish 4.0

Has anyone succeed in using above configuration? I am trying to use push with growl from primefaces. I am using primefaces 3.5 GlassFish 4.0 and Atmosphere 2.0.0.RC5 My config is as follows: <...
CodeSamurai777's user avatar
4 votes
1 answer
3k views

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

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 ...
Michael's user avatar
  • 33.1k
4 votes
1 answer
1k views

Primefaces push encoding

I use primefaces push to write a message in a p:notificationBar. if i push a message with specials characters (like russians char), I've got '?' in my message. How can I fix this problem ? Thanks for ...
kalaoke's user avatar
  • 107
4 votes
1 answer
2k views

Primefaces 5.0.4 No AtmosphereHandler found

im using Primefaces 5.0.4 with JSF 2.2 and Jboss wildfly. I did set up Atmosphere as follows: pom.xml <dependency> <groupId>org.atmosphere</groupId> <artifactId&...
user3172567's user avatar
4 votes
1 answer
4k views

Primepush ... Can't Establish Connection, Websocket closed, reason: Connection was closed abnormally

I'm using: Linux PrimeFaces 3.4.1 Glassfish 3.1.2.2 (build 5, with comet enabled, websockets disabled) FireFox 10.0.7 Chromium 22.0.1229.94 I have PrimePush within a message-driven bean. When my ...
Ender's user avatar
  • 1,736
4 votes
0 answers
233 views

pe:ckEditor not cleared after non ajax submit with p:fileUpload and primefaces push

I have a page with pe:ckEditor, p:fileUpload, p:commandButton, primefaces push. If there is no file attachment, the p:commandButton (ajax="true") will be executed. Otherwise, p:commandButton (ajax="...
bittersour's user avatar
4 votes
1 answer
3k views

Atmosphere error: Error during WebSocket handshake: Unexpected response code: 501

After Glassfish running I get error in browser console (Chrome): WebSocket connection to 'ws://localhost:8080/mcweb/primepush/result-from-api?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.0....
LazyWorker's user avatar
4 votes
1 answer
666 views

Atmosphere PubSub with Jersey 2

I am trying to implement pub-sub logic using Atmosphere with Jersey 2.8. My understanding is that atmosphere-jersey only supports Jersey 1.x. What do I need to implement pub-sub in Jersey 2? Which ...
KirEvse's user avatar
  • 307
4 votes
1 answer
3k views

atmosphere, jboss and primefaces push. Get them to work

I'm trying to get it to work primefaces, jboss eap 6.2 and primefaces push, that is based on atmosphere. I'm fighting with it for quite some time and I'm getting nowhere, so here I am. So here some ...
fer.marino's user avatar
4 votes
1 answer
3k views

How to force Atmosphere.js to use the preferred transport when reconnecting to the Server?

When the preferred transport fails, atmosphere tries to use the fallback transport. It tried to reconnect maxReconnect times. After that it calls onClose and onError. When I try the subscribe again ...
Michael's user avatar
  • 33.1k
3 votes
1 answer
796 views

GWT Atmosphere + RequestFactory

I'd like to produce following behaviour: User in the browser saves some entity. After entity is saved on the server side, it generates notification and it must notify all other clients by means of ...
CHEM_Eugene's user avatar
3 votes
2 answers
2k views

How to remove atmosphere broadcaster

Need your suggestion, please. My system is about client program and web service. Clients are instantiators of some events, they send message to web service, it is processed and when done- broadcasted ...
user1255246's user avatar
3 votes
1 answer
1k views

p:push not working with atmosphere spring boot

I am converting an existing application which was spring 3, PrimeFaces 5 into spring boot application. Following are my main dependencies, <dependency> <groupId>org.primefaces&...
BhaskerYadav's user avatar
3 votes
1 answer
399 views

grails server push

I've been evaluating grails server push technologies, and I keep coming across the grails atmosphere plugin, but it doesn't seem like it is actively being developed. I've also seen the grails events ...
Jeff Storey's user avatar
  • 56.9k
3 votes
1 answer
2k views

Long Polling interval in atmosphere

Long polling interval in atmosphere framework is about 60 secs. Even after setting pollingInterval attribute in AtmosphereRequest, the request is sent to server after 60 secs. How exactly to set the ...
J.Ajendra's user avatar
  • 345
3 votes
1 answer
647 views

Get the connection associated with an Atmosphere @ManagedService message

In this example, is there a way to modify this method @org.atmosphere.config.service.Message(encoders = {JacksonEncoder.class}, decoders = {JacksonDecoder.class}) public Message onMessage(Message ...
Steve's user avatar
  • 8,622
3 votes
1 answer
3k views

How can I conditionally render .js file in h:head, if file was not rendered after Full Page Refresh (FPR)?

PrimeFaces conditionally renders the following in h:head: <script type="text/javascript" src="/webapp/javax.faces.resource/push/push.js.jsf?ln=primefaces"><!--//--></script> when ...
Howard's user avatar
  • 792

1
2 3 4 5
11