Hey,

I am not sure if this the apropriate mailing list for this particular problem i
am having. If not, my apologies.

I have an application which i am trying to upgrade from 1.5.3 to 1.5.4. This
application uses stripersist for it's persistence layer. 

I have a page which gets built using multiple resolutions, all of them return
jsp fragments. One fragment returns the table of search results. And this is
where things go wrong. I turned on trace logging for stripersist and this was
the output for stripes 1.5.4:

TRACE net.sourceforge.stripes.util.Log - RequestInit
TRACE net.sourceforge.stripes.util.Log - RequestInit
TRACE net.sourceforge.stripes.util.Log - RequestComplete
TRACE net.sourceforge.stripes.util.Log - Cleaning up EntityManagers
ERROR net.sourceforge.stripes.util.Log -
net.sourceforge.stripes.exception.StripesRuntimeException: It looks like
Stripersist isn't configured as an Interceptor or you're calling Stripersist
from a thread outside of the StripesFilter. If you want use Stripersist from
outside of Stripes you should call Stripersist.initRequest() inside of a try
block before requesting an EntityManager and call Stripersist.requestComplete()
in a finally block so Stripersist can clean everything up for you.
 at 
org.stripesstuff.stripersist.Stripersist.getEntityManager(Stripersist.java:431)
 at 
org.stripesstuff.stripersist.Stripersist.getEntityManager(Stripersist.java:484)
 at aristo.dao.stripersist.BaseDaoImpl.list(BaseDaoImpl.java:36)

When switching back to stripes 1.5.3, the trace output is as expected:

TRACE net.sourceforge.stripes.util.Log - RequestInit
INFO  org.displaytag.export.ExportViewFactory - Initializing ExportViewFactory
with type={csv,excel,xml,pdf}
INFO  org.displaytag.properties.TableProperties - No LocaleResolver configured.
INFO  org.displaytag.properties.TableProperties - I18nResourceProvider
initialized to org.displaytag.localization.I18nJstlAdapter.
DEBUG net.sourceforge.stripes.util.Log - Retrieving primary key to return as
format string for instance of aristo.model.battle.User

--- lots more primary key operations for all search results

TRACE net.sourceforge.stripes.util.Log - RequestInit
TRACE net.sourceforge.stripes.util.Log - RequestComplete
TRACE net.sourceforge.stripes.util.Log - Cleaning up EntityManagers
TRACE net.sourceforge.stripes.util.Log - RequestComplete

Stripersist hasn't been updated for a while, can anyone help me out fixing the
stripersist interceptor to work with 1.5.4?

Thanks!

Rolf


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to