Giter Club home page Giter Club logo

kundera's People

Contributors

viveklive avatar jsotelo avatar

kundera's Issues

Not a Issue just a Question

The project is quit impressive and felicitations
My request is maybe overkilled but I can't see how to make it different

Is there any solution to manage a SuperColumn where the name is not know then 
it's impossible for me to give the superColumn name in the annotation.
Same for a simple Column if I don't know the name of the column because it's a 
runtime value.

I don't think the framework support this but may be you can give me some tips 
to implement such functionality

Thanks

Original issue reported on code.google.com by [email protected] on 22 Jul 2010 at 2:00

Some Question about how to use kundera and the kundera performance

Hello, guys. I want to ask which is the better practice to use the kundera 
EntityManager, open and close EntityManagerFactory each transaction or leave 
the factory open and create EntityManager for each transaction.

Another problem is about the lucandra, it seems the indexer may cause some 
problems if i leave the factory open and keep using the entitymanager to do 
persist(obj) find(.class,id)
What steps will reproduce the problem?
1.keep factory open
2.create a entityManager
3.put persist and find methods in a loop

What is the expected output? What do you see instead?
expected: entityManager keep doing insert and find.
outcome: failed after 1000+ insert and find

What version of the product are you using? On what operating system?
lastest kundera, casandra 0.65,   mac os, windows, linux

Please provide any additional information below.
logs
count=1004
addDocument > 
Document<stored/uncompressed,indexed,omitNorms<6077004083174677888.entity.id:129
1258384478-author> 
stored/uncompressed,indexed,omitNorms<6077004083174677888.kundera.id:com.impetus
.kundera.entity.Author~1291258384478-author> 
stored/uncompressed,indexed,omitNorms<6077004083174677888.entity.class:com.impet
us.kundera.entity.Author> 
stored/uncompressed,indexed,omitNorms<6077004083174677888.entity.indexname:Autho
r> indexed,tokenized<Author.username:1291258384478-author> 
indexed,tokenized<Author.email:[email protected]> 
indexed,tokenized<Author.country:India> 
indexed,tokenized<Author.registeredSince:Thu Dec 02 13:53:04 EST 2010>>
 WARN 13:53:04,481 Unable to find a node to connect to. Backing off...
 WARN 13:53:04,533 Unable to find a node to connect to. Backing off...
 WARN 13:53:04,633 Unable to find a node to connect to. Backing off...
 WARN 13:53:04,834 Unable to find a node to connect to. Backing off...
 WARN 13:53:05,235 Unable to find a node to connect to. Backing off...
 WARN 13:53:06,035 Unable to find a node to connect to. Backing off...
 WARN 13:53:07,636 Unable to find a node to connect to. Backing off...
 WARN 13:53:10,837 Unable to find a node to connect to. Backing off...
javax.persistence.PersistenceException: No Cassandra nodes are available
ERROR 13:53:10,838 Failed to return a Cassandra connection. If another back off 
then max waiting time exceeded 10350 > 10000
 WARN 13:53:10,838 No Cassandra nodes are available
 INFO 13:53:10,839 Pelops starting to shutdown...
    at com.impetus.kundera.ejb.EntityManagerImpl.immediateLoadAndCache(EntityManagerImpl.java:165)
    at com.impetus.kundera.ejb.EntityManagerImpl.find(EntityManagerImpl.java:142)
    at com.redbull.kunder.performance.PerformanceTest.testMultipleExecutions(PerformanceTest.java:67)
    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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
 INFO 13:53:10,840 Pelops has shutdown




Original issue reported on code.google.com by [email protected] on 2 Dec 2010 at 2:57

Attachments:

NullPointerException in EntityManagerFactoryImpl

What steps will reproduce the problem?
1. check out latest from Git
2. mvn clean install
3. short code segment:

EntityManagerFactoryBuilder builder = new EntityManagerFactoryBuilder();
EntityManagerFactory factory = builder.buildEntityManagerFactory("cassandra", 
map);
EntityManager manager = factory.createEntityManager();      

manager.persist(someObject);

What is the expected output? unknown
What do you see instead?
0 [main] INFO com.impetus.kundera.ejb.EntityManagerFactoryBuilder  - Look up 
for persistence unit: cassandra
5496 [main] INFO com.impetus.kundera.ejb.EntityManagerFactoryBuilder  - 
Building EntityManagerFactory for name: cassandra, and 
Properties:{kundera.client=Pelops, 
kundera.cache.provider_class=com.impetus.kundera.cache.ehcache.EhCacheProvider, 
kundera.client.implementation=com.impetus.kundera.client.PelopsClient.class, 
kundera.keyspace=CustomerDB, kundera.dialect=cassandra, kundera.nodes=css-1., 
kundera.port=9165, net.sf.ehcache.configurationResourceName=/ehcache-test.xml}
5557 [main] DEBUG com.impetus.kundera.metadata.ValidatorImpl  - Validating 
org.samples.customer.om.Customer
5570 [main] DEBUG com.impetus.kundera.metadata.ValidatorImpl  - Entity is for 
NoSQL database: org.samples.customer.om.Customer
5575 [main] DEBUG com.impetus.kundera.metadata.MetadataManager  - Processing 
@Entity >> class org.samples.customer.om.Customer
5575 [main] DEBUG com.impetus.kundera.metadata.processor.ColumnFamilyProcessor  
- Processing @Entity(org.samples.customer.om.Customer) for ColumnFamily.
5577 [main] DEBUG com.impetus.kundera.metadata.processor.ColumnFamilyProcessor  
- customerId => Id
5583 [main] DEBUG com.impetus.kundera.metadata.processor.IndexProcessor  - 
Processing @Entity org.samples.customer.om.Customer for Indexes.
5584 [main] INFO com.impetus.kundera.metadata.MetadataManager  - Added @Entity 
org.samples.customer.om.Customer
6715 [main] DEBUG com.impetus.kundera.metadata.MetadataManager  - Building 
@Entity's foreign relations.
6717 [main] DEBUG com.impetus.kundera.metadata.MetadataManager  - Metadata for 
@Entity class org.samples.customer.om.Customer
org.samples.customer.om.Customer (
    Type: COLUMN_FAMILY,
    ColumnFamily: Customers, 
    Keyspace: null,
    Id: customerId,
    ReadIdMethod: getCustomerId,
    WriteIdMethod: setCustomerId,
    Cacheable: false,
    Columns (dateOfBirth, lastName, firstName),
    Indexes (customerId, firstName, lastName, dateOfBirth),
)
6718 [main] INFO com.impetus.kundera.ejb.EntityManagerFactoryImpl  - 
EntityManagerFactoryImpl loaded in 1219ms.


javax.persistence.PersistenceException: java.lang.NullPointerException
    at com.impetus.kundera.ejb.EntityManagerImpl.persist(EntityManagerImpl.java:318)
    at org.samples.customer.om.TestCassandra.testJPA(TestCassandra.java:43)
...
Caused by: java.lang.NullPointerException
    at com.impetus.kundera.ejb.EntityManagerImpl.persist(EntityManagerImpl.java:295)
    ... 23 more


What version of the product are you using? 
latest from Git; 1.1.1-SNAPSHOT

On what operating system?
Linux 2.6.31-23-generic #74-Ubuntu SMP Mon Feb 28 22:20:11 UTC 2011 x86_64 
GNU/Linux

Please provide any additional information below.
Is this code in transition?  The Client object is explicitly commented out in 
the EntityManagerImpl constructor along with what seems like key initialization 
code in EntityManagerFactoryImpl.

Original issue reported on code.google.com by [email protected] on 17 May 2011 at 4:18

keyspace multi-tenancy

Multi-Tenancy at Keyspace level has now been introduced at EntityManagerFactory 
level, that is, EntityManagerFactory is bound with a keyspace, (corollary: DB 
Schema) and every EntityManager spawning from this factory can only access the 
bound keyspace. 

Would it not be good if we remove keyspace property from @ColumnFamily and 
@SuperColumnFamily annotations? these properties are redundant anyway. 

Original issue reported on code.google.com by [email protected] on 1 Aug 2010 at 6:17

Enhancement: Add transaction support

Add Tx support for multiple operations on different entities.
Zookeeper/Cages approach might be used here 

Original issue reported on code.google.com by indoos on 30 Jul 2010 at 10:33

Code review request

Purpose of code changes on this branch:

Please check the ClasspathReader to check if the package scanning is OK for 
you. I've left your code working in case of the user don't provide 
basePackageName To scan.

I've also download the annovention code and made the modification there but do 
you plan to integrate annovention in kundera soon ?


Original issue reported on code.google.com by [email protected] on 1 Aug 2010 at 10:46

Null Field Support

Currently kundera doesn't seem to support null object values for entity fields. 
Apparently the LucandraIndexer doesn't know what to do with null values and 
throws an exception. It would be nice to have nulls indexed so that we can use 
conditionals such as "WHERE o.author IS NULL."

I wanted to ask if something like this is in the works already, otherwise if 
there are no plans in the near future I will have to roll my own.

Thanks,
Javier

Original issue reported on code.google.com by [email protected] on 1 Oct 2010 at 10:03

Could not find any META-INF/persistence.xml

hi all,
New guy to kundera need your help in running my first application in kundera
This is my folder architecture of project
SRC
|- com.junitTestKundera
| -testKundera.java
|
|-com.testkundera
| -App.java
| -user1.java
|JRE SYSTEM LIBRARY
|Web APP LIBRARY
|WebContent
| -META-INF
-persistence.xml
| -Web-INF
-lib
all library goes here
Just following the example given in 
https://github.com/impetus-opensource/Kundera/wiki/Getting-Started-in-5-minutes
getting error as soon as hits line
EntityManagerFactory emf = Persistence.createEntityManagerFactory("hbase_pu");

tried with web project and standlone project adding test to run the above code 
all the time it fails. Also added map
Map properties = new HashMap();

    // Ensure RESOURCE_LOCAL transactions is used.
    properties.put("kundera.nodes","192.168.1.42");
    properties.put("kundera.port","60010");
    properties.put("kundera.keyspace","KunderaExamples");
.........
EntityManagerFactory emf = Persistence.createEntityManagerFactory("hbase_pu", 
properties);

Still it is throwing error. Please help me how to configure...

Original issue reported on code.google.com by [email protected] on 11 Mar 2014 at 5:59

Enhancement: Add compression support at column value level

Cassandra does not support compression at column value level yet.
It would be good if we can enable it as part of the ORM annotations.
The approaches can be-
a. Add a new @Compressed annotation at Column level to enable 
compression/decompression at run time. This will save the storage requirements 
considerably. The Lucandra based search/index would still be on uncompressed 
data.
b. Add new data kundera type such as CompressedField instead of String. An 
example can be-
class KunderaORMEntity{
 String id; //uncompressed
 CompressedField myfield;
}

In both approaches, the Data Accessors can be easily modified to achieve this.  

Original issue reported on code.google.com by indoos on 30 Jul 2010 at 10:20

Merge doesn't work + Connection Problems

Hi,

I upgrade from Kunder 2.0.5 to the new Version 2.0.6 and using it with with 
Cassandra 1.1.1. I running into 2 Problems that are not persisted in the 
previous version. 


1. Merge doesn't have any effects on the Entity anymore

2. It seems that the Connections are requested from the Pool but never get 
back. There for I got this exception:

Node 'localhost' has 20 active connections, 161 borrowed connections and 0 
corrupted connections
2012-06-29 17:14:48,546 [DEBUG] [main] 
org.scale7.cassandra.pelops.pool.CommonsBackedPool  - Attempting to borrow free 
connection for node 'localhost'
2012-06-29 17:14:48,646 [DEBUG] [main] 
org.scale7.cassandra.pelops.pool.CommonsBackedPool  - No free connections 
available for node 'localhost'.  Trying another node...
2012-06-29 17:14:48,646 [DEBUG] [main] 
org.scale7.cassandra.pelops.pool.CommonsBackedPool  - Max wait time for 
connection exceeded
2012-06-29 17:14:48,646 [ERROR] [main] 
org.scale7.cassandra.pelops.pool.CommonsBackedPool  - Failed to get a 
connection within the maximum allowed wait time.  Try increasing the either the 
number of allowed connections or the max wait time.


I increase the kundera.pool.size.max.active to 100 but after using the 
application for a while the execption occurs again!


 Code snippet:

@Entity
@Table(name = "Message", schema = ModelProviderUtil.CASSANDRA_SCHEMA)
public class Message implements Serializable {
    private static final long serialVersionUID = 1758583336248014237L;

    @Id
    @Column
    private String id;

    @Column
    private Integer userId;

    @Column
    private Long created;

    @Column
    private String text;

    public Message() {
        id = new UUID().toString();
        created = Long.valueOf(System.currentTimeMillis());
        text = "";
    }

// getter & setter

    /**
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((created == null) ? 0 : created.hashCode());
        result = prime * result + ((id == null) ? 0 : id.hashCode());
        result = prime * result + ((text == null) ? 0 : text.hashCode());
        result = prime * result + ((userId == null) ? 0 : userId.hashCode());
        return result;
    }

    /**
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        Message other = (Message) obj;
        if (created == null) {
            if (other.created != null) {
                return false;
            }
        } else if (!created.equals(other.created)) {
            return false;
        }
        if (id == null) {
            if (other.id != null) {
                return false;
            }
        } else if (!id.equals(other.id)) {
            return false;
        }
        if (text == null) {
            if (other.text != null) {
                return false;
            }
        } else if (!text.equals(other.text)) {
            return false;
        }
        if (userId == null) {
            if (other.userId != null) {
                return false;
            }
        } else if (!userId.equals(other.userId)) {
            return false;
        }
        return true;
    }
}


@Test
    public void testMessageModel() {
        Message message = new Message();
        message.setText("Hello World");
        message.setUserId(1);
        messageDAO.persist(message);
        Atring id = message.getId();


        Message testMessage = messageDAO.find(Message.class, id);
        Assert.assertNotNull(testMessage);
    Assert.assertTrue(testMessage.getId().equals(message.getId()));


        message.setText("Hello Junit");

// Failed when I use merge but works with persist
        messageDAO.merge(message);
        testMessage = messageDAO.find(Message.class, id);
        Assert.assertNotNull(testMessage);
        Assert.assertTrue("Expected value of message text was <" + testMessage.getText() + "> but is <" + message.getText()
                + ">", testMessage.getText().equals(message.getText()));

        // test remove
        messageDAO.remove(message);
        testMessage = messageDAO.find(Message.class, id);
        Assert.assertNull(testMessage);
    }

DAO:

    public <T extends Model<?>> void persist(T entity) {
        EntityManager em = ModelProviderUtil.getInstance().getEnityManager();
        try {
            em.persist(entity);
            em.flush();
            em.clear();
        } finally {
            saveClose(em);
        }

Provider:

public final class ModelProviderUtil {
    private static final ModelProviderUtil instance = new ModelProviderUtil();
private ModelProviderUtil() {
        try {
            emf = Persistence.createEntityManagerFactory(CASSANDRA_PU);
        } catch (java.lang.ExceptionInInitializerError e) {
            throw new RuntimeException(e.getMessage());
        }
    }

}
    }

public EntityManager getEnityManager() {
        return emf.createEntityManager();
    }


Original issue reported on code.google.com by [email protected] on 29 Jun 2012 at 3:17

rpc_server_type can not find

What steps will reproduce the problem?
1.run any unit tests 
2.
3.

What is the expected output? What do you see instead?

throws an exception...


12:05:27,283  INFO AbstractCassandraDaemon:142 - Logging initialized
12:05:27,314  INFO DatabaseDescriptor:121 - Loading settings from 
file:/C:/apache-cassandra-0.8.7/conf/cassandra.yaml
null; Can't construct a java object for 
tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create 
property=rpc_server_type for 
JavaBean=org.apache.cassandra.config.Config@3fdb484d; Unable to find property 
'rpc_server_type' on class: org.apache.cassandra.config.Config
Invalid yaml; unable to start server.  See log for stacktrace.
12:05:27,548 ERROR DatabaseDescriptor:428 - Fatal configuration error error
Can't construct a java object for 
tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create 
property=rpc_server_type for 
JavaBean=org.apache.cassandra.config.Config@3fdb484d; Unable to find property 
'rpc_server_type' on class: org.apache.cassandra.config.Config
 in "<reader>", line 10, column 1:
    cluster_name: 'Test Cluster'
    ^

    at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:372)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:177)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:136)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:122)
    at org.yaml.snakeyaml.Loader.load(Loader.java:52)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
    at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:138)
    at com.impetus.kundera.cassandra.client.pelops.PelopsClient$SolandraUtils.createCassSchema(PelopsClient.java:751)
    at com.impetus.kundera.cassandra.client.pelops.PelopsClient$SolandraUtils.startSolandraServer(PelopsClient.java:723)
    at com.impetus.kundera.cassandra.client.pelops.PelopsClient.connect(PelopsClient.java:125)
    at com.impetus.kundera.loader.Configuration.getClient(Configuration.java:267)
    at com.impetus.kundera.loader.Configuration.setClient(Configuration.java:221)
    at com.impetus.kundera.loader.Configuration.getEntityManager(Configuration.java:112)
    at com.impetus.kundera.junit.PersistenceUnitTest.setUp(PersistenceUnitTest.java:38)
    at junit.framework.TestCase.runBare(TestCase.java:125)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create 
property=rpc_server_type for 
JavaBean=org.apache.cassandra.config.Config@3fdb484d; Unable to find property 
'rpc_server_type' on class: org.apache.cassandra.config.Config
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:305)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:184)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:370)
    ... 24 more
Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 
'rpc_server_type' on class: org.apache.cassandra.config.Config
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.getProperty(Constructor.java:342)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:240)
    ... 26 more



What version of the product are you using? On what operating system?

Windows 7 64, impetus-opensource-Kundera-77c15c7


Please provide any additional information below.




Original issue reported on code.google.com by [email protected] on 9 Nov 2011 at 5:09

Enhancement: Add encryption support at column value level

Many leading databases have inbuily support for column level encryptions for 
secure data. 
It would be good if we can enable it as part of the ORM annotations.
The approach can be-
- Add a new @Encyrpted annotation at Column level to enable 
encryption/decryption at run time. The Lucandra based search/index should be 
skipped for these annotated fields. The annotation should be able to take the 
algorithm (DES, MD5 etc) being used for the encrypt/decryption as well as 
ideally have support for both asymmetric as well as symmetric keys

class KunderaORMEntity{
 String login; 
 @Encrypted
 String password;
}

In both approaches, the Data Accessors can be easily modified to achieve this.

Original issue reported on code.google.com by indoos on 30 Jul 2010 at 10:30

Conditional Query Failure

What steps will reproduce the problem?
1.Add the following code to KunderaTest.java

public void testQueryAccrossManagerSessions() throws Exception {
        EntityManager firstManager = factory.createEntityManager();

        int count = 10;
        for(int i=0; i<count; i++) {
            String key = System.currentTimeMillis()+"-author";
            Author author = createAuthor(key, "[email protected]", "India", new Date());
            firstManager.persist(author);
        }
        firstManager.close();

        EntityManager secondManager = factory.createEntityManager();

        Query q = secondManager.createQuery("select a from Author a where a.country like India");
        List<Author> authors = q.getResultList();

        assertEquals(count, authors.size());

        for(Author a : authors) {
            secondManager.remove(a);
        }
        secondManager.close();
    }

What is the expected output? What do you see instead?
Expected Unit Test Result: Pass all tests
Actual:
java.lang.RuntimeException: InvalidRequestException(why:start key's md5 sorts 
after end key's md5.  this is not allowed; you probably should not specify end 
key at all, under RandomPartitioner)
    at lucandra.LucandraTermEnum.loadTerms(LucandraTermEnum.java:217)
    at lucandra.LucandraTermEnum.skipTo(LucandraTermEnum.java:88)
    at lucandra.IndexReader.docFreq(IndexReader.java:154)
    at org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:138)
    at org.apache.lucene.search.Similarity.idfExplain(Similarity.java:735)
    at org.apache.lucene.search.TermQuery$TermWeight.<init>(TermQuery.java:46)
    at org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:171)
    at org.apache.lucene.search.BooleanQuery$BooleanWeight.<init>(BooleanQuery.java:188)
    at org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:362)
    at org.apache.lucene.search.Query.weight(Query.java:101)
    at org.apache.lucene.search.Searcher.createWeight(Searcher.java:147)
    at org.apache.lucene.search.Searcher.search(Searcher.java:98)
    at org.apache.lucene.search.Searcher.search(Searcher.java:108)
    at com.impetus.kundera.index.LucandraIndexer.search(LucandraIndexer.java:234)
    at com.impetus.kundera.index.IndexManager.search(IndexManager.java:138)
    at com.impetus.kundera.index.IndexManager.search(IndexManager.java:123)
    at com.impetus.kundera.query.LuceneQuery.getResultList(LuceneQuery.java:84)
    at com.impetus.kundera.junit.TestKundera.testQueryAccrossManagerSessions(TestKundera.java:168)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: InvalidRequestException(why:start key's md5 sorts after end key's 
md5.  this is not allowed; you probably should not specify end key at all, 
under RandomPartitioner)
    at org.apache.cassandra.thrift.Cassandra$get_range_slice_result.read(Cassandra.java:9784)
    at org.apache.cassandra.thrift.Cassandra$Client.recv_get_range_slice(Cassandra.java:577)
    at org.apache.cassandra.thrift.Cassandra$Client.get_range_slice(Cassandra.java:549)
    at lucandra.LucandraTermEnum.loadTerms(LucandraTermEnum.java:215)
    ... 35 more


What version of the product are you using? On what operating system?
trunk src from 10/1/10

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 2 Oct 2010 at 12:27

Closing the Pelops Client at each transaction not working with Spring 3.0

After update of the code Adding these in EntityManagerImpl in close() :

was :
public final void close() {
        closed = true;
        sessionCache = null;
    }

now seems better :
public final void close() {
        closed = true;
        sessionCache = null;
        if (factory != null) {
            factory.close();
            factory = null;
        }        
    } 

However under Spring this cause the definitive close of the pelops clients then 
the second try to access cassandra fail. Do you've idea why ?

Original issue reported on code.google.com by [email protected] on 1 Aug 2010 at 3:11

Getting error "Entitymatadata should not be null"

Hi,
I'm trying to run an application that connects to Cassandra using Kundera. When 
I'm using Hector everything works fine but when I use Kundera I get the error 
com.impetus.kundera.KunderaException: com.impetus.kundera.KunderaException: 
Entitymatadata should not be null
    at com.impetus.kundera.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:174)

What steps will reproduce the problem?
1. This seems to be specific to my system, the code runs on some systems having 
admin access.
2. Most prob try running kundera with a system having limited access in windows 
system and connect to cassandra database.

What is the expected output? What do you see instead?
The code should connect to the Cassandra database and create a keyspace.

What version of the product are you using? On what operating system?
Apache Cassandra - 1.2.5
Kundera 2.5
TestNG to run a unit testcase

Please provide any additional information below.
From what I'm able to conclude is that it could be a admin access issue on my 
system. The reason I'm concluding is that when I run Cassandra instance on my 
system I have to delete the var folder that gets created by Cassansra other 
wise I get a error that FSUITILS require admin access.
I have tried maven build may times and it runs without any failure. Also, tried 
placing the persistence.xml file in classpath at run time configuration.

Please advice as I'm at a very critical point and need to fix this issue in 
order to make our application work.

Original issue reported on code.google.com by [email protected] on 4 Jul 2013 at 5:42

Build Error

What steps will reproduce the problem?
1. checkout using svn checkout http://kundera.googlecode.com/svn/trunk/ 
kundera-read-only
2.cd to your check out dir
3.mvn clean install

What is the expected output? What do you see instead?
Expected: BUILD SUCCESSFUL Got: BUILD ERROR

What version of the product are you using? On what operating system?
Used software from trunk on 09/28/10. Using OpenSUSE 11.1

Please provide any additional information below.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building kundera
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory /local/kundera-read-only/target
[INFO] Deleting file-set: /local/kundera-read-only (included: [cobertura.ser], 
excluded: [])
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 1 resource
Downloading: 
http://kundera.googlecode.com/svn/maven2/maven-missing-resources/org/apache/cass
andra/apache-cassandra/0.6.3/apache-cassandra-0.6.3.pom
[INFO] Unable to find resource 
'org.apache.cassandra:apache-cassandra:pom:0.6.3' in repository kundera-missing 
(http://kundera.googlecode.com/svn/maven2/maven-missing-resources)
Downloading: 
http://repo1.maven.org/maven2/org/apache/cassandra/apache-cassandra/0.6.3/apache
-cassandra-0.6.3.pom
[INFO] Unable to find resource 
'org.apache.cassandra:apache-cassandra:pom:0.6.3' in repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://kundera.googlecode.com/svn/maven2/maven-missing-resources/libthrift/libth
rift/r917130/libthrift-r917130.pom
[INFO] Unable to find resource 'libthrift:libthrift:pom:r917130' in repository 
kundera-missing 
(http://kundera.googlecode.com/svn/maven2/maven-missing-resources)
Downloading: 
http://repo1.maven.org/maven2/libthrift/libthrift/r917130/libthrift-r917130.pom
[INFO] Unable to find resource 'libthrift:libthrift:pom:r917130' in repository 
central (http://repo1.maven.org/maven2)
Downloading: 
http://kundera.googlecode.com/svn/maven2/maven-missing-resources/pelops/pelops/U
NKNOWN/pelops-UNKNOWN.pom
[INFO] Unable to find resource 'pelops:pelops:pom:UNKNOWN' in repository 
kundera-missing 
(http://kundera.googlecode.com/svn/maven2/maven-missing-resources)
Downloading: 
http://repo1.maven.org/maven2/pelops/pelops/UNKNOWN/pelops-UNKNOWN.pom
[INFO] Unable to find resource 'pelops:pelops:pom:UNKNOWN' in repository 
central (http://repo1.maven.org/maven2)
Downloading: 
http://kundera.googlecode.com/svn/maven2/maven-missing-resources/org/cliffc/high
-scale-lib/UNKNOWN/high-scale-lib-UNKNOWN.pom
[INFO] Unable to find resource 'org.cliffc:high-scale-lib:pom:UNKNOWN' in 
repository kundera-missing 
(http://kundera.googlecode.com/svn/maven2/maven-missing-resources)
Downloading: 
http://repo1.maven.org/maven2/org/cliffc/high-scale-lib/UNKNOWN/high-scale-lib-U
NKNOWN.pom
[INFO] Unable to find resource 'org.cliffc:high-scale-lib:pom:UNKNOWN' in 
repository central (http://repo1.maven.org/maven2)
Downloading: 
http://kundera.googlecode.com/svn/maven2/maven-missing-resources/com/reardencomm
erce/clhm-production/UNKNOWN/clhm-production-UNKNOWN.pom
[INFO] Unable to find resource 
'com.reardencommerce:clhm-production:pom:UNKNOWN' in repository kundera-missing 
(http://kundera.googlecode.com/svn/maven2/maven-missing-resources)
Downloading: 
http://repo1.maven.org/maven2/com/reardencommerce/clhm-production/UNKNOWN/clhm-p
roduction-UNKNOWN.pom
[INFO] Unable to find resource 
'com.reardencommerce:clhm-production:pom:UNKNOWN' in repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://kundera.googlecode.com/svn/maven2/maven-missing-resources/javassist/javas
sist/3.9.0.GA/javassist-3.9.0.GA.pom
[INFO] Unable to find resource 'javassist:javassist:pom:3.9.0.GA' in repository 
kundera-missing 
(http://kundera.googlecode.com/svn/maven2/maven-missing-resources)
Downloading: 
http://repo1.maven.org/maven2/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.po
m
[INFO] Unable to find resource 'javassist:javassist:pom:3.9.0.GA' in repository 
central (http://repo1.maven.org/maven2)
Downloading: 
http://kundera.googlecode.com/svn/maven2/maven-missing-resources/lucandra/lucand
ra/UNKNOWN/lucandra-UNKNOWN.pom
[INFO] Unable to find resource 'lucandra:lucandra:pom:UNKNOWN' in repository 
kundera-missing 
(http://kundera.googlecode.com/svn/maven2/maven-missing-resources)
Downloading: 
http://repo1.maven.org/maven2/lucandra/lucandra/UNKNOWN/lucandra-UNKNOWN.pom
[INFO] Unable to find resource 'lucandra:lucandra:pom:UNKNOWN' in repository 
central (http://repo1.maven.org/maven2)
Downloading: 
http://kundera.googlecode.com/svn/maven2/maven-missing-resources/net/sf/ehcache/
ehcache/2.2.0/ehcache-2.2.0.jar
[INFO] Unable to find resource 'net.sf.ehcache:ehcache:jar:2.2.0' in repository 
kundera-missing 
(http://kundera.googlecode.com/svn/maven2/maven-missing-resources)
Downloading: 
http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/2.2.0/ehcache-2.2.0.jar
[INFO] Unable to find resource 'net.sf.ehcache:ehcache:jar:2.2.0' in repository 
central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) net.sf.ehcache:ehcache:jar:2.2.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=net.sf.ehcache -DartifactId=ehcache -Dversion=2.2.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=net.sf.ehcache -DartifactId=ehcache -Dversion=2.2.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
    1) com.impetus.kundera:kundera:jar:1.1.1-SNAPSHOT
    2) net.sf.ehcache:ehcache:jar:2.2.0

----------
1 required artifact is missing.

for artifact: 
  com.impetus.kundera:kundera:jar:1.1.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  kundera-missing (http://kundera.googlecode.com/svn/maven2/maven-missing-resources)



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Tue Sep 28 15:04:26 PDT 2010
[INFO] Final Memory: 12M/87M
[INFO] ------------------------------------------------------------------------


Original issue reported on code.google.com by [email protected] on 28 Sep 2010 at 10:12

Build Error

What steps will reproduce the problem?
1. Create a new maven project with the dependencies listed on the Projects 
"build" wiki
2. Run "mvn clean instalL"


What is the expected output? What do you see instead?
Dependencies should download successfully. But I get errors similar to the 
following:
[INFO] Unable to find resource 'libthrift:libthrift:pom:r917130' 

What version of the product are you using? On what operating system?
1.0-SNAPSHOT. Mac OS X


Original issue reported on code.google.com by [email protected] on 25 Apr 2011 at 11:22

Build error on 6/8/2012

What steps will reproduce the problem?
1.  Go to https://github.com/impetus-opensource/Kundera and download
impetus-opensource-Kundera-2.0.6-52-g0598ea4, then unzip.

2.  Tried to cut and paste repositories tags from 
http://code.google.com/p/kundera/wiki/MavenUsage into pom
in kundera-cassandra folder.

3.  Run mvn clean install.

What is the expected output? What do you see instead?
I get the following error:

Missing:
----------
1) com.impetus.core:kundera-core:jar:2.0.7-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.impetus.core -DartifactId=kundera-c
ore -Dversion=2.0.7-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:

      mvn deploy:deploy-file -DgroupId=com.impetus.core -DartifactId=kundera-cor
e -Dversion=2.0.7-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dre
positoryId=[id]

  Path to dependency:
        1) com.impetus.client:kundera-cassandra:jar:2.0.7-SNAPSHOT
        2) com.impetus.core:kundera-core:jar:2.0.7-SNAPSHOT

----------
1 required artifact is missing.



What version of the product are you using? On what operating system?
SNAPSHOT 2.0.7 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 8 Jun 2012 at 3:34

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.