org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'api' defined in class path resource [com/siemens/isb/rest/hateoas/configuration/SwaggerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.spring.web.plugins.Docket]: Factory method 'api' threw exception; nested exception is java.lang.IllegalArgumentException: Can not create TypeBinding for class org.springframework.hateoas.Link with 1 type parameter: class expects 0

GitHub | jiangchuan1220 | 3 months ago
  1. 0

    GitHub comment 1440#242646642

    GitHub | 3 months ago | jiangchuan1220
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'api' defined in class path resource [com/siemens/isb/rest/hateoas/configuration/SwaggerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.spring.web.plugins.Docket]: Factory method 'api' threw exception; nested exception is java.lang.IllegalArgumentException: Can not create TypeBinding for class org.springframework.hateoas.Link with 1 type parameter: class expects 0
  2. 0

    Creating CollectionType for non generic collection class broken

    GitHub | 2 months ago | Spikhalskiy
    java.lang.IllegalArgumentException: Can not create TypeBindings for class com.fasterxml.jackson.databind.type.TestTypeFactory$MyList with 1 type parameter: class expects 0
  3. 0

    How to setup a Jersey client with Jackson (2.x) provider to process a POST request

    Stack Overflow | 3 years ago | zazi
    javax.ws.rs.ProcessingException: Error reading entity from input stream.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    com.fasterxml.jackson.databind.JsonMappingException

    Stack Overflow | 1 year ago | Syed
    java.lang.IllegalArgumentException: Can not find a deserializer for non-concrete Collection type [collection type; class com.google.common.collect.ImmutableList, contains [simple type, class com.facebook.presto.spi.HostAddress]]
  6. 0

    Custom data types using EclipseLink and Querydsl

    Stack Overflow | 3 years ago
    java.lang.IllegalArgumentException: You have attempted to set a value of type class java.lang.String for parameter 1 with expected type of class xxx.Email from query string select person from Person person where person.email like ?1 escape '!' order by person.email asc.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Can not create TypeBinding for class org.springframework.hateoas.Link with 1 type parameter: class expects 0

      at com.fasterxml.classmate.TypeBindings.create()
    2. ClassMate
      TypeResolver.resolve
      1. com.fasterxml.classmate.TypeBindings.create(TypeBindings.java:91)[classmate-1.3.1.jar:1.3.1]
      2. com.fasterxml.classmate.TypeResolver.resolve(TypeResolver.java:145)[classmate-1.3.1.jar:1.3.1]
      2 frames
    3. com.siemens.isb
      SwaggerConfig$$EnhancerBySpringCGLIB$$b4b8b8fc$$FastClassBySpringCGLIB$$740605ec.invoke
      1. com.siemens.isb.rest.hateoas.configuration.SwaggerConfig.api(SwaggerConfig.java:55)[bin/:na]
      2. com.siemens.isb.rest.hateoas.configuration.SwaggerConfig$$EnhancerBySpringCGLIB$$b4b8b8fc.CGLIB$api$0(<generated>)[bin/:na]
      3. com.siemens.isb.rest.hateoas.configuration.SwaggerConfig$$EnhancerBySpringCGLIB$$b4b8b8fc$$FastClassBySpringCGLIB$$740605ec.invoke(<generated>)[bin/:na]
      3 frames
    4. Spring Core
      MethodProxy.invokeSuper
      1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame
    5. Spring Context
      ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
      1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:355)[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame
    6. com.siemens.isb
      SwaggerConfig$$EnhancerBySpringCGLIB$$b4b8b8fc.api
      1. com.siemens.isb.rest.hateoas.configuration.SwaggerConfig$$EnhancerBySpringCGLIB$$b4b8b8fc.api(<generated>)[bin/:na]
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_65]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_65]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_65]
      4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_65]
      4 frames
    8. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      11. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      11 frames
    9. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      2 frames
    10. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
      2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
      3. org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
      6 frames
    11. com.siemens.isb
      Application.main
      1. com.siemens.isb.rest.hateoas.Application.main(Application.java:33)[bin/:na]
      1 frame