null pointer exception on plan create

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

null pointer exception on plan create

hansg01
I am facing a java.lang.NullPointerException on plan creation while undeploying as mentioned in issue https://github.com/pongasoft/glu/issues/242 but I am running glu console 5.5.1.

The stacktrace shows error as follows:

2014/11/06 21:57:59.658 ERROR [GrailsExceptionResolver] NullPointerException occurred when processing request: [POST] /console/plan/create
Stacktrace follows:
java.lang.NullPointerException
at org.linkedin.glu.orchestration.engine.delta.impl.ParentChildDeltaBuilder.<init>(ParentChildDeltaBuilder.java:53)
at org.linkedin.glu.orchestration.engine.delta.impl.SingleDeltaBuilder.processParentChild(SingleDeltaBuilder.java:204)
at org.linkedin.glu.orchestration.engine.delta.impl.SingleDeltaBuilder.build(SingleDeltaBuilder.java:187)
at org.linkedin.glu.orchestration.engine.delta.impl.ParentChildDeltaStateBuilder.<init>(ParentChildDeltaStateBuilder.java:74)
at org.linkedin.glu.orchestration.engine.delta.impl.MultiDeltaBuilder.processParentChild(MultiDeltaBuilder.java:172)
at org.linkedin.glu.orchestration.engine.delta.impl.MultiDeltaBuilder.createNewExpectedModel(MultiDeltaBuilder.java:153)
at org.linkedin.glu.orchestration.engine.delta.impl.MultiDeltaBuilder.build(MultiDeltaBuilder.java:119)
at org.linkedin.glu.orchestration.engine.delta.impl.DeltaMgrImpl.computeDeltas(DeltaMgrImpl.java:98)
at org.linkedin.glu.orchestration.engine.planner.PlannerServiceImpl.doComputeDeploymentPlans(PlannerServiceImpl.groovy:156)
at org.linkedin.glu.orchestration.engine.planner.PlannerServiceImpl.computeDeploymentPlans(PlannerServiceImpl.groovy:133)
at org.linkedin.glu.orchestration.engine.planner.PlannerServiceImpl.computeUndeployPlans(PlannerServiceImpl.groovy:266)
at org.linkedin.glu.orchestration.engine.planner.PlannerServiceImpl$_computePlans_closure5.doCall(PlannerServiceImpl.groovy:306)
at org.linkedin.glu.groovy.utils.plugins.PluginServiceImpl.executePrePostMethods(PluginServiceImpl.groovy:106)
at org.linkedin.glu.orchestration.engine.planner.PlannerServiceImpl.computePlans(PlannerServiceImpl.groovy:297)
at org.linkedin.glu.orchestration.engine.planner.PlannerServiceImpl.computePlan(PlannerServiceImpl.groovy:324)
at org.linkedin.glu.console.controllers.PlanController$_closure6.doCall(PlanController.groovy:197)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:724)
Reply | Threaded
Open this post in threaded view
|

Re: null pointer exception on plan create

frenchyan
Administrator
I am not sure why this is happening. It is clearly a different NPE than the one you linked to. Looking at the code it is not obvious what is going on. In order to troubleshoot, both the static model and live model would need to be included (you can get those via the REST api).

That being said, I am currently travelling and have very limited internet access, neither my traditional glu dev environment, and won't be able to look at it until after Thanksgiving (end of the month)

Yan
‚Äč