Closed ghost closed 10 years ago
Hier der Exception Stack zu dem genannten Problem mit dem Bindestrich in der ISBN-13
[error] play - Cannot invoke the action, eventually got an error: java.lang.NullPointerException [error] application -
! @6gf3b9932 - Internal server error, for (POST) [/book/addBook/] ->
play.api.Application$$anon$1: Execution exception[[NullPointerException: null]] at play.api.Application$class.handleError(Application.scala:293) ~[com.typesafe.play.play_2.10-2.2.1.jar:2.2.1] at play.api.DefaultApplication.handleError(Application.scala:399) [com.typesafe.play.play_2.10-2.2.1.jar:2.2.1] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261) [com.typesafe.play.play_2.10-2.2.1.jar:2.2.1] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261) [com.typesafe.play.play_2.10-2.2.1.jar:2.2.1] at scala.Option.map(Option.scala:145) [org.scala-lang.scala-library-2.10.2.jar:na] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2.applyOrElse(PlayDefaultUpstreamHandler.scala:261) [com.typesafe.play.play_2.10-2.2.1.jar:2.2.1] Caused by: java.lang.NullPointerException: null at utils.Utils.fetchBook(Utils.java:138) ~[sdf-play.sdf-play-1.0-SNAPSHOT.jar:1.0-SNAPSHOT] at utils.Utils.getBookInformationFromAWS(Utils.java:102) ~[sdf-play.sdf-play-1.0-SNAPSHOT.jar:1.0-SNAPSHOT] at controllers.BookController.createBook(BookController.java:57) ~[sdf-play.sdf-play-1.0-SNAPSHOT.jar:1.0-SNAPSHOT] at Routes$$anonfun$routes$1$$anonfun$applyOrElse$26$$anonfun$apply$26.apply(routes_routing.scala:353) ~[sdf-play.sdf-play-1.0-SNAPSHOT.jar:na] at Routes$$anonfun$routes$1$$anonfun$applyOrElse$26$$anonfun$apply$26.apply(routes_routing.scala:353) ~[sdf-play.sdf-play-1.0-SNAPSHOT.jar:na] at play.core.Router$HandlerInvoker$$anon$7$$anon$2.invocation(Router.scala:183) ~[com.typesafe.play.play_2.10-2.2.1.jar:2.2.1]
should be done
Erstmal vielen Dank fürs Einbinden von amazon web services. Funktioniert super. Kleine Verbesserungsvorschläge dennoch: