Just in case somebody else runs into this...
I tried deploying Roller SVN trunk to my site a couple times
in the
past couple of weeks, but I ran into a problem each time.
Roller
would run fine for a couple of hours and then would start
failing to
render pages. Any queries that included WeblogCategoryData
would fail
with this exception:
--- ROOT CAUSE ---
org.apache.velocity.exception.MethodInvocationException:
Invocation of
method 'getWeblogEntriesPager' in class
org.apache.roller.ui.rendering.model.PageModel threw
exception class
java.lang.NoSuchMethodError :
org.apache.roller.pojos.WeblogCategoryData.getHibernateLazyI
nitializer()Lorg/hibernate/proxy/LazyInitializer;
That's a NoSuchMethodError on a method that (I'm assuming)
is part of
some Hibernate generated dynamic proxy. How could it just
disappear?
Google quickly led me to this bug report:
Hibernate fails after 1500 sessions on client Java5 JVM
(on Linux)
http://opensource.atlassian.com/projects/hiber
nate/browse/HHH-1579
So I checked and rollerweblogger.org is running Linux and
the JVM
-server flag was not set so I added it yesterda. That seems
to have
solved the problem.
- Dave
|