We're updating the issue view to help you get more done. 

NPe when accessing a Servlet while the responsible bundle starts

Description

When a HTTP Clienttry to load a resource on a servlet which is starting, PaxWeb can return an error 500 showing a NPE (below). It should rather return a 404 pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 org.ops4j.lang.NullArgumentException: Context (handler) for /ui/index.html is null. at org.ops4j.lang.NullArgumentException.validateNotNull(NullArgumentException.java:75) ~[236:org.ops4j.pax.web.pax-web-jetty:6.0.6] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:78) [236:org.ops4j.pax.web.pax-web-jetty:6.0.6] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [207:org.eclipse.jetty.server:9.3.14.v20161028] at org.eclipse.jetty.server.Server.handle(Server.java:534) [207:org.eclipse.jetty.server:9.3.14.v20161028] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) [207:org.eclipse.jetty.server:9.3.14.v20161028] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [207:org.eclipse.jetty.server:9.3.14.v20161028] at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) [200:org.eclipse.jetty.io:9.3.14.v20161028] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [200:org.eclipse.jetty.io:9.3.14.v20161028] at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [200:org.eclipse.jetty.io:9.3.14.v20161028] at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [210:org.eclipse.jetty.util:9.3.14.v20161028] at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [210:org.eclipse.jetty.util:9.3.14.v20161028] at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [210:org.eclipse.jetty.util:9.3.14.v20161028] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [210:org.eclipse.jetty.util:9.3.14.v20161028] at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [210:org.eclipse.jetty.util:9.3.14.v20161028] at java.lang.Thread.run(Thread.java:745) [?:?]

Environment

None

Status

Assignee

Unassigned

Reporter

J Brébec

Labels

None

Components

Fix versions

Affects versions

6.0.6

Priority

Minor