scala - Getting NullPointerException from Play framework -


i have been using play framework 2.2.4 version. while executing particular action getting nullpointerexception, if code can fix has come play library.

could on this??

# action # public static result getoverviewpage(final string errormsg){         string autobillstatusmsg = "";     //business logic here     logger.info("final auto-pay status message : "+autobillstatusmsg);     return ok(rave_customer_index.render()); } 

we able see above logger statement. after getting nullpointerexception

exception stacktrace

info | jvm 1 | 2015/09/18 15:15:24 | [info] application - final auto-pay status message :

info | jvm 1 | 2015/09/18 15:15:24 | [error] play - cannot invoke action, got error: java.lang.nullpointerexception

info | jvm 1 | 2015/09/18 15:15:24 | [error] application - info
| jvm 1 | 2015/09/18 15:15:24 | info | jvm 1 | 2015/09/18 15:15:24 | ! @6nfm0a093 - internal server error, (get) [/] ->

info | jvm 1 | 2015/09/18 15:15:24 |

info | jvm 1 | 2015/09/18 15:15:24 | play.api.application$$anon$1: execution exception[[nullpointerexception: null]]

info | jvm 1 | 2015/09/18 15:15:24 | @ play.api.application$class.handleerror(application.scala:296) ~[com.typesafe.play.play_2.11-2.3.2.jar:2.3.2]

info | jvm 1 | 2015/09/18 15:15:24 | @ play.api.defaultapplication.handleerror(application.scala:402) [com.typesafe.play.play_2.11-2.3.2.jar:2.3.2]

info | jvm 1 | 2015/09/18 15:15:24 | @ play.core.server.netty.playdefaultupstreamhandler$$anonfun$3$$anonfun$applyorelse$4.apply(playdefaultupstreamhandler.scala:320) [com.typesafe.play.play_2.11-2.3.2.jar:2.3.2]

info | jvm 1 | 2015/09/18 15:15:24 | @ play.core.server.netty.playdefaultupstreamhandler$$anonfun$3$$anonfun$applyorelse$4.apply(playdefaultupstreamhandler.scala:320) [com.typesafe.play.play_2.11-2.3.2.jar:2.3.2]

info | jvm 1 | 2015/09/18 15:15:24 | @ scala.option.map(option.scala:145) [org.scala-lang.scala-library-2.11.1.jar:na] info | jvm 1 | 2015/09/18 15:15:24 |

caused by: java.lang.nullpointerexception: null

info | jvm 1 | 2015/09/18 15:15:24 | @ java.net.urlencoder.encode(urlencoder.java:205) ~[na:1.7.0_21]

info | jvm 1 | 2015/09/18 15:15:24 | @ play.api.mvc.cookiebaker$$anonfun$3.apply(http.scala:427) ~[com.typesafe.play.play_2.11-2.3.2.jar:2.3.2]

info | jvm 1 | 2015/09/18 15:15:24 | @ play.api.mvc.cookiebaker$$anonfun$3.apply(http.scala:426) ~[com.typesafe.play.play_2.11-2.3.2.jar:2.3.2]

info | jvm 1 | 2015/09/18 15:15:24 | @ scala.collection.traversablelike$$anonfun$map$1.apply(traversablelike.scala:245) ~[org.scala-lang.scala-library-2.11.1.jar:na]

info | jvm 1 | 2015/09/18 15:15:24 | @ scala.collection.traversablelike$$anonfun$map$1.apply(traversablelike.scala:245) ~[org.scala-lang.scala-library-2.11.1.jar:na]

debug | wrapperp | 2015/09/18 15:15:25 | send packet ping : ping

info | jvm 1 | 2015/09/18 15:15:26 | wrappermanager debug: received packet ping : ping

info | jvm 1 | 2015/09/18 15:15:26 | wrappermanager debug: send packet ping : ping


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -