Hi Steve,

Happy Holidays to you too.

jetty-7.0.2 is pretty old. Looking at the code for the
MultiPartFilter, it seems that perhaps the temp dir for the context
has not been set as a context attribute. That should be done by the
WebInfConfiguration class that is applied during deployment of the
webapp. Do you have the right set of configuration classes applied in
the correct order? As a minimum, they should be:
        "org.eclipse.jetty.webapp.WebInfConfiguration",
        "org.eclipse.jetty.webapp.WebXmlConfiguration",
        "org.eclipse.jetty.webapp.MetaInfConfiguration",
        "org.eclipse.jetty.webapp.FragmentConfiguration",
        "org.eclipse.jetty.webapp.JettyWebXmlConfiguration"

I would also check that your webapp includes the 8.1.0.RC2 version of
the jetty-servlets.jar.

regards
Jan


On 25 December 2011 18:09, Steven Arcangeli <arcangel...@gmail.com> 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!
> -Steve
>
> 2011-12-24 22:32:45,018 [qtp58472846-24] WARN
>  org.eclipse.jetty.servlet.ServletHandler  - /upload.html
> java.lang.NullPointerException
> at
> org.eclipse.jetty.servlets.MultiPartFilter.doFilter(MultiPartFilter.java:132)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1061)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:412)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:995)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
> at org.eclipse.jetty.server.Server.handle(Server.java:351)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:451)
> at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:931)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:870)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:233)
> at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:75)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:615)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
> at java.lang.Thread.run(Thread.java:662)
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
jetty-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to