Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/12/19 04:38, Mark Thomas wrote: > On 11/12/2019 19:17, Christopher Schultz wrote: >> On 12/11/19 13:01, Mark Thomas wrote: > > > >>> Setting RECYCLE_FACADES=true does exactly that. Continued used >>> by the app triggers an NPE since t

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-12 Thread Mark Thomas
On 11/12/2019 19:17, Christopher Schultz wrote: > On 12/11/19 13:01, Mark Thomas wrote: >> Setting RECYCLE_FACADES=true does exactly that. Continued used by >> the app triggers an NPE since the underlying request/response is no >> longer there. Hence my question. > > RequestFacade currently has

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/11/19 13:01, Mark Thomas wrote: > On 11/12/2019 17:43, Christopher Schultz wrote: > > > >>> I'm not sure why we need this over and above the RequestFacade >>> object. >> >> The RequestFacade is intended to protect the container from

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-11 Thread Mark Thomas
On 11/12/2019 17:43, Christopher Schultz wrote: >> I'm not sure why we need this over and above the RequestFacade >> object. > > The RequestFacade is intended to protect the container from the > application, right? It can cut both ways. > And they are (usually) re-used. If a RequestFacade > o

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/10/19 10:36, Mark Thomas wrote: > On 10/12/2019 14:27, Christopher Schultz wrote: > > > >> Would using org.apache.catalina.connector.RECYCLE_FACADES=true >> have made this problem go away? Or would the behavior have been >> the same,

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-10 Thread Rémy Maucherat
On Tue, Dec 10, 2019 at 4:36 PM Mark Thomas wrote: > On 10/12/2019 14:27, Christopher Schultz wrote: > > > > > Would using org.apache.catalina.connector.RECYCLE_FACADES=true have > > made this problem go away? Or would the behavior have been the same, > > just less dangerous? > > I think it woul

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-10 Thread Mark Thomas
On 10/12/2019 14:27, Christopher Schultz wrote: > Would using org.apache.catalina.connector.RECYCLE_FACADES=true have > made this problem go away? Or would the behavior have been the same, > just less dangerous? I think it would have triggered some NPEs in the background thread. > I'm wonderin

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/10/19 03:26, Mark Thomas wrote: > On 09/12/2019 19:54, Jerry Malcolm wrote: > > > >> Thanks to all of the responders on this problem. From the >> beginning of this problem, I was convinced that I was doing >> something bad wrong to c

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-10 Thread Mark Thomas
On 09/12/2019 19:54, Jerry Malcolm wrote: > Thanks to all of the responders on this problem.  From the beginning of > this problem, I was convinced that I was doing something bad wrong to > cause this.  I think now I have finally identified the 'bad thing'.   > Periodically the model code that r

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-09 Thread Jerry Malcolm
On 12/9/2019 5:39 AM, Konstantin Kolinko wrote: вс, 8 дек. 2019 г. в 08:09, Jerry Malcolm : I have ajax code that sends requests to TC in a REST-style process. I send the parms url-encoded in the body. This has worked untouched literally for years. I have some new data objects in my db that "

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-09 Thread Konstantin Kolinko
вс, 8 дек. 2019 г. в 08:09, Jerry Malcolm : > > I have ajax code that sends requests to TC in a REST-style process. I > send the parms url-encoded in the body. This has worked untouched > literally for years. I have some new data objects in my db that "should > be" sending the same type of reque

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-09 Thread Mark Thomas
On 09/12/2019 00:44, Jerry Malcolm wrote: > Mark, thank you so much for the info.  I downloaded the TC source and > got everything up and running in Eclipse. After getting familiar with > the paths when it worked normally, I was able to single-step a failure.  > I added a request.getParameter( "

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-08 Thread Jerry Malcolm
On 12/8/2019 6:23 AM, Mark Thomas wrote: On 08/12/2019 12:19, Mark Thomas wrote: Jerry, From your description, it sounds as if there is something about those requests that either isn't quite right or triggers an edge vase bug in Tomcat's request parsing. I'm happy to provide some pointers to

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-08 Thread Mark Thomas
On 08/12/2019 12:19, Mark Thomas wrote: > Jerry, > > From your description, it sounds as if there is something about those > requests that either isn't quite right or triggers an edge vase bug in > Tomcat's request parsing. > > I'm happy to provide some pointers to help you debug this. I'll use >

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-08 Thread Mark Thomas
Jerry, >From your description, it sounds as if there is something about those requests that either isn't quite right or triggers an edge case bug in Tomcat's request parsing. I'm happy to provide some pointers to help you debug this. I'll use 9.0.x links since I assume you prefer to debug this lo

Re: ServletRequest Obj Randomly not Processing x-www-form-urlencoded parms

2019-12-08 Thread Mark Thomas
Jerry, >From your description, it sounds as if there is something about those requests that either isn't quite right or triggers an edge vase bug in Tomcat's request parsing. I'm happy to provide some pointers to help you debug this. I'll use 9.0.x links since I assume you prefer to debug this lo