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

Enabling DEBUG logging breaks Sakai

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: Global
    • Labels:
      None
    • Environment:
      All DBs and operating systems, but the bug is intermittent.

      Description

      Enabling global DEBUG as advised by docs/readme.txt, viz.: editing kernel/log-configure/src/conf/log4j.properties and setting

      log4j.logger.org.sakaiproject=DEBUG

      completely breaks Sakai 2.0 (2.0.1-m1 and also happened around 2.0.0-rc3). Some possibly relevant extracts from catalina.out include:

      WARN: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.service.framework.session.UsageSessionService' defined in file [/usr/local/sakai/components/sakai-legacy-adaptor-components/WEB-INF/components.xml]: Can't resolve reference to bean 'org.sakaiproject.service.framework.sql.SqlService' while setting property 'sqlService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.service.framework.sql.SqlService' defined in file [/usr/local/sakai/components/sakai-legacy-components/WEB-INF/components.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException: null (2005-07-14 11:50:42,582 main_org.sakaiproject.component.kernel.component.SpringCompMgr)

      14-Jul-2005 11:51:13 org.apache.catalina.core.StandardContext start
      SEVERE: Error listenerStart
      14-Jul-2005 11:51:13 org.apache.catalina.core.StandardContext start
      SEVERE: Context [/samigo] startup failed due to previous errors
      14-Jul-2005 11:51:13 org.apache.catalina.startup.HostConfig deployWAR

      Each page request generates an exception like this and you get a blank page back:

      WARN: (2005-07-14 11:51:59,767 http-8443-Processor25_org.sakaiproject.util.RequestFilter)
      java.lang.NullPointerException
      at org.sakaiproject.portal.charon.CharonPortal.doSite(CharonPortal.java:705)
      at org.sakaiproject.portal.charon.CharonPortal.doGet(CharonPortal.java:346)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:525)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:534)

        Gliffy Diagrams

          Zeplin

            Attachments

            1. catalina.out
              57 kB
            2. eclipse-1.png
              eclipse-1.png
              56 kB
            3. eclipse-2.png
              eclipse-2.png
              58 kB
            4. eclipse-3.png
              eclipse-3.png
              58 kB
            5. UsageSessionServiceAdaptor.diff
              1.0 kB

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                smarquard Stephen Marquard
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration