ObjectDB Database Search

51-100 of 200 results

ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`)

ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`)

Java 8 Enhancer Problem

weaving . Unluckily the LTW option of Spring is global. If it's enabled it also tries to find other class ... an exception which causes Spring to stop weaving .  Caused by: com.objectdb.o.InternalException ... the exception and output a log message like "Java 8 weaving currently not supported." instead

Spring MVC Errors

get the last part of the tutorial: "To enable on the fly automatic enhancement ( weaving ) in Tomcat ... enhancement ( weaving ) is automatically enabled without specifying a Java agent." P.S: I was using

Query problem after transaction commit

; support Support Attached please find the test code . The screen output is at the end of the post ... for all object Goods successfully] 04 SELECT u FROM Goods u where u._ code like : code AND u._desc like :desc  05 code = %, desc= % 06 UI: end query 07 UI: start printing result 08 code = A, desc= Good

Is ObjectDB better than Object Relational Mapping (ORM)?

databases when necessary - with exactly the same code .

Eclipse Distribution License - v 1.0

Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice

CRUD Database Operations with JPA

Given an EntityManager instance, em , which manages the persistence context for the database, you can use it to store, retrieve, update, and delete objects. Storing new entities The following code fragment stores 1,000 Point objects in the database: em. getTransaction (). begin (); for (int i = 0

Generating new activation code gives 500 server error

Generating new activation code gives 500 server error

Access ClassTransformer

Hello, As in our OSGI Environment, we do need to manually weave classes. To be able to do so, we'd need access to the ClassTransformer from ObjectDB. However, there's only the global enhancer api which is not of any help. There's the JEhancerAgent which seems to implement a ClassTransformer as

jakarta.persistence.TypedQuery

of the query. Deprecated: Newly-written code should use the date/time types defined in java.time ... correspond to a parameter of the query. Deprecated: Newly-written code should use the date/time types ... is of incorrect type. Deprecated: Newly-written code should use the date/time types defined in java.time

NullPointer when accessing persistent field

you a snapshot of some of the utility dependencies )   The code being called is accessing a map declared ... and db files ( transaction is rolled back )   The packages were all enhanced ( static weaving ... java.util.Map z_registers  = new java.util.HashMap (); As before Enhancer is being run on code

500Mb ObjectDb database opening issue

) for following code long time = System.currentTimeMillis(); m_EntityMgrFactory = Persistence ... all activations from the objectdb.conf file. With an OEM license your end users do not need activation codes , and you should avoid including activation codes in your distributed application. Maybe checking

Problem with @Basic(fetch = FetchType.LAZY)

= FetchType.LAZY) private String description; @Basic(fetch = FetchType.LAZY) private String code ; public Sample() { } public Sample(String title, String description, String code ) { this.title = title; this.description = description; this. code = code ; } //getters and setters public static void main

Database size is much larger than expected (x2)

system, but more than 100% overhead is not reasonable. support Support OK, I finished the same code in ... Eclipse, the codes need a single javaw, while objectdb needs another one. So the memory problem cause ... ; gzdillon Lai Yang You should check your code , especially the conversion of images to byte[] - maybe

Problem on JPA Merge Entity.

;   support Support Hi, I think that it is an ObjectDb problem. The same code with Spring, JPA, Hibernate and MySQL works.   I try to isolate to isolate the code that doesn't work and to make ... ? On create I get: /testCreate /testUpdate /refresh /updateAllInDao 60 PrimitiveNounPhrase [ code = CODE

jakarta.persistence.MapKeyTemporal

: @OneToMany @MapKeyTemporal(DATE) protected Map employees; Deprecated: Newly-written code should use

jakarta.persistence.Basic

discouraged. Newly-written code should use the date/time types defined in the package java.time , or

Activation Issue

, it was shutdown the laptop, and move to the office. The activation code isn't tied to IP addresses in any way ... most definitely had the activation code in objectdb.conf. Yet I was seeing that exception, no objectdb server ... code is per machine. Use your site license to generate multiple activation codes . You may also specify

Mismatch client-server protocol prefix

. Try also to consider any change in the migration of code that could cause it. More information ... at your code ), and provide more information? Is it different from what was used before migration? support Support No wed didn't change anything in our DAOs. This is the code which raises the Exception

Activated ObjectDB still throws "Too many persistable types"

that activation code is set in the server configuration file (not on the client side). Since you have a site license, you may try running activation again, to see that the code is correct ... Support Make sure that activation code is set in the server configuration file (not on the client

Updating Entities

thought it was a problem in my code for how I loaded the content into the table, but then I tried checking ... ). Though, I can assure you the code given is the minimal amount that you'd need to see as the other pieces are just validation checks and queries apart from UI function handlers. I also know that my code

Embedded List

about the question. On #1 and #3 you provided code . Is it runnable? What is the exact issue? support Support So the code is runnable if you have the 2 files from the first comment, I am trying to get records that have part of the strSupPart field from the Embedded class in the ItemDB class, my code looks

Source not found error after downloading ObjectDB 2.3.7_04

Code snippet: Properties prop = new Properties(); prop.setProperty("javax.jdo ... am trying to debug code snippet mentioned above in Eclipse it asks me to provide source code at debug ... any PMF.java class.   For setup I downloaded the ObjectDB zip file. Placed it in source code

EntityManager getMetamodel() causes crash

to your example code in the tutorial (with class Point ) and it works as expected: : (995, 995) (996, 996) (997, 997) (998, 998) (999, 999) If I then add one line of code to your example code : : // Store 1000 ... also with a new empty database? support Support Working code .  Note I am using a persistence.xml

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

() { return "test.AbstractObject[ id=" + id + " ]"; } } This code throw exception: Person person ... the code  as it is written here  https://www.objectdb.com/java/jpa/tool/enhancer ... ; ...... other code ...... com.objectdb.Enhancer.enhance("test.*"); Person person = new Person(); person

Catching exceptions from online backup

of the backup process, then the backupThread finished its work even before our code would set ... is caught in the surrounding catch block in TOL:47 and its code does not generate next exception ... simple code , similar to the  code in #4 above, with step by step instructions? support Support

Unable to delete the .odb file programatically

code to delte the odb files     PersistenceManager pm = (PersistenceManager ... .close(); }   After executing the above code , when i am trying to delete the file using the followng code     File[] files = parentDir.listFiles();     

Does "error 522" (connect timed out) have something to do with restrictions despite license activation?

the license inside the server. By the way, I fetched the following message: Your activation code should be available at:Your activation code should be available at: http://www.objectdb.com/activate ... Lotti Solved, it was really because of the activation code I wasn't able to fetch from URL. Ieodaq

jakarta.persistence.TypedQuery.setParameter(Parameter,Date,TemporalType)

-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(String,Calendar,TemporalType)

argument is of incorrect type. Deprecated: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(String,Date,TemporalType)

is of incorrect type. Deprecated: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(Parameter,Calendar,TemporalType)

: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.setParameter(int,Calendar,TemporalType)

argument is of incorrect type. Deprecated: Newly-written code should use the date/time types

jakarta.persistence.TypedQuery.setParameter(int,Date,TemporalType)

argument is of incorrect type. Deprecated: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setParameter(int,Calendar,TemporalType)

of the query or if the value argument is of incorrect type. Deprecated: Newly-written code should use

jakarta.persistence.StoredProcedureQuery.setParameter(int,Date,TemporalType)

if the value argument is of incorrect type. Deprecated: Newly-written code should use the date/time

jakarta.persistence.StoredProcedureQuery.setParameter(Parameter,Date,TemporalType)

. Deprecated: Newly-written code should use the date/time types defined in java.time . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.setParameter(String,Calendar,TemporalType)

or if the value argument is of incorrect type. Deprecated: Newly-written code should use the date

jakarta.persistence.StoredProcedureQuery.setParameter(String,Date,TemporalType)

if the value argument is of incorrect type. Deprecated: Newly-written code should use the date/time types

Eclipse/JPA Java EE Tutorial

as well (dialog boxes and menus might look slightly different but the code would be the same). Note

Eclipse/JPA Web Application Tutorial

with other Eclipse versions as well (dialog boxes and menus might look slightly different but the code

Step 2: Entity Class and Persistence Unit

to replace the new source file content with the following code : package guest; import java.io

Step 2: Define a JPA Entity Class

and paste to replace the new source file content with the following code : package guest; import java.io

Getting Started with JPA

This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple  Point entities, where each  Point has two persistent fields -  x and  y . If you already know JPA - the source code will be straightforward

Step 3: Define a Spring DAO Component

replace the content of the new source file with the following code : package guest; import java.util

NetBeans/JPA Java EE Tutorial

and menus might look slightly different but the code would be the same). Note: ObjectDB 2.3.7_04 or

Step 4: Add a Servlet Class

of the new source file with the following code : package guest; import java.io.IOException; import javax

Step 2: Define a JPA Entity Class

code : package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence.Entity

ObjectDB can't be activated

activation code , so there shouldn't be the problem. It maybe the issue of a 00-00-00-00-00-00 ... chmod +x server.sh ./server.sh start Then we executed following java code (using a ssh-tunel ... problem. Anyway, I see an activation now from a few minutes ago. The result activation code

com.objectdb.o._PersistenceException: Failed to locate set method for field property using reflection

. (DomainModel.java:67) This is otherwise working code . The error is intermittent. The database explorer ... appreciated. Code works fine when running with ObjectDB embedded, but throws the exception randomly when application accesses ObjectDB in  server mode. paul Paul Hudson Code works fine when running