impetus-opensource/Kundera-Examples — Issue #7: Unable to store Embedded object
Author: vivekvrao
Created: 2012-02-24 04:14:57+00:00
State: open

I am not able to run it with an embedded object - the exception returned is included below. If I remove the embedded object it works fine.

I ran the Twitter Example as well - which gives me the same error.

I tried with both Kundera 2.0.4 and 2.0.5 - and i am connecting to a local cassandra server - version 1.0.6.
Appreciate your help.

INFO: Loading Client(s) For Persistence Unit(s) cassandra_pu
Feb 23, 2012 2:31:41 PM com.impetus.kundera.persistence.EntityManagerFactoryImpl
INFO: EntityManagerFactory created for persistence unit : cassandra_pu
org.scale7.cassandra.pelops.exceptions.InvalidRequestException: supercolumn parameter is invalid for standard CF users
at org.scale7.cassandra.pelops.exceptions.IExceptionTranslator$ExceptionTranslator.translate(IExceptionTranslator.java:47)
at org.scale7.cassandra.pelops.Operand.tryOperation(Operand.java:113)
at org.scale7.cassandra.pelops.Mutator.execute(Mutator.java:93)
at org.scale7.cassandra.pelops.Mutator.execute(Mutator.java:63)
at com.impetus.client.cassandra.pelops.PelopsClient.onPersist(PelopsClient.java:816)
at com.impetus.client.cassandra.pelops.PelopsClient.persist(PelopsClient.java:350)
at com.impetus.kundera.persistence.PersistenceDelegator.saveGraph(PersistenceDelegator.java:884)
at com.impetus.kundera.persistence.PersistenceDelegator.persist(PersistenceDelegator.java:594)
at com.impetus.kundera.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:152)
at com.impetus.kundera.examples.twitter.dao.TwitterService.addUser(TwitterService.java:77)
at com.impetus.kundera.examples.twitter.dao.TwitterService.main(TwitterService.java:59)
Caused by: InvalidRequestException(why:supercolumn parameter is invalid for standard CF users)
at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:19477)
at org.apache.cassandra.thrift.Cassandra$Client.recv_batch_mutate(Cassandra.java:1035)
at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:1009)
at org.scale7.cassandra.pelops.Mutator$1.execute(Mutator.java:88)