java - javax.persistence.Entity generating NullPoint exception -
i using hibernate orm in play framework 2.0.4. have model class called video annotated using jpa. when run application next error
[nullpointerexception: null] in c:\users\username\ideaprojects\projectname\app\models\video.java @ line 4. 1package models; 2 3 import java.util.date; 4 import javax.persistence.entity; 5 import javax.persistence.id; 6 7@entity 8public class video { i have started learning play , don't have clue whats causing problem , how prepare it. stack trace ! @6d9h9310f - internal server error, request [get /] ->
play.core.actioninvoker$$anonfun$receive$1$$anon$1: execution exception [[nullpo interexception: null]] @ play.core.actioninvoker$$anonfun$receive$1.apply(invoker.scala:134) [ play_2.9.1.jar:2.0.4] @ play.core.actioninvoker$$anonfun$receive$1.apply(invoker.scala:115) [ play_2.9.1.jar:2.0.4] @ akka.actor.actor$class.apply(actor.scala:318) [akka-actor.jar:2.0.2] @ play.core.actioninvoker.apply(invoker.scala:113) [play_2.9.1.jar:2.0. 4] @ akka.actor.actorcell.invoke(actorcell.scala:626) [akka-actor.jar:2.0. 2] @ akka.dispatch.mailbox.processmailbox(mailbox.scala:197) [akka-actor.j ar:2.0.2] caused by: java.lang.nullpointerexception: null @ models.video._ebean_get_video_name(video.java:4) ~[classes/:na] @ models.video.getvideoname(video.java:43) ~[classes/:na] @ controllers.application.index(application.java:15) ~[classes/:2.0.4] @ routes$$anonfun$routes$1$$anonfun$apply$1$$anonfun$apply$2.apply(rout es_routing.scala:32) ~[classes/:na] @ routes$$anonfun$routes$1$$anonfun$apply$1$$anonfun$apply$2.apply(rout es_routing.scala:32) ~[classes/:na] @ play.core.router$handlerinvoker$$anon$5$$anon$1.invocation(router.sca i realize phone call primary key video entity have no problem when seek anyother attribute happen. realize there new column generated in database called _ebean_intercept of rows null can causing problem.
java hibernate jpa playframework playframework-2.0
No comments:
Post a Comment