Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] NPE in MultiPartFilter

It appears to be this line:

MultipartConfigElement config = new MultipartConfigElement(tempdir.getCanonicalPath(), _maxFileSize, _maxRequestSize, _fileOutputBuffer);

Which means that tempdir is probably null for some reason.  The line appears in the jetty-8 branch; it was merged in from jetty-8-historical in this commit.
It first appeared in jetty-8-historical in this commit

I managed to get it working for me by using the 7.6.0.RC2 version of jetty-servlets.jar

Hope this was maybe a little bit helpful.


On Sat, Dec 24, 2011 at 11:09 PM, Steven Arcangeli <arcangeli07@xxxxxxxxx> wrote:
I'm getting a NPE when I try to upload a file.  This happened right after upgrading to 8.1.0.RC2.  Previously I was on 7.0.2 with no problems.  Haven't tested it on any other versions.  It's possible I'm passing it the wrong set of DispatcherTypes?  I've included the stack trace and the final log statement.  I'm running it from an embedded server and can provide the server code if you like.  Any ideas?

Merry Christmahanakwanzika!

2011-12-24 22:32:45,018 [qtp58472846-24] WARN  org.eclipse.jetty.servlet.ServletHandler  - /upload.html
at org.eclipse.jetty.servlets.MultiPartFilter.doFilter(
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.eclipse.jetty.servlet.ServletHandler.doHandle(
at org.eclipse.jetty.server.session.SessionHandler.doHandle(
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
at org.eclipse.jetty.servlet.ServletHandler.doScope(
at org.eclipse.jetty.server.session.SessionHandler.doScope(
at org.eclipse.jetty.server.handler.ContextHandler.doScope(
at org.eclipse.jetty.server.handler.ScopedHandler.handle(
at org.eclipse.jetty.server.handler.HandlerList.handle(
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
at org.eclipse.jetty.server.Server.handle(
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(
at org.eclipse.jetty.http.HttpParser.parseNext(
at org.eclipse.jetty.http.HttpParser.parseAvailable(
at org.eclipse.jetty.server.AsyncHttpConnection.handle(
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
at org.eclipse.jetty.util.thread.QueuedThreadPool$

Back to the top