java.lang.VerifyError: StackMapTable format error: bad type array size in method com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(ILjava/lang/Object;)V

GitHub | sfthomas | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    SQL Server prepared statement setObject instrumentation error

    GitHub | 8 months ago | sfthomas
    java.lang.VerifyError: StackMapTable format error: bad type array size in method com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(ILjava/lang/Object;)V

    Root Cause Analysis

    1. java.lang.VerifyError

      StackMapTable format error: bad type array size in method com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(ILjava/lang/Object;)V

      at com.microsoft.sqlserver.jdbc.SQLServerConnection.prepareStatement()
    2. com.microsoft.sqlserver
      SQLServerConnection.prepareStatement
      1. com.microsoft.sqlserver.jdbc.SQLServerConnection.prepareStatement(SQLServerConnection.java:2167)
      2. com.microsoft.sqlserver.jdbc.SQLServerConnection.prepareStatement(SQLServerConnection.java:1853)
      2 frames
    3. org.apache.tomcat
      DelegatingConnection.prepareStatement
      1. org.apache.tomcat.dbcp.dbcp2.DelegatingConnection.prepareStatement(DelegatingConnection.java:287)
      2. org.apache.tomcat.dbcp.dbcp2.DelegatingConnection.prepareStatement(DelegatingConnection.java:287)
      2 frames
    4. Hibernate
      QueryImpl.list
      1. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:146)
      2. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172)
      3. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:148)
      4. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1927)
      5. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1896)
      6. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1874)
      7. org.hibernate.loader.Loader.doQuery(Loader.java:919)
      8. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336)
      9. org.hibernate.loader.Loader.doList(Loader.java:2610)
      10. org.hibernate.loader.Loader.doList(Loader.java:2593)
      11. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2422)
      12. org.hibernate.loader.Loader.list(Loader.java:2417)
      13. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:501)
      14. org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371)
      15. org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)
      16. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1339)
      17. org.hibernate.internal.QueryImpl.list(QueryImpl.java:87)
      17 frames
    5. org.hibernate.jpa
      QueryImpl.getResultList
      1. org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:606)
      2. org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:483)
      2 frames