Internal Website Search

101-150 of 200 results

ObjectDB Enhancer Tool in Java 9

I am migrating to Java 9 and have encountered some issues, which I am sure will eventually be addressed by a Java 9 compatible ObjectDB future release, but while waiting for that release ... at its objectdb.jar location, which is not valid in a Java module environment. Example command: java

Java FX tableview fill with an aggregated query

an error in filling the tableview:     Exception in thread "JavaFX Application Thread" java .lang.RuntimeException: java .lang.reflect.InvocationTargetException at javafx.fxml/javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader. java :1862) at javafx.fxml/javafx.fxml.FXMLLoader

2.5.3_02: java.lang.UnsupportedOperationException

get an exception: java .lang.UnsupportedOperationException at com.objectdb.jpa.EMF.createEntityManager(EMF. java :517) at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper. java :197) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.createQuery

javax.transaction.Synchronization with Java SE 10.0.1

Greetings, I am trying to get my app running on  Java 10 (up to now it runs on Java 8 ... to instantiate the PersistenceManager, it gives me the following error java .lang.NoClassDefFoundError: javax/transaction/Synchronization     at java .base/ java .lang.ClassLoader.defineClass1

Upgrade to Java 8 won't run

I've been using ObjectDB with Groovy 2.1 and Java 7 for nearly a year.  Today, I updated everything to the latest revs (Groovy 2.3.6, Java 1.8.0_25, and ObjectDB 2.5.7_05), and now ... .em = em   Exception in thread "main" java .lang.ExceptionInInitializerError at sun.reflect

ClassCastException on SELECT NEW ... after UPDATE over Java RMI

a Java RMI interface which allows remote RMI clients to run JPQL queries on the DB. The application ... 'NEW com.arunta.base.db.FileNameDTO(r.id, r.fileName)' (error 783) at java .awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster. java :330) at java .awt.Component.processMouseMotionEvent(Component

BTree 8 is not found at com.objectdb.o.JPE.d(JPE.java:91)

.objectdb.o.JPE.d(JPE. java :91) at com.objectdb.o.ERR.h(ERR. java :56) at com.objectdb.o.OBC.onObjectDBError(OBC. java :1582) at com.objectdb.jpa.EMImpl.commit(EMImpl. java :289) at server.database.AuDatabase ... .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java :62) at sun.reflect

Error when using Object DB Java Agent

Hello! We are using the Java Agent while developing our application because it's not possible ... to instantiate [ch.qos.logback.classic.LoggerContext] Reported exception: java .lang.LinkageError: loader ... (AbstractSAXParser. java :1207) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser

Cannot initialize db after inserting a java.util.List

, but whenever I access the db through a servlet container I get this error:  objectdb. java .util.ArrayList ... .objectdb.o.InternalException: Unexpected internal exception at com.objectdb.o.TYM.au(TYM. java :976) at com.objectdb.o.MUT. (MUT. java :101) at com.objectdb.o.CLT. (CLT. java :38) at com.objectdb.o.MUT.w(MUT

type.loader java.lang.ClassNotFoundException

all) encountered classes: [2011-05-31 09:16:24 #5 type.loader] java .lang.ClassNotFoundException: com.greensoft.entity.Element at java .net.URLClassLoader$1.run(URLClassLoader. java :200) at java .security.AccessController.doPrivileged(Native Method) at java .net.URLClassLoader.findClass(URLClassLoader. java :188) at java

java.nio.channels.OverlappingFileLockException

Hello, whenever I re-deploy my web application in Sun Java System Web Server, I get the following ... , Benjamin java .nio.channels.OverlappingFileLockException at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl. java :1176) at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add

Entity with java.util.Date column gives ClassCastException in BIRT

a simple JPQL query to select the fields. Entity looks like this: package entity; import java .util.Date; import java .util.List; import javax.persistence.*; /** * Entity class for a patient */ @Entity public ... .eclipse.datatools.connectivity.oda.OdaException ;     java .lang.ClassCastException

Saving custom list which implements java.util.List fails

a list-attribute which is declared as java .util.List but the actual Object MyList just extends ArrayList ... .MyPoint.list (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl. java :290) at tutorial.TestMyList.main(TestMyList. java :21) Caused by: javax.persistence.PersistenceException: com.objectdb.o

Page cache File handling produced an java.io.IOException: Negative seek offset

_541100773067300498\pages11.dat' (error 117)     at com.objectdb.jpa.EMImpl.find(EMImpl. java :630)     at com.objectdb.jpa.EMImpl.find(EMImpl. java :545)     at com.btc.ep.base.dal.internal.services.PersistenceUtilityServiceImpl.find(PersistenceUtilityServiceImpl. java

Database Management Settings

are generated by running the Activator utility: java -cp objectdb.jar com.objectdb.Activator from

SELECT clause (JPQL / Criteria API)

results more precisely can improve performance and in some cases can also reduce the amount of Java

Storing JPA Entity Objects

(). commit (); The Employee instance is constructed as an ordinary Java object and its initial state

JPA Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of the Java Persistence API (JPA) 2.0. The content is derived from the original JPA documentation (in the EclipseLink JPA 2 RI) with some additions and notes. The JPA types are organized into the following sections: The purpose

JPA Named Queries

A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL query strings from the Java code. It also enforces the use of query  parameters

DELETE Queries in JPA/JPQL

the java .lang.Object  class in queries (as an extension to JPA), so the following query

Where can I learn how to use ObjectDB?

The best source for learning ObjectDB is the ObjectDB Manual , which contains all the necessary information for using ObjectDB. The only required background is a good understanding of the Java language. Reading the manual and getting started with ObjectDB could be easier for developers with prior

Is ObjectDB better than Object Relational Mapping (ORM)?

is developed for an existing old relational database). By using the Java Persistence API (JPA

JPA Query API

queries,  based on Java objects that represent query elements (replacing string based JPQL). JPA

JPA Metamodel API

The JPA Metamodel API, which is introduced in JPA 2.0, enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API. The main interface of the JPA Metamodel API is: Types (mainly classes) and attributes (persistent field and properties

Database Schema Evolution

). Any other conversion that is a valid casting operation in Java . Renaming (Package, Class and Field

Chapter 3 - Using JPA

This chapter explains how to manage ObjectDB databases using the Java Persistence API (JPA). The first two pages introduce basic JPA interfaces and concepts: The next section explains how to use JPA for database CRUD operations: More advanced topics (e.g. locking and events) are discussed in the last section:

Database Connection using JPA

Working with the Java Persistence API (JPA) consists of using the following interfaces: Overview A connection to a database is represented by an EntityManager instance, which also provides functionality for performing operations on a database. Many applications require multiple database

Running JPA Queries

. The query result collection functions as any other ordinary Java collection. For example, a 

BIRT/ODA ObjectDB Driver

with BIRT and JPA tutorial. Driver Installation The driver is available as an Eclipse for Java EE

JPA Annotations

JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: Annotations for fields in JPA persistable classes: Annotations for additional JPA configuration: Annotations for JPA lifecycle event callbacks: Java EE container annotations: Many

JPA Criteria API Queries

, are defined by the instantiation of Java objects that represent query elements. A major advantage

Database Explorer

it from the command line as follows: java -jar explorer.jar If explorer.jar is not in the current

java.lang.NullPointerException during access a field, only if the classes enhanced

exception at com.objectdb.o.JPE.h(JPE. java :168) at com.objectdb.o.ERR.f(ERR. java :66) at com.objectdb.o.IVP.m(IVP. java :155) at com.objectdb.o.IVP.l(IVP. java :137) at com.objectdb.o.ISP.size(ISP. java :174) at java .util.HashSet. (Unknown Source) at com.btc.ep.profilemigration.migrators.architecture

Unexpected Exception (java.lang.NullPointerException: Cannot invoke "com.objectdb.o.ORS.Z9())

.ORS.Z9()" because " " is null at com.objectdb.o.MSG.a(MSG. java :77) at com.objectdb.jpa.EMImpl.commit(EMImpl. java :297) at de.advolux.jpa.network.rmi.session.StandAloneDatabaseConnector.EndTransaction(StandAloneDatabaseConnector. java :803) at de.advolux.jpa.network.rmi.session.StandAlonePM

java.lang.ClassCastException: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU

Error in production urgent [2017-05-19 09:34:09 #14 server] java .lang.ClassCastException: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU at com.objectdb.o.PPW.an(PPW. java :74) at com.objectdb.o.PGW.aj(PGW. java :220) at com.objectdb.o.UPT.C(UPT. java :134) at com.objectdb.o.URT.l(URT. java :171

Querying error - java.lang.ClassCastException: com.objectdb.o.STV

:*:fatal] java .lang.ClassCastException: com.objectdb.o.STV at com.objectdb.o.PBI.p(PBI. java :91) at com.objectdb.o.OBI.U4(OBI. java :235) at com.objectdb.o.BQI.Vd(BQI. java :134) at com.objectdb.o.PRG.ac(PRG. java :679) at com.objectdb.o.PRG.aa(PRG. java :609) at com.objectdb.o.QRM.UR(QRM. java :256) at com

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null

Java HotSpot(TM) 64-Bit Server VM 1.7.0_51 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java .lang.ArrayIndexOutOfBoundsException: null java .lang.ArrayIndexOutOfBoundsException at java .lang.System.arraycopy(Native Method

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null

by Java HotSpot(TM) 64-Bit Server VM 1.7.0_07 (on Mac OS X 10.9.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java .lang.ArrayIndexOutOfBoundsException: null java .lang.ArrayIndexOutOfBoundsException at java .lang.System.arraycopy(Native

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

internal exception SEVERE: [ObjectDB 2.3.6_16] Unexpected exception (Error 990) Generated by Java ... .objectdb.com/database/issue/new com.objectdb.o.InternalException: java .lang.ArrayIndexOutOfBoundsException: null java .lang.ArrayIndexOutOfBoundsException at java .lang.System.arraycopy(Native Method) at com

Spring MVC and JPA Tutorial

This tutorial demonstrates how to create and run a full Java Spring MVC (Model View Controller) web application using Tomcat (or GlassFish), JPA, ObjectDB and Maven. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. All visitors

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting  New Class . The package name should be  guest . Enter  GuestController as

Step 3: Add a Context Listener Class

Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener

Step 1: Create a Maven Web Project

.2 enhance process-classes java com.objectdb.Enhancer guest.Guest org.mortbay.jetty maven-jetty

Step 3: Add a Main Class

tutorial; import javax.persistence.*; import java .util.*; public class Main { public static void main

Step 3: Add a Main Class

.persistence.*; import java .util.*; public class Main { public static void main(String[] args) { // Open

JPA Web Application Tutorial

This tutorial demonstrates how to create and run a database driven Java web application using Tomcat 6, ObjectDB and JPA. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed

Step 3: Add a Context Listener Class

- use exactly that case sensitive class name. The Java package name should be guest. Click Finish

Getting Started with JPA - Eclipse Project

Eclipse: Right click the project node and select Run As Java Application . Select Main - point and click OK .

Step 1: Create a Web Project

We start by creating a new NetBeans Web Application Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project Name (e.g. Guestbook ) and click Next . Select Apache Tomcat 6 as the Server. Note

Step 7: Run the Spring Web App

enabled without specifying a Java agent. This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .