ObjectDB ObjectDB

Internal Website Search

31-40 of 138 resultsRefresh
17

Internal exception when updating date filed (TemporalType.DATE)

{         private final int GENERATE_PERSONS_COUNT = 1000;         private EntityManagerFactory ... ();             if (personsCount == 0) {                 createPersons(GENERATE_PERSONS_COUNT ... ();             entityManagerFactory.close();         }         private void createPersons(long count
17

Queries are slow on a large database

example, I want to get the object with the highest Id. I tried a query like "count(this.Id)" or "max(this.Id)" but I get an exception: [ObjectDB 2.5.0_01] ==> count <== (this.Id) javax.jdo.JDOUserException Invalid context for aggregate 'count' (error 743) (position 0) at com.objectdb.jdo.JdoQuery
16

Duplicate Entity class names causes Exception in Query

FROM Item o WHERE o.cachedKey = :cachedKey"), @NamedQuery(name = "objdbTest.Singleton.count", query = "SELECT COUNT(x) FROM Item x") }) public class Singleton implements Serializable { public ... .Singleton.count", Long.class); q.setFlushMode(FlushModeType.AUTO); try { return q
16

Memory Leak in EntityManagerFactory ?

but with no QPtBearbeiter instances? One direction forward is to count all the invocations of emf.createEntityManager and em ... and close_count are identical. I made create_count++ and close_count++ each synchronized. And in the end ... for the count, as it provides a local protection on the count only. The synchronized statement
14

Trouble viewing db in Explorer.

="COUNT(this)" type="long" /> </validCachedQueryResponse> [2012-06-07 11:08:06 #47187 query.manager] <queryRequest query="SELECT COUNT(this) FROM com.***.busi nessObjects.***" args="null" transactionId="-1" /> [2012-06-07 11:08:06 #47187 query.manager] <queryRequest query="SELECT COUNT(this) FROM com
14

Possible issue with timestamps

.getTransaction().commit();              TypedQuery<Long> query = em.createQuery("SELECT count(c ... , cdiCount.intValue());                 query = em.createQuery("SELECT count(c) FROM CDI c where c ... ());                 query = em.createQuery("SELECT count(c) FROM CDI c where c.creationDate > :startdate
3

DBDoctor BTree Errors

.pool.PoolImpl - Unexpected page count: 958 (actual 1) - Unexpected object count: 9043 (actual 1) [2] com.btc.ep.architecture.bl.internal.dmos.pool.PoolScopeImpl - Unexpected page count: 8 (actual 1) - Unexpected object count: 392 (actual 1) [3] com.btc.ep.base.bl.internal.dmos.licensing
3

Out of Memory - Slow leak?

with some heavy objects that ObjectDB manages using reference counting. Somehow in an unknown situation the reference count drops to -1 and then the objects are pinned. Unfortunately after checking carefully ... an attempt to decrease the reference count below 0. In addition on such attempt it writes
3

stress test -> com.objectdb.o.InternalException: null

.objectdb.com/database/issue/new com.objectdb.o.InternalException: Negative snapshot user count com.objectdb.o.InternalException: Negative snapshot user count at com.objectdb.o.SNP.D(SNP.java:344 ... by its previous owner. The "Negative snapshot user count" error and a memory leak that its causes
2

"is not null" queries not working with index

entities. A null value is assigned to an indexed field for every second entity. When doing count ... .createQuery("SELECT COUNT(p) FROM Foo p").getSingleResult());         System.out.println("null    : " + em.createQuery("SELECT COUNT(p) FROM Foo p WHERE p.bar IS NULL").getSingleResult

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support