{"action":"closed","issue":{"url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/17","repository_url":"https://api.github.com/repos/lambadaframework/lambadaframework","labels_url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/17/comments","events_url":"https://api.github.com/repos/lambadaframework/lambadaframework/issues/17/events","html_url":"https://github.com/lambadaframework/lambadaframework/issues/17","id":156890930,"number":17,"title":"Delete fails when doing a deploy with similar end points","user":{"login":"arranubels","id":1455540,"avatar_url":"https://avatars.githubusercontent.com/u/1455540?v=3","gravatar_id":"","url":"https://api.github.com/users/arranubels","html_url":"https://github.com/arranubels","followers_url":"https://api.github.com/users/arranubels/followers","following_url":"https://api.github.com/users/arranubels/following{/other_user}","gists_url":"https://api.github.com/users/arranubels/gists{/gist_id}","starred_url":"https://api.github.com/users/arranubels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arranubels/subscriptions","organizations_url":"https://api.github.com/users/arranubels/orgs","repos_url":"https://api.github.com/users/arranubels/repos","events_url":"https://api.github.com/users/arranubels/events{/privacy}","received_events_url":"https://api.github.com/users/arranubels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-26T02:32:24Z","updated_at":"2016-06-02T14:40:50Z","closed_at":"2016-06-02T14:40:50Z","body":"I ran the boilerplate example, and my only change was to change the contents of the class to:\r\n```\r\n    @Path(\"/\")\r\n    @GET\r\n    @Produces(MediaType.APPLICATION_JSON)\r\n    public String root() {\r\n        return \"Test\";\r\n    }\r\n\r\n    @Path(\"rest/server/test\")\r\n    @GET\r\n    @Produces(MediaType.APPLICATION_JSON)\r\n    public String test() {\r\n        return \"Test\";\r\n    }\r\n\r\n    @Path(\"rest/server/test2\")\r\n    @GET\r\n    @Produces(MediaType.APPLICATION_JSON)\r\n    public String test2() {\r\n        return \"Test\";\r\n    }\r\n```\r\nThis seems to cause an error when doing a deploy in the maven plugin:\r\n```\r\n[INFO] 4 resources found in JAR File.\r\n[INFO] Returning API: n889e5scqb\r\n[INFO] Removing all resources\r\n[INFO] Resource is being created: /\r\n[INFO] Resource created: / (gsu58nvr1l)\r\n[INFO] Methods are being deployed\r\n[INFO] Removing all methods\r\n[INFO] GET method deleted on resource id gsu58nvr1l\r\n[INFO] Resource is being created: /\r\n[INFO] Resource created: / (gsu58nvr1l)\r\n[INFO] Methods are being deployed\r\n[INFO] Removing all methods\r\n[INFO] Creating GET method on resource gsu58nvr1l\r\n[INFO] Resource is being created: /rest/server/test\r\n[INFO] Resource created: /rest/server/test (mylkmj)\r\n[INFO] Methods are being deployed\r\n[INFO] Removing all methods\r\n[INFO] Creating GET method on resource mylkmj\r\n[INFO] Resource is being created: /rest/server/test2\r\n[INFO] Resource created: /rest/server/test2 (2cscgt)\r\n[INFO] Methods are being deployed\r\n[INFO] Removing all methods\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 4:24.255s\r\n[INFO] Finished at: Thu May 26 12:31:18 EST 2016\r\n[INFO] Final Memory: 27M/341M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal org.lambadaframework:lambada-maven-plugin:0.0.4:deploy (default) on project kagura-lambda: Exception at deployment: NullPointerException -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.lambadaframework:lambada-maven-plugin:0.0.4:deploy (default) on project kagura-lambda: Exception at deployment\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:141)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)\r\n\tat org.codehaus.classworlds.Launcher.main(Launcher.java:47)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)\r\nCaused by: org.apache.maven.plugin.MojoExecutionException: Exception at deployment\r\n\tat org.lambadaframework.deployer.LambadaDeployer.execute(LambadaDeployer.java:86)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)\r\n\t... 25 more\r\nCaused by: java.lang.NullPointerException\r\n\tat org.lambadaframework.aws.ApiGateway.deployMethods(ApiGateway.java:415)\r\n\tat org.lambadaframework.aws.ApiGateway.deployResource(ApiGateway.java:380)\r\n\tat org.lambadaframework.aws.ApiGateway.lambda$walkThroughResources$1(ApiGateway.java:308)\r\n\tat org.lambadaframework.aws.ApiGateway$$Lambda$5/1976502072.accept(Unknown Source)\r\n\tat java.lang.Iterable.forEach(Iterable.java:75)\r\n\tat org.lambadaframework.aws.ApiGateway.walkThroughResources(ApiGateway.java:308)\r\n\tat org.lambadaframework.aws.ApiGateway.deployEndpoints(ApiGateway.java:107)\r\n\tat org.lambadaframework.deployer.LambadaDeployer.execute(LambadaDeployer.java:81)\r\n\t... 27 more\r\n[ERROR] \r\n[ERROR] \r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\r\n```"}}
{"actor":{"display_login":"cagataygurturk"}}