[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Lazy Fetch and weblogic issue
|
Hi Tom,
These are the results of my findings.
When I run the static weaver, I do see methods showing that the weaving
was successful along with of course, the _persistence_setaddress_vh
method. When I look at the output of the log after static weaving, I do
see logging messages showing weaving has occurred for the two classes
that I am having issues with:
[EL Finer]: 2009-08-27
14:33:11.6--ServerSession(10742005)--Thread(Thread[main,5,main])--Class
[org.apache.olio.webapp.model.SocialEvent] registered to be processed by
weaver.
[EL Finer]: 2009-08-27
14:33:11.605--ServerSession(10742005)--Thread(Thread[main,5,main])--Class
[org.apache.olio.webapp.model.Person] registered to be processed by weaver.
[EL Finer]: 2009-08-27
14:33:11.609--ServerSession(10742005)--Thread(Thread[main,5,main])--Class
[org.apache.olio.webapp.model.Invitation] registered to be processed by
weaver.
[EL Finer]: 2009-08-27
14:33:11.611--ServerSession(10742005)--Thread(Thread[main,5,main])--Class
[org.apache.olio.webapp.model.Address] registered to be processed by weaver.
[EL Finer]: 2009-08-27
14:33:11.613--ServerSession(10742005)--Thread(Thread[main,5,main])--Class
[org.apache.olio.webapp.model.SocialEventTag] registered to be processed
by weaver.
[EL Finer]: 2009-08-27
14:33:11.614--ServerSession(10742005)--Thread(Thread[main,5,main])--Class
[org.apache.olio.webapp.model.CommentsRating] registered to be processed
by weaver.
[EL Finest]: 2009-08-27
14:33:11.984--ServerSession(10742005)--Thread(Thread[main,5,main])--Begin
weaver class transformer processing class
[org/apache/olio/webapp/model/Person].
[EL Finest]: 2009-08-27
14:33:12.018--ServerSession(10742005)--Thread(Thread[main,5,main])--End
weaver class transformer processing class
[org/apache/olio/webapp/model/Person].
[EL Finest]: 2009-08-27
14:33:12.023--ServerSession(10742005)--Thread(Thread[main,5,main])--Begin
weaver class transformer processing class
[org/apache/olio/webapp/model/Invitation].
[EL Finest]: 2009-08-27
14:33:12.032--ServerSession(10742005)--Thread(Thread[main,5,main])--End
weaver class transformer processing class
[org/apache/olio/webapp/model/Invitation].
[EL Finest]: 2009-08-27
14:33:12.038--ServerSession(10742005)--Thread(Thread[main,5,main])--Begin
weaver class transformer processing class
[org/apache/olio/webapp/model/SocialEvent].
[EL Finest]: 2009-08-27
14:33:12.065--ServerSession(10742005)--Thread(Thread[main,5,main])--End
weaver class transformer processing class
[org/apache/olio/webapp/model/SocialEvent].
[EL Finest]: 2009-08-27
14:33:12.07--ServerSession(10742005)--Thread(Thread[main,5,main])--Begin
weaver class transformer processing class
[org/apache/olio/webapp/model/SocialEventTag].
[EL Finest]: 2009-08-27
14:33:12.078--ServerSession(10742005)--Thread(Thread[main,5,main])--End
weaver class transformer processing class
[org/apache/olio/webapp/model/SocialEventTag].
[EL Finest]: 2009-08-27
14:33:12.083--ServerSession(10742005)--Thread(Thread[main,5,main])--Begin
weaver class transformer processing class
[org/apache/olio/webapp/model/CommentsRating].
[EL Finest]: 2009-08-27
14:33:12.094--ServerSession(10742005)--Thread(Thread[main,5,main])--End
weaver class transformer processing class
[org/apache/olio/webapp/model/CommentsRating].
[EL Finest]: 2009-08-27
14:33:12.099--ServerSession(10742005)--Thread(Thread[main,5,main])--Begin
weaver class transformer processing class
[org/apache/olio/webapp/model/Address].
[EL Finest]: 2009-08-27
14:33:12.11--ServerSession(10742005)--Thread(Thread[main,5,main])--End
weaver class transformer processing class
[org/apache/olio/webapp/model/Address].
Note that when I do use the static weaving, the application works fine
and the pages does render.
However, when I go back deploying the WAR without the static weaving and
set the 2 debug flags for eclipselink weaving as system properties, I
only see the presence of one log file pertaining to the
org.apache.olio.webapp.model.Address.class.
The log itself is hard to read since it contains lots of special
characters - not sure why that happens (using vi on a SunFire T200
system) That makes it hard to compare to the static weaving logs but I
don't log files for the other classes like SocialEvent nor Person, only
for Address.
I'm attaching it so you can take a look to see if you can glean
something from that log file.
Thanks for any help,
Kim
Hi Kim,
Is Address an Entity. (or is it an interface or something else)
Other than that, nothing jumps out at me as a potential cause for
the issue.
Here are some things you can do to try to debug.
1. Run the static weaver and ensure the classes get weaved. You can
even use a decompiler to ensure the _persistence_setaddress_vh method
exists in the weaved classes.
http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#How_to_Configure_Static_Weaving_for_JPA_Entities
2. Set the logging level to FINEST with the persistence unit property
eclipselink.logging.level=FINEST
3. Ensure you see a logging message that indicates weaving is starting
and one that indicates weaving is ending for the two classes you are
having issues with and that there are no errors logged between them.
The messages will look like this:
"Begin weaver class transformer processing class [classname]"
"End weaver class transformer processing class [classname]"
4. EclipseLink has two debug flags that can be used for weaving. Set
them an examine the resulting classes. Compare them to the results of
static weaving. The following two flags should be set as system
properties (not persistence unit properties)
- eclipselink.weaving.output.path=<path>
- eclipselink.weaving.overwrite.existing=true
-Tom
Êþº¾
SourceFile
getStreet1
getStreet2
getCountry
setStreet1
setStreet2
setCountry
ADDRESS_ID