Opened 14 years ago

Closed 14 years ago

#977 closed defect (fixed)

ClassCastException in Experiment overview when clicking on an experimental factor

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

Description

  1. Select an experiment which has at least one experimental factor. There doesn't have to be any data.
  2. Go to Experiment overview
  3. Click on the tree and select one of the experimental factors of the experiment.
  4. An error happens in the upper right frame. Here is the stack trace:
net.sf.basedb.core.Experiment cannot be cast to net.sf.basedb.core.Annotatable
java.lang.ClassCastException
...at org.apache.jsp.views.experiments.overview.info_jsp._jspService(info_jsp.java:491)
...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

And lines 485 - 493 from info_jsp.java:

485   if (node.getName().startsWith("parameter"))
486   {
487      annotatable = (Annotatable)node.getParent().getParent().getParent().getItem();
488   }
489   else
490   {
491      annotatable = (Annotatable)node.getParent().getParent().getItem();
492   }
493   dc.reattachItem((BasicItem)annotatable);

Change History (2)

comment:1 Changed 14 years ago by Nicklas Nordborg

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 Changed 14 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

(In [4210]) Fixes #977: ClassCastException? in Experiment overview when clicking on an experimental factor

Note: See TracTickets for help on using tickets.