Hi, Yes i do have those 2 plugins.
On Mon, May 25, 2015 at 10:53 PM, Udara Liyanage <ud...@wso2.com> wrote: > Hi, > > You are getting a CNF exceptions org.apache.cassandra.thrift. > InvalidRequestException. > This class seems to come from apache-cassandra_1.1.3.wso2v2.jar, > apache-cassandra_1.1.3.wso2v5.jar jars. Do you have them in your plugins > directory? > > Btw we seems to getting two version of this jar which needs to be fixed. > > On Mon, May 25, 2015 at 10:39 PM, Ashan Dhananjaya <dhananjay...@gmail.com > > wrote: > >> Hi all, >> >> I'm getting following exception in the back-end and giving an error >> message saying *"Connection not successful: >> org/apache/cassandra/thrift/InvalidRequestException"*. It was given >> when i was deploying the out-put adapter. These are the configurations i >> have used : >> >> <property name="index.all.columns">false</property> >> <property name="user.name">cassandra</property> >> <property name="port">9160</property> >> <property name="password">cassandra</property> >> <property name="cluster.name">Test Cluster</property> >> <property name="hostname">localhost</property> >> >> Exception : >> >> [2015-05-25 22:07:04,034] ERROR >> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} - >> org/apache/cassandra/thrift/InvalidRequestException >> java.lang.reflect.InvocationTargetException at >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:606) at >> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) >> at >> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) >> at >> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) >> at >> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at >> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) >> at >> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) >> at >> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) >> at >> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) >> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at >> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) >> at >> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) >> at >> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >> at >> org.wso2.carbon.event.output.adaptor.manager.stub.OutputEventAdaptorManagerAdminServiceStub.testConnection(OutputEventAdaptorManagerAdminServiceStub.java:874) >> at >> org.apache.jsp.outputeventadaptormanager.addtest_005fevent_005fajaxprocessor_jsp._jspService(org.apache.jsp.outputeventadaptormanager.addtest_005fevent_005fajaxprocessor_jsp:86) >> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at >> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) >> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) at >> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at >> org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) at >> org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at >> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at >> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) >> at >> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) >> at >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) >> at >> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) >> at >> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) >> at >> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) >> at >> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) >> at >> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) >> at >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) >> at >> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) >> at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >> at >> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) >> at >> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) >> at >> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:745) Caused by: >> java.lang.NoClassDefFoundError: >> org/apache/cassandra/thrift/InvalidRequestException at >> me.prettyprint.cassandra.connection.factory.HThriftClientFactoryImpl.createClient(HThriftClientFactoryImpl.java:28) >> at >> me.prettyprint.cassandra.connection.ConcurrentHClientPool.createClient(ConcurrentHClientPool.java:147) >> at >> me.prettyprint.cassandra.connection.ConcurrentHClientPool.<init>(ConcurrentHClientPool.java:53) >> at >> me.prettyprint.cassandra.connection.RoundRobinBalancingPolicy.createConnection(RoundRobinBalancingPolicy.java:67) >> at >> me.prettyprint.cassandra.connection.HConnectionManager.<init>(HConnectionManager.java:67) >> at >> me.prettyprint.cassandra.service.AbstractCluster.<init>(AbstractCluster.java:67) >> at >> me.prettyprint.cassandra.service.ThriftCluster.<init>(ThriftCluster.java:21) >> at >> org.wso2.carbon.event.output.adaptor.cassandra.CassandraEventAdaptorType.testConnection(CassandraEventAdaptorType.java:341) >> at >> org.wso2.carbon.event.output.adaptor.core.internal.CarbonOutputEventAdaptorService.testConnection(CarbonOutputEventAdaptorService.java:103) >> at >> org.wso2.carbon.event.output.adaptor.manager.admin.internal.OutputEventAdaptorManagerAdminService.testConnection(OutputEventAdaptorManagerAdminService.java:383) >> ... 60 more Caused by: java.lang.ClassNotFoundException: >> org.apache.cassandra.thrift.InvalidRequestException at >> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) >> at >> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) >> at >> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) >> at >> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 70 more >> >> Any help on this matter would be appreciated. >> >> Thank You! >> Best Regards, >> Ashan >> > > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 >