Re: Encountered java.sql.sqlexception "the url cannot be null" starting from tomcat 9.0.71

2023-03-08 Thread Poh Wei Xiang
Hi, Glad to hear that this is going to be fixed. Do you have a sample context format to work with connectionstring? Sent from Outlook for Android From: Mark Thomas Sent: Wednesday, 8 March 2023, 20:14 To: users@tomcat.apache.org Subject

RE: sslHostConfig and ciphers

2023-03-08 Thread jonmcalexander
I am not sure what the otherside is hosted on (app server type). All we have is this error string handshake. Yes, it's an internally created component in springboot making the connection. What I mean by not Tomcat, is it isn't anything defined in the tomcat configuration files, that I'm aware of

Re: Connector definitions, Re: Tomcat 8 impending EOL -- what's the minimum Java for Tomcat 9?

2023-03-08 Thread Pete Helgren
James, I have been running Tomcat on earlier versions of IBM i for years.  I'd have dig through my Common Presentations but it might go back a couple of decades.  I don't presume to know as much as you but my CL (probably similar to yours) generates two jobs each time I invoke the catalina.sh

Re: catalina.out, was Re: Connector definitions

2023-03-08 Thread James H. H. Lampert
On 3/8/23 4:06 PM, Christopher Schultz wrote: SOP for systemd is to redirect stdout/stderr for the process into its own logs similar to syslog (but different, of course, because #systemd). This could also happen on Linux is you are using "jsvc" to launch Tomcat. If you use the standard shell s

Re: catalina.out, was Re: Connector definitions

2023-03-08 Thread Christopher Schultz
James, On 3/8/23 17:05, James H. H. Lampert wrote: On 3/8/23 1:34 PM, Zerro wrote: On the Linux box Tomcat is probably started by systemd, therefore no catalina.out Very likely, but can you elaborate on that? I'm much more of a DOS (to the point of having gone to great lengths to set up a r

Re: sslHostConfig and ciphers

2023-03-08 Thread Christopher Schultz
Jon, On 3/8/23 16:43, jonmcalexan...@wellsfargo.com.INVALID wrote: The error is coming from the client-connection of their app to the webservice. Trying to convince them that it's in THEIR code not Tomcat, at least I can't think of how it could be Tomcat. Possibly something in Java? They are usi

Re: catalina.out, was Re: Connector definitions

2023-03-08 Thread James H. H. Lampert
On 3/8/23 1:34 PM, Zerro wrote: On the Linux box Tomcat is probably started by systemd, therefore no catalina.out Very likely, but can you elaborate on that? I'm much more of a DOS (to the point of having gone to great lengths to set up a refurbished vintage notebook as a functioning DOSbook

RE: sslHostConfig and ciphers

2023-03-08 Thread jonmcalexander
The error is coming from the client-connection of their app to the webservice. Trying to convince them that it's in THEIR code not Tomcat, at least I can't think of how it could be Tomcat. Possibly something in Java? They are using 1.8 (build 361). Thanks, Dream * Excel * Explore * Inspire Jon

Re: catalina.out, was Re: Connector definitions

2023-03-08 Thread Zerro
On 3/8/23 20:54, James H. H. Lampert wrote: On 3/8/23 11:35 AM, Mark Thomas wrote: Check logging.properties and/or how you have stdout redirected in your start-up scripts. Thanks. All I see different in logging.properties is that on the Midrange box (installed from the ZIP file from Apache's

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Bhavesh Mistry
Hi Mark, We have a NAT rule that forwards 443 to 8443. Trust me on that, we have a direct connection. To rule out any networking layer issues, I did direct ssh -L 8443:localhost:8443 admin@10.40.207.140 and created a tunnel (https://localhost:8443/) to bypass port 443. Yet, the issue is still r

Re: catalina.out, was Re: Connector definitions

2023-03-08 Thread Rob Sargent
On 3/8/23 13:47, Rob Sargent wrote: On 3/8/23 12:54, James H. H. Lampert wrote: On 3/8/23 11:35 AM, Mark Thomas wrote: Check logging.properties and/or how you have stdout redirected in your start-up scripts. Thanks. All I see different in logging.properties is that on the Midrange box

Re: catalina.out, was Re: Connector definitions

2023-03-08 Thread Rob Sargent
On 3/8/23 12:54, James H. H. Lampert wrote: On 3/8/23 11:35 AM, Mark Thomas wrote: Check logging.properties and/or how you have stdout redirected in your start-up scripts. Thanks. All I see different in logging.properties is that on the Midrange box (installed from the ZIP file from Apach

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Mark Thomas
On 08/03/2023 19:52, Bhavesh Mistry wrote: Hi Mark, It is a *direct connection* with no proxy or no reverse proxy or no load balancer in the middle. We have a web app (UI) that make backend call and return 204 with no content and send it to the browser. An interesting fact is very thing works

catalina.out, was Re: Connector definitions

2023-03-08 Thread James H. H. Lampert
On 3/8/23 11:35 AM, Mark Thomas wrote: Check logging.properties and/or how you have stdout redirected in your start-up scripts. Thanks. All I see different in logging.properties is that on the Midrange box (installed from the ZIP file from Apache's Tomcat site), it has "catalina.org.apache.j

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Bhavesh Mistry
Hi Mark, It is a *direct connection* with no proxy or no reverse proxy or no load balancer in the middle. We have a web app (UI) that make backend call and return 204 with no content and send it to the browser. An interesting fact is very thing works on Chrome but not with firefox. We have trie

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Mark Thomas
On 08/03/2023 19:38, Bhavesh Mistry wrote: I will see if I can give a sample. But after removing JUST ONE LINE ( streamOutputBuffer.closed = true;) Everything seems to work. Somehow, firefox does not like an active stream being closed (I am not 100% what close does). I will try to work on a sa

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Bhavesh Mistry
I will see if I can give a sample. But after removing JUST ONE LINE ( streamOutputBuffer.closed = true;) Everything seems to work. Somehow, firefox does not like an active stream being closed (I am not 100% what close does). I will try to work on a sample to reproduce this. I hope the above can

Re: Connector definitions, Re: Tomcat 8 impending EOL -- what's the minimum Java for Tomcat 9?

2023-03-08 Thread Mark Thomas
On 08/03/2023 17:24, James H. H. Lampert wrote: Curious about one thing: on our IBM Midrange installations, log entries go into catalina.out. On our Cloud Linux installations, catalina.out is almost always completely empty, and I have to go into the dated catalina log files to see any entries.

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Mark Thomas
On 08/03/2023 19:05, Bhavesh Mistry wrote: *Then, *I build 9.0.72 src code *without HTTP2 no Content commit, and firefox worked ( I just replace tomcat-coyote.jar) . What is your suggestion we do next? * Again, if you can provide a simple test case (with source code - should be no more tha

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Bhavesh Mistry
Hi Mark and Chris, Thank you for your reply. We are using the latest version of* Firefox 110.1*. I have installed Live HTTP Header Live add-on and I see *NS_ERROR_ABORT and the request is stalled in the browser (the 204 status code is never shown in the Network tab). This applies to any GET

Re: Connector definitions, Re: Tomcat 8 impending EOL -- what's the minimum Java for Tomcat 9?

2023-03-08 Thread James H. H. Lampert
FYI: The operating system on IBM Midrange boxes ("AS/400," "iSeries," "IBM i," or whatever they're calling it this week) is "OS/400," "IBM i," or whatever they're calling the operating system this week. These machines are the descendants of the IBM S/3, which IBM Rochester developed in the l

Re: Connector definitions, Re: Tomcat 8 impending EOL -- what's the minimum Java for Tomcat 9?

2023-03-08 Thread Christopher Schultz
James, On 3/7/23 16:09, James H. H. Lampert wrote: (I have the general impression that APR is not an option on IBM Midrange boxes, but I could be mistaken.) It might be. https://www.ibm.com/docs/en/ibm-http-server/9.0.5?topic=chs-apache-apr-apr-util-libraries-included-withibm-http-server Are

Re: Connector definitions, Re: Tomcat 8 impending EOL -- what's the minimum Java for Tomcat 9?

2023-03-08 Thread Christopher Schultz
Mark, On 3/8/23 03:31, Mark Thomas wrote: On 07/03/2023 21:09, James H. H. Lampert wrote: Dear Mesrs. Thomas, Schultz, et al.: Changing it to "org.apache.coyote.http11.Http11NioProtocol" did the trick. The Tomcat 9 server launched, on our cloud Midrange box, and both it and the webapp contex

RE: sslHostConfig and ciphers

2023-03-08 Thread jonmcalexander
:-) I'm dealing with an obstinate development team. :-) Dream * Excel * Explore * Inspire Jon McAlexander Senior Infrastructure Engineer Asst. Vice President He/His Middleware Product Engineering Enterprise CIO | EAS | Middleware | Infrastructure Solutions 8080 Cobblestone Rd | Urbandale, IA 503

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Christopher Schultz
Bhavesh, On 3/7/23 22:07, Bhavesh Mistry wrote: Hi Mark Thomas and Tomcat Team, We have a strange issue with Tomcat 9.0.72.  All 204 response does not complete in firefox.  It works in the Chrome browser.  If we downgrade the tomcat version is less than .72. Everything works on all browsers.

RE: sslHostConfig and ciphers

2023-03-08 Thread jonmcalexander
Thank you! Dream * Excel * Explore * Inspire Jon McAlexander Senior Infrastructure Engineer Asst. Vice President He/His Middleware Product Engineering Enterprise CIO | EAS | Middleware | Infrastructure Solutions 8080 Cobblestone Rd | Urbandale, IA 50322 MAC: F4469-010 Tel 515-988-2508 | Cell 515

Re: AW: sslHostConfig and ciphers

2023-03-08 Thread Christopher Schultz
Thomas, On 3/8/23 11:16, Thomas Hoffmann (Speed4Trade GmbH) wrote: the error messages when encryption/decryption fails are often not much helpful. I don't see any evience of encryption or decryption operations failing. -chris -Ursprüngliche Nachricht- Von: jonmcalexan...@wellsfargo.

Re: sslHostConfig and ciphers

2023-03-08 Thread Christopher Schultz
Jon, On 3/8/23 11:04, jonmcalexan...@wellsfargo.com.INVALID wrote: So, this is giving out this errors: javax.net.ssl|WARNING|01|main|2023-03-03 16:14:43.438 UTC|SSLSocketImpl.java:1468|handling exception ( "throwable" : { java.net.SocketException: Connection reset at java.net.Socket

AW: sslHostConfig and ciphers

2023-03-08 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, the error messages when encryption/decryption fails are often not much helpful. Could you scan the target to see which TLS and ciphers are enabled? I usually use the tool https://github.com/rbsec/sslscan which gives a nice overview about the supported TLS versions and cipher suites. When

RE: sslHostConfig and ciphers

2023-03-08 Thread jonmcalexander
So, this is giving out this errors: javax.net.ssl|WARNING|01|main|2023-03-03 16:14:43.438 UTC|SSLSocketImpl.java:1468|handling exception ( "throwable" : { java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:210) at java.net.Socket

Re: Encountered java.sql.sqlexception "the url cannot be null" starting from tomcat 9.0.71

2023-03-08 Thread Mark Thomas
On 08/03/2023 11:58, Mark Thomas wrote: Thanks, I am able to recreate that stack trace. I am looking into the root cause now. Found it. There was a change in Commons DBCP to use "connectionString" rather than url internally and this was mistakenly applied to the lookup of the "url" configu

Re: Encountered java.sql.sqlexception "the url cannot be null" starting from tomcat 9.0.71

2023-03-08 Thread Mark Thomas
Thanks, I am able to recreate that stack trace. I am looking into the root cause now. Mark On 08/03/2023 09:03, Poh Wei Xiang wrote: Hi, java.sql.SQLException: The url cannot be null java.sql.DriverManager.getConnection(Unknown Source) java.sql.DriverManager.getConnection(U

RE: Encountered java.sql.sqlexception "the url cannot be null" starting from tomcat 9.0.71

2023-03-08 Thread Poh Wei Xiang
Hi, java.sql.SQLException: The url cannot be null java.sql.DriverManager.getConnection(Unknown Source) java.sql.DriverManager.getConnection(Unknown Source) org.apache.tomcat.dbcp.dbcp2.cpdsadapter.DriverAdapterCPDS.getPooledConnection(DriverAdapterCPDS.java:396) o

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-08 Thread Mark Thomas
On 08/03/2023 03:07, Bhavesh Mistry wrote: Hi Mark Thomas and Tomcat Team, We have a strange issue with Tomcat 9.0.72.  All 204 response does not complete in firefox.  It works in the Chrome browser.  If we downgrade the tomcat version is less than .72. Everything works on all browsers. htt

Re: sslHostConfig and ciphers

2023-03-08 Thread Mark Thomas
On 08/03/2023 07:45, l...@kreuser.name wrote: Beware Jon, Am 08.03.2023 um 07:56 schrieb jonmcalexan...@wellsfargo.com.invalid : Fwiw, this is happening in an outbound connection originated by a springboot app hosted in Tomcat. Any known issues with this and handshake issues? What is ha

Re: Encountered java.sql.sqlexception "the url cannot be null" starting from tomcat 9.0.71

2023-03-08 Thread Mark Thomas
On 08/03/2023 03:50, Poh Wei Xiang wrote: Hi, I am encountering an issue validating my application database connectivity, it throws java.sql.SQLException: The url cannot be null upon validation. Full stack trace please. Mark The application is developed using Avaya’s Orchestration des

Re: Connector definitions, Re: Tomcat 8 impending EOL -- what's the minimum Java for Tomcat 9?

2023-03-08 Thread Mark Thomas
On 07/03/2023 21:09, James H. H. Lampert wrote: Dear Mesrs. Thomas, Schultz, et al.: Changing it to "org.apache.coyote.http11.Http11NioProtocol" did the trick. The Tomcat 9 server launched, on our cloud Midrange box, and both it and the webapp contexts we have running seem to be working. It wi