{"action":"opened","issue":{"number":27,"created_at":"2011-10-17T08:33:54Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I'm trying the most simple query possible to try out elastic search, yet i'm having not a lot of luck. I've tried to describe all related info below. Only thing different from my setup than the documentation is in regard to two dependencies as described in issue #26.\r\n\r\nDependencies used in my project:\r\n\r\n    - play -> elasticsearch 0.2\r\n    - org.elasticsearch -> elasticsearch 0.17.8\r\n    - se.scalablesolutions.akka -> akka-amqp 1.2\r\n\r\nMethod in my controller:\r\n\r\n    public static void all() {\r\n        WildcardQueryBuilder wildcardQuery = QueryBuilders.wildcardQuery(\"name\", \"wa*\");\r\n        SearchResults<Station> stations = ElasticSearch.search(wildcardQuery, Station.class);\r\n        render(stations);\r\n    }\r\n\r\nModel Station:\r\n\r\n    @ElasticSearchable\r\n    @Entity\r\n    public class Station extends Model {\r\n    \r\n        @Required\r\n        public String name;\r\n        @Required\r\n        public String latitude;\r\n        @Required\r\n        public String longitude;\r\n    }\r\n\r\nException in the log:\r\n\r\n```\r\nInternal Server Error (500) for request GET /all\r\n\r\nExecution exception (In /app/controllers/Application.java around line 21)\r\nNullPointerException occured : null\r\n\r\nplay.exceptions.JavaExecutionException\r\n\tat play.mvc.ActionInvoker.invoke(ActionInvoker.java:229)\r\n\tat Invocation.HTTP Request(Play!)\r\nCaused by: java.lang.NullPointerException\r\n\tat play.modules.elasticsearch.Query.fetch(Query.java:123)\r\n\tat play.modules.elasticsearch.ElasticSearch.search(ElasticSearch.java:151)\r\n\tat play.modules.elasticsearch.ElasticSearch.search(ElasticSearch.java:102)\r\n\tat controllers.Application.all(Application.java:21)\r\n\tat play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:546)\r\n\tat play.mvc.ActionInvoker.invoke(ActionInvoker.java:500)\r\n\tat play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:476)\r\n\tat play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:471)\r\n\tat play.mvc.ActionInvoker.invoke(ActionInvoker.java:159)\r\n\t... 1 more\r\n```\r\n\r\nLine 123 in play.modules.elasticsearch.Query:\r\n```\r\nSearchResponse searchResponse = request.execute().actionGet();\r\n```","comments":0,"title":"Nullpointer in the module when trying a very simple search","updated_at":"2011-10-17T08:33:54Z","url":"https://api.github.com/repos/feliperazeek/playframework-elasticsearch/issues/27","id":1926186,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"151693ffc30aad0de280a09e13712668","avatar_url":"https://secure.gravatar.com/avatar/151693ffc30aad0de280a09e13712668?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/roderik","id":16780,"login":"roderik"},"html_url":"https://github.com/feliperazeek/playframework-elasticsearch/issues/27","labels":[],"state":"open"},"legacy":{"number":27,"action":"opened","issue":1926186}}