A NullPointerException is generated when an invalid ERO element is specified that attempts for force an impossible path. In this case the source and destination are on the same network so all other networks are pruned, however, the ERO contains an inter domain STP that makes that path impossible to complete.
2016-08-22 15:24:07,250 ERROR [grizzly-http-server-0] (net.es.nsi.pce.path.api.FindPathService:210) - findPath: findPath P2PS failed
java.lang.NullPointerException
at net.es.nsi.pce.pf.RouteObject.<init>(RouteObject.java:74)
at net.es.nsi.pce.pf.DijkstraPCE.apply(DijkstraPCE.java:109)
at net.es.nsi.pce.pf.SequentialPCE.apply(SequentialPCE.java:31)
at net.es.nsi.pce.pf.PathfinderCore.findPath(PathfinderCore.java:75)
at net.es.nsi.pce.path.api.FindPathService.findPath(FindPathService.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:317)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:298)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)
at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:745)
Result to clienty:
2016-08-22 15:24:07,276 DEBUG [grizzly-http-server-0] (net.es.nsi.pce.path.api.FindPathService:238) - FindPathService: sent response FAILED to client https://agg.netherlight.net/pce/reply, result = OK
2016-08-22 15:24:07,277 DEBUG [grizzly-http-server-0] (net.es.nsi.pce.path.api.FindPathService:240) - <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:findPathResponse xmlns:ns2="http://schemas.es.net/nsi/2013/08/pce/messages" xmlns:ns3="http://schemas.ogf.org/nsi/2013/12/services/point2point">
<correlationId>urn:uuid:dd19adc9-7ae4-4ca8-8a8b-77134de02c33</correlationId>
<status>FAILED</status>
<ns2:findPathError>
<code>00500</code>
<label>INTERNAL_ERROR</label>
<description>An internal error has caused a message processing failure (Issue parsing FindPathErrorType error message).</description>
</ns2:findPathError>
</ns2:findPathResponse>
A NullPointerException is generated when an invalid ERO element is specified that attempts for force an impossible path. In this case the source and destination are on the same network so all other networks are pruned, however, the ERO contains an inter domain STP that makes that path impossible to complete.
Request:
Exception:
Result to clienty: