Uploaded image for project: 'CREAM'
  1. CREAM
  2. CREAM-75

CREAM should avoid to log the error messages by including even the full stack trace (i.e printStackTrace()).

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16.1, 1.14.5
    • Security Level: Public (Visbile by non-authn users.)
    • Labels:
      None

      Description

      GGUS: https://ggus.eu/tech/ticket_show.php?ticket=93438

      the CREAM logs may contain stack trace info which may waste the logs itself.
      For example, if the leaseId doesn't exist for any reason, CREAM logs the related error with extra info not so much useful for debugging things:

      18 Apr 2013 10:33:22,215 ERROR CREAM2Service - lease id "Condor#atlpan#voatlas296.cern.ch#voatlas296.cern.ch" not found!
      org.glite.ce.creamapi.cmdmanagement.CommandException: lease id "Condor#atlpan#voatlas296.cern.ch#voatlas296.cern.ch" not found!
      at org.glite.ce.cream.cmdmanagement.CommandManager.execute(CommandManager.java:307)
      at org.glite.ce.cream.ws.CREAM2Service.jobRegister(CREAM2Service.java:889)
      at org.glite.ce.creamapi.ws.cream2.CREAMMessageReceiverInOut.invokeBusinessLogic(CREAMMessageReceiverInOut.java:276)
      at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
      at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
      at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
      at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
      at java.lang.Thread.run(Thread.java:662)

        Attachments

          Activity

            People

            Assignee:
            zangrand Lisa Zangrando
            Reporter:
            zangrand Lisa Zangrando
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: