Re: [akka-user] Re: Akka Http how to add charset utf-8 to the content-type header

2017-05-05 Thread Greg Methvin
There is no charset parameter defined for application/json. See https://www.iana.org/assignments/media-types/application/json The encoding should not be determined by looking at the charset parameter, but rather by looking at the first four octets: https://tools.ietf. org/html/rfc4627#section-3

Re: [akka-user] Re: Akka Http how to add charset utf-8 to the content-type header

2017-05-05 Thread Alan Burlison
On 05/05/17 18:42, Alex Cozzi wrote: funny, I was looking into this yesterday! I am by no means an expert, but I think that what it is happening is the following: application/json implies UTF-8: if you look at the MediaType class from akka http you se the declaration: I believe you are

[akka-user] ANNOUNCE: Introducing Akka Typed

2017-05-05 Thread Patrik Nordwall
Hi all, Lack of type-safety in the Akka actor programming model has been lamented for a long time. Lately, we have focused our work on Akka Typed in an attempt to bring type-safety to the world of actors. We are excited to share our recent progress on the new typed core APIs. In a series of blog

[akka-user] Re: Akka Cluster - Node not joining the Cluster

2017-05-05 Thread Kilic Ali-Firat
I'm running my two nodes in differents terminals like below : Terminal 1 $ export CLUSTER_IP=127.0.0.1 $ export CLUSTER_PORT=2551 $ sbt runMain WorkersApp Terminal 2 $ export CLUSTER_IP=127.0.0.1 $ export CLUSTER_PORT=2552 $ sbt runMain WorkersApp I'm running my Akka application using env

[akka-user] Re: Akka Cluster - Node not joining the Cluster

2017-05-05 Thread Renato Cavalcanti
Your nodes are making a 'cluster' with themselves. This because they are not getting the IP of each other. Are you starting it like that? docker run --name seed-1 akka-docker:2.3.4 --seed docker run --name seed-2 akka-docker:2.3.4 --seed :2551 docker run --name node-1 akka-docker:2.3.4 :2551

[akka-user] Re: Akka Http how to add charset utf-8 to the content-type header

2017-05-05 Thread Alex Cozzi
funny, I was looking into this yesterday! I am by no means an expert, but I think that what it is happening is the following: application/json implies UTF-8: if you look at the MediaType class from akka http you se the declaration: val `application/json` = awfc("json", HttpCharsets.`UTF-8`,

[akka-user] Akka Cluster Failing for Huge Data File

2017-05-05 Thread Kunal Ghosh
Hi, my application uses a Akka cluster which has one master node and two child seed nodes. The master node reads data from input file and sends it over to both child nodes for evaluation (processing). The application works fine for smaller data file eg. file with 43 rows but when the input file

[akka-user] Akka Cluster - Node not joining the Cluster

2017-05-05 Thread Kilic Ali-Firat
Hi Akka Team, To prepare a deployment using docker, I try to start in my laptop a cluster with 3 nodes : 2 nodes workers (seed-nodes) and 1 node as cluster client. When I start the first seed node and then second one, this last is not joining the cluster as expected. I follow the instructions

[akka-user] Re: java.lang.IllegalStateException: cannot enqueue after timer shutdown

2017-05-05 Thread Praveen Yadav
Forgot to mention, we are using play 2.4.3 Thanks On Friday, May 5, 2017 at 3:41:33 PM UTC+5:30, Praveen Yadav wrote: > > Hi, > > We are getting - "java.lang.IllegalStateException: cannot enqueue after > timer shutdown" at below scheduleOnce call line number when the for loop > has many items

[akka-user] java.lang.IllegalStateException: cannot enqueue after timer shutdown

2017-05-05 Thread Praveen Yadav
Hi, We are getting - "java.lang.IllegalStateException: cannot enqueue after timer shutdown" at below scheduleOnce call line number when the for loop has many items and play app is under load. We are currently refactoring the below code. But is there a possibility that if we call

[akka-user] Akka Http how to add charset utf-8 to the content-type header

2017-05-05 Thread Thibault Meyer
Hello, I dont find how to set the content type to "*application/json; charset=UTF-8*" with the *completeOKWithFuture* and Jackson marshaller. Currently, Akka Http return the Content-Type "application/json" without specifying the charset. So in some browsers (like Opera or Chrome) the output