Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-14012

Crashing while deleting the reportDefinition items from the main page in Report Tool

    XMLWordPrintable

    Details

      Description

      When you try to delet the reportDefintion files, which you have imported there at the main page, it's crashing.

      I am using MySql 4.1.x version as DB and running Tomcat in a window xp environment.

      It looks like that the HibernateQueryException comes from the following code:

      (At reports\reportsimpl\impl\src\java\org\sakaiproject\reports\logic\impl\ReporsManagerImpl.java)

      public void deleteReportDefXmlFile(ReportDefinition reportDef) {
      checkPermission(ReportFunctions.REPORT_FUNCTION_DELETE);
      List xsls = getHibernateTemplate().find("from ReportXslFile r where reportDefId = ?", reportDef.getIdString()); <=== ERROR THROWS HERE
      for (Iterator i = xsls.iterator(); i.hasNext()

      { getHibernateTemplate().delete(i.next()); }
      List results = getHibernateTemplate().find("from ReportDefinitionXmlFile r where reportDefId = ?", reportDef.getIdString());
      for (Iterator i = results.iterator(); i.hasNext() { getHibernateTemplate().delete(i.next()); }

      }

      With the HibernateQueryException:

      org.springframework.orm.hibernate3.HibernateQueryException: ReportXslFile is not mapped [from ReportXslFile r where reportDefId = ?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: ReportXslFile is not mapped [from ReportXslFile r where reportDefId = ?]

      Somehow the ReportXslFile is not mapped to Report_Xsl_File table between Hibernate and ReportsImpl.hbm.xml.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                chmaurer@iupui.edu Chris Maurer
                Reporter:
                peterliu peter (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code