org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is java.lang.VerifyError: Bad type on operand stack|Exception Details:| Location:| org/springframework/web/servlet/mvc/condition/ProducesRequestCondition.compareMatchingMediaTypes(Lorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;ILorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;I)I @83: invokevirtual| Reason:| Type 'org/springframework/http/MediaType' (current frame, stack[1]) is not assignable to 'org/springframework/util/MimeType'| Current Frame:| bci: @83| flags: { }| locals: { 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression' }| stack: { 'org/springframework/http/MediaType', 'org/springframework/http/MediaType' }| Bytecode:| 0000000: 0336 051c 1504 9f00 0c15 041c 6436 05a7| 0000010: 0049 1c02 9f00 442b b700 3b1c b900 3d02| 0000020: 00c0 0006 3a06 2db7 003b 1504 b900 3d02| 0000030: 00c0 0006 3a07 1906 1907 b600 4136 0515| 0000040: 0599 0008 1505 a700 1019 06b6 0026 1907| 0000050: b600 26b6 0042 3605 1505 ac | Stackmap Table:| append_frame(@18,Integer)| append_frame(@73,Object[#178],Object[#178])| same_locals_1_stack_item_frame(@86,Integer)| chop_frame(@88,2)|

Google Groups | Unknown author | 1 year ago
  1. 0

    service-proxy-core-4.1.0 and Spring 4

    Google Groups | 1 year ago | Unknown author
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is java.lang.VerifyError: Bad type on operand stack|Exception Details:| Location:| org/springframework/web/servlet/mvc/condition/ProducesRequestCondition.compareMatchingMediaTypes(Lorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;ILorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;I)I @83: invokevirtual| Reason:| Type 'org/springframework/http/MediaType' (current frame, stack[1]) is not assignable to 'org/springframework/util/MimeType'| Current Frame:| bci: @83| flags: { }| locals: { 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression' }| stack: { 'org/springframework/http/MediaType', 'org/springframework/http/MediaType' }| Bytecode:| 0000000: 0336 051c 1504 9f00 0c15 041c 6436 05a7| 0000010: 0049 1c02 9f00 442b b700 3b1c b900 3d02| 0000020: 00c0 0006 3a06 2db7 003b 1504 b900 3d02| 0000030: 00c0 0006 3a07 1906 1907 b600 4136 0515| 0000040: 0599 0008 1505 a700 1019 06b6 0026 1907| 0000050: b600 26b6 0042 3605 1505 ac | Stackmap Table:| append_frame(@18,Integer)| append_frame(@73,Object[#178],Object[#178])| same_locals_1_stack_item_frame(@86,Integer)| chop_frame(@88,2)|
  2. 0

    spring org.springframework.beans.factory.BeanCreationException

    Stack Overflow | 1 year ago | AmitG
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/springframework/web/servlet/mvc/condition/ProducesRequestCondition.compareMatchingMediaTypes(Lorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;ILorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;I)I @89: invokevirtual Reason: Type 'org/springframework/http/MediaType' (current frame, stack[1]) is not assignable to 'org/springframework/util/MimeType' Current Frame: bci: @89 flags: { } locals: { 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression' } stack: { 'org/springframework/http/MediaType', 'org/springframework/http/MediaType' } Bytecode: 0x0000000: 0336 051c 1504 9f00 0c15 041c 6436 05a7 0x0000010: 004f 1c02 9f00 4a15 0402 9f00 442b b700 0x0000020: 3b1c b900 3d02 00c0 0006 3a06 2db7 003b 0x0000030: 1504 b900 3d02 00c0 0006 3a07 1906 1907 0x0000040: b600 4136 0515 0599 0008 1505 a700 1019 0x0000050: 06b6 0026 1907 b600 26b6 0042 3605 1505 0x0000060: ac Stackmap Table: append_frame(@18,Integer) append_frame(@79,Object[#178],Object[#178]) same_locals_1_stack_item_frame(@92,Integer) chop_frame(@94,2)
  3. 0

    Type 'org/springframework/http/MediaType' (current frame, stack[1]) is not assignable to 'org/springframework/util/MimeType'

    Stack Overflow | 3 years ago | Oleksii
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/springframework/web/servlet/mvc/condition/ProducesRequestCondition.compareMatchingMediaTypes(Lorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;ILorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;I)I @83: invokevirtual Reason: Type 'org/springframework/http/MediaType' (current frame, stack[1]) is not assignable to 'org/springframework/util/MimeType' Current Frame: bci: @83 flags: { } locals: { 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression' } stack: { 'org/springframework/http/MediaType', 'org/springframework/http/MediaType' } Bytecode: 0000000: 0336 051c 1504 9f00 0c15 041c 6436 05a7 0000010: 0049 1c02 9f00 442b b700 3b1c b900 3d02 0000020: 00c0 0006 3a06 2db7 003b 1504 b900 3d02 0000030: 00c0 0006 3a07 1906 1907 b600 4136 0515 0000040: 0599 0008 1505 a700 1019 06b6 0026 1907 0000050: b600 26b6 0042 3605 1505 ac Stackmap Table: append_frame(@18,Integer) append_frame(@73,Object[#178],Object[#178]) same_locals_1_stack_item_frame(@86,Integer) chop_frame(@88,2)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    wildfly 8.2 SpringBoot java.lang.VerifyError: Bad type on operand stack

    Stack Overflow | 1 year ago | vishal
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/springframework/web/context/support/StandardServletEnvironment.customizePropertySources(Lorg/springframework/core/env/MutablePropertySources;)V @42: invokevirtual Reason: Type 'org/springframework/jndi/JndiPropertySource' (current frame, stack[1]) is not assignable to 'org/springframework/core/env/PropertySource' Current Frame: bci: @42 flags: { } locals: { 'org/springframework/web/context/support/StandardServletEnvironment', 'org/springframework/core/env/MutablePropertySources' } stack: { 'org/springframework/core/env/MutablePropertySources', 'org/springframework/jndi/JndiPropertySource' } Bytecode: 0x0000000: 2bbb 0002 5912 04b7 0005 b600 062b bb00 0x0000010: 0259 1207 b700 05b6 0006 b800 0899 0010 0x0000020: 2bbb 0009 5912 0ab7 000b b600 062a 2bb7 0x0000030: 000c b1 Stackmap Table: same_frame(@45)
  6. 0

    Incompatible argument to function

    Stack Overflow | 3 years ago | user2982680
    java.lang.VerifyError: (class: org/springframework/web/servlet/FrameworkServlet, method: processRequest signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible argument to function

    1 unregistered visitors
    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.VerifyError

      Bad type on operand stack|Exception Details:| Location:| org/springframework/web/servlet/mvc/condition/ProducesRequestCondition.compareMatchingMediaTypes(Lorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;ILorg/springframework/web/servlet/mvc/condition/ProducesRequestCondition;I)I @83: invokevirtual| Reason:| Type 'org/springframework/http/MediaType' (current frame, stack[1]) is not assignable to 'org/springframework/util/MimeType'| Current Frame:| bci: @83| flags: { }| locals: { 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition', integer, integer, 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression', 'org/springframework/web/servlet/mvc/condition/ProducesRequestCondition$ProduceMediaTypeExpression' }| stack: { 'org/springframework/http/MediaType', 'org/springframework/http/MediaType' }| Bytecode:| 0000000: 0336 051c 1504 9f00 0c15 041c 6436 05a7| 0000010: 0049 1c02 9f00 442b b700 3b1c b900 3d02| 0000020: 00c0 0006 3a06 2db7 003b 1504 b900 3d02| 0000030: 00c0 0006 3a07 1906 1907 b600 4136 0515| 0000040: 0599 0008 1505 a700 1019 06b6 0026 1907| 0000050: b600 26b6 0042 3605 1505 ac | Stackmap Table:| append_frame(@18,Integer)| append_frame(@73,Object[#178],Object[#178])| same_locals_1_stack_item_frame(@86,Integer)| chop_frame(@88,2)|

      at org.springframework.web.servlet.mvc.method.RequestMappingInfo$DefaultBuilder.build()
    2. Spring MVC
      AbstractHandlerMethodMapping$1.matches
      1. org.springframework.web.servlet.mvc.method.RequestMappingInfo$DefaultBuilder.build(RequestMappingInfo.java:507)
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.createRequestMappingInfo(RequestMappingHandlerMapping.java:266)
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.createRequestMappingInfo(RequestMappingHandlerMapping.java:214)
      4. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.getMappingForMethod(RequestMappingHandlerMapping.java:193)
      5. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.getMappingForMethod(RequestMappingHandlerMapping.java:53)
      6. org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$1.matches(AbstractHandlerMethodMapping.java:210)
      6 frames
    3. Spring
      HandlerMethodSelector$1.doWith
      1. org.springframework.web.method.HandlerMethodSelector$1.doWith(HandlerMethodSelector.java:62)
      1 frame
    4. Spring Core
      ReflectionUtils.doWithMethods
      1. org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:524)
      1 frame
    5. Spring
      HandlerMethodSelector.selectMethods
      1. org.springframework.web.method.HandlerMethodSelector.selectMethods(HandlerMethodSelector.java:57)
      1 frame
    6. Spring MVC
      RequestMappingHandlerMapping.afterPropertiesSet
      1. org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:207)
      2. org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:182)
      3. org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:163)
      4. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:133)
      4 frames
    7. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
      9 frames
    8. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:834)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
      2 frames
    9. Spring MVC
      HttpServletBean.init
      1. org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)
      2. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)
      3. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)
      4. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)
      5. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)
      6. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
      6 frames
    10. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:244)
      1 frame