[
https://issues.apache.org/jira/browse/CLOUDSTACK-2807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13672971#comment-13672971
]
Kiran Koneti commented on CLOUDSTACK-2807:
------------------------------------------
When tried with the API observed the below error message:
2013-06-03 21:06:41,679 ERROR [cloud.api.ApiServer] (ApiServer-1:null)
unhandled exception executing api command: createServiceOffering
java.lang.NullPointerException
at
org.apache.cloudstack.api.command.admin.offering.CreateServiceOfferingCmd.getBytesRate(CreateServiceOfferingCmd.java:181)
at
com.cloud.configuration.ConfigurationManagerImpl.createServiceOffering(ConfigurationManagerImpl.java:2031)
at
org.apache.cloudstack.api.command.admin.offering.CreateServiceOfferingCmd.execute(CreateServiceOfferingCmd.java:204)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:524)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:367)
at com.cloud.api.ApiServer.handle(ApiServer.java:298)
at org.apache.http.protocol.HttpService.doService(HttpService.java:375)
at
org.apache.http.protocol.HttpService.handleRequest(HttpService.java:290)
at com.cloud.api.ApiServer$WorkerTask.run(ApiServer.java:988)
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)
2013-06-03 21:06:43,363 ERROR [cloud.api.ApiServer] (ApiServer-2:null) invalid
request, no command sent
2013-06-03 21:06:43,366 INFO [cloud.api.ApiServer] (ApiServer-2:null) Invalid
request, no command sent
> Not Able to Create Service offering for Preferred implicit dedication.
> ----------------------------------------------------------------------
>
> Key: CLOUDSTACK-2807
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2807
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Install and Setup
> Affects Versions: 4.2.0
> Reporter: Kiran Koneti
> Priority: Blocker
> Fix For: 4.2.0
>
> Attachments: management-server.zip
>
>
> Tried to create a Service offering for the Preferred implicit dedication then
> a NPE was observed .
> below is the error message.
> 2013-06-03 20:27:05,732 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null)
> ===START=== 10.252.249.185 -- GET
> command=createServiceOffering&serviceofferingdetails[0].ImplicitDedicationMode=Preferred&response=json&sessionkey=C2eDnQURSWZ5WUlJB9wOyc6mCjI%3D&issystem=false&name=Preferred&displaytext=Preferred&storageType=shared&cpuNumber=1&cpuSpeed=2000&memory=1024&deploymentplanner=ImplicitDedicationPlanner&offerha=false&limitcpuuse=false&isvolatile=false&_=1370251895480
> 2013-06-03 20:27:05,747 ERROR [cloud.api.ApiServer] (catalina-exec-3:null)
> unhandled exception executing api command: createServiceOffering
> java.lang.NullPointerException
> at
> org.apache.cloudstack.api.command.admin.offering.CreateServiceOfferingCmd.getBytesRate(CreateServiceOfferingCmd.java:181)
> at
> com.cloud.configuration.ConfigurationManagerImpl.createServiceOffering(ConfigurationManagerImpl.java:2031)
> at
> org.apache.cloudstack.api.command.admin.offering.CreateServiceOfferingCmd.execute(CreateServiceOfferingCmd.java:204)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:524)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:367)
> 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)
> 2013-06-03 20:27:05,751 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null)
> ===END=== 10.252.249.185 -- GET
> command=createServiceOffering&serviceofferingdetails[0].ImplicitDedicationMode=Preferred&response=json&sessionkey=C2eDnQURSWZ5WUlJB9wOyc6mCjI%3D&issystem=false&name=Preferred&displaytext=Preferred&storageType=shared&cpuNumber=1&cpuSpeed=2000&memory=1024&deploymentplanner=ImplicitDedicationPlanner&offerha=false&limitcpuuse=false&isvolatile=false&_=1370251895480
> Attaching the management server Logs.
--
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