ObjectDB Database Search
151-200 of 200 resultslockfiles in client/server mode the client is attempting to create lockfiles in /tmp/ObjectDB. my account and the tomcat account ... is defined in src/main/webapp/META-INF/persistence.xml with a jdbc URL that looks to me as though it ought to connect to the server rather than attempt to start in embedded mode. i have also tried | |
Externalising persistence.xml properties in Glassfish? for your time! Willks William Hello, Why dont you create multiple presistance units in ... to pick them up if you give the place holder. I know I have tried this in the application.xml   ... . in your persistance.xml use placeholders for the data you want. In this example I have the place | |
composite index not used in query only results that satisfy: (a.startDate:1). [Step 1c] Retrieve fields in Action (a) instances. [Step 1d ... over all the instances (a1) in a.objectsInCharge. [Step 2b] Retrieve fields in ObjectNode (a1) instances ... above) ------------------------------------------ [Step 3a] Iterate over all the instances (v$1) in a1.childNodes | |
Wrong data stored in time only fields This may be related to the fix for the problem described in this thread: Wrong data stored in date only fields . The object and its date and time fields are the same as in the referenced thread ... and in 100K records it will show up in about 1.5K records with no obvious pattern. Also it appears | |
Setting temp directory location in ObjectDB.class.getClassLoader()); I read in the ObjectDB website that we can change the temp directory using ... the fileName.odb. When pm.currentTransaction().begin(); hits it creates a .$fileName.obd$ file in the same ... so that $fileName.obd$ will be created in some different folder. Please let me know the solution. Thanks | |
Best practice: Database update/migration of embedded databases in products: There are three versions of a product (v1.0; v1.1, v2.0). In each version, the entities have been modified ... is now held otherwise. The product store user data in the ObjectDB-Database. Example: V1.0: EntityPerson ... =”26135”; city=”Oldenburg”] How can we load the Database DB1 with the Product in Version 1.1 or 2.0 | |
Is 2 level cache in use? Hi, Is there any way to check, if 2 level cache is in use? Right now I've done two things: 1. objectdb.conf with cache size is placed in WEB-INF directory of my web application. 2. persistence.xml was modified with: But after few benchmarks I don't really see any difference in performance. ODB | |
Strange behaviour with ORDER BY and IN it should be (and usually is, except in this special combination-case). Ordering seems to be ignored ... on this member with a simple IN -clause. Filtering with IN -clause or ordering on another member (which is not ... ("Locations without selection criterion in descending order (by id): ");   | |
Path in tomcat Hi, If I put the .jar into /opt/Tomcat/lib/, then where the .conf should be in ? And the .odb ... /, then where the .conf should be in ? And the .odb? See explanations about ObjectDB home and configuration path in the manual . Notice that the database file can be at any absolute path that you specify | |
ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`) the full stack trace. support Support Hi, the upload feature is not working, tried in chrome and firefox ... clear. There have been similar reports in the past, but more details are needed to identify the exact cause in this case. Have you changed your entity classes recently? Assuming this issue is related | |
unable to update table in slave server database Hi, We are facing below issue in objectdb clustering. Currently in objectdb clustering when master server is down , in slave server during update operation in table getting below issues. Failed to commit transaction: Attempt to commit a transaction in read only mode[ObjectDB 2.8.2] javax | |
Class loading problem with private packages in OSGi environment everything well. But now we have in the Business Layer private packages that are not exported. The entities implement ... so that we do not need to make changes. Important for us is that we find a solution that always works in ... loads all the interfaces in order to support persistent interfaces, a feature of JDO that is not | |
removing members in existing databases Hi team i might ask for the best practice to remove some members (i.e. collections) in existing ... and let it remain in database 2. Remove the list and 2.a update every object that contains ... of time if you have a lot of objects in your db 2.b when testing it works fine for me in | |
Level 2 cache not hit in @ManyToOne. Level 2 JPA cache is activated and it works ok for find by id (tested by changing data in explorer and reading in my app). Problem 1: find by id on Item it's good, it hits the cache, but not for its field "user". "user" is loaded each time from the DB (tested by changing data in explorer and reading in | |
Project runs in Eclipse but not when exported to runnable jar done relating to objectdb. javax.persistence_2.0.3.v201010191057.jar and objectdb.jar are included in the build path, and are present in the compiled file, as is the test GliderCalcs.odb file created by ... , this is a hobby project, please excuse any travesties in my code. Many thanks in advance, Mark merichards Mark | |
Visibility of changes in Transaction is not visible to a JPA QL Query, and the persistence.xml is located where it is used in the EJB project ( this was the only way I ... .6b24 on Windows Server 2008 SP2 32bit. I have not added any objectdb jars in any other location apart from the EAR JFK John Francis Please check if this is due to the default flush mode . In | |
Object DB In memory : without Filestore completely in Memory ? (without any writes to Disk, it's okay to loose the data if the node is down ). I ... the Object DB completely in memory without disk storage. thanks, Sandeep Sandeep Sandeep Dhamale At the moment, ObjectDB doesn't support pure in memory mode, but it still can be used completely in | |
Empty temporary dat files in the temp folder Hello, We have questions regarding the pagesX.dat files in the temp directory. We detected ... , begin a transaction, do some stuff (find, persist, remove …) and then commit or in the case of errors rollback the transaction and closing the EntityManager. In some scenarios we use additional | |
disabling JDO in objectdb embedded mode Hi, i am using objectdb (version 2.6.8) in embedded mode. I deployed an .ear project in glassfish ... if you have conflicting jars, maybe of another JDO implementation in your web application or class path. support ... . The trace in #1 is the best I can show to explain the problem. (I can also add a log file if you like | |
How to package orm.xml when using EJB in WAR? Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml ... ; both persistence.xml and orm.xml are located in src/main/resources/META-INF ... for other persistence providers, e.g. EclipseLink, which can pick up the orm.xml from the jar file embedded in the war | |
Failing in embedded mode, correct javax.persistance? I'm trying to run the tutorial example as given in the tutorial on ObjectDB's net pages. I ... " and where it should be stored, contents etc. Since I am running the program in embedded mode, this file should not be necessary ... "); EntityManager em = emf.createEntityManager(); …. the code continues as in the tutorial… (I | |
Items in list are doubled, when the entity class is not enhanced, for example put "com.objectdb.Enhancer.enhance("javaapplication.*");" into the first line in main 2. add a String field into Customer with getters and setters. (the field name in my case is text) 3. before em ... bugs? Thank you Michael anaq x Your program ( in #1) demonstrates a very strange behavior | |
Should I be able to persist a JFrame (or gui components in general)? and end result was working persistence as seen in explorer. But (mostly for those who might encounter ... with LINQ/C#. I can see how LINQ tries to solve the problem by preserving the status quo, in ... the database, and I like this a lot so far. However, in writing the Contact class, I realized I | |
Annotations not supported in -source1.3 (use -source 5 or higher ..) to build the points example from Maven, but on opening it in Netbeans 6.9.1 I got an error in Points.java and other files: Annotations not supported in -source1.3 (use -source 5 or higher ..) Generics not supported in -source1.3 (use -source 5 or higher ..) (Note that the version of Java I ran Maven as | |
Database is locked when in use the odb files in the file system but the same i was able to do it in object db 1.0. We supprt export functionality and if i am not allowed to copy it in objectdb 2.x, then its a problem ... a database when it is in active use is unsafe. With ObjectDB 2.x you should use online backup   | |
Duplicate Entity class names causes Exception in Query I have two Entities which have the same class name but reside in different packages, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name ... for two different entity classes is not allowed in JPA. See the Entity Class Names section in | |
List of Enum Values in an entity Hello, I'm new with ObjectDB and just tried out the example in the Eclipse/Glassfish tutorial ... without any problem. In the explorer I can see that it is stored as array of Strings. Unfortunately ... . If the entity is enhanced, you may see a null value in the debugger before accessing the field | |
@ElementCollection query returning extra result per element in collection Hi, I'm having a hard time narrowing down an issue that only became apparent with in the UI ... '. The entity returned is repeated for every element in the collection. Switching back to EclipseLink ... : 2.2.8_06 Willks William It seems as a bug in an ObjectDB query optimization - use | |
How the sort order (in queries) works for non english letters? We are considering using ObjectDB in project where target audience are czech speaking people ... of the characters in Unicode. In Unicode, ordinary English letters are located separated from other language letters. You can change this behavior by normalizing your strings. You should store your strings in | |
Stalling on "run File" in Netbeans when using -javaagent:lib/objectdb.jar. To enable enhancement I use the following in the Project Properties dialog Run section under VM Options ... fine for a Netbeans Web Application (that runs in Glassfish as web application container). However I ... /objectdb.jar is present in the VM Options, in which case the class begins to execute then simply "stalls | |
How to convert a boolean to an int in the query? How to convert a boolean to an int in the query? I have five parameters of type boolean in ... , approvePhoneNumber, .... because the parameters equivalent. I want to sort them in the query by their sum ... them. You can calculate it in a JPA lifecycle event . Currently you cannot convert boolean to int in | |
Is there an update on running ObjectDB purely in-memory? ObjectDB purely in -memory, without a any file on disk? Note that "file on RAM disk", which was proposed in the past, is not an option for the application I have in mind. It would need to be true in ... We had this as an unreleased feature for a while, and following your post it is now included in | |
How to change properties in urls2.xml? Hello, I am using objectdb in an embedded case with network private access to each database. I ... The solution in #2 is for hiding sensitive information, in case you have a problem with the urls2.xml file. Information is written to that file just to enable opening recent connections easily in | |
How to use ObjectDB properly in spring boot application? in order to properly close connections. I want to refactore my application so that database operations are done in JpaRepositories or Dao classes with @Transactional methods (as described in   ... ) methods Thanks in advance.. abdullaharslan abdullah arslan Please check this stackoverflow | |
Redeployment in GlassFish - Failed to open file Hi. I am facing a problem with the redeployment of the application in GlassFish. I can deploy my application in GlassFish for the first time and it works. Once I need to redeploy it after making some changes in the source codes, the following errors come up in the GlassFish Log | |
Performance issue in a query due to internal calls visitRefs and visitKeyRefs Hello, we have a question about a performance issue in a query. We executed a query on the following entity and there is only one entity in the database and we expects that the query is executed within 1 ms. SELECT v.sheetUID FROM TCVector But how you can see in the attached snapshot 'stacktrace | |
Problems down-casting in WHERE clause my query in the ObjectDB explorer, I get Query Execution Error ===================== null ... in reproducing it. Please change the attached program so generate the exception or provide a database ... this. I also could not get the simplified example to throw the exception, even after adding in | |
Missing (null) elements in eager loaded references, which maybe could solve the issue in this case. support Support It happend yesterday after we installed an update and I was the only logged in user. So it beeing another Thread closing the EntityManager is not possible. It happend when I made an export, which happens all in one Thread.   | |
Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity I doubt this is an ObjectDB-enhancer problem, I am however reporting it in case anybody else encounters the problem too. It is mostly also not a concern for my own web app, because in most cases a non-static logging variable holder can be used in an @Entity. ObjectDB 2.6.3 | |
Indexing a field results in internal Exception annotation. Is there anything I can look for that might result in this exception? sjzlondon Steve Zara ... that demonstrates the problem. If you are working in client-server mode, you should try to restart the server after schema change. After adding an index to an existing entity class with instances in the database | |
Enum fields are set to null and embeddable enum class does not show in explorer in the related objects is set to null. This is highly critical because it will cause data loss! The enum type is also not listed in the explorer. I am talking about an enum class, which implements ... Petzold This has effect, when something in the explorer is edited and saved (with missing | |
Memory leak in com.objectdb.o.CST where there are over 3gigs allocated in thousands of com.objectdb.o.CST instances as shown in screenshot ... you have mistaken shallow heap size as instances. It is only 1 instance of EMF as seen in the better view I uploaded in this reply. So the question remains. What could these 132 instances | |
new objects not available in mappedBy associations; creating a new mapped class, e.g. new Employee, won't result in this object being available in ... This seems to be the normal behavior - according to JPA the application has to update both sides in order to have a synchronized bi-directional relationship. In practice, however, the mapped side will be updated | |
java 8 LocalDateTime is not working in query able to query without datetime field in where clause, but with datetime in where clause doesn't ... compatibility card here, it is not quite working: In JPA you can use the @Convert annotation in order ... . If you can provide a small single top level class example ( in this form ), which shows | |
Error reading UTF string (Serialized Objects in Explorer). support Support hmm weird.. ok here it goes again quasado Alexander Adam There is a problem in ... of this type in the explorer (by right clicking the type in the Schema tab and selecting Open Tree ... . It seems that there is a problem in reading the pricing field, whose type is serializable ( Money | |
Exception in thread "main" java.lang.NoSuchFieldError: __odbTracker filed is initialised i got an exception Exception in thread "main" java.lang.NoSuchFieldError ... which is referenced in generated method: __odbSet_Connections br Tomasz Tomasz ... at the top level entity / persistence capable class). In addition, you should enhance | |
ClassCastException in Tuple.get check before the cast and throw more meaningful exception in such case? If you are interested ... that are not a Path - am I right? hobson Maciek Chabros Just to let you know, in most places I managed ... than ClassCastException, and mentioning the limitation in docs. Cheers! hobson Maciek Chabros It would help | |
InternalException when using MEMBER OF on a large list in a query in repair mode (even if no errors are found by the Doctor). You may also disable an optimization ... with the Doctor. - no Problem. I reproduced the exception by execute the Query in the explorer. Also with the outcome of the Doctor in repair mode. But after many experiments I found out that the Query works | |
'DROP TABLE' in ODB? Let's say I no longer need some entity in my project and after deleting all the objects of this type in database I want to remove this type from schema. How can I do this? Is there something like SQL 'drop table' in ODB? lwalkowski Lukasz Walkowski This is currently not supported. As far as I | |
Query in nested transaction returns detached entity if lazy-loaded of the relevant work flow and fails at the assert in line 58: assertTrue(secondQueryResult.get(1).strValue ... a solution will be available soon. support Support Your test case demonstrates a bug in retrieving ... then we get another issues in our test suites. We worked on enhanced classes. We activated the entity |