hakandilek / play2-crud

Simple CRUD & DAO implementation for play2
Other
142 stars 52 forks source link

List returns NPE #6

Closed karianna closed 11 years ago

karianna commented 11 years ago

Hi there,

Just trying out your app, most things work well but whenever I try to display a list I get an NPE:

play.api.Application$$anon$1: Execution exception[[NullPointerException: null]] at play.api.Application$class.handleError(Application.scala:289) ~[play_2.10.jar:2.1.1] at play.api.DefaultApplication.handleError(Application.scala:383) [play_2.10.jar:2.1.1] at play.core.server.netty.PlayDefaultUpstreamHandler$$anon$2$$anonfun$handle$1.apply(PlayDefaultUpstreamHandler.scala:144) [play_2.10.jar:2.1.1] at play.core.server.netty.PlayDefaultUpstreamHandler$$anon$2$$anonfun$handle$1.apply(PlayDefaultUpstreamHandler.scala:140) [play_2.10.jar:2.1.1] at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10.jar:2.1.1] at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10.jar:2.1.1] java.lang.NullPointerException: null at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) ~[spring-core.jar:3.1.2.RELEASE] at play.utils.crud.DynamicTemplateController.call(DynamicTemplateController.java:68) ~[play2-crud_2.10-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT] at play.utils.crud.DynamicTemplateController.ok(DynamicTemplateController.java:21) ~[play2-crud_2.10-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT] at play.utils.crud.CRUDController.list(CRUDController.java:46) ~[play2-crud_2.10-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT] at controllers.Application.tagList(Application.java:39) ~[na:na] at Routes$$anonfun$routes$1$$anonfun$applyOrElse$7$$anonfun$apply$7.apply(routes_routing.scala:141) ~[na:na]

hakandilek commented 11 years ago

Hi Martijn,

I've fixed this one and supplied a verbose error message there. Please let me know if the problem persists.

karianna commented 11 years ago

Hi Hakan,

Sorry to take so long to get back to you! The new sample code works (no NPE, and lists of objects now appear). I have a separate but which I'll post up shortly.

Cheers, Martijn

On 30 April 2013 13:03, Hakan Dilek notifications@github.com wrote:

Hi Martijn,

I've fixed this one and supplied a verbose error message there. Please let me know if the problem persists.

— Reply to this email directly or view it on GitHubhttps://github.com/hakandilek/play2-crud/issues/6#issuecomment-17223091 .