Closed karianna closed 10 years ago
Could you please test this one with v0.7.2-SNAPSHOT again? It's supposed to map / route in samples now.
If it helps I've push my code to: https://bitbucket.org/karianna/betterrev - it's a Git repo so you should be able to grab a copy (let me know if not). The code should be similar to your example except that I've used a model class called Tag (in app/models package) - the rest of the code is just std Play/code we have for our project.
Done! Check out my pull req on https://bitbucket.org/karianna/betterrev/pull-request/1/basic-play2-crud-adaptation/diff.
I've basically
It seems like Assets are lind of missing, but I'll fix it seperately.
I'm closing this one. Please let me know if you need further help.
Using Play 2.1.1, have followed the 'simple' instructions but get the following error when loading the application.
Also, attempting to go directly to the /app URL gives an NPE:
play.api.Application$$anon$1: Execution exception[[NullPointerException: null]] at play.api.Application$class.handleError(Application.scala:287) ~[play_2.10-2.1.5.jar:2.1.5] at play.api.DefaultApplication.handleError(Application.scala:381) [play_2.10-2.1.5.jar:2.1.5] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$play$core$server$netty$PlayDefaultUpstreamHandler$$handle$1$1.apply(PlayDefaultUpstreamHandler.scala:143) [play_2.10-2.1.5.jar:2.1.5] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$play$core$server$netty$PlayDefaultUpstreamHandler$$handle$1$1.apply(PlayDefaultUpstreamHandler.scala:139) [play_2.10-2.1.5.jar:2.1.5] at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10-2.1.5.jar:2.1.5] at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10-2.1.5.jar:2.1.5] java.lang.NullPointerException: null at play.utils.crud.GlobalCRUDSettings.getControllerInstance(GlobalCRUDSettings.java:12) ~[play2-crud_2.10-0.7.0.jar:0.7.0] at play.core.j.JavaGlobalSettingsAdapter.getControllerInstance(JavaGlobalSettingsAdapter.scala:45) ~[play_2.10-2.1.5.jar:2.1.5] at play.crud.Routes$$anonfun$routes$1$$anonfun$applyOrElse$1$$anonfun$apply$1.apply(routes_routing.scala:73) ~[play2-crud_2.10-0.7.0.jar:0.7.0] at play.crud.Routes$$anonfun$routes$1$$anonfun$applyOrElse$1$$anonfun$apply$1.apply(routes_routing.scala:73) ~[play2-crud_2.10-0.7.0.jar:0.7.0] at play.core.Router$HandlerInvoker$$anon$6$$anon$2.invocation(Router.scala:193) ~[play_2.10-2.1.5.jar:2.1.5] at play.core.Router$Routes$$anon$1.invocation(Router.scala:373) ~[play_2.10-2.1.5.jar:2.1.5]