{"action":"opened","issue":{"url":"https://api.github.com/repos/baasbox/baasbox/issues/688","labels_url":"https://api.github.com/repos/baasbox/baasbox/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/baasbox/baasbox/issues/688/comments","events_url":"https://api.github.com/repos/baasbox/baasbox/issues/688/events","html_url":"https://github.com/baasbox/baasbox/issues/688","id":58802203,"number":688,"title":"BaasBox v. 0.9.4-20150211 post to /admin/plugin","user":{"login":"emresebat","id":2254943,"avatar_url":"https://avatars.githubusercontent.com/u/2254943?v=3","gravatar_id":"","url":"https://api.github.com/users/emresebat","html_url":"https://github.com/emresebat","followers_url":"https://api.github.com/users/emresebat/followers","following_url":"https://api.github.com/users/emresebat/following{/other_user}","gists_url":"https://api.github.com/users/emresebat/gists{/gist_id}","starred_url":"https://api.github.com/users/emresebat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emresebat/subscriptions","organizations_url":"https://api.github.com/users/emresebat/orgs","repos_url":"https://api.github.com/users/emresebat/repos","events_url":"https://api.github.com/users/emresebat/events{/privacy}","received_events_url":"https://api.github.com/users/emresebat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-24T20:49:19Z","updated_at":"2015-02-24T20:49:19Z","closed_at":null,"body":"Hi I'm posting this data to admin/plugin to create a plugin script\r\n\r\n```javascript\r\n{\r\n\t\"name\": \"kasa.lib\",\r\n\t\"code\": \"var x=5;\"\r\n}\r\n```\r\nI always get this response:\r\n\r\n```javascript\r\n{\r\n\t\"result\": \"error\",\r\n\t\"message\": \"java.lang.NullPointerException\\n\\tat com.baasbox.service.scripting.ScriptingService.createScript(ScriptingService.java:350)\\n\\tat com.baasbox.service.scripting.ScriptingService.create(ScriptingService.java:190)\\n\\tat com.baasbox.controllers.ScriptsAdmin.create(ScriptsAdmin.java:112)\\n\\tat Routes$$anonfun$routes$1$$anonfun$applyOrElse$134$$anonfun$apply$134.apply(routes_routing.scala:1767)\\n\\tat Routes$$anonfun$routes$1$$anonfun$applyOrElse$134$$anonfun$apply$134.apply(routes_routing.scala:1767)\\n\\tat play.core.Router$HandlerInvoker$$anon$7$$anon$2.invocation(Router.scala:183)\\n\\tat play.core.Router$Routes$$anon$1.invocation(Router.scala:377)\\n\\tat play.core.j.JavaAction$$anon$1.call(JavaAction.scala:56)\\n\\tat play.GlobalSettings$1.call(GlobalSettings.java:64)\\n\\tat com.baasbox.controllers.actions.filters.ExtractQueryParameters.call(ExtractQueryParameters.java:44)\\n\\tat com.baasbox.controllers.actions.filters.CheckAdminRoleFilter.call(CheckAdminRoleFilter.java:51)\\n\\tat com.baasbox.controllers.actions.filters.ConnectToDBFilter.call(ConnectToDBFilter.java:81)\\n\\tat com.baasbox.controllers.actions.filters.UserCredentialWrapFilter.call(UserCredentialWrapFilter.java:74)\\n\\tat play.core.j.JavaAction$$anon$3.apply(JavaAction.scala:91)\\n\\tat play.core.j.JavaAction$$anon$3.apply(JavaAction.scala:90)\\n\\tat play.core.j.FPromiseHelper$$anonfun$flatMap$1.apply(FPromiseHelper.scala:82)\\n\\tat play.core.j.FPromiseHelper$$anonfun$flatMap$1.apply(FPromiseHelper.scala:82)\\n\\tat scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251)\\n\\tat scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)\\n\\tat scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)\\n\\tat play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:37)\\n\\tat akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42)\\n\\tat akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)\\n\\tat scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\\n\\tat scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)\\n\\tat scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)\\n\\tat scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)\\n\",\r\n\t\"resource\": \"/admin/plugin\",\r\n\t\"method\": \"POST\",\r\n\t\"request_header\": {\r\n\t\t\"X-BAASBOX-APPCODE\": [\"REMOVED\"],\r\n\t\t\"Content-Length\": [\"42\"],\r\n\t\t\"Accept\": [\"*/*\"],\r\n\t\t\"Content-Type\": [\"application/json\"],\r\n\t\t\"Authorization\": [\"REMOVED\"],\r\n\t\t\"User-Agent\": [\"curl/7.37.1\"],\r\n\t\t\"Host\": [\"REMOVED\"]\r\n\t},\r\n\t\"API_version\": \"0.9.4-20150211-nightly\",\r\n\t\"http_code\": 500\r\n}\r\n```\r\nI normally try to send the base64 encoded contents of my js file but the error is the same. \r\n\r\nAny ideas?"}}