Re: What's the purpose of this code, that logs a seemingly meaningless and possibly misleading exception?

2019-10-26 Thread Behrang Saeedzadeh
Hi Chris, I suggested “massaging” it a bit before using the output: stack trace into a StringWriter via a PrintWriter, massage it a bit For example: StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); Exception e = new Exception(); pw.append("Current stack trace:\n");for

Re: postgresql jndi datasource with certificate authentication?

2019-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Felix, On 10/26/19 16:37, Felix Schumacher wrote: > > Am 22.10.19 um 20:07 schrieb Magosányi Árpád: >> Thank you all for the suggestions. >> >> Based on the documentation, my setup should work: The server >> certificate is already processed and ac

Re: What's the purpose of this code, that logs a seemingly meaningless and possibly misleading exception?

2019-10-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Behrang, On 10/26/19 07:01, Behrang Saeedzadeh wrote: > I think so. Another option is to create an exception and print the > stack trace into a StringWriter via a PrintWriter, massage it a bit > if necessary and add that to the log message. ... whi

Re: postgresql jndi datasource with certificate authentication?

2019-10-26 Thread Felix Schumacher
Am 22.10.19 um 20:07 schrieb Magosányi Árpád: > Thank you all for the suggestions. > > Based on the documentation, my setup should work: The server certificate > is already processed and accepted (I know that because I could not get > it right at the first try). The driver is supposed to work wit

Re: JSP custom tag operating different when adoptOpenJDK is used vs Oracle (cross post from tomcat-taglibs-user)

2019-10-26 Thread Felix Schumacher
Am 25. Oktober 2019 19:33:19 MESZ schrieb "LoBello,Jeff" : >We have a custom tag, FormatDateTag extends >org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport. It’s >been working ok for a number of years under tomcat & Oracle JVM. Now, >we are moving to adoptOpenJDK & we are seeing so

Re: What's the purpose of this code, that logs a seemingly meaningless and possibly misleading exception?

2019-10-26 Thread Behrang Saeedzadeh
I think so. Another option is to create an exception and print the stack trace into a StringWriter via a PrintWriter, massage it a bit if necessary and add that to the log message. On Sat, 26 Oct. 2019, 9:12 pm Mark Thomas, wrote: > On October 25, 2019 9:27:21 AM UTC, Behrang Saeedzadeh < > be

Re: What's the purpose of this code, that logs a seemingly meaningless and possibly misleading exception?

2019-10-26 Thread Mark Thomas
On October 25, 2019 9:27:21 AM UTC, Behrang Saeedzadeh wrote: >From Tomcat Embedded Core 9.0.26: > >@Override >protected void doClose() { >if (log.isDebugEnabled()) { >log.debug("Calling [" + getEndpoint() + "].closeSocket([" + >this + "])", new Exception()); >} > >Which will log