{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1947","repository_url":"https://api.github.com/repos/apache/incubator-skywalking","labels_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1947/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1947/comments","events_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1947/events","html_url":"https://github.com/apache/incubator-skywalking/issues/1947","id":383448708,"node_id":"MDU6SXNzdWUzODM0NDg3MDg=","number":1947,"title":"Exception :: InstMethodsInter : class[class com.mysql.jdbc.NonRegisteringDriver] after method[connect] intercept failure","user":{"login":"ychandu","id":5145172,"node_id":"MDQ6VXNlcjUxNDUxNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/5145172?v=4","gravatar_id":"","url":"https://api.github.com/users/ychandu","html_url":"https://github.com/ychandu","followers_url":"https://api.github.com/users/ychandu/followers","following_url":"https://api.github.com/users/ychandu/following{/other_user}","gists_url":"https://api.github.com/users/ychandu/gists{/gist_id}","starred_url":"https://api.github.com/users/ychandu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ychandu/subscriptions","organizations_url":"https://api.github.com/users/ychandu/orgs","repos_url":"https://api.github.com/users/ychandu/repos","events_url":"https://api.github.com/users/ychandu/events{/privacy}","received_events_url":"https://api.github.com/users/ychandu/received_events","type":"User","site_admin":false},"labels":[{"id":830850387,"node_id":"MDU6TGFiZWw4MzA4NTAzODc=","url":"https://api.github.com/repos/apache/incubator-skywalking/labels/agent","name":"agent","color":"c2e0c6","default":false},{"id":283421094,"node_id":"MDU6TGFiZWwyODM0MjEwOTQ=","url":"https://api.github.com/repos/apache/incubator-skywalking/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"ascrutae","id":12436447,"node_id":"MDQ6VXNlcjEyNDM2NDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/12436447?v=4","gravatar_id":"","url":"https://api.github.com/users/ascrutae","html_url":"https://github.com/ascrutae","followers_url":"https://api.github.com/users/ascrutae/followers","following_url":"https://api.github.com/users/ascrutae/following{/other_user}","gists_url":"https://api.github.com/users/ascrutae/gists{/gist_id}","starred_url":"https://api.github.com/users/ascrutae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascrutae/subscriptions","organizations_url":"https://api.github.com/users/ascrutae/orgs","repos_url":"https://api.github.com/users/ascrutae/repos","events_url":"https://api.github.com/users/ascrutae/events{/privacy}","received_events_url":"https://api.github.com/users/ascrutae/received_events","type":"User","site_admin":false},"assignees":[{"login":"ascrutae","id":12436447,"node_id":"MDQ6VXNlcjEyNDM2NDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/12436447?v=4","gravatar_id":"","url":"https://api.github.com/users/ascrutae","html_url":"https://github.com/ascrutae","followers_url":"https://api.github.com/users/ascrutae/followers","following_url":"https://api.github.com/users/ascrutae/following{/other_user}","gists_url":"https://api.github.com/users/ascrutae/gists{/gist_id}","starred_url":"https://api.github.com/users/ascrutae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascrutae/subscriptions","organizations_url":"https://api.github.com/users/ascrutae/orgs","repos_url":"https://api.github.com/users/ascrutae/repos","events_url":"https://api.github.com/users/ascrutae/events{/privacy}","received_events_url":"https://api.github.com/users/ascrutae/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/apache/incubator-skywalking/milestones/31","html_url":"https://github.com/apache/incubator-skywalking/milestone/31","labels_url":"https://api.github.com/repos/apache/incubator-skywalking/milestones/31/labels","id":3695964,"node_id":"MDk6TWlsZXN0b25lMzY5NTk2NA==","number":31,"title":"6.0.0-beta","description":"","creator":{"login":"wu-sheng","id":5441976,"node_id":"MDQ6VXNlcjU0NDE5NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5441976?v=4","gravatar_id":"","url":"https://api.github.com/users/wu-sheng","html_url":"https://github.com/wu-sheng","followers_url":"https://api.github.com/users/wu-sheng/followers","following_url":"https://api.github.com/users/wu-sheng/following{/other_user}","gists_url":"https://api.github.com/users/wu-sheng/gists{/gist_id}","starred_url":"https://api.github.com/users/wu-sheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wu-sheng/subscriptions","organizations_url":"https://api.github.com/users/wu-sheng/orgs","repos_url":"https://api.github.com/users/wu-sheng/repos","events_url":"https://api.github.com/users/wu-sheng/events{/privacy}","received_events_url":"https://api.github.com/users/wu-sheng/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":153,"state":"closed","created_at":"2018-09-28T07:58:28Z","updated_at":"2019-01-11T02:00:54Z","due_on":null,"closed_at":"2018-12-14T15:22:23Z"},"comments":6,"created_at":"2018-11-22T09:31:44Z","updated_at":"2019-02-01T09:41:07Z","closed_at":"2018-11-27T14:05:01Z","author_association":"NONE","body":"Please answer these questions before submitting your issue.\r\n\r\n- Why do you submit this issue?\r\n- [X ] Question or discussion\r\n- [ ] Bug\r\n- [] Requirement\r\n- [ ] Feature or performance improvement\r\n\r\n___\r\n### Question\r\n- ERROR 2018-11-22 07:39:21:390 InstMethodsInter :  class[class com.mysql.jdbc.NonRegisteringDriver] after method[connect] intercept failure\r\njava.lang.ClassCastException: com.sun.proxy.$Proxy93 cannot be cast to org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance\r\n        at org.apache.skywalking.apm.plugin.jdbc.JDBCDriverInterceptor.afterMethod(JDBCDriverInterceptor.java:45)\r\n        at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:105)\r\n        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java)\r\n        at com.mysql.jdbc.ReplicationConnectionProxy.initializeSlavesConnection(ReplicationConnectionProxy.java:430)\r\n        at com.mysql.jdbc.ReplicationConnectionProxy.<init>(ReplicationConnectionProxy.java:170)\r\n        at com.mysql.jdbc.ReplicationConnectionProxy.createProxyInstance(ReplicationConnectionProxy.java:85)\r\n        at com.mysql.jdbc.NonRegisteringDriver.connectReplicationConnection(NonRegisteringDriver.java:457)\r\n        at com.mysql.jdbc.NonRegisteringDriver.connect$original$i2EwiijI(NonRegisteringDriver.java:314)\r\n        at com.mysql.jdbc.NonRegisteringDriver.connect$original$i2EwiijI$accessor$vTQvnzP9(NonRegisteringDriver.java)\r\n        at com.mysql.jdbc.NonRegisteringDriver$auxiliary$6GDXOaKs.call(Unknown Source)\r\n        at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:93)\r\n        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java)\r\n        at com.mysql.jdbc.Driver.connect$accessor$5Y4GCtgv(Driver.java)\r\n        at com.mysql.jdbc.Driver$auxiliary$JfVgABkU.call(Unknown Source)\r\n        at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:93)\r\n        at com.mysql.jdbc.Driver.connect(Driver.java)\r\n        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)\r\n        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)\r\n        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)\r\n        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)\r\n        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)\r\n        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)\r\n        at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)\r\n        at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)\r\n        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)\r\n\r\n\r\nI am getting the above class cast exception in my Javagent. with the latest skywalking 6- alpha release. Please let me know how to handle this exception other than upgrading in cp30 jar\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-skywalking/issues/comments/459663997","html_url":"https://github.com/apache/incubator-skywalking/issues/1947#issuecomment-459663997","issue_url":"https://api.github.com/repos/apache/incubator-skywalking/issues/1947","id":459663997,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1OTY2Mzk5Nw==","user":{"login":"Lokipy","id":28128654,"node_id":"MDQ6VXNlcjI4MTI4NjU0","avatar_url":"https://avatars2.githubusercontent.com/u/28128654?v=4","gravatar_id":"","url":"https://api.github.com/users/Lokipy","html_url":"https://github.com/Lokipy","followers_url":"https://api.github.com/users/Lokipy/followers","following_url":"https://api.github.com/users/Lokipy/following{/other_user}","gists_url":"https://api.github.com/users/Lokipy/gists{/gist_id}","starred_url":"https://api.github.com/users/Lokipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lokipy/subscriptions","organizations_url":"https://api.github.com/users/Lokipy/orgs","repos_url":"https://api.github.com/users/Lokipy/repos","events_url":"https://api.github.com/users/Lokipy/events{/privacy}","received_events_url":"https://api.github.com/users/Lokipy/received_events","type":"User","site_admin":false},"created_at":"2019-02-01T09:41:07Z","updated_at":"2019-02-01T09:41:07Z","author_association":"NONE","body":"- question\r\nI also have this problem.\r\nwith the latest skywalking 6.0.0-beta，help。\r\n`DEBUG 2019-02-01 17:14:22:533 AbstractClassEnhancePluginDefine :  prepare to enhance class com.mysql.jdbc.JDBC42PreparedStatement by org.apache.skywalking.apm.plugin.jdbc.mysql.define.PreparedStatementInstrumentation.\r\nDEBUG 2019-02-01 17:14:22:533 AbstractClassEnhancePluginDefine :  enhance class com.mysql.jdbc.JDBC42PreparedStatement by org.apache.skywalking.apm.plugin.jdbc.mysql.define.PreparedStatementInstrumentation completely.\r\nDEBUG 2019-02-01 17:14:22:533 SkyWalkingAgent :  Finish the prepare stage for com.mysql.jdbc.JDBC42PreparedStatement.\r\nDEBUG 2019-02-01 17:14:22:571 SkyWalkingAgent :  On Transformation class com.mysql.jdbc.JDBC42PreparedStatement.\r\nERROR 2019-02-01 17:14:22:586 InstMethodsInter :  class[class com.mysql.jdbc.NonRegisteringDriver] after method[connect] intercept failure\r\njava.lang.ClassCastException: com.sun.proxy.$Proxy121 cannot be cast to org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance\r\n        at org.apache.skywalking.apm.plugin.jdbc.JDBCDriverInterceptor.afterMethod(JDBCDriverInterceptor.java:45)\r\n        at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:105)\r\n        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java)\r\n        at com.mysql.jdbc.ReplicationConnectionProxy.initializeSlavesConnection(ReplicationConnectionProxy.java:444)\r\n        at com.mysql.jdbc.ReplicationConnectionProxy.<init>(ReplicationConnectionProxy.java:170)\r\n        at com.mysql.jdbc.ReplicationConnectionProxy.createProxyInstance(ReplicationConnectionProxy.java:85)\r\n        at com.mysql.jdbc.NonRegisteringDriver.connectReplicationConnection(NonRegisteringDriver.java:459)\r\n        at com.mysql.jdbc.NonRegisteringReplicationDriver.connect(NonRegisteringReplicationDriver.java:46)\r\n        at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1570)\r\n        at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1636)\r\n        at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:874)\r\n        at com.mapletown.common.datamanager.druid.DruidAutoConfiguration.buildDataSource(DruidAutoConfiguration.java:72)\r\n        at com.mapletown.common.datamanager.druid.DruidAutoConfiguration.dataSource(DruidAutoConfiguration.java:41)\r\n        at com.mapletown.common.datamanager.druid.DruidAutoConfiguration$$EnhancerBySpringCGLIB$$51545aed.CGLIB$dataSource$0(<generated>)\r\n        at com.mapletown.common.datamanager.druid.DruidAutoConfiguration$$EnhancerBySpringCGLIB$$51545aed$$FastClassBySpringCGLIB$$bb9649d4.invoke(<generated>)\r\n        at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)\r\n        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:361)\r\n        at com.mapletown.common.datamanager.druid.DruidAutoConfiguration$$EnhancerBySpringCGLIB$$51545aed.dataSource(<generated>)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:498)\r\n        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)\r\n        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:582)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1256)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1105)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)\r\n        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)\r\n        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1065)\r\n        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:818)\r\n        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:724)\r\n        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:474)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1256)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1105)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)\r\n        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)\r\n        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)\r\n`"}}
{"actor":{"display_login":"Lokipy"}}