Opened 16 years ago

Closed 16 years ago

#110 closed defect (fixed)

Potential threading problem in /www/analyze/index.jsp

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: BASE 2.0 RC2
Component: web Version:
Keywords: Cc:

Description

The file /www/analyze/index.jsp has declared a:

private static int index = 1;

The index is used to label the list of bioassaysets from 1 and up. However, since there is only one instance of the servlet object generated from the JSP page, the page will not display correctly if more than one user executes the page at the same time. Ie. as soon as a second user starts executing the page the index is reset to 1, and the first users numbers will jump back.

Try this out by adding the following code in the newBioAssaySetRow method:

try
{
  Thread.sleep(3000);
}
catch (Exception ex)
{}

Then, open two browser windows and go to the analyze page.

Change History (1)

comment:1 Changed 16 years ago by Gregory Vincic

Resolution: fixed
Status: newclosed

Fixed. Index is now generated with the javascript treeline.js

Note: See TracTickets for help on using tickets.