Skip to main content

Questions tagged [playframework]

Play Framework is a modern open-source web framework for Java and Scala.

-1 votes
0 answers
14 views

How to run MySQL scripts when I run docker compose? [duplicate]

I have a Scala backend and Javascript frontend applications and MySQL database. I want to create docker images for every one of them with one docker-compose.yml file and I want to run the scripts for ...
Davor Homa's user avatar
0 votes
0 answers
22 views

Play Framework migration: NoSuchMethodError: play.api.ApplicationLoader$.createContext

I am having a problem migrating from Play 2.5 to 2.6. My project builds successfully, but when I try to run it, the following exception message is thrown: Caused by: java.lang.NoSuchMethodError: play....
Eli Golts's user avatar
1 vote
1 answer
59 views

Can time slicing and context switches cause high CPU utilization in a Java based application?

I have a Play framework application with about 400 threads. 200 are part of the default dispatcher. Now I have 2 db sources with 9 connections each and thread pool with a min size of 20 and max of 200....
xyz's user avatar
  • 21
0 votes
0 answers
17 views

Unable to query using Reference id in morphia 2.4.14 for Reference entity. use of Key<> is deprecated

I have an Entity Book. It contains Language entity. Language entity is stored as DBRef() in database. I need DBRef. @Entity("Book") class Book{ @Reference(language_id) private Language ...
mandar shinde's user avatar
0 votes
1 answer
35 views

play -pac4j oidc password grant send redirect url to torken end point

implementing play-pac4j oidc feature with keyclock. I need it to support only for direct access grant but play-pac4j request sends redirect_url as request parameter and getting error < Invalid ...
Kaushal Senevirathne's user avatar
-1 votes
0 answers
57 views

Scala/SBT/Java - When running app locally with java 21 getting InaccessibleObjectException

Hi all I am using scala version 2.12.18, sbt version 1.9.0 and java jdk 21.0.3. When trying to run my application locally through sbt run -Dconfig.resource=local-qa.conf I am getting this error: [...
M. Barabas's user avatar
0 votes
1 answer
29 views

Comparing impact of Scala PlayFramework's db.withConnection and db.withTransaction methods on the underlying postgres database

Given that there is just one simple SQL statement (example: select id from foo) that I need to execute on my Postgres 15 database, I am curious to know the performance impact of executing it using ...
Prakhar Singh's user avatar
0 votes
2 answers
68 views

Compilation Error: Instance not found: Conversion[models.Errorcode, _ <: Product] on Scala 3 Playframework

I've been recently migrating a playframework project from scala2 to scala3, and I found this error that only happens in scala 3 but it doesnt happen in scala 2: play.sbt.PlayExceptions$...
DanCrts's user avatar
1 vote
0 answers
54 views

Can I disable default Marker Context (NoMarker) passed implicitly when using play.api.Logger and require a different MarkerContext is always provided?

I am trying to add a unique request id to logs for each request that is made to a rest api. For that I want to pass implicitly a MarkerContext to each logger method called. Currently the NoMarker ...
Stefan Stojkovski's user avatar
0 votes
0 answers
67 views

How to parse large JSON Strings(>5,000,000) using Play JSON?

I'm using Play JSON 2.9.4 in Scala. implementation group: 'com.typesafe.play', name: 'play-json_2.12', version: '2.9.4 I'm unable to parse JSON Strings larger than 5,000,000 characters. The exception ...
asds_asds's user avatar
  • 1,022
1 vote
0 answers
23 views

How to pass a value down the call stack in Scala Play app

I need to pass some information down the call stack in a Scala Play application. For example: class FooController: play.api.mvc.BaseController { ... def method1(request: play.mvc.Http.Request) = { ...
Alperen's user avatar
  • 4,352
0 votes
0 answers
42 views

Blank screen when connecting via Keycloak

I'm developping a web app that uses Keycloak 22 as an authentificator. Sometimes, when I try to connect, my screen stays absolutely blank. This happens before accessing the login page. If I refresh my ...
Joseph Budin's user avatar
  • 1,348
0 votes
1 answer
42 views

xssprotection, noframe, nosniff not present on every request

I have a custom httpActionAdabter and i match matchers once also in the action adapter pac4jcsrf token and other matchers only will be present on register login and logout what i do to have them on ...
Mohammad Asy's user avatar
0 votes
2 answers
36 views

Pacj and Websocket authentication and authorization

@Secure doesn't work for websocket in pac4j-play how do i secure a websocket in java pac4j play thanks this what i don now if (!profilesHelper.getProfilesWithHeader(request).isEmpty()) { UserProfile ...
Mohammad Asy's user avatar
0 votes
0 answers
27 views

Play Framework Ebean Firebird

I have a project in Play 2.8.18 but now I want to update it to Play 3.x. There is a new version of Ebean 8.xx but it looks like it doesn't support Firebird 2.5 I'm testing using the "play-samples-...
Juan Guzman's user avatar

15 30 50 per page
1
2 3 4 5
1154