Home » Search

About activation code

21-30 of 200Refresh
Forum
12

Attempt to begin a new transaction when a transaction is active

The code I have a RecordDao stateless java bean :  @Stateless public class RecordDao ... ._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root
Issue
11

Activation & Object Model Enhancement

though we are unable (and don't want) to activate each oem instance so we'd need a solution ... the code calling odb JEnhancer. Maybe it'd be possible to somewhat generate a key with maven & odb
Manual
11

JPA Lifecycle Events

throws an exception within an active transaction, the transaction is marked for rollback ... of the lifecycle event. The argument can have any type that matches the actual value (e.g. in the code
Manual
11

Running JPA Queries

and the code is simple: Query query = em.createQuery("SELECT COUNT(c) FROM Country c"); long ... ").executeUpdate(); A TransactionRequiredException is thrown if no transaction is active. On success
Tutorial
11

Step 4: Add a Servlet Class

servlet class. Now replace the content of the new source file with the following code: package guest ... the transaction if still active) is closed. The next step is adding a JSP page that will produce the guestbook page output.
Tutorial
11

Step 4: Add a Servlet Class

of the new source file with the following code: package guest; import java.io.IOException; import ... the page output. Finally, the database connection (including the transaction if still active) is closed
Forum
8

Should derived fields of an EmbeddedId be manually maintained by app code?

field parent. In the following as the code stands I do NOT maintain the derived fields in ... the code so that I do maintain the EmbeddedId explicitly it works; class ECompoundKeyMapItem ... .java:148) Unexpetced error com.objectdb.o.InternalException //Code without manual maintenance
Forum
7

Concerning coding style of the example in the posting instructions

to the coding example in the posting instructions and many of your other examples posted in the forums. While I appreciate the recommended coding style as shown makes for convenient minimal examples ... cases and examples, it is not a compliant coding style. Webel Your observation is correct
Forum
7

Deadlock in objectdb code

Running multi-threaded access to an embedded database using JDO, I'm getting a deadlock in objectdb code.  Thread dump attached. Thank you for this report. The thread dump indicates a possible ... of the persistent types may be being introduced at that point in the code.   Is there a convenient way
Issue
7

Enhancer: non-zero exit code at exceptions

Hello, we have found that the enhancer returned an non-zero exit code on errors. You can change this so that the error of the enhancers can be detected. Thank you for this report. Starting build 2.6.1_04 the Enhancer exits with non zero code on errors. Note that System.exit is now invoked