Questions tagged [playframework-2.5]
Play is based on a lightweight, stateless, web-friendly architecture and features predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications.
playframework-2.5
505
questions
0
votes
1
answer
162
views
Not able to make postgres database call on heroku using Play Framework Application
I am build REST api using play framework 2.8 , I am able to start the application and call some service. Facing issue when trying to connecting with postgres database. Logs are below -
Error opening ...
1
vote
0
answers
77
views
How to force https on routes play framework
Using Play Framework 2.5.6
I have secured my application with SSL.
Now, page is loaded with https I figured out this error.
Mixed Content: The page at ‘’ was loaded over HTTPS, but requested an ...
4
votes
1
answer
3k
views
How to restrict website to load only inside an iframe?
I have two web sites:
https://exampleiframe.com (third-party website),
https://example.com (my website)
I want to restrict https://example.com to load only inside iframe of https://exampleiframe.com
...
0
votes
1
answer
213
views
Netty unable to process request after adding Firebase Admin 6.12.2
I'm having play framework 2.5.4 with scala version 2.11.7 and sbt 0.13, things stop working after adding "com.google.firebase" % "firebase-admin" % "6.12.2" to build.sbt file
getting following error ...
0
votes
0
answers
224
views
Play framework 2.5 will not stream the request into the response
Hi I have a requirement to use play framework 2.5 (scala) to receive a large request body, then transform it and then stream it straight back out.
So far I've been unable to get the request stream to ...
0
votes
2
answers
212
views
I have update method to update movie. But When I give data in postman I enter one field then remain fields get null value
This is list of movies.
public static List<Movie> movies;
static {
movies = new ArrayList<>();
movies.add(new Movie(1, "Fprd vs Ferrari", "Movie on Racing", "abcd"...
0
votes
2
answers
64
views
how to call the static variable to non static method, i.e I need to call the maxId variable to insert method
public static List<Movie> movies;
static {
movies = new ArrayList<>();
movies.add(new Movie(1, "Fprd vs Ferrari", "Movie on Racing", "abcd", "xyz"));
movies.add(new Movie(2, "...
1
vote
2
answers
108
views
how to write condition for when I send same movie name in postman i will not accept for same movienames
This is movie class
. I have code for add the movie in postman using post request.
public class Movie {
private int id;
private String movieName;
private String description;
...
1
vote
1
answer
660
views
how to increment the id value when Json data enter in postman without db using in java play framework ? can anyone help how to generate id values
public class MovieController extends Controller {
public static List<Movie> movies;
static {
movies = new ArrayList<>();
movies.add(new Movie(1, "dsfnejhf", "Movie on Racing",...
3
votes
1
answer
4k
views
java.lang.NoSuchMethodError: io.netty.channel.DefaultChannelId.newInstance()Lio/netty/channel/DefaultChannelId;
I am trying to use "software.amazon.awssdk" % "dynamodb" % "2.10.33"
with my project on Play framework (Java).
Following is a brief of the project configuration
scalaVersion := "2.11.8"
...
0
votes
1
answer
116
views
Injecting a class instance in java play scheduler task
I am trying to create a scheduler in Java play framework 2.5.10 where i want to execute a task for every 15 mins. I have gone through the schedule tasks using which I am able to invoke the task.
But ...
1
vote
0
answers
49
views
Playfarmework testing: Upload file with Fake Request and mulipartFormData
I'm trying to unit test a file upload through multipartFormData and returning status 200 if it returns back the uploaded url. However, I keep getting status 400 and unsure why its been unsucessful.
...
1
vote
0
answers
171
views
How to use 2 datasources with Ebean on a Play Framework 2.5 project?
I would like to split my default datasource to 2 different datasources (2 databases). I set my application.conf file:
db {
common.driver = org.mariadb.jdbc.Driver
common.username = "root"
...
2
votes
2
answers
968
views
Play Framework: No implicit format for Map
Using Play 2.5 I cannot seem to serialize a Map[SomeCaseClass, String]
case class SomeCaseClass(value: String)
implicit val formatSomeCaseClass = Json.format[SomeCaseClass]
Json.toJson(Map[...
1
vote
1
answer
39
views
Is there plugins in Play 2.5.x for capturing Request and Response for custom logging purpose?
I'm looking for any possible solutions/plugins to capture request and response that come through Play 2.5.x for making a custom logging.
I've found https://www.playframework.com/documentation/2.5.x/...