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

Sakai Fails on startup due to stackOverflowError when creating bean org.sakaiproject.reports.service.ReportsManager

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Tomcat 5.5.17, Solaris 10, Oracle 10g

      Description

      On second and subsequent startups, this error is generated:

      INFO: init() ReportsManagerImpl (2007-11-20 16:30:48,543 main_org.sakaiproject.reports.logic.impl.ReportsManagerImpl)
      Compiler warnings:
      jar:file:/usr/local/apache-tomcat-5.5.17/components/sakai-reports-components/WEB-INF/lib/sakai-reports-component-shared-M2.jar!/org/sakaiproject/reports/conversion/: line 13: Attribute 'class' outside of element.
      jar:file:/usr/local/apache-tomcat-5.5.17/components/sakai-reports-components/WEB-INF/lib/sakai-reports-component-shared-M2.jar!/org/sakaiproject/reports/conversion/: line 23: Attribute 'class' outside of element.
      jar:file:/usr/local/apache-tomcat-5.5.17/components/sakai-reports-components/WEB-INF/lib/sakai-reports-component-shared-M2.jar!/org/sakaiproject/reports/conversion/: line 33: Attribute 'class' outside of element.
      jar:file:/usr/local/apache-tomcat-5.5.17/components/sakai-reports-components/WEB-INF/lib/sakai-reports-component-shared-M2.jar!/org/sakaiproject/reports/conversion/: line 43: Attribute 'bean' outside of element.

      ERROR: Failed to preinstantiate the singleton named org.sakaiproject.reports.service.ReportsManager. Destroying all Spring beans. (2007-11-20 16:34:22,767 main_org.sakaiproject.util.NoisierDefaultListableBeanFactory)
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.reports.service.ReportsManager' defined in file [/usr/local/apache-tomcat-5.5.17/components/sakai-reports-components/WEB-INF/components.xml]: Cannot resolve reference to bean 'org.sakaiproject.reports.logic.impl.ReportsManagerImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.reports.logic.impl.ReportsManagerImpl' defined in file [/usr/local/apache-tomcat-5.5.17/components/sakai-reports-components/WEB-INF/components.xml]: Invocation of init method failed; nested exception is java.lang.StackOverflowError
      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.reports.logic.impl.ReportsManagerImpl' defined in file [/usr/local/apache-tomcat-5.5.17/components/sakai-reports-components/WEB-INF/components.xml]: Invocation of init method failed; nested exception is java.lang.StackOverflowError
      Caused by:
      java.lang.StackOverflowError
      at com.sun.org.apache.xml.internal.dtm.ref.DTMAxisIteratorBase.<init>(DTMAxisIteratorBase.java:27)
      at com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBase.<init>(DTMDefaultBaseIterators.java:239)
      at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2$ChildrenIterator.<init>(SAX2DTM2.java:69)
      at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.getChildren(SAXImpl.java:1114)
      at com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.getChildren(DOMAdapter.java:157)
      at GregorSamsa.applyTemplates()
      at GregorSamsa.applyTemplates()
      at GregorSamsa.applyTemplates()
      <snip>
      at GregorSamsa.applyTemplates()
      at GregorSamsa.applyTemplates()
      INFO: Destroying singletons in org.sakaiproject.util.NoisierDefaultListableBeanFactory@4b5d7792: defining beans [org.sakaiproject.portal.api.PortalService,org.sakaiproject.portal.api.PortalService.portletRegistryListener,org.sakaiproject...... etc, etc.

      Based on this thread ( http://www.nabble.com/Error-seen-on-trunk-2nd-start.-p13645214.html ), we made sure all the reports listed in reports/reports-tool/tool/src/webapp/WEB-INF/reports-definition.xml had different idStrings, which was not the case OOTB. This did not seem to have any effect.

      Ian Boston suggested adding this to sakai.properties, which does seem to work:
      upgrade24@org.sakaiproject.reports.logic.impl.ReportsManagerImpl=false

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  john.ellis@rsmart.com John Ellis (Inactive)
                  Reporter:
                  nicola@nyu.edu Nicola Monat-Jacobs
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code