Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when a mission is aborted #139

Closed
tsg- opened this issue Dec 18, 2013 · 5 comments
Closed

NullPointerException when a mission is aborted #139

tsg- opened this issue Dec 18, 2013 · 5 comments
Milestone

Comments

@tsg-
Copy link
Contributor

tsg- commented Dec 18, 2013

A couple of variants here:

2013-12-16 17:16:09,731 [ERROR] [AbstractCommandHandler] - unexpected error
java.lang.NullPointerException
at com.intel.cosbench.driver.model.WorkerContext.getSnapshot(WorkerContext.java:122)
at com.intel.cosbench.driver.model.MissionContext.getSnapshot(MissionContext.java:188)
at com.intel.cosbench.driver.handler.QueryHandler.getResponse(QueryHandler.java:39)
at com.intel.cosbench.driver.handler.QueryHandler.process(QueryHandler.java:34)
at com.intel.cosbench.driver.handler.MissionHandler.process(MissionHandler.java:44)
at com.intel.cosbench.driver.handler.AbstractCommandHandler.handleRequest(AbstractCommandHandler.java:76)
at com.intel.cosbench.driver.handler.QueryHandler.handleRequest(QueryHandler.java:1)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:724)
2013-12-16 17:16:09,732 [ERROR] [AbstractCommandTasklet] - driver report error: HTTP 500 - null

or if a write was in progress:

2013-12-06 14:17:58,422 [ERROR] [AbstractAgent] - unexpected exception
java.lang.NullPointerException
at com.intel.cosbench.driver.operator.Writer.doWrite(Writer.java:100)
at com.intel.cosbench.driver.operator.Preparer.operate(Preparer.java:95)
at com.intel.cosbench.driver.operator.AbstractOperator.operate(AbstractOperator.java:71)
at com.intel.cosbench.driver.agent.WorkAgent.performOperation(WorkAgent.java:175)
at com.intel.cosbench.driver.agent.WorkAgent.doWork(WorkAgent.java:161)
at com.intel.cosbench.driver.agent.WorkAgent.execute(WorkAgent.java:118)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

@tsg-
Copy link
Contributor Author

tsg- commented Dec 18, 2013

Interesting part of log leading up to the error, when a workload was cancelled:

2013-12-06 14:17:39,406 [INFO] [WorkloadProcessor] - successfully cancelled workload w126
2013-12-06 14:17:44,171 [INFO] [MissionHandler] - wait 10 seconds for agents to abort ...
2013-12-06 14:17:54,171 [INFO] [MissionHandler] - wait 30 seconds for agents to abort ...
2013-12-06 14:17:58,381 [WARN] [MissionHandler] - fail to abort agents for mission M1C7F7293D9
2013-12-06 14:17:58,381 [INFO] [MissionHandler] - mission M1C7F7293D9 appears to be aborted
2013-12-06 14:17:58,422 [ERROR] [AbstractAgent] - unexpected exception
java.lang.NullPointerException
at com.intel.cosbench.driver.operator.Writer.doWrite(Writer.java:100)
at com.intel.cosbench.driver.operator.Preparer.operate(Preparer.java:95)
at com.intel.cosbench.driver.operator.AbstractOperator.operate(AbstractOperator.java:71)
at com.intel.cosbench.driver.agent.WorkAgent.performOperation(WorkAgent.java:175)
at com.intel.cosbench.driver.agent.WorkAgent.doWork(WorkAgent.java:161)
at com.intel.cosbench.driver.agent.WorkAgent.execute(WorkAgent.java:118)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

@ywang19
Copy link
Contributor

ywang19 commented Dec 27, 2013

fixed on branch 0.4.0.0

@ywang19 ywang19 closed this as completed Dec 27, 2013
@ywang19
Copy link
Contributor

ywang19 commented Apr 16, 2014

re-observe this issue.

@ywang19 ywang19 reopened this Apr 16, 2014
ywang19 pushed a commit that referenced this issue Apr 18, 2014
@ywang19
Copy link
Contributor

ywang19 commented Apr 18, 2014

see commits: d2c6bfc

@ywang19 ywang19 closed this as completed Apr 18, 2014
@ywang19
Copy link
Contributor

ywang19 commented Apr 22, 2014

and commit: f577488

@ywang19 ywang19 modified the milestone: 0.4.0 May 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants