A good finding Ashan, yes the artifact cassandra-thrift is not there in the current distribution. May be we need to check the feature this is included in and add it to Stratos distribution.
Thanks On Wed, May 27, 2015 at 12:39 PM, Ashan Dhananjaya <dhananjay...@gmail.com> wrote: > Hi all, > > I could solve the missing classes problem using the jar [1] by putting it > to the <CARBON_HOME>/repository/components/lib directory. > As i guess it caused because of some missing classes in the stratos > snapshot pack. > > [1] > http://mvnrepository.com/artifact/org.apache.cassandra/cassandra-thrift/1.1.3 > > Thank You! > Best Regards, > Ashan > > On Tue, May 26, 2015 at 4:22 PM, Ashan Dhananjaya <dhananjay...@gmail.com> > wrote: > >> Hi Isuru, >> >> I have checked the OSGI bundles they are exposed. >> >> org.apache.cassandra.io; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.notifications; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.cql3; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.cql3.statements; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.migration.avro; >> version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.index; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.io.compress; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.cache; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.tools; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.io.sstable; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.metrics; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.net.sink; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.concurrent; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.dht; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.auth; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.gms; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.index.keys; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.locator; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.cql; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.utils; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.scheduler; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.utils.avro; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.context; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.marshal; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.commitlog; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.service; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.net; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.config; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.compaction; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.streaming; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.filter; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.cli; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.utils.obs; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.io.util; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.net.io; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.utils.IntervalTree; >> version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.hadoop; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.thrift; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.client; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.db.columniterator; >> version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.security; version="1.1.3.wso2v5"[exported] >> org.apache.cassandra.hadoop.pig; version="1.1.3.wso2v5"[exported] >> Imported packages >> com.google.common.base; version="12.0.0.wso2v1"<guava_12.0.0.wso2v1 >> [60]> >> com.google.common.collect; >> version="12.0.0.wso2v1"<guava_12.0.0.wso2v1 [60]> >> org.antlr.runtime; version="3.2.0.wso2v1"<antlr-runtime_3.2.0.wso2v1 >> [12]> >> org.antlr.runtime.tree; >> version="3.2.0.wso2v1"<antlr-runtime_3.2.0.wso2v1 [12]> >> org.apache.thrift; version="0.7.0.wso2v2"<libthrift_0.7.0.wso2v2 >> [111]> >> org.apache.thrift.async; >> version="0.7.0.wso2v2"<libthrift_0.7.0.wso2v2 [111]> >> org.apache.thrift.meta_data; >> version="0.7.0.wso2v2"<libthrift_0.7.0.wso2v2 [111]> >> org.apache.thrift.protocol; >> version="0.7.0.wso2v2"<libthrift_0.7.0.wso2v2 [111]> >> org.apache.thrift.server; >> version="0.7.0.wso2v2"<libthrift_0.7.0.wso2v2 [111]> >> org.apache.thrift.transport; >> version="0.7.0.wso2v2"<libthrift_0.7.0.wso2v2 [111]> >> org.yaml.snakeyaml.representer; >> version="0.0.0"<snakeyaml_1.6.0.wso2v1 [480]> >> org.yaml.snakeyaml.nodes; version="0.0.0"<snakeyaml_1.6.0.wso2v1 >> [480]> >> org.yaml.snakeyaml.introspector; >> version="0.0.0"<snakeyaml_1.6.0.wso2v1 [480]> >> org.yaml.snakeyaml.error; version="0.0.0"<snakeyaml_1.6.0.wso2v1 >> [480]> >> org.yaml.snakeyaml.constructor; >> version="0.0.0"<snakeyaml_1.6.0.wso2v1 [480]> >> org.yaml.snakeyaml; version="0.0.0"<snakeyaml_1.6.0.wso2v1 [480]> >> org.xerial.snappy; version="0.0.0"<snappy-java_1.0.4.1_wso2v1 [481]> >> org.slf4j; version="1.7.0"<slf4j.api_1.7.0 [475]> >> org.github.jamm; version="0.2.5.wso2v2"<jamm_0.2.5.wso2v2 [76]> >> org.codehaus.jackson.type; version="1.9.2"<jackson-core-asl_1.9.2 >> [74]> >> org.codehaus.jackson.map; version="1.9.2"<jackson-mapper-asl_1.9.2 >> [75]> >> org.codehaus.jackson; version="1.9.2"<jackson-core-asl_1.9.2 [74]> >> org.cliffc.high_scale_lib; >> version="1.1.2.wso2v1"<high-scale-lib_1.1.2.wso2v1 [68]> >> org.apache.log4j; version="4.2.0"<org.wso2.carbon.logging_4.2.0 [362]> >> org.apache.hadoop.util; version="0.0.0"<hadoop-core_0.20.203.wso2v2 >> [64]> >> org.apache.hadoop.mapreduce; >> version="0.0.0"<hadoop-core_0.20.203.wso2v2 [64]> >> org.apache.hadoop.mapred; version="0.0.0"<hadoop-core_0.20.203.wso2v2 >> [64]> >> org.apache.hadoop.io; version="0.0.0"<hadoop-core_0.20.203.wso2v2 >> [64]> >> org.apache.hadoop.fs; version="0.0.0"<hadoop-core_0.20.203.wso2v2 >> [64]> >> org.apache.hadoop.conf; version="0.0.0"<hadoop-core_0.20.203.wso2v2 >> [64]> >> org.apache.commons.logging; >> version="1.1.1"<org.wso2.carbon.logging_4.2.0 [362]> >> org.apache.commons.lang.time; >> version="2.6.0"<commons-lang_2.6.0.wso2v1 [46]> >> org.apache.commons.lang.builder; >> version="2.6.0"<commons-lang_2.6.0.wso2v1 [46]> >> org.apache.commons.lang; version="2.6.0"<commons-lang_2.6.0.wso2v1 >> [46]> >> org.apache.commons.cli; version="1.2.0"<commons-cli_1.2.0.wso2v1 [37]> >> org.apache.avro.specific; version="0.0.0"<avro_1.4.0.fixeswso2v1 [16]> >> org.apache.avro.io; version="0.0.0"<avro_1.4.0.fixeswso2v1 [16]> >> org.apache.avro; version="0.0.0"<avro_1.4.0.fixeswso2v1 [16]> >> javax.net.ssl; >> version="0.0.0"<org.eclipse.osgi_3.8.1.v20120830-144521 [0]> >> javax.management.remote; >> version="0.0.0"<org.eclipse.osgi_3.8.1.v20120830-144521 [0]> >> javax.management; >> version="0.0.0"<org.eclipse.osgi_3.8.1.v20120830-144521 [0]> >> edu.stanford.ppl.concurrent; >> version="0.1.0.wso2v1"<snaptree_0.1.0.wso2v1 [482]> >> com.yammer.metrics.core; >> version="2.0.3.wso2v1"<metrics-core_2.0.3.wso2v1 [113]> >> com.yammer.metrics; version="2.0.3.wso2v1"<metrics-core_2.0.3.wso2v1 >> [113]> >> com.sun.jna; version="0.0.0"<com.sun.jna_4.1.0 [36]> >> com.ning.compress.lzf; version="0.0.0"<com.ning.compress-lzf_0.8.4 >> [34]> >> com.googlecode.concurrentlinkedhashmap; >> version="1.3.0"<com.googlecode.concurrentlinkedhashmap.lru_1.3.0 [28]> >> com.google.common.primitives; >> version="12.0.0.wso2v1"<guava_12.0.0.wso2v1 [60]> >> org.wso2.carbon.cassandra.server.deployment; >> version="4.2.0"<org.wso2.carbon.cassandra.server_4.2.0 [247]> >> org.wso2.carbon.cassandra.server; >> version="4.2.0"<org.wso2.carbon.cassandra.server_4.2.0 [247]> >> com.google.common.util.concurrent; version="0.0.0"<unwired><optional> >> jline; version="0.0.0"<unwired><optional> >> org.apache.pig; version="0.0.0"<unwired><optional> >> org.apache.pig.backend.executionengine; >> version="0.0.0"<unwired><optional> >> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer; >> version="0.0.0"<unwired><optional> >> org.apache.pig.data; version="0.0.0"<unwired><optional> >> org.apache.pig.impl.util; version="0.0.0"<unwired><optional> >> sun.misc; version="0.0.0"<unwired><optional> >> No fragment bundles >> Named class space >> apache-cassandra; bundle-version="1.1.3.wso2v5"[provided] >> No required bundles >> >> >> Thank You! >> Best Regards, >> Ashan >> >> On Tue, May 26, 2015 at 10:45 AM, Isuru Haththotuwa <isu...@apache.org> >> wrote: >> >>> Hi Ashan, >>> >>> Can you start the server in the osgi debug mode, (-DosgiConsole) and see >>> if the packages relevant to the CNF are exposed correctly. >>> >>> On Mon, May 25, 2015 at 11:21 PM, Ashan Dhananjaya < >>> dhananjay...@gmail.com> wrote: >>> >>>> 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 >>>>> >>>>> -- >>>>> Thanks and Regards, >>>>> >>>>> Isuru H. >>>>> +94 716 358 048* <http://wso2.com/>* >>>>> >>>>> >>>>> * <http://wso2.com/>* >>>>> >>>>> >>>>> >> > -- Imesh Gunaratne Senior Technical Lead, WSO2 Committer & PMC Member, Apache Stratos