dcsimg
double logging problem?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Joost_Schouten
Posted On:   Tuesday, March 18, 2003 09:17 AM

Hi, I have a strange problem. My logging calls made in my JSP's get called twice (the servlet and helper classes, calls don't have this problem). Why is this. Below you can see an example of what the log looks like. This is obviously not a critical problem, but does slow down my app. The coding does defenately not log double. Even stranger, in some situations when my servlets throw some sort of non critical exception, the log will show each line three times. On every reocuring event, the logger will add a line. So in the end all my JSP log lines will be written sometimes 15 times. Does anyone know this problem? Any idea where the root of it may lie? The only way for me to reset, is by restarting my tomcat server.    More>>

Hi,



I have a strange problem. My logging calls made in my JSP's get called twice (the servlet and helper classes, calls don't have this problem). Why is this. Below you can see an example of what the log looks like. This is obviously not a critical problem, but does slow down my app. The coding does defenately not log double.


Even stranger, in some situations when my servlets throw some sort of non critical exception, the log will show each line three times. On every reocuring event, the logger will add a line. So in the end all my JSP log lines will be written sometimes 15 times. Does anyone know this problem? Any idea where the root of it may lie? The only way for me to reset, is by restarting my tomcat server.

			
DEBUG 18 Mar 2003 11:53:14,754 [HttpProcessor[8443][2]] org.apache.jsp.main$jsp._jspService(main$jsp.java:92) - The session 84D57531052907452412C74544C2E4D0 is read from the request
DEBUG 18 Mar 2003 11:53:14,754 [HttpProcessor[8443][2]] org.apache.jsp.main$jsp._jspService(main$jsp.java:92) - The session 84D57531052907452412C74544C2E4D0 is read from the request
DEBUG 18 Mar 2003 11:53:21,874 [HttpProcessor[8443][3]] org.apache.jsp.chatLogger$jsp._jspService(chatLogger$jsp.java:92) - The session 84D57531052907452412C74544C2E4D0 is read from the request
DEBUG 18 Mar 2003 11:53:21,874 [HttpProcessor[8443][3]] org.apache.jsp.chatLogger$jsp._jspService(chatLogger$jsp.java:92) - The session 84D57531052907452412C74544C2E4D0 is read from the request
DEBUG 18 Mar 2003 11:53:24,508 [HttpProcessor[8443][2]] org.apache.jsp.active_0005fprojects$jsp._jspService(active_0005fprojects$jsp.java:92) - The session 84D57531052907452412C74544C2E4D0 is read from the request
DEBUG 18 Mar 2003 11:53:24,508 [HttpProcessor[8443][2]] org.apache.jsp.active_0005fprojects$jsp._jspService(active_0005fprojects$jsp.java:92) - The session 84D57531052907452412C74544C2E4D0 is read from the request
DEBUG 18 Mar 2003 11:53:24,768 [HttpProcessor[8443][2]] com.joostschouten.projectportal.databaseCommunicator.selectProjects(databaseCommunicator.java:1211) - The query used to select the projects: SELECT projects.projectId, projects.projectName, projects.companyId, projects.startDate, projects.deadLine, projects.percentageDone, projects.budget, projects.ongoing, projects.active , ROUND(100*(SUM(entries.moneySpent)/projects.budget)) AS percentageOfBudgetSpent, SUM(entries.moneySpent) AS moneySpent, SUM(entries.hoursEntered) AS hoursEntered FROM entries, projects, projectUsers WHERE projectUsers.projectId=projects.projectId AND entries.projectId=projects.projectId AND entries.includeInBudget='true' AND projects.projectId IN ('89' , '98' ) AND projects.active='true' AND projects.ongoing='true' GROUP BY entries.projectId ORDER BY 2
DEBUG 18 Mar 2003 11:53:28,173 [HttpProcessor[8443][2]] org.apache.jsp.notFound$jsp._jspService(notFound$jsp.java:60) - The notFound jsp picked up the www appConfig from the servletContext
DEBUG 18 Mar 2003 11:53:28,173 [HttpProcessor[8443][2]] org.apache.jsp.notFound$jsp._jspService(notFound$jsp.java:60) - The notFound jsp picked up the www appConfig from the servletContext



Regards,

Joost

   <<Less
About | Sitemap | Contact