Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Lazy Fetch and weblogic issue

Hi Kim,

What is the layout of your war? Where are the entities? Where is the persistence.xml? What else is in there?

-Tom

Kim LiChong wrote:
Hi Tom,

Unfortunately, there is no mention of the two classes (Person/SocialEvent) in the Weblogic logs. I only see messages from the server initializing and ten the exception appears. I've attached a log with a fresh deployment.
Thanks,

Kim


<snip>
###<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1
251478451587> <BEA-000000> <JspServlet: param verbose initialized to: true>
####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1 251478451588> <BEA-000000> <JspServlet: param packagePrefix initialized to: jsp_servlet> ####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1 251478451589> <BEA-000000> <JspServlet: param compilerclass initialized to: null> ####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1 251478451590> <BEA-000000> <JspServlet: param compileCommand initialized to: javac> ####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1 251478451591> <BEA-000000> <JspServlet: param compilerval initialized to: javac> ####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1 251478451591> <BEA-000000> <JspServlet: param pageCheckSeconds initialized to: 1> ####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1 251478451592> <BEA-000000> <JspServlet: param encoding initialized to: null> ####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1 251478451593> <BEA-000000> <JspServlet: param superclass initialized to null> ####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1 251478451594> <BEA-000000> <JspServlet: param workingDir initialized to: /zones/filestore/oracle/middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/_appsdir_webapp_
war/lx42i>
####<Aug 28, 2009 9:54:11 AM PDT> <Info> <ServletContext-/webapp> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1
251478451596> <BEA-000000> <JspServlet: initialization complete>
####<Aug 28, 2009 9:54:11 AM PDT> <Info> <HTTP> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1251478451628> <BEA -101360> <Recompiling JSP [ServletContext@11819817[app:_appsdir_webapp_war module:webapp.war path:/webapp spec-version:2.5]], resource [/index.jsp], because it is stale.> ####<Aug 28, 2009 9:54:25 AM PDT> <Error> <HTTP> <etc01> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1251478465199> <B EA-101020> <[ServletContext@11819817[app:_appsdir_webapp_war module:webapp.war path:/webapp spec-version:2.5]] Servlet failed with Exception javax.persistence.PersistenceException: Exception [EclipseLink-0] (Eclipse Persistence Services - 1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------

Exception [EclipseLink-60] (Eclipse Persistence Services - 1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The method [_persistence_setaddress_vh] or [_persistence_getaddress_vh] is not defined in the object [org.apache.olio.webapp.model.SocialEvent]. Internal Exception: java.lang.NoSuchMethodException: org.apache.olio.webapp.model.SocialEvent._persistence_getaddress_vh()
Mapping: org.eclipse.persistence.mappings.OneToOneMapping[address]
Descriptor: RelationalDescriptor(org.apache.olio.webapp.model.SocialEvent --> [DatabaseTable(SOCIALEVENT)])

Exception [EclipseLink-60] (Eclipse Persistence Services - 1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The method [_persistence_setaddress_vh] or [_persistence_getaddress_vh] is not defined in the object [org.apache.olio.webapp.model.Person]. Internal Exception: java.lang.NoSuchMethodException: org.apache.olio.webapp.model.Person._persistence_getaddress_vh()
Mapping: org.eclipse.persistence.mappings.OneToOneMapping[address]
Descriptor: RelationalDescriptor(org.apache.olio.webapp.model.Person --> [DatabaseTable(PERSON)])

Runtime Exceptions:

</snip>
Hi Kim,

The debug flags you are specifying cause the actual weaved classes to be output - that is the reason you see so many special characters.

  It looks like the SocialEvent and Person classes are not being weaved.

The log files you should look at on WebLogic are the actual log files WebLogic produces. Do you see any logging related to those two classes in the WebLogic logs?

-Tom

Kim LiChong wrote:
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


------------------------------------------------------------------------

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


------------------------------------------------------------------------

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top