About run

issue

Internal exception

Hello. We got the following stacktrace. Can you explain me what this internal exception means and why it was thrown? It only happens when the entities are enhanced. Best regards BTC ES   Bug Version: 2.7.1 Priority: Critical Status: Closed Replies: 3 Type:  Bug ...

 
forum_thread

How to Use a SF with extended Persistence Context?

Hey, I have a problem to use SF with an Extended Persistence Context Regarding to Transactions. The need for an extended persistence Context emerges for the need to create queries in advance for fast execution so I need to store the queries and I need an EntityManager that doesn't get closed between calls. When I call the SF directly no problem happens but if I use SL to hold a reference to the SF I get com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active. ... of the GuestDao. I use Jboss AS 7 and when I run the project I get this stack: 13:52:01,121 INFO  ... at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21] 13:52:32,386 WARN  ...

 
forum_thread

Multithreading Test and Deadlock

I move on to testing the multi threaded part of ObjectDB. From the same code (MyMain.java), I set the thread count from 1 to 4 and not only do I found it's slower overall (each thread only needs to insert 250K entities) but the threads are stuck with a deadlock. All threads share the same EntityManagerFactory but they have their own EntityManager. The stack trace is attached. #1 2011-05-04 00:27 I move on to testing the multi threaded part of ObjectDB. From the same code (MyMain.java), I set the thread coun ...

 
forum_thread

ODB with Netbeans

ODB2 allows JPA attributes to be public (which is great), but JPA does not. So, in Netbeans, with attributes like this: @Entity class A { public String name; } I get compile time errors "Instance variable for persistent attribute must not be public" How does one switch that off in Netbeans? ... are not compilation errors, so you can still build and run the project. ObjectDB Support ObjectDB - Fast ...

 
forum_thread

IDs of Entities suddenly became UUIDs?

Hi, We're having our system with ObjectDB 2.4.5 in production since this year April and it works just fine. However, now we've discovered that suddenly partial Objects in some DBs in production do have a UUID String as their id instead of Long which is of course causing a lot of troubles. Note that this even occurrs on the same "Table" -- some saved Entitities of same type do still have a Long ID, others a String UUID. Our Base-Entity everything inherits from is declared as usual with Long: #1 2013-10-17 11:42 Hi, We're having our system with ObjectDB 2.4.5 in production since this year April and it works just ...

 
doc

java.lang.Throwable

The Throwable class is the superclass of all errors and exceptions in the Java language.(Class of java.langClass Throwable)

 
issue

Use temporary files to enable very large transactions

We have transactions in which many objects are created. These objects are no longer needed in the current transaction after creation. Unfortunately, we will receive an OutOfMemory exception because the objects are kept in the first level cache of ObjectDB. In the forum thread http://www.objectdb.com/database/forum/921 on post #4 you wrote, that ObjectDB should support very large transactions in further version. Can you implement it that ObjectDB used temporary files? ... a fault we can still recover a consistent state.  We run the commit, if the Application consumes a percentage threshold of memory. ... Do you use enhanced classes? If not, could you please run again with enhanced classes? ObjectDB Support ...

 
forum_thread

@OneToMany(fetch = FetchType.LAZY) list is always null

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related to J2EE. parent.getChildren() returns null. Here is a simple example: Bean: ... > <h:commandButton value = "Run a method" action = "#{test.addParent}" /> </h:form ...

 
forum_thread

com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV

Hello! This query is working fine SELECT DISTINCT $1 FROM ChatHistoryItem $1 JOIN $1.recipient $2 JOIN $1.sender $3 WHERE ($2.id='22afeafe-363f-4397-8553-cc5688ba142d') OR ($3.id='22afeafe-363f-4397-8553-cc5688ba142d')  ORDER BY MAX($1.createDate) DESC   but this query returns an exception "com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV" SELECT DISTINCT $1 FROM ChatHistoryItem $1 JOIN $1.recipient $2  ... you can also upload a sample database that may be used to run the query and see the error, it would be very helpful. ... at com.objectdb.o.HND.run(HND.java:132) at java.lang.Thread.run(Thread.java:724) current db ...

 
forum_thread

A bidirectional OneToOne association with a shared primary key

Hi, In Hibernate, it is possible (using Hibernate specific annotations) to define a bidirectional @OneToOne association that has a shared primary key, example: http://fruzenshtein.com/bidirectional-one-to-one-primary-key-association/ #1 2013-09-27 07:26 Hi, In Hibernate, it is possible (using Hibernate specific annotations) to define a bidirectional @O ...