playframework-2.4 Questions

4

Solved

I've created an empty (activator template play-scala) Play 2.4.3 application with PostgreSQL 9.4 database and trying to use Slick 3.1.0 with it, but it's throwing an error: play.api.UnexpectedExce...
Bifilar asked 16/11, 2015 at 14:37

4

Solved

I am trying to use mapstruct in my Play 2.4 Java8 JPA project. Steps I have done: Added Dependency "org.mapstruct" % "mapstruct-jdk8" % "1.1.0.Beta1", "org.mapstruct" % "mapstruct-processor" % ...
Felloe asked 2/7, 2016 at 17:49

2

Solved

I got this error running Play 2.4 server in production mode: play.api.UnexpectedException: Unexpected exception[ProvisionException: Unable to provision, see the following errors: 1) Error in cust...
Orwin asked 22/6, 2015 at 13:30

5

Solved

I am using PlayFramework 2.4.6, trying to upload a multipart file (size 18M) and the server returns the following error: For request 'POST /api/myEndpoint' [Request Entity Too Large] I have look...
Piloting asked 29/3, 2016 at 12:0

2

Solved

Background: I am using Play 2.4 (Java) with InjectedRoutesGenerator and a Guice module to configure various dependencies. But during unit tests, the FakeApplication is trying to load all the Contro...
Arsenide asked 20/7, 2015 at 4:50

5

Solved

My play app is in 2.4.2. In Developer Mode,I used to read files from public folder at back-end controllers using Source.fromFile("./public/files/abc.json") When I converted the application to prod...
Acknowledgment asked 28/4, 2016 at 5:38

2

Solved

We're developing a Play 2.4 application (Java API). For dev purposes, we'd like to use a persistent H2 database with DB file path relative to the project root directory. In How to use a persisten...
Ladino asked 2/6, 2015 at 12:30

2

I migrated a Play project from Version 2.3.4 to 2.4.2. The projects uses JPA (Hibernate) and Evolutions. I have an initial Evolutions SQL script, which fills the database with some sample data. Thi...

2

Setup: play framework 2.4.0 built-in ehcache java I have followed the manual at https://www.playframework.com/documentation/2.4.0/JavaCache and to separate caches and use different configs (cac...
Glochidium asked 6/8, 2015 at 13:37

5

I am trying to open a play 2.4 project in IntelliJ but since things have changed I don't know how to do this. In previous versions I could just run activator idea Or use the activator UI and cl...

2

Solved

I want to use pagination in my application. Here is simple example: public static List<MyClass> getPage(int page, int size) { PagedList<MyClass> findPagedList = Ebean.find(MyClass.cla...
Elmaleh asked 3/9, 2015 at 16:1

1

I have implemented my own HttpErrorHander in Play Framework 2.4.2 and it functions very well, but now I want to be able to test with "Fake Actions" that intentionally throw Exceptions. I have tried...
Maledict asked 16/7, 2015 at 22:52

2

Solved

It's my first day tinkering with the Play framework, and I'm having a hard time with evolutions. I'm using Play 2.4. I picked a sample app from the many that come up in activator ui, it uses play-...
Overbold asked 2/10, 2015 at 2:5

4

Solved

How to display SQL Statements in the log ? I'm using EBeans and it fails to insert for some reasons but I can't see what's the problem. I tried to edit my config to: db.default.logStatements=true...
Poltroon asked 14/6, 2015 at 10:28

3

Solved

I am new to Play framework and tried to mimic the helloworld sample in my local machine but I encountered an error: routes: # Home page GET / controllers.Application.index # Hello action GET /...
Rheinland asked 12/6, 2015 at 9:42

1

Solved

GET /status controllers.Application.handleWebSocketConnection() Here is the relevant source code. public WebSocket handleWebSocketConnection() { return WebSocket.withActor(new F.Function<Act...
Ingenuous asked 22/3, 2017 at 22:1

1

Solved

Is there a way to avoid recreating the connection pool to an in-memory database when reloading after a code change? [info] - application - Shutting down connection pool. [info] - application - Cre...
Anselme asked 19/7, 2015 at 19:22

4

I am building a Scala Play 2.4 application which uses the typesafe activator. I would like to run my tests 2 times with a different configuration file for each run. How can I specify alternative ...

2

How do I test an actor that is created by dependency injection? In my application I can get an ActorRef by named injection: public MyClass { @Inject @Named("ping") ActorRef mPingRef; } How do...
Haerle asked 19/9, 2015 at 15:20

5

Solved

My play-framework project is running well in my local but when I am trying to deploy it in heroku I am getting following error. 2015-07-05T06:24:10.456657+00:00 app[web.1]: at com.google.inject.G...
Acceptation asked 5/7, 2015 at 7:24

2

Solved

I have class GroupTable that makes schema of table. As I saw, in other projects there are at conf/evolution/default folder file 1.sql, that is automatically generated from code (as I assume). B...
Plaintiff asked 3/2, 2016 at 20:4

7

I have a java play framework 2.4.x web app providing a JSON/HTTP API. When I run my front-end HTML/JS file:///Users/nize/tmp/index.html calling the API on http://localhost:9000 chrome shows XMLHttp...
Dread asked 12/8, 2015 at 21:8

3

Solved

I just created a new project using activator new, and am now trying to eclipsify it using activator eclipse. But I am facing an issue: D:\work\firebase>activator eclipse [info] Loading project ...

2

In order to cache actions per label and language for a given number of seconds, I wrote the following helper method (where label, is the name I give to my action): def cacheResponseFor(label: Stri...
Colloquium asked 24/10, 2015 at 15:9

3

Solved

The link here shows you how to configure your custom logger. https://www.playframework.com/documentation/2.4.x/SettingsLogger I was just wondering where is the ${applicaation.home} defined, as it...
Formerly asked 17/7, 2015 at 23:35

© 2022 - 2024 — McMap. All rights reserved.