About reflection

manual

Entity Management Settings

Explains settings and performance tuning of JPA entities in ObjectDB, the fast Java object database for JPA/JDO.... > <enhancement agent = "true" reflection = "warning" /> <cache ref = "weak" ... <enhancement agent = "true" reflection = "warning" /> The <enhancement> ... only for JDK 6.0 (not JRE) or above. The reflection attribute specifies how non enhanced classes are handled. ObjectDB ...

 
manual

JPA Metamodel API

Explains how to use the JPA Metamodel API to retrieve details on the types and attributes of the persistent object model.... fields and properties, similarly to the ability that Java reflection provides for general Java types. This page covers the ... ( ) ;   // Get Java reflection representation of the field (or property) type: Member member ...

 
api-jpa

JPA Metamodel API

Reference (JavaDoc) of the JPA Metamodel API, including all the type and attribute interfaces.... of the persistent object model, similarly to the Java reflection API. The main interface of the JPA Metamodel API is: ...

 
forum_thread

Error: Failed to write value of field X using reflection (oneToMany relation)

Hi there! I have been all day trying to solve this. I have read multiple sites and documentation, but I can go through this. I have a clase named Pedido, that have a reference ManyToOne to a clase Cliente. ... the value of field field entidades.Cliente.pedidos using reflection   What's wrong with this? I suppose i'm ... of field field testodb2.TestODB2$Cliente.pedidos using reflection" The test case file is adjunct. ...

 
issue

stress test -> com.objectdb.o.InternalException: null

I am running a stress test with 2 users, each making a request to the JSON API (which uses as storage ObjectDB) each 50 milliseconds. An API call might have between 1-4 db calls, but they are relatively light, and the db has just a few MB at the moment. After a few minutes I got this exception. If I decrease the load, it doesn't happen. If I increase it, I get it very often. Any solution/fix? A sample project is very hard, if not impossible, to create, because it uses all the system. Bug Version: 2.5.5 Priority: Critical Status: Fixed Replies: 19 Type:  Bug ...

 
forum_thread

Failed to write the value of field using reflection (error 363) on LAZY fetch

Hi There I am using ObjectDB 2.6.3. I get the following Exception when I try to read my entities with a query where I have set to use LAZY initalization. It fails when it tries to set a 1:n member (e.g. a Modell has several Artikels) . When I remove the LAZY hint on the query execution it works. Any hints why this can happen? The Mapping of class Modell and its member: ... of field field ch.megloff.zeus.model.Modell.articles using reflection (error 363) at ... of field field ch.megloff.zeus.model.Modell.articles using reflection at com.objectdb.o.MSG.d(MSG.java:75) at ...

 
forum_thread

Failed to read the value of field using reflection

I have recently encountered an issue with reading objects: ... to read the value of field field Character.stats using reflection Stack ...

 
forum_thread

Error in reading Enum in JPA - Failed to read using reflection

I have created a very simple Entity User which has an enum Status (INACTIVE, ACTIVE). When an entity User is created, everything looks OK and I have seen on explorer that User is created as expected with valid values of Status. This is all done with JPA/EJBs. However, at the time of reading the Object (findById), the system throws an error  com.objectdb.o.UserException: Failed to read the value of field com.xxx.User.status using reflection caused by.. ... to read the value of field com.xxx.User.status using reflection caused by.. java.lang.IllegalArgumentException: ...

 
forum_thread

Eclipse - Maven - Dependencies not getting automatically reflected

I have installed Java 1.7 Eclipse Juno From Eclipse Market place have installed - Maven Integration for Eclipse WTP (a.k.a m2e-wtp), m2e-apt, Spring IDE, The Spring Tool Suite™ (STS) Have defined M2_HOME as directory where Maven is installed. PATH updated as %M2_HOME%/bin I am working on Windows XP. #1 2013-12-22 22:46 I have installed Java 1.7 Eclipse Juno From Eclipse Market place have ...

 
issue

ObjectDb Doctor : Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection (error 316)

Hello everyone ! I have just launched the ObjectDb Doctor for testing purposes. But while inspecting my base, the Doctor throws me a strange error : [ObjectDB 2.4.6] Invalid ID class com.test.Video$VideoId for type com.test.Video (Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection) (error 316) It seems that the Doctor can't find the SourceId, that is a part of my primary key. There is a description of my Video bean :   ... for field property com.test.Video$VideoId.sourceId using reflection) (error 316) It seems that the Doctor can't find the ...