java - Error when publishing or saving an API in WSO2 -


i using wso2 1.9.0 , bam 2.5.0, jdk 1.7.0_79 , mysql-connector-java-5.1.36-bin.jar.

when try save or publish api in api publisher, alert appears "error occurred while updating api".

in "/wso2am-1.9.0/repository/logs/wso2carbon.log" file:

    error {org.apache.catalina.core.applicationdispatcher} -  servlet.service() servlet jaggeryservlet threw exception {org.apache.catalina.core.applicationdispatcher} java.lang.abstractmethoderror: com.mysql.jdbc.preparedstatement.setbinarystream(iljava/io/inputstream;)v         @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.addurltemplates(apimgtdao.java:6721)         @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.updateurltemplates(apimgtdao.java:6917)         @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.updateapi(apimgtdao.java:7022)         @ org.wso2.carbon.apimgt.impl.apiproviderimpl.updateapi(apiproviderimpl.java:547)         @ org.wso2.carbon.apimgt.impl.userawareapiprovider.manageapi(userawareapiprovider.java:71)         @ org.wso2.carbon.apimgt.hostobjects.apiproviderhostobject.saveapi(apiproviderhostobject.java:902)         @ org.wso2.carbon.apimgt.hostobjects.apiproviderhostobject.jsfunction_updateapidesign(apiproviderhostobject.java:733)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:606)         @ org.mozilla.javascript.memberbox.invoke(memberbox.java:126)         @ org.mozilla.javascript.functionobject.call(functionobject.java:386)         @ org.mozilla.javascript.optimizer.optruntime.call1(optruntime.java:32)         @ org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_6(/publisher/modules/api/add.jag:125)         @ org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher/modules/api/add.jag)         @ org.mozilla.javascript.scriptruntime.applyorcall(scriptruntime.java:2430)         @ org.mozilla.javascript.basefunction.execidcall(basefunction.java:269)         @ org.mozilla.javascript.idfunctionobject.call(idfunctionobject.java:97)         @ org.mozilla.javascript.optimizer.optruntime.call2(optruntime.java:42)         @ org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_31(/publisher/modules/api/module.jag:101)         @ org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher/modules/api/module.jag)         @ org.mozilla.javascript.optimizer.optruntime.call1(optruntime.java:32)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0._c_anonymous_1(/publisher/site/blocks/item-design/ajax/add.jag:123)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)         @ org.mozilla.javascript.optimizer.optruntime.call0(optruntime.java:23)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0._c_script_0(/publisher/site/blocks/item-design/ajax/add.jag:5)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)         @ org.mozilla.javascript.contextfactory.dotopcall(contextfactory.java:394)         @ org.mozilla.javascript.scriptruntime.dotopcall(scriptruntime.java:3091)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.exec(/publisher/site/blocks/item-design/ajax/add.jag)         @ org.jaggeryjs.scriptengine.engine.rhinoengine.execscript(rhinoengine.java:567)         @ org.jaggeryjs.scriptengine.engine.rhinoengine.exec(rhinoengine.java:273)         @ org.jaggeryjs.jaggery.core.manager.webappmanager.execute(webappmanager.java:541)         @ org.jaggeryjs.jaggery.core.jaggeryservlet.dopost(jaggeryservlet.java:29)         @ javax.servlet.http.httpservlet.service(httpservlet.java:755)         @ javax.servlet.http.httpservlet.service(httpservlet.java:848)         @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:303)         @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208)         @ org.apache.catalina.core.applicationdispatcher.invoke(applicationdispatcher.java:748)         @ org.apache.catalina.core.applicationdispatcher.processrequest(applicationdispatcher.java:486)         @ org.apache.catalina.core.applicationdispatcher.doforward(applicationdispatcher.java:378)         @ org.apache.catalina.core.applicationdispatcher.forward(applicationdispatcher.java:338)         @ org.jaggeryjs.jaggery.core.jaggeryfilter.dofilter(jaggeryfilter.java:21)         @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:241)         @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208)         @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:220)         @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:122)         @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:501)         @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171)         @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:103)         @ org.wso2.carbon.tomcat.ext.valves.compositevalve.continueinvocation(compositevalve.java:178)         @ org.wso2.carbon.tomcat.ext.valves.carbontomcatvalve$1.invoke(carbontomcatvalve.java:47)         @ org.wso2.carbon.webapp.mgt.tenantlazyloadervalve.invoke(tenantlazyloadervalve.java:56)         @ org.wso2.carbon.tomcat.ext.valves.tomcatvalvecontainer.invokevalves(tomcatvalvecontainer.java:47)         @ org.wso2.carbon.tomcat.ext.valves.compositevalve.invoke(compositevalve.java:141)         @ org.wso2.carbon.tomcat.ext.valves.carbonstuckthreaddetectionvalve.invoke(carbonstuckthreaddetectionvalve.java:156)         @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950)         @ org.wso2.carbon.tomcat.ext.valves.carboncontextcreatorvalve.invoke(carboncontextcreatorvalve.java:52)         @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:116)         @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408)         @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1070)         @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:611)         @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun(nioendpoint.java:1736)         @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.run(nioendpoint.java:1695)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)         @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61)         @ java.lang.thread.run(thread.java:745) tid: [0] [am] [2015-07-22 17:52:14,663] error {org.apache.catalina.core.standardwrappervalve} -  servlet.service() servlet [default] in context path [/publisher] threw exception [servlet execution threw exception] root cause {org.apache.catalina.core.standardwrappervalve} java.lang.abstractmethoderror: com.mysql.jdbc.preparedstatement.setbinarystream(iljava/io/inputstream;)v         @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.addurltemplates(apimgtdao.java:6721)         @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.updateurltemplates(apimgtdao.java:6917)         @ org.wso2.carbon.apimgt.impl.dao.apimgtdao.updateapi(apimgtdao.java:7022)         @ org.wso2.carbon.apimgt.impl.apiproviderimpl.updateapi(apiproviderimpl.java:547)         @ org.wso2.carbon.apimgt.impl.userawareapiprovider.manageapi(userawareapiprovider.java:71)         @ org.wso2.carbon.apimgt.hostobjects.apiproviderhostobject.saveapi(apiproviderhostobject.java:902)         @ org.wso2.carbon.apimgt.hostobjects.apiproviderhostobject.jsfunction_updateapidesign(apiproviderhostobject.java:733)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:606)         @ org.mozilla.javascript.memberbox.invoke(memberbox.java:126)         @ org.mozilla.javascript.functionobject.call(functionobject.java:386)         @ org.mozilla.javascript.optimizer.optruntime.call1(optruntime.java:32)         @ org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_6(/publisher/modules/api/add.jag:125)         @ org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher/modules/api/add.jag)         @ org.mozilla.javascript.scriptruntime.applyorcall(scriptruntime.java:2430)         @ org.mozilla.javascript.basefunction.execidcall(basefunction.java:269)         @ org.mozilla.javascript.idfunctionobject.call(idfunctionobject.java:97)         @ org.mozilla.javascript.optimizer.optruntime.call2(optruntime.java:42)         @ org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_31(/publisher/modules/api/module.jag:101)         @ org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher/modules/api/module.jag)         @ org.mozilla.javascript.optimizer.optruntime.call1(optruntime.java:32)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0._c_anonymous_1(/publisher/site/blocks/item-design/ajax/add.jag:123)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)         @ org.mozilla.javascript.optimizer.optruntime.call0(optruntime.java:23)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0._c_script_0(/publisher/site/blocks/item-design/ajax/add.jag:5)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)         @ org.mozilla.javascript.contextfactory.dotopcall(contextfactory.java:394)         @ org.mozilla.javascript.scriptruntime.dotopcall(scriptruntime.java:3091)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)         @ org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.exec(/publisher/site/blocks/item-design/ajax/add.jag)         @ org.jaggeryjs.scriptengine.engine.rhinoengine.execscript(rhinoengine.java:567)         @ org.jaggeryjs.scriptengine.engine.rhinoengine.exec(rhinoengine.java:273)         @ org.jaggeryjs.jaggery.core.manager.webappmanager.execute(webappmanager.java:541)         @ org.jaggeryjs.jaggery.core.jaggeryservlet.dopost(jaggeryservlet.java:29)         @ javax.servlet.http.httpservlet.service(httpservlet.java:755)         @ javax.servlet.http.httpservlet.service(httpservlet.java:848)         @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:303)         @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208)         @ org.apache.catalina.core.applicationdispatcher.invoke(applicationdispatcher.java:748)         @ org.apache.catalina.core.applicationdispatcher.processrequest(applicationdispatcher.java:486)         @ org.apache.catalina.core.applicationdispatcher.doforward(applicationdispatcher.java:378)         @ org.apache.catalina.core.applicationdispatcher.forward(applicationdispatcher.java:338)         @ org.jaggeryjs.jaggery.core.jaggeryfilter.dofilter(jaggeryfilter.java:21)         @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:241)         @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208)         @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:220)         @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:122)         @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:501)         @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171)         @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:103)         @ org.wso2.carbon.tomcat.ext.valves.compositevalve.continueinvocation(compositevalve.java:178)         @ org.wso2.carbon.tomcat.ext.valves.carbontomcatvalve$1.invoke(carbontomcatvalve.java:47)         @ org.wso2.carbon.webapp.mgt.tenantlazyloadervalve.invoke(tenantlazyloadervalve.java:56)         @ org.wso2.carbon.tomcat.ext.valves.tomcatvalvecontainer.invokevalves(tomcatvalvecontainer.java:47)         @ org.wso2.carbon.tomcat.ext.valves.compositevalve.invoke(compositevalve.java:141)         @ org.wso2.carbon.tomcat.ext.valves.carbonstuckthreaddetectionvalve.invoke(carbonstuckthreaddetectionvalve.java:156)         @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950)         @ org.wso2.carbon.tomcat.ext.valves.carboncontextcreatorvalve.invoke(carboncontextcreatorvalve.java:52)         @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:116)         @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408)         @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1070)         @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:611)         @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun(nioendpoint.java:1736)         @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.run(nioendpoint.java:1695)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)         @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61)         @ java.lang.thread.run(thread.java:745) 

any idea how solve this? thanks!

  1. remove existing mysql connector jars [is_home]/repository/components/dropins , [is_home]/repository/components/lib directories
  2. copy mysql-connector-java-5.1.30-bin.jar or 5.1.* version [is_home]/repository/components/lib directory , restart is.

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -