[
https://issues.apache.org/jira/browse/KARAF-6597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17018660#comment-17018660
]
Jean-Baptiste Onofré edited comment on KARAF-6597 at 1/18/20 6:00 PM:
----------------------------------------------------------------------
I confirm that I reproduce the issue on 4.2.8-SNAPSHOT. I'm working on a fix.
{code:java}
2020-01-18T18:26:06,899 | WARN | qtp360374305-149 | HttpChannel
| 72 - org.eclipse.jetty.util - 9.4.22.v20191022 | /upload-example
java.lang.NoClassDefFoundError:
org/eclipse/jetty/util/MultiPartInputStreamParser
at
org.eclipse.jetty.server.MultiParts$MultiPartsUtilParser.<init>(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
org.apache.karaf.examples.servlet.upload.UploadServlet.doPost(UploadServlet.java:67)
~[?:?]
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.doHandle(ServletHandler.java:547)
~[?:?]
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
~[?:?]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
~[?:?]
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536)
~[?:?]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
~[?:?]
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
~[?:?]
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1592)
~[?:?]
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
~[?:?]
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1296)
~[?:?]
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:298)
~[?:?]
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
~[?:?]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
~[?:?]
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1562)
~[?:?]
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
~[?:?]
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1211)
~[?:?]
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
~[?:?]
at
org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
~[?:?]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
~[?:?]
at org.eclipse.jetty.server.Server.handle(Server.java:500) ~[?:?]
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:386)
~[?:?]
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:562) ~[?:?]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:378) ~[?:?]
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
~[?:?]
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
~[?:?]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[?:?]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[?:?]
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.produce(EatWhatYouKill.java:135)
~[!/:9.4.22.v20191022]
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
[!/:9.4.22.v20191022]
at
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
[!/:9.4.22.v20191022]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jetty.util.MultiPartInputStreamParser
at
org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1401)
~[?:?]
at
org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660)
~[?:?]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590)
~[?:?]
at
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
~[?:?]
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_172]
... 41 more {code}
was (Author: jbonofre):
I confirm that I reproduce the issue on 4.2.8-SNAPSHOT. I'm working on a fix.
> MutiPartInputStreamParser usage causes CNFE
> -------------------------------------------
>
> Key: KARAF-6597
> URL: https://issues.apache.org/jira/browse/KARAF-6597
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.8
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Critical
> Fix For: 4.3.0, 4.2.8
>
>
> Even if this issue is supposed to be fixed with Pax Web 7.2.3, Markus
> reported that he still has the issue. I'm adding a example + test in Karaf to
> check and eventually fix.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)