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

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

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 returns some results such as > > >

Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-23 Thread Mark Thomas
On 23/11/2019 15:38, i...@flyingfischer.ch wrote: > openjdk version "13.0.1" 2019-10-15 > OpenJDK Runtime Environment Zulu13.28+11-CA (build 13.0.1+10-MTS) > OpenJDK 64-Bit Server VM Zulu13.28+11-CA (build 13.0.1+10-MTS, mixed > mode, sharing) And how are you calling jsvc? >From the stack trace

Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-23 Thread i...@flyingfischer.ch
openjdk version "13.0.1" 2019-10-15 OpenJDK Runtime Environment Zulu13.28+11-CA (build 13.0.1+10-MTS) OpenJDK 64-Bit Server VM Zulu13.28+11-CA (build 13.0.1+10-MTS, mixed mode, sharing) Linux built with commons-daemon-native tomcat-native (./configure --with-apr=/usr/bin/apr-1-config

Re: Official documentation for running an embedded Tomcat server

2019-11-23 Thread Mark Thomas
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 returns some results such as > https://devcenter.heroku.com/articles/create-a-java-web-application-using-embedded-tomcat > but I haven't seen any

Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-23 Thread Mark Thomas
On 23/11/2019 09:43, i...@flyingfischer.ch wrote: > After updating to Tomcat 8.5.49 starting TC on daemon fails with: > > java.lang.StringIndexOutOfBoundsException: String index out of range: 0 > at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48) > at

Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-23 Thread i...@flyingfischer.ch
After updating to Tomcat 8.5.49 starting TC on daemon fails with: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48) at java.base/java.lang.String.charAt(String.java:709) at

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