Home » Search

About enhancement

41-50 of 200Refresh
Forum
15

Weird behaviour with enhanced classes and embedded entities

entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced ... static void main(String[] args) {     // enhance entities     com.objectdb.Enhancer.enhance ... (or without enhancing the classes). What I can say so far: Enhancing & multi threading breaks .add
Forum
15

Does run time enhancer due to GlassFish/Payara do anything that would affect loaded compile-time entity classes ?

ObjectDB support wrote elsewhere: ... you do not need the Enhancer agent, since you use build time ... to disable the enhancer agent ... Q: Does run time enhancer due to GlassFish/Payara do anything that would affect loaded compile-time enhanced entity classes (other than just logging, typically just info
Forum
15

Enhancer failure: Failed to process class file of type

:446)         at com.objectdb.o.JEN.m(JEN.java:101)         at com.objectdb.Enhancer.main(Enhancer ... .   Thanks David comfirmed that error resolved with 2.7.2_02 and the following enhancement config in gradle works: task enhance ( type: JavaExec ) {   main = 'com.objectdb.Enhancer'   classpath
Forum
15

How to check if the classes were enhanced correctly with valid OEM license?

Hello, is there a way/tool how to check whether build classes were enhanced with valid OEM license? Scenario: 1) Build and enhance Java application with some Object DB license key. 2) Pick particular JAR containing enhanced classes from the build above. 3) Run some tool against picked JAR
Forum
15

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

.8_06 All our entities are enhanced. There are nested entities in following hierarchy: @Entity ... enhancement, but it could be anything. Hello, First of all thank you for the try to analyze the error ... ). We see no connection between the database and the enhanced classes. But perhaps, not quite comprehensible
Forum
15

Exception when querying Map property with @embedded & Enhancer enabled

Hi, I have the following test class that is failing when the enhancer is enabled, resulting in the error 'Failed to write the value of field field TestEmbeddableMap$MyAttributeItem.id using enhanced method.', if I disable the enhancement the test works as expected, and returns the expected
Forum
15

Invalid file type for enhancement (error 104)

Trying to run enhancement, I get:    [ObjectDB 2.5.5_05] Invalid file type for enhancement: /home ... ) com.objectdb.o.UserException: Invalid file type for enhancement: /home/steve/java/spiffymap-svn ... .objectdb.Enhancer.main(Enhancer.java:32) Could you give some help as to what this issue
Forum
15

Measurement of the test coverage of enhanced classes

to our customers. Therefore we think we need to test the enhanced classes. But that distorts our test ... "coverage" of our tests? Enhancement adds code to persistent classes so it would affect test coverage ... ) rather than on the class file and JVM instructions may not be affected by code that is added by enhancement
Issue
15

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

encounter ObjectDB enhancement errors: private boolean loaded = false; @Transient ... javaagent run-time enhancement or post-compile enhancement, and on complete clean and build in ... ] Type com.example.entity.Element is not enhanced. ... But it is ok using the 'get' getter form
Forum
15

Enhancement from gradle build file

Just wondering if it's possible to add enhancement in the gradle build file after compilation ... seems to work: task enhance(type: JavaExec) {   main = 'com.objectdb.Enhancer'   classpath ... _two.*' } compileGroovy.finalizedBy(enhance)   note, for java, you want compileJava instead of compileGroovy. dmoshal