{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-samples/issues/52","repository_url":"https://api.github.com/repos/swagger-api/swagger-samples","labels_url":"https://api.github.com/repos/swagger-api/swagger-samples/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-samples/issues/52/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-samples/issues/52/events","html_url":"https://github.com/swagger-api/swagger-samples/issues/52","id":139831921,"number":52,"title":"Error injecting constructor, java.lang.IllegalArgumentException: Unrecognized Type: [null]","user":{"login":"rwijngaa","id":688350,"avatar_url":"https://avatars.githubusercontent.com/u/688350?v=3","gravatar_id":"","url":"https://api.github.com/users/rwijngaa","html_url":"https://github.com/rwijngaa","followers_url":"https://api.github.com/users/rwijngaa/followers","following_url":"https://api.github.com/users/rwijngaa/following{/other_user}","gists_url":"https://api.github.com/users/rwijngaa/gists{/gist_id}","starred_url":"https://api.github.com/users/rwijngaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwijngaa/subscriptions","organizations_url":"https://api.github.com/users/rwijngaa/orgs","repos_url":"https://api.github.com/users/rwijngaa/repos","events_url":"https://api.github.com/users/rwijngaa/events{/privacy}","received_events_url":"https://api.github.com/users/rwijngaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-10T09:26:53Z","updated_at":"2016-03-10T09:26:53Z","closed_at":null,"body":"Hi,\r\n\r\nI'm porting my Play app from 2.3 to 2.4 (and using Guice to do DI) and i'm getting the \r\n> Error injecting constructor, java.lang.IllegalArgumentException: Unrecognized Type: [null]\r\nat startup.\r\n\r\nI updated my dependencies from\r\n   ```\r\n \"com.wordnik\" %% \"swagger-play2\" % \"1.3.13\" exclude(\"org.reflections\", \"reflections\"),\r\n    \"org.reflections\" % \"reflections\" % \"0.9.8\" notTransitive()\r\n```\r\nto \r\n  ```\r\n\"io.swagger\" %% \"swagger-play2\" % \"1.5.1\",\r\n  \"io.swagger\" % \"swagger-parser\" % \"1.0.16\",\r\n```\r\n\r\nand added \r\n`play.modules.enabled += \"play.modules.swagger.SwaggerModule\"`\r\n\r\nNote: i removed \"@ApiImplicitParams\" because i thought that was causing it, but to no avail.\r\n\r\n```\r\n1) Error injecting constructor, java.lang.IllegalArgumentException: Unrecognized Type: [null]\r\n  at play.modules.swagger.SwaggerPluginImpl.<init>(SwaggerPlugin.scala:33)\r\n  while locating play.modules.swagger.SwaggerPluginImpl\r\n  at play.modules.swagger.SwaggerModule.bindings(SwaggerModule.scala:11):\r\nBinding(interface play.modules.swagger.SwaggerPlugin to ConstructionTarget(class play.modules.swagger.SwaggerPluginImpl) eagerly) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1)\r\n  while locating play.modules.swagger.SwaggerPlugin\r\n\r\n1 error\r\n\tat com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466) ~[guice.jar:na]\r\n\tat com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:184) ~[guice.jar:na]\r\n\tat com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110) ~[guice.jar:na]\r\n\tat com.google.inject.Guice.createInjector(Guice.java:96) ~[guice.jar:na]\r\n\tat com.google.inject.Guice.createInjector(Guice.java:73) ~[guice.jar:na]\r\n\tat com.google.inject.Guice.createInjector(Guice.java:62) ~[guice.jar:na]\r\n\tat play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:126) ~[play_2.11-2.4.6.jar:2.4.6]\r\n\tat play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:93) ~[play_2.11-2.4.6.jar:2.4.6]\r\n\tat play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21) ~[play_2.11-2.4.6.jar:2.4.6]\r\n\tat play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1$$anonfun$2.apply(DevServerStart.scala:153) ~[play-server_2.11-2.4.6.jar:2.4.6]\r\nCaused by: java.lang.IllegalArgumentException: Unrecognized Type: [null]\r\n\tat com.fasterxml.jackson.databind.type.TypeFactory._constructType(TypeFactory.java:405) ~[jackson-databind.jar:2.5.4]\r\n\tat com.fasterxml.jackson.databind.type.TypeFactory.constructType(TypeFactory.java:354) ~[jackson-databind.jar:2.5.4]\r\n\tat com.fasterxml.jackson.databind.ObjectMapper.constructType(ObjectMapper.java:1332) ~[jackson-databind.jar:2.5.4]\r\n\tat io.swagger.scala.converter.SwaggerScalaModelConverter.resolveProperty(SwaggerScalaModelConverter.scala:32) ~[swagger-scala-module_2.11-1.0.0.jar:1.0.0]\r\n\tat io.swagger.converter.ModelConverterContextImpl.resolveProperty(ModelConverterContextImpl.java:79) ~[swagger-core-1.5.6.jar:1.5.6]\r\n\tat io.swagger.converter.ModelConverters.readAsProperty(ModelConverters.java:58) ~[swagger-core-1.5.6.jar:1.5.6]\r\n\tat play.modules.swagger.PlayReader.createProperty(PlayReader.java:667) ~[swagger-play2_2.11-1.5.1.jar:1.5.1]\r\n\tat play.modules.swagger.PlayReader.getParameters(PlayReader.java:591) ~[swagger-play2_2.11-1.5.1.jar:1.5.1]\r\n\tat play.modules.swagger.PlayReader.parseMethod(PlayReader.java:514) ~[swagger-play2_2.11-1.5.1.jar:1.5.1]\r\n\tat play.modules.swagger.PlayReader.read(PlayReader.java:136) ~[swagger-play2_2.11-1.5.1.jar:1.5.1]\r\n```"}}