Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent instrumentation errors with JDBC PreparedStatement #277

Closed
jhsheets opened this issue Feb 5, 2016 · 5 comments
Closed

Agent instrumentation errors with JDBC PreparedStatement #277

jhsheets opened this issue Feb 5, 2016 · 5 comments
Labels
Milestone

Comments

@jhsheets
Copy link

jhsheets commented Feb 5, 2016

Here's the stacktrace:

org.jboss.weld.interceptor.proxy.InterceptorException: java.lang.VerifyError: StackMapTable format error: bad type array size in method com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setTime(ILjava/sql/Time;)V
    at org.jboss.weld.interceptor.proxy.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:150) ~[weld-servlet.jar:2013-07-17 09:29]
    at org.mybatis.cdi.LocalTransactionInterceptor.invoke(LocalTransactionInterceptor.java:58) ~[mybatis-cdi-1.0.0-beta1.jar:1.0.0-beta1]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
    at org.jboss.weld.interceptor.proxy.SimpleMethodInvocation.invoke(SimpleMethodInvocation.java:30) ~[weld-servlet.jar:2013-07-17 09:29]
    at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNext(AbstractInterceptionChain.java:93) ~[weld-servlet.jar:2013-07-17 09:29]
    at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:78) ~[weld-servlet.jar:2013-07-17 09:2
@gupele
Copy link
Contributor

gupele commented Feb 17, 2016

Hi,

Thank you for your input

The method signature has the index: "(ILjava/sql/Time;)V", (the 'I') which makes it difficult to understand.
Is there a way in which you can narrow down the scenario?

@jhsheets
Copy link
Author

I noticed that the signature looks correct. I don't know much about
bytecode manipulation to know exactly what the issue is. There is an
overloaded setTime method that takes a Calendar object that you're not
instrumenting. Maybe that's the issue?

On Wed, Feb 17, 2016 at 4:21 AM, gupele notifications@github.com wrote:

Hi,

Thank you for your input

The method signature has the index: "(ILjava/sql/Time;)V", (the 'I') which
makes it difficult to understand.
Is there a way in which you can narrow down the scenario?


Reply to this email directly or view it on GitHub
#277 (comment)
.

@tfoel
Copy link

tfoel commented Jul 1, 2016

I am facing the same issue - trying to use the SQLServer JDBC4 drivers (version 4.0) in Tomcat, with Hibernate, but it's erroring out with the above. Tried switching to version 6.0, as well as switcing to JDBC4.2, but none of them solved the problem.

EDIT - actually, the error message is a bit different for me, opening a new issue...

@Dmitry-Matveev
Copy link
Member

Dmitry-Matveev commented Feb 2, 2017

As a temporary workaround I would recommend to disable JDBC instrumentation in AI-Agent.xml config to avoid failures if they continue even with version 1.0.7.

@Dmitry-Matveev Dmitry-Matveev added this to the 1.0.8 milestone Feb 2, 2017
@beckylino beckylino modified the milestones: 1.0.9, 1.0.8 Jun 5, 2017
@beckylino beckylino modified the milestones: 1.0.9, 1.0.10 Jun 15, 2017
@beckylino beckylino modified the milestones: future, 1.0.10 Aug 2, 2017
@dhaval24 dhaval24 modified the milestones: future, 1.0.11 Oct 2, 2017
@dhaval24
Copy link
Contributor

dhaval24 commented Dec 5, 2017

fixed in #449

@dhaval24 dhaval24 closed this as completed Dec 5, 2017
@dhaval24 dhaval24 modified the milestones: 1.0.11, 2.0.0 Dec 27, 2017
@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants