[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Class Weaving
|
Hi Gaurav,
Can you try to run the static weaver and see if it successfully weaves your
class. That will help to isolate whether this is a weaving issue or a
classloading issue.
http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#How_to_Configure_Static_Weaving_for_JPA_Entities
-Tom
Gaurav Malhotra wrote:
I am also uploading the entity for which weaving is not happening
http://www.nabble.com/file/p24488214/Relation.java Relation.java
Gaurav Malhotra wrote:
Hi,
For some of my jpa entities the class weaving is not happening. There is
no exception in the log.
I am using spring
org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.
Can somebody give me pointers how to debug this issue???
I can also see that in TransformationFactory.buildToplinkWeaver the
classDetailMap contain the entry for the entity 'Relation'
com/oracle/healthinsurance/orm/entities/Relation=org.eclipse.persistence.internal.weaving.ClassDetails@18a84ed
Also in spring InstrumentationLoadTimeWeaver, I am able to see in the
spring's InstrumentationLoadTimeWeaver,PersistenceWeaver (containing below
data) is added using
InstrumentationLoadTimeWeaver.addTransformer(ClassFileTransformer
transformer)
com/oracle/healthinsurance/orm/entities/Relation=org.eclipse.persistence.internal.weaving.ClassDetails@2cc04e
More intrestingly in the
org.springframework.orm.jpa.persistenceunit.ClassFileTransformerAdapter.transform
method, I can again see in its classTransformer
com/oracle/healthinsurance/orm/entities/Relation=org.eclipse.persistence.internal.weaving.ClassDetails@2cc04e
In ClassFileTransformerAdapter.transform while debugging I cannot find the
className I looking i.e. Relation. Hence I am assuming weaving for the
Relation entity is not happening. (no logging that class has been weaved)
No exception... I think weaving for the Relation entity is also not
happening
I also enabled the eclipse link finest logging and found the following
logging for the entity Relation
[EL Finer]: 2009-07-14
22:48:07.14--ServerSession(18812899)--Thread(Thread[main,5,main])--Class
[com.oracle.healthinsurance.orm.entities.Relation] registered to be
processed by weaver.
But not logging stating
[EL Finest]: 2009-07-14
22:50:26.859--ServerSession(18812899)--Thread(Thread[main,5,main])--Weaved
persistence (PersistenceEntity)
[com/oracle/healthinsurance/orm/entities/Relation].
+ change tracking + FetchGroupTracker
Why????
I am able to see indirectionlist which fetch the relation entity.
Gaurav Malhotra