prashant kumar mishra created CLOUDSTACK-2510:
-------------------------------------------------
Summary: 2013-05-15 10:56:24,530 ERROR [cloud.api.ApiServer]
(catalina-exec-14:null) unhandled exception executing api command:
listStoragePools java.lang.NullPointerException
Key: CLOUDSTACK-2510
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2510
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.2.0
Reporter: prashant kumar mishra
Fix For: 4.2.0
Tried to add a primary storage to empty xen cluster ;after this event not able
to list primary storage getting NPE .
Steps to reproduce
---------------------------
1-Add a empty xen cluster(without any host)
2-Add a cluster wide primary storage to cluster created in step1
3-Try to list primary storage
Actual
---------------
Primary storage is not getting listed
API response
-------------------
"NetworkError: 530 -
http://10.*.*.*:8080/client/api?command=listStoragePools&response=json&sessionkey=uuXcmrcMh1PSlwGk%2Fd0fBWnGp7s%3D&page=1&pageSize=20&listAll=true&_=
Snippet of log
--------------------
2013-05-15 11:01:19,245 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null)
===START=== 10.146.0.130 -- GET
command=listStoragePools&response=json&sessionkey=uuXcmrcMh1PSlwGk%2Fd0fBWnGp7s%3D&page=1&pageSize=20&listAll=true&_=1368610481963
2013-05-15 11:01:19,268 ERROR [cloud.api.ApiServer] (catalina-exec-10:null)
unhandled exception executing api command: listStoragePools
java.lang.NullPointerException
at
com.cloud.api.query.dao.StoragePoolJoinDaoImpl.newStoragePoolResponse(StoragePoolJoinDaoImpl.java:87)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at com.cloud.api.ApiDBUtils.newStoragePoolResponse(ApiDBUtils.java:1568)
at
com.cloud.api.query.ViewResponseHelper.createStoragePoolResponse(ViewResponseHelper.java:277)
at
com.cloud.api.query.QueryManagerImpl.searchForStoragePools(QueryManagerImpl.java:1865)
at
org.apache.cloudstack.api.command.admin.storage.ListStoragePoolsCmd.execute(ListStoragePoolsCmd.java:121)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:519)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:369)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira