Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-12 Thread Behrang Saeedzadeh
github.com/behrangsa/";, "stackoverflow": "https://stackoverflow.com/users/309683?tab=profile"} On Fri, Dec 13, 2019 at 2:08 AM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Behrang,

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-12 Thread Behrang Saeedzadeh
dré Warnier (tomcat/perl) wrote: > > On 10.12.2019 15:31, Christopher Schultz wrote: > >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 > >> > >> Behrang, > >> > >> On 12/8/19 05:18, Behrang Saeedzadeh wrote: > >>> If I call javax.servle

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-11 Thread Behrang Saeedzadeh
9683?tab=profile"} On Wed, Dec 11, 2019 at 8:47 AM André Warnier (tomcat/perl) wrote: > On 10.12.2019 15:31, Christopher Schultz wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > Behrang, > > > > On

Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-08 Thread Behrang Saeedzadeh
Hi, If I call javax.servlet.ServletRequest#getInputStream after having called javax.servlet.http.HttpServletRequest#getPart, even without performing any operations on the given part, I am getting an empty stream (0-bytes). Is this in compliance with the spec? Best regards, { "blog" : "htt

Re: Async file upload server has 33% less throughput compared to the sync version

2019-12-03 Thread Behrang Saeedzadeh
I am not expecting it to take less time, but to provide better throughput. With 1000 concurrent users, the sync version was still performing better (mean req/second). Best regards, Behrang Saeedzadeh (Sent from my cellphone.) On Mon, 2 Dec. 2019, 8:44 am Mark Thomas, wrote: > On 01/12/2019

Async file upload server has 33% less throughput compared to the sync version

2019-11-30 Thread Behrang Saeedzadeh
Source code with Gatling tests here (WIP): https://github.com/turingg/file-server I wanted to compare the performance/throughput of an async file upload servlet to a sync version. To do that, I intentionally configured Tomcat to: * Use at most 2 HTTP connector threads * Accept up to 1000 connecti

Re: Official documentation for running an embedded Tomcat server

2019-11-25 Thread Behrang Saeedzadeh
; and what it > actually means? > I'm working professionally in software engineering since 2003 and I'm > puzzled. > > From looking into that article, it seems that Java app starts Tomcat, why > somebody would want that? > > > On Sun, Nov 24, 2019 at 12:27 AM Beh

Re: Expected behaviour for javax.servlet.http.HttpServletRequest#getParts when request is not multipart

2019-11-23 Thread Behrang Saeedzadeh
My bad. It is documented in the API Java Docs: * @throws ServletException if this request is not of type * multipart/form-data On Sun, Nov 24, 2019 at 3:15 PM Behrang Saeedzadeh wrote: > When sending such a request, Tomcat throws an exception: > > $ curl -d documentDate=foo -d docu

Expected behaviour for javax.servlet.http.HttpServletRequest#getParts when request is not multipart

2019-11-23 Thread Behrang Saeedzadeh
When sending such a request, Tomcat throws an exception: $ curl -d documentDate=foo -d documentOwner=A123 localhost:8080/file-server/a/upload SEVERE [http-nio-8080-exec-16] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [A.UploadServlet] in context with path [/f

Re: Official documentation for running an embedded Tomcat server

2019-11-23 Thread Behrang Saeedzadeh
I will create a PR if I find the time to write one. On Sat, Nov 23, 2019 at 9:40 PM Mark Thomas wrote: > On 23/11/2019 08:17, Behrang Saeedzadeh wrote: > > Hi all, > > > > Are there any official docs for how to run Tomcat as an embedded server? > > Searching r

Official documentation for running an embedded Tomcat server

2019-11-23 Thread Behrang Saeedzadeh
Hi all, Are there any official docs for how to run Tomcat as an embedded server? Searching returns some results such as https://devcenter.heroku.com/articles/create-a-java-web-application-using-embedded-tomcat but I haven't seen any official docs. Are there any? Thanks in advance, Behrang

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

2019-10-26 Thread Behrang Saeedzadeh
emoApplication.java:33) at com.example.demo.DemoApplication.foo(DemoApplication.java:20) at com.example.demo.DemoApplication.main(DemoApplication.java:15) When Tomcat’s minimum required Java runtime version becomes 9 that can be replaced with StackWalker. Best regards, Behrang Saeedzadeh blog.behr

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 Saeedza

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

2019-10-25 Thread Behrang Saeedzadeh
print the stack trace next using org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace for example? Best regards, Behrang Saeedzadeh blog.behrang.org

Printing JSP line number when an error occurs

2010-08-01 Thread Behrang Saeedzadeh
Is it possible to configure Tomcat (6 or 7) to show line number of errors in JSP files like Glassfish does? Regards, Behrang Saeedzadeh http://www.behrang.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Hibernate debugging problem in Tomcat 5.5.12

2006-01-16 Thread Behrang Saeedzadeh
ossibly causing this? BTW - I can debug my DAO outside Tomcat with no problem. -- "Science is a differential equation. Religion is a boundary limit" - Alan Turing Behrang Saeedzadeh http://www.jroller.com/page/behrangsa http

Undeployment problems

2005-12-24 Thread Behrang Saeedzadeh
ry is not completely removed and webwork-2.1.7.jar and xwork.jar are still present inside mywebapp/WEB-INF/lib directory, but the rest of the files are deleted. Any ideas what's causing this? - Behi -- "Science is a differential equation. Religion is a boundary limit" - Alan Turing

Re: What is the purpose of common/lib/ext directory?

2005-12-13 Thread Behrang Saeedzadeh
to hot deploy war files etc .. Don't know more > than this about liferay!I never did use this. > > Hope this helps, > Regards, > Prathibha. > -Original Message- > From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 11:37 AM > T

Re: What is the purpose of common/lib/ext directory?

2005-12-12 Thread Behrang Saeedzadeh
x branch. Any ideas :-? Regards, Behrang -- "Science is a differential equation. Religion is a boundary limit" - Alan Turing Behrang Saeedzadeh http://www.jroller.com/page/behrangsa http://my.opera.com/behrangsa - To u

What is the purpose of common/lib/ext directory?

2005-12-12 Thread Behrang Saeedzadeh
a boundary limit" - Alan Turing Behrang Saeedzadeh http://www.jroller.com/page/behrangsa http://my.opera.com/behrangsa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Failed shutdown of Apache Portable Runtime

2005-11-27 Thread Behrang Saeedzadeh
d at all. Regards, Behi -- "Science is a differential equation. Religion is a boundary limit" - Alan Turing Behrang Saeedzadeh http://www.jroller.com/page/behrangsa http://my.opera.com/behrangsa

Failed shutdown of Apache Portable Runtime

2005-11-26 Thread Behrang Saeedzadeh
Hi, >From time to time I recieve this error message whenever I attempt to shutdown Tomcat 5.5.12 from within IDEA. Any ideas why is this happening? - Behi -- "Science is a differential equation. Religion is a boundary limit" - Alan Turing Behrang Saeedzadeh http://www.jro

Re: JSTL

2005-11-23 Thread Behrang Saeedzadeh
nhard > > > -----Ursprüngliche Nachricht- > > Von: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 23. November 2005 03:04 > > An: Tomcat Users List > > Betreff: JSTL > > > > > > Hi, > > > > Isn't JSTL a standard p

JSTL

2005-11-22 Thread Behrang Saeedzadeh
on. Religion is a boundary limit" - Alan Turing Behrang Saeedzadeh http://www.jroller.com/page/behrangsa http://my.opera.com/behrangsa

Off-topic: The locale attribute of the html tag

2005-11-20 Thread Behrang Saeedzadeh
g specific to JSTL localization features? Best Regards, Behi -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa http://my.opera.com/behrangsa