Re: CNFE on Jetty after Karaf bump
Thanks for your effort! Am So., 19. Jan. 2020 um 06:56 Uhr schrieb Jean-Baptiste Onofré : > > Hi Markus, > > Just to let you know that I successfully tested my fix on Pax Web. > > I'm cutting Pax Web 7.3.14 this morning, and I will submit Karaf 4.2.8 > to vote later today. > > Sorry for the inconvenience. > > Regards > JB > > On 14/01/2020 15:55, Markus Rathgeb wrote: > > Hi, > > > > I updated a product using a custom distribution from 4.2.6 to 4.2.7. > > Because of this in the runtime the following versions has been changed: > > * Pax Web: 7.2.10 to 7.2.11 > > * Jetty: from 9.4.18.v20190429 to 9.4.20.v20190813 > > > > There is a bundle that contains a HTTP servlet for a fie upload. > > > > The POST request is handled by a method that takes the > > HttpServletRequest "request" and the HttpServletResponse "response". > > At the beginning it calls: > > final Collection parts = request.getParts(); > > > > After that it handles the parts. > > > > This worked before but does not anymore. > > > > An exception is raised. > > > > java.lang.NoClassDefFoundError: > > org/eclipse/jetty/util/MultiPartInputStreamParser > > at > > org.eclipse.jetty.server.MultiParts$MultiPartsUtilParser.(MultiParts.java:104) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.Request.newMultiParts(Request.java:2295) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.Request.getParts(Request.java:2217) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.Request.getParts(Request.java:2203) > > ~[!/:9.4.20.v20190813] > > at UploadServlet.doPost(UploadServlet.java:152) ~[?:?] > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > > ~[!/:3.1.0] > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > > ~[!/:3.1.0] > > at > > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1591) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) > > ~[!/:9.4.20.v20190813] > > at > > org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) > > ~[!/:?] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) > > ~[!/:9.4.20.v20190813] > > at > > org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) > > ~[!/:?] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > > ~[!/:9.4.20.v20190813] > > at > > org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) > > ~[!/:?] > > at > > org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:722) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.Server.handle(Server.java:494) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) > >
Re: CNFE on Jetty after Karaf bump
Hi Markus, Just to let you know that I successfully tested my fix on Pax Web. I'm cutting Pax Web 7.3.14 this morning, and I will submit Karaf 4.2.8 to vote later today. Sorry for the inconvenience. Regards JB On 14/01/2020 15:55, Markus Rathgeb wrote: > Hi, > > I updated a product using a custom distribution from 4.2.6 to 4.2.7. > Because of this in the runtime the following versions has been changed: > * Pax Web: 7.2.10 to 7.2.11 > * Jetty: from 9.4.18.v20190429 to 9.4.20.v20190813 > > There is a bundle that contains a HTTP servlet for a fie upload. > > The POST request is handled by a method that takes the > HttpServletRequest "request" and the HttpServletResponse "response". > At the beginning it calls: > final Collection parts = request.getParts(); > > After that it handles the parts. > > This worked before but does not anymore. > > An exception is raised. > > java.lang.NoClassDefFoundError: > org/eclipse/jetty/util/MultiPartInputStreamParser > at > org.eclipse.jetty.server.MultiParts$MultiPartsUtilParser.(MultiParts.java:104) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.Request.newMultiParts(Request.java:2295) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.Request.getParts(Request.java:2217) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.Request.getParts(Request.java:2203) > ~[!/:9.4.20.v20190813] > at UploadServlet.doPost(UploadServlet.java:152) ~[?:?] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > ~[!/:3.1.0] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > ~[!/:3.1.0] > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1591) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) > ~[!/:9.4.20.v20190813] > at > org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) > ~[!/:?] > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) > ~[!/:9.4.20.v20190813] > at > org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) > ~[!/:?] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > ~[!/:9.4.20.v20190813] > at > org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) > ~[!/:?] > at > org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:722) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.Server.handle(Server.java:494) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) > [!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) > [!/:9.4.20.v20190813] > at > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) > [!/:9.4.20.v20190813] > at
Re: CNFE on Jetty after Karaf bump
Great, thanks Markus ! I'm testing a fix now ;) Regards JB On 16/01/2020 09:30, Markus Rathgeb wrote: > Hi JB, > > have a look at: https://github.com/maggu2810/multipart-test > > Am Do., 16. Jan. 2020 um 06:02 Uhr schrieb Jean-Baptiste Onofré > : >> >> Hi Markus, >> >> do you have a test case about that ? >> >> Basically, you are implementing a servlet with input data ? >> >> What I did in Pax Web is to configure the RFC compliance. It should be >> enough (depending of use case), so I would like to add a example/test >> case in Karaf (to include in itest). >> >> Thanks, >> Regards >> JB >> >> On 15/01/2020 14:42, Markus Rathgeb wrote: >>> I am using the following workaround: >>> >>> * fetch the upstread jetty-utils artifact >>> * edit the manifest and remove the exclude statement >>> * publish the modified artifact with another group ID to a maven repo >>> * use org.apache.karaf.features.xml to replace the upstream >>> jetty-utils with the modified one >>> >>> That way the old deprecated excluded but still used >>> MultiPartInputStreamParser is found again. >>> >>> I just wonder why it still occurs in the Pax Web release that >>> configures to use the other new multi part implementation. >>> Perhaps the fix is not fully complete? >>> >>> Am Di., 14. Jan. 2020 um 21:26 Uhr schrieb Markus Rathgeb >>> : The bundle that handles the upload specific part does not depend on any Jetty specific bundle / package. >> >> -- >> Jean-Baptiste Onofré >> jbono...@apache.org >> http://blog.nanthrax.net >> Talend - http://www.talend.com -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: CNFE on Jetty after Karaf bump
Hi JB, have a look at: https://github.com/maggu2810/multipart-test Am Do., 16. Jan. 2020 um 06:02 Uhr schrieb Jean-Baptiste Onofré : > > Hi Markus, > > do you have a test case about that ? > > Basically, you are implementing a servlet with input data ? > > What I did in Pax Web is to configure the RFC compliance. It should be > enough (depending of use case), so I would like to add a example/test > case in Karaf (to include in itest). > > Thanks, > Regards > JB > > On 15/01/2020 14:42, Markus Rathgeb wrote: > > I am using the following workaround: > > > > * fetch the upstread jetty-utils artifact > > * edit the manifest and remove the exclude statement > > * publish the modified artifact with another group ID to a maven repo > > * use org.apache.karaf.features.xml to replace the upstream > > jetty-utils with the modified one > > > > That way the old deprecated excluded but still used > > MultiPartInputStreamParser is found again. > > > > I just wonder why it still occurs in the Pax Web release that > > configures to use the other new multi part implementation. > > Perhaps the fix is not fully complete? > > > > Am Di., 14. Jan. 2020 um 21:26 Uhr schrieb Markus Rathgeb > > : > >> > >> The bundle that handles the upload specific part does not depend on > >> any Jetty specific bundle / package. > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com
Re: CNFE on Jetty after Karaf bump
Hi Markus, do you have a test case about that ? Basically, you are implementing a servlet with input data ? What I did in Pax Web is to configure the RFC compliance. It should be enough (depending of use case), so I would like to add a example/test case in Karaf (to include in itest). Thanks, Regards JB On 15/01/2020 14:42, Markus Rathgeb wrote: > I am using the following workaround: > > * fetch the upstread jetty-utils artifact > * edit the manifest and remove the exclude statement > * publish the modified artifact with another group ID to a maven repo > * use org.apache.karaf.features.xml to replace the upstream > jetty-utils with the modified one > > That way the old deprecated excluded but still used > MultiPartInputStreamParser is found again. > > I just wonder why it still occurs in the Pax Web release that > configures to use the other new multi part implementation. > Perhaps the fix is not fully complete? > > Am Di., 14. Jan. 2020 um 21:26 Uhr schrieb Markus Rathgeb > : >> >> The bundle that handles the upload specific part does not depend on >> any Jetty specific bundle / package. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: CNFE on Jetty after Karaf bump
Hi Markus, I just canceled the 4.2.8 vote in order for me to have time to investigate, test and eventually fix. Regards JB On 15/01/2020 14:42, Markus Rathgeb wrote: > I am using the following workaround: > > * fetch the upstread jetty-utils artifact > * edit the manifest and remove the exclude statement > * publish the modified artifact with another group ID to a maven repo > * use org.apache.karaf.features.xml to replace the upstream > jetty-utils with the modified one > > That way the old deprecated excluded but still used > MultiPartInputStreamParser is found again. > > I just wonder why it still occurs in the Pax Web release that > configures to use the other new multi part implementation. > Perhaps the fix is not fully complete? > > Am Di., 14. Jan. 2020 um 21:26 Uhr schrieb Markus Rathgeb > : >> >> The bundle that handles the upload specific part does not depend on >> any Jetty specific bundle / package. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: CNFE on Jetty after Karaf bump
I am using the following workaround: * fetch the upstread jetty-utils artifact * edit the manifest and remove the exclude statement * publish the modified artifact with another group ID to a maven repo * use org.apache.karaf.features.xml to replace the upstream jetty-utils with the modified one That way the old deprecated excluded but still used MultiPartInputStreamParser is found again. I just wonder why it still occurs in the Pax Web release that configures to use the other new multi part implementation. Perhaps the fix is not fully complete? Am Di., 14. Jan. 2020 um 21:26 Uhr schrieb Markus Rathgeb : > > The bundle that handles the upload specific part does not depend on > any Jetty specific bundle / package.
Re: CNFE on Jetty after Karaf bump
The bundle that handles the upload specific part does not depend on any Jetty specific bundle / package.
Re: CNFE on Jetty after Karaf bump
Hi Markus, are you using org.eclipse.jetty.util explictely (in your application) ? I will try to reproduce it but it should work (I thought I tested it). Regards JB On 14/01/2020 19:45, Markus Rathgeb wrote: > I tested Karaf 4.2.8 staging and created a custom distribution. > Pax Web 7.2.13 is used on runtime. > Jetty 9.4.22.v20191022 is used on runtime. > > I am still running into the NCDFE. > > Should this really be working now? > > java.lang.NoClassDefFoundError: > org/eclipse/jetty/util/MultiPartInputStreamParser > at > org.eclipse.jetty.server.MultiParts$MultiPartsUtilParser.(MultiParts.java:104) > ~[?:?] > at org.eclipse.jetty.server.Request.newMultiParts(Request.java:2402) > ~[?:?] > at org.eclipse.jetty.server.Request.getParts(Request.java:2324) ~[?:?] > at org.eclipse.jetty.server.Request.getParts(Request.java:2310) ~[?:?] > at UploadServlet.handleUpload(UploadServlet.java:189) ~[?:?] > at UploadServlet.doPost(UploadServlet.java:152) ~[?:?] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > ~[!/:3.1.0] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > ~[!/:3.1.0] > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760) > ~[?:?] > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617) > ~[?:?] > at > org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) > ~[?:?] > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) > ~[?:?] > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545) > ~[?:?] > at > org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) > ~[?:?] > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) > ~[?:?] > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1592) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1296) > ~[!/:9.4.22.v20191022] > at > org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:298) > ~[?:?] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) > ~[?:?] > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1562) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1211) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > ~[!/:9.4.22.v20191022] > at > org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) > ~[?:?] > at > org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:717) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[!/:9.4.22.v20191022] > at org.eclipse.jetty.server.Server.handle(Server.java:500) > ~[!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:386) > ~[!/:9.4.22.v20191022] > at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:562) > ~[!/:9.4.22.v20191022] > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:378) > [!/:9.4.22.v20191022] > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270) > [!/:9.4.22.v20191022] > at > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) > [!/:9.4.22.v20191022] > at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) > [!/:9.4.22.v20191022] > at > org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) > [!/:9.4.22.v20191022] > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) > [!/:9.4.22.v20191022] > at >
Re: CNFE on Jetty after Karaf bump
I tested Karaf 4.2.8 staging and created a custom distribution. Pax Web 7.2.13 is used on runtime. Jetty 9.4.22.v20191022 is used on runtime. I am still running into the NCDFE. Should this really be working now? java.lang.NoClassDefFoundError: org/eclipse/jetty/util/MultiPartInputStreamParser at org.eclipse.jetty.server.MultiParts$MultiPartsUtilParser.(MultiParts.java:104) ~[?:?] at org.eclipse.jetty.server.Request.newMultiParts(Request.java:2402) ~[?:?] at org.eclipse.jetty.server.Request.getParts(Request.java:2324) ~[?:?] at org.eclipse.jetty.server.Request.getParts(Request.java:2310) ~[?:?] at UploadServlet.handleUpload(UploadServlet.java:189) ~[?:?] at UploadServlet.doPost(UploadServlet.java:152) ~[?:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) ~[!/:3.1.0] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[!/:3.1.0] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760) ~[?:?] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617) ~[?:?] at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) ~[?:?] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) ~[?:?] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545) ~[?:?] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) ~[?:?] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1592) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1296) ~[!/:9.4.22.v20191022] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:298) ~[?:?] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) ~[?:?] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1562) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1211) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[!/:9.4.22.v20191022] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?] at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:717) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.Server.handle(Server.java:500) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:386) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:562) ~[!/:9.4.22.v20191022] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:378) [!/:9.4.22.v20191022] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270) [!/:9.4.22.v20191022] at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [!/:9.4.22.v20191022] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [!/:9.4.22.v20191022] at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [!/:9.4.22.v20191022] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [!/:9.4.22.v20191022] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [!/:9.4.22.v20191022] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [!/:9.4.22.v20191022] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [!/:9.4.22.v20191022] at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388) [!/:9.4.22.v20191022]
Re: CNFE on Jetty after Karaf bump
Hi Markus, it should be done on Jetty connector, so basically in Pax Web. Regards JB On 14/01/2020 16:12, Markus Rathgeb wrote: > Do you know about a method that can I call in my bundle code (e.g. in > its init method) to get it running on 4.2.7? > Any change to call "setMultiPartFormDataCompliance" in the servlet > implementation? > Or adding a configuration to config admin, ...? > > Am Di., 14. Jan. 2020 um 16:01 Uhr schrieb Jean-Baptiste Onofré > : >> >> It should be fixed on 4.2.8. >> >> See https://ops4j1.jira.com/browse/PAXWEB-1246 for details. >> >> Regards >> JB >> >> On 14/01/2020 15:55, Markus Rathgeb wrote: >>> Hi, >>> >>> I updated a product using a custom distribution from 4.2.6 to 4.2.7. >>> Because of this in the runtime the following versions has been changed: >>> * Pax Web: 7.2.10 to 7.2.11 >>> * Jetty: from 9.4.18.v20190429 to 9.4.20.v20190813 >>> >>> There is a bundle that contains a HTTP servlet for a fie upload. >>> >>> The POST request is handled by a method that takes the >>> HttpServletRequest "request" and the HttpServletResponse "response". >>> At the beginning it calls: >>> final Collection parts = request.getParts(); >>> >>> After that it handles the parts. >>> >>> This worked before but does not anymore. >>> >>> An exception is raised. >>> >>> java.lang.NoClassDefFoundError: >>> org/eclipse/jetty/util/MultiPartInputStreamParser >>> at >>> org.eclipse.jetty.server.MultiParts$MultiPartsUtilParser.(MultiParts.java:104) >>> ~[!/:9.4.20.v20190813] >>> at org.eclipse.jetty.server.Request.newMultiParts(Request.java:2295) >>> ~[!/:9.4.20.v20190813] >>> at org.eclipse.jetty.server.Request.getParts(Request.java:2217) >>> ~[!/:9.4.20.v20190813] >>> at org.eclipse.jetty.server.Request.getParts(Request.java:2203) >>> ~[!/:9.4.20.v20190813] >>> at UploadServlet.doPost(UploadServlet.java:152) ~[?:?] >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) >>> ~[!/:3.1.0] >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) >>> ~[!/:3.1.0] >>> at >>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1591) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) >>> ~[!/:?] >>> at >>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) >>> ~[!/:?] >>> at >>> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) >>> ~[!/:9.4.20.v20190813] >>> at >>> org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) >>> ~[!/:?] >>> at >>> org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:722) >>> ~[!/:9.4.20.v20190813] >>> at >>>
Re: CNFE on Jetty after Karaf bump
Do you know about a method that can I call in my bundle code (e.g. in its init method) to get it running on 4.2.7? Any change to call "setMultiPartFormDataCompliance" in the servlet implementation? Or adding a configuration to config admin, ...? Am Di., 14. Jan. 2020 um 16:01 Uhr schrieb Jean-Baptiste Onofré : > > It should be fixed on 4.2.8. > > See https://ops4j1.jira.com/browse/PAXWEB-1246 for details. > > Regards > JB > > On 14/01/2020 15:55, Markus Rathgeb wrote: > > Hi, > > > > I updated a product using a custom distribution from 4.2.6 to 4.2.7. > > Because of this in the runtime the following versions has been changed: > > * Pax Web: 7.2.10 to 7.2.11 > > * Jetty: from 9.4.18.v20190429 to 9.4.20.v20190813 > > > > There is a bundle that contains a HTTP servlet for a fie upload. > > > > The POST request is handled by a method that takes the > > HttpServletRequest "request" and the HttpServletResponse "response". > > At the beginning it calls: > > final Collection parts = request.getParts(); > > > > After that it handles the parts. > > > > This worked before but does not anymore. > > > > An exception is raised. > > > > java.lang.NoClassDefFoundError: > > org/eclipse/jetty/util/MultiPartInputStreamParser > > at > > org.eclipse.jetty.server.MultiParts$MultiPartsUtilParser.(MultiParts.java:104) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.Request.newMultiParts(Request.java:2295) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.Request.getParts(Request.java:2217) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.Request.getParts(Request.java:2203) > > ~[!/:9.4.20.v20190813] > > at UploadServlet.doPost(UploadServlet.java:152) ~[?:?] > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > > ~[!/:3.1.0] > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > > ~[!/:3.1.0] > > at > > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1591) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) > > ~[!/:9.4.20.v20190813] > > at > > org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) > > ~[!/:?] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) > > ~[!/:9.4.20.v20190813] > > at > > org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) > > ~[!/:?] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > > ~[!/:9.4.20.v20190813] > > at > > org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) > > ~[!/:?] > > at > > org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:722) > > ~[!/:9.4.20.v20190813] > > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > > ~[!/:9.4.20.v20190813] > > at org.eclipse.jetty.server.Server.handle(Server.java:494) > >
Re: CNFE on Jetty after Karaf bump
It should be fixed on 4.2.8. See https://ops4j1.jira.com/browse/PAXWEB-1246 for details. Regards JB On 14/01/2020 15:55, Markus Rathgeb wrote: > Hi, > > I updated a product using a custom distribution from 4.2.6 to 4.2.7. > Because of this in the runtime the following versions has been changed: > * Pax Web: 7.2.10 to 7.2.11 > * Jetty: from 9.4.18.v20190429 to 9.4.20.v20190813 > > There is a bundle that contains a HTTP servlet for a fie upload. > > The POST request is handled by a method that takes the > HttpServletRequest "request" and the HttpServletResponse "response". > At the beginning it calls: > final Collection parts = request.getParts(); > > After that it handles the parts. > > This worked before but does not anymore. > > An exception is raised. > > java.lang.NoClassDefFoundError: > org/eclipse/jetty/util/MultiPartInputStreamParser > at > org.eclipse.jetty.server.MultiParts$MultiPartsUtilParser.(MultiParts.java:104) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.Request.newMultiParts(Request.java:2295) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.Request.getParts(Request.java:2217) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.Request.getParts(Request.java:2203) > ~[!/:9.4.20.v20190813] > at UploadServlet.doPost(UploadServlet.java:152) ~[?:?] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > ~[!/:3.1.0] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > ~[!/:3.1.0] > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1591) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) > ~[!/:9.4.20.v20190813] > at > org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) > ~[!/:?] > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) > ~[!/:9.4.20.v20190813] > at > org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) > ~[!/:?] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > ~[!/:9.4.20.v20190813] > at > org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) > ~[!/:?] > at > org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:722) > ~[!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.Server.handle(Server.java:494) > ~[!/:9.4.20.v20190813] > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) > [!/:9.4.20.v20190813] > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) > [!/:9.4.20.v20190813] > at > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) > [!/:9.4.20.v20190813] > at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) > [!/:9.4.20.v20190813] > at >