• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Strange output in localhost.log from filter code

 
Greenhorn
Posts: 6
Eclipse IDE Chrome Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This code works fine, except when it's finished executing, Tomcat's localhost.log contains multiple (10x-20x) copies of the line "Success" from line 23. The code is pretty much linear and line 23 is the only place anywhere where "Success" is printed, so I don't understand why the line is executed more than once, let alone dozens of times. Preceeding each "Success" line in the log is Feb 28, 2011 1:06:17 PM org.apache.catalina.core.StandardWrapperValve invoke (the timestamp is the same in each copy). The getID() method has been omitted from the code below. It just does a SQL query, returns a string, and contains no System.out.println statements.
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic