Opened 14 years ago

Closed 14 years ago

#1356 closed defect (fixed)

Blank page when listing wells for a plate.

Reported by: Martin Svensson Owned by: Martin Svensson
Priority: major Milestone: BASE 2.13
Component: web Version: trunk
Keywords: Cc:


Related exception in the tomcat-log

org.hibernate.LazyInitializationException: could not initialize proxy - no Session
	at org.hibernate.proxy.AbstractLazyInitializer.initialize(
	at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(
	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(
	at org.apache.jsp.lims.plates.wells.list_005fwells_jsp._jspService(
	at org.apache.jasper.runtime.HttpJspBase.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.jasper.servlet.JspServletWrapper.service(
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(
	at org.apache.jasper.servlet.JspServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

Change History (3)

comment:1 Changed 14 years ago by Nicklas Nordborg

I think this is is related to the change in [5026] (ticket:1350) which changed the laziness of reporters to lazy="true".

The problem is also related to the code in Well.getReporter() which evict():s the reporter from the session before returning it. Thus, there is no session when Hibernate wants to lazily initialize the reporter. The reporter must be evicted since we don't want it to be possible to update reporter properties without a batcher.

We could solve this by forcing initialization of the reporter inside the Well.getReporter() method, but it is not always that we want it to be initialized. For example, if we only need to reporter id or need to create a link to the same reporter.

A better solution in this case is probably to force a left join fetch in the query in the list_wells.jsp page. There is already a left join, but the last parameter should be changed from false to true.

But I also think we need the other option of forcing an initialization of the reporter, but we should probably overload the Well.getReporter() method with a Well.getReporter(boolean forceInitialization) for this.

comment:2 Changed 14 years ago by Martin Svensson

Owner: changed from everyone to Martin Svensson
Status: newassigned

comment:3 Changed 14 years ago by Martin Svensson

Resolution: fixed
Status: assignedclosed

(In [5049]) Fixes #1356 Blank page when listing wells for a plate.

Note: See TracTickets for help on using tickets.