I am seeing the following exception 

ERROR [c.c.a.ApiServer] (38419149@qtp-1917357200-11:ctx-116b8207 ctx-9a54f764) 
unhandled exception executing api command: [Ljava.lang.String;@36d30b1d
java.lang.NullPointerException
        at 
org.apache.cloudstack.engine.orchestration.CloudOrchestrator.createVirtualMachine(CloudOrchestrator.java:191)
        at 
com.cloud.vm.UserVmManagerImpl$3.doInTransaction(UserVmManagerImpl.java:2908)
        at 
com.cloud.vm.UserVmManagerImpl$3.doInTransaction(UserVmManagerImpl.java:1)
        at com.cloud.utils.db.Transaction.execute(Transaction.java:37)
        at 
com.cloud.vm.UserVmManagerImpl.commitUserVm(UserVmManagerImpl.java:2821)
        at 
com.cloud.vm.UserVmManagerImpl.createVirtualMachine(UserVmManagerImpl.java:2759)
        at 
com.cloud.vm.UserVmManagerImpl.createAdvancedVirtualMachine(UserVmManagerImpl.java:2465)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)


git blame shows the following:

c427e8db 
engine/orchestration/src/org/apache/cloudstack/engine/orchestration/CloudOrchestrator.java
   (Mike Tutkowski     2014-03-06 14:00:56 -0700 191)         if 
(offering.isCustomizedIops()) {

And in the disk_offering table in the db the values for this property is set to 
null for all entries.

What is the correct way to use this property? Should the code be fixed or the 
db entries need to be correctly updated?

-Koushik

Reply via email to