Hi ,

I was able to solve this problem. This error was due to not passing
credentials when creating the cassandra cluster.

-            cluster = HFactory.getOrCreateCluster(clusterName,
hostConfigurator);
+            cluster = HFactory.createCluster(clusterName,
hostConfigurator,credentials);

When i did the above fix, i was able to get rid of the problem.

Thanks
Shammi

On Tue, Feb 28, 2012 at 8:44 AM, Deependra Ariyadewa <d...@wso2.com> wrote:

>
>
> On Mon, Feb 27, 2012 at 3:41 PM, Shammi Jayasinghe <sha...@wso2.com>wrote:
>
>> Hi,
>>
>>   I am using wso2 cassandra server feature in MB. When using that i am
>> getting the following error[1] when starting up the server. I have added
>> the following files to
>> repository/conf advanced folder also. Have someone experienced this error
>> before.
>>
>
> It looks like MB is trying to access a Cassandra keyspace
> with invalid credentials. You can try the Cassandra feature with a Carbon
> Core to verify your Cassandra configuration.
>
> Thanks,
>
> Deependra.
>
>>
>> Thanks
>> Shammi
>>
>> cassandra-auth.xml
>> cassandra-component.xml
>> cassandra-endpoint.xml
>> cassanda.yaml
>>
>> cassandra-auth.xml <Cassandra>
>>    <EPR>https://localhost:9443/services/CassandraSharedKeyPublisher</EPR>
>>    <User>USERNAME</User>
>>    <Password>PASSWD</Password>
>> </Cassandra>
>>
>>
>> [2012-02-27 15:32:24,732]  INFO
>> {org.apache.cassandra.service.GCInspector} -  GC for PS MarkSweep: 307 ms,
>> 65344 reclaimed leaving 152492296 used; max is 813301760
>> [2012-02-27 15:32:25,052]  INFO
>> {me.prettyprint.cassandra.connection.CassandraHostRetryService} -  Downed
>> Host Retry service started with queue size 3 and retry delay 10s
>> [2012-02-27 15:32:40,135]  INFO
>> {me.prettyprint.cassandra.service.JmxMonitor} -  Registering JMX
>> me.prettyprint.cassandra.service:ServiceType=hector,MonitorType=hector
>> [2012-02-27 15:32:40,136]  WARN
>> {me.prettyprint.cassandra.service.JmxMonitor} -  Unable to locate
>> hectorLog4j.xml; performance counters will not be exported
>> Exception during startup:
>> me.prettyprint.hector.api.exceptions.HInvalidRequestException:
>> InvalidRequestException(why:You have not logged in)
>> me.prettyprint.hector.api.exceptions.HInvalidRequestException:
>> InvalidRequestException(why:You have not logged in)
>>     at
>> me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:42)
>>     at
>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:190)
>>     at
>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:180)
>>     at
>> me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:101)
>>     at
>> me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:156)
>>     at
>> me.prettyprint.cassandra.service.AbstractCluster.describeKeyspace(AbstractCluster.java:194)
>>     at
>> org.apache.qpid.server.store.CassandraMessageStore.createKeyspace(CassandraMessageStore.java:535)
>>     at
>> org.apache.qpid.server.store.CassandraMessageStore.performCommonConfiguration(CassandraMessageStore.java:1549)
>>     at
>> org.apache.qpid.server.store.CassandraMessageStore.configureConfigStore(CassandraMessageStore.java:1587)
>>     at
>> org.apache.qpid.server.virtualhost.VirtualHostImpl.initialiseMessageStore(VirtualHostImpl.java:389)
>>     at
>> org.apache.qpid.server.virtualhost.VirtualHostImpl.<init>(VirtualHostImpl.java:233)
>>     at
>> org.apache.qpid.server.virtualhost.VirtualHostImpl.<init>(VirtualHostImpl.java:169)
>>     at
>> org.apache.qpid.server.registry.ApplicationRegistry.createVirtualHost(ApplicationRegistry.java:566)
>>     at
>> org.apache.qpid.server.registry.ApplicationRegistry.initialiseVirtualHosts(ApplicationRegistry.java:325)
>>     at
>> org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:263)
>>     at
>> org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:149)
>>     at org.apache.qpid.server.Broker.startupImpl(Broker.java:122)
>>     at org.apache.qpid.server.Broker.startup(Broker.java:97)
>>     at org.apache.qpid.server.Main.startBroker(Main.java:228)
>>     at org.apache.qpid.server.Main.execute(Main.java:221)
>>     at org.apache.qpid.server.Main.<init>(Main.java:64)
>>     at org.apache.qpid.server.Main.main(Main.java:54)
>>     at
>> org.wso2.carbon.qpid.internal.QpidServiceComponent.activate(QpidServiceComponent.java:103)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>     at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
>>     at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>>     at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
>>     at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
>>     at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
>>     at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
>>     at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>     at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>     at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>     at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>>     at
>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:461)
>>     at
>> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:263)
>>     at
>> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:117)
>>     at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
>>     at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>     at
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>> Caused by: InvalidRequestException(why:You have not logged in)
>>     at
>> org.apache.cassandra.thrift.Cassandra$describe_keyspace_result.read(Cassandra.java:21785)
>>     at
>> org.apache.cassandra.thrift.Cassandra$Client.recv_describe_keyspace(Cassandra.java:1252)
>>     at
>> org.apache.cassandra.thrift.Cassandra$Client.describe_keyspace(Cassandra.java:1227)
>>     at
>> me.prettyprint.cassandra.service.AbstractCluster$4.execute(AbstractCluster.java:185)
>>     ... 48 more
>> [2012-02-27 15:32:40,154]  INFO
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Gracefully shutting down
>> WSO2 MB ...
>>
>> --
>> Best Regards,*
>>
>> Shammi Jayasinghe*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com,
>> mobile: +94 71 4493085
>>
>>
>>
>
>
> --
> Deependra Ariyadewa
> WSO2, Inc. http://wso2.com/ http://wso2.org
>
> email d...@wso2.com; cell +94 71 403 5996 ;
> Blog http://risenfall.wordpress.com/
> PGP info: KeyID: 'DC627E6F'
>
>


-- 
Best Regards,*

Shammi Jayasinghe*
Senior Software Engineer; WSO2, Inc.; http://wso2.com,
mobile: +94 71 4493085
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to