{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1648","repository_url":"https://api.github.com/repos/swagger-api/swagger-core","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1648/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1648/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1648/events","html_url":"https://github.com/swagger-api/swagger-core/issues/1648","id":131279877,"number":1648,"title":"java.lang.IllegalArgumentException: Unrecognized Type: [null] with @BeanParam and extra methods","user":{"login":"lwojtysiak","id":3667386,"avatar_url":"https://avatars.githubusercontent.com/u/3667386?v=3","gravatar_id":"","url":"https://api.github.com/users/lwojtysiak","html_url":"https://github.com/lwojtysiak","followers_url":"https://api.github.com/users/lwojtysiak/followers","following_url":"https://api.github.com/users/lwojtysiak/following{/other_user}","gists_url":"https://api.github.com/users/lwojtysiak/gists{/gist_id}","starred_url":"https://api.github.com/users/lwojtysiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwojtysiak/subscriptions","organizations_url":"https://api.github.com/users/lwojtysiak/orgs","repos_url":"https://api.github.com/users/lwojtysiak/repos","events_url":"https://api.github.com/users/lwojtysiak/events{/privacy}","received_events_url":"https://api.github.com/users/lwojtysiak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-04T08:44:10Z","updated_at":"2016-02-25T17:04:57Z","closed_at":null,"body":"Hi\r\n\r\nI have:\r\n- CXF 3.0.7\r\n- swagger-jersey2-jaxrs 1.5.6\r\n\r\nand configuration with Swagger2Feature of CXF.\r\n\r\nThe problem occurs with class annotated with @BeanParam. \r\nInside this class I have one property\r\n\r\n@HeaderParam\r\nprivate String Range;\r\n\r\nand setter/getter for it.\r\n\r\nIn this case everything works fine. But....\r\n\r\nwhen I add some extra methods, i.e. \r\npublic String getSomething() {\r\n return \"something\";\r\n}\r\n\r\nmy app is crashing with:\r\n> SEVERE: A child container failed during start\r\n> java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]\r\n> \tat java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)\r\n> \tat java.util.concurrent.FutureTask.get(FutureTask.java:111)\r\n> \tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)\r\n> \tat org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)\r\n> \tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n> \tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)\r\n> \tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)\r\n> \tat java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)\r\n> \tat java.util.concurrent.FutureTask.run(FutureTask.java:166)\r\n> \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n> \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n> \tat java.lang.Thread.run(Thread.java:724)\r\n> Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]\r\n> \tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)\r\n> \t... 7 more\r\n> Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:\r\n> Exception 0 :\r\n> org.apache.cxf.service.factory.ServiceConstructionException\r\n> \tat org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:219)\r\n> \tat org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)\r\n> \tat org.apache.cxf.cdi.JAXRSCdiResourceExtension.load(JAXRSCdiResourceExtension.java:99)\r\n> \tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n> \tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n> \tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n> \tat java.lang.reflect.Method.invoke(Method.java:606)\r\n> \tat org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:90)\r\n> \tat org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:271)\r\n> \tat org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)\r\n> \tat org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:258)\r\n> \tat org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:237)\r\n> \tat org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:174)\r\n> \tat org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:133)\r\n> \tat org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:107)\r\n> \tat org.jboss.weld.bootstrap.events.AbstractContainerEvent._fire(AbstractContainerEvent.java:54)\r\n> \tat org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java)\r\n> \tat org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)\r\n> \tat org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)\r\n> \tat org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:423)\r\n> \tat org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)\r\n> \tat org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:149)\r\n> \tat org.jboss.weld.environment.servlet.EnhancedListener.onStartup(EnhancedListener.java:62)\r\n> \tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5423)\r\n> \tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n> \tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)\r\n> \tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)\r\n> \tat java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)\r\n> \tat java.util.concurrent.FutureTask.run(FutureTask.java:166)\r\n> \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n> \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n> \tat java.lang.Thread.run(Thread.java:724)\r\n> Caused by: java.lang.IllegalArgumentException: Unrecognized Type: [null]\r\n> \tat com.fasterxml.jackson.databind.type.TypeFactory._constructType(TypeFactory.java:406)\r\n> \tat com.fasterxml.jackson.databind.type.TypeFactory.constructType(TypeFactory.java:354)\r\n> \tat io.swagger.jaxrs.ext.AbstractSwaggerExtension.constructType(AbstractSwaggerExtension.java:53)\r\n> \tat io.swagger.jaxrs.ext.AbstractSwaggerExtension.shouldIgnoreType(AbstractSwaggerExtension.java:45)\r\n> \tat io.swagger.jersey.SwaggerJersey2Jaxrs.extractParameters(SwaggerJersey2Jaxrs.java:40)\r\n> \tat io.swagger.jersey.SwaggerJersey2Jaxrs.extractParameters(SwaggerJersey2Jaxrs.java:82)\r\n> \tat io.swagger.jaxrs.Reader.getParameters(Reader.java:854)\r\n> \tat io.swagger.jaxrs.Reader.parseMethod(Reader.java:830)\r\n> \tat io.swagger.jaxrs.Reader.read(Reader.java:275)\r\n> \tat io.swagger.jaxrs.Reader.read(Reader.java:147)\r\n> \tat io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:172)\r\n> \tat org.apache.cxf.jaxrs.swagger.Swagger2Feature.addSwaggerResource(Swagger2Feature.java:109)\r\n> \tat org.apache.cxf.jaxrs.swagger.AbstractSwaggerFeature.initialize(AbstractSwaggerFeature.java:46)\r\n> \tat org.apache.cxf.jaxrs.JAXRSServerFactoryBean.applyFeatures(JAXRSServerFactoryBean.java:252)\r\n> \tat org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:196)\r\n> \t... 31 more\r\n> \tat org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:37)\r\n> \tat org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)\r\n> \tat org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:423)\r\n> \tat org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)\r\n> \tat org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:149)\r\n> \tat org.jboss.weld.environment.servlet.EnhancedListener.onStartup(EnhancedListener.java:62)\r\n> \tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5423)\r\n> \tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n> \t... 7 more\r\n\r\n\r\nI have already tested in different configurations ant I'm sure that any extra method (with \"getXXX\") creates exception. When I changed the same method to \"isSomething\" - app works fine."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments/188879900","html_url":"https://github.com/swagger-api/swagger-core/issues/1648#issuecomment-188879900","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1648","id":188879900,"user":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T17:04:57Z","updated_at":"2016-02-25T17:04:57Z","body":"@frantuma can you look at this?"}}