Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AECD10814 for ; Mon, 5 Aug 2013 08:28:56 +0000 (UTC) Received: (qmail 92742 invoked by uid 500); 5 Aug 2013 08:28:52 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 92586 invoked by uid 500); 5 Aug 2013 08:28:50 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 92509 invoked by uid 500); 5 Aug 2013 08:28:49 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 92498 invoked by uid 99); 5 Aug 2013 08:28:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Aug 2013 08:28:48 +0000 Date: Mon, 5 Aug 2013 08:28:48 +0000 (UTC) From: "Nitin Mehta (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-4028) [Automation] Null Pointer Exception observed while creating template MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-4028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nitin Mehta resolved CLOUDSTACK-4028. ------------------------------------- Resolution: Cannot Reproduce > [Automation] Null Pointer Exception observed while creating template > -------------------------------------------------------------------- > > Key: CLOUDSTACK-4028 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4028 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Affects Versions: 4.2.0 > Reporter: Rayees Namathponnan > Assignee: Nitin Mehta > Priority: Critical > Fix For: 4.2.0 > > Attachments: management-server.rar > > > This issue observed during regression "test resource_limits" > Below null pointer exception observed in MS log > 9b-483c-902f-167fb01cd2f1","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"fff90cb5-06dd-33b3-8815-d78c08ca01d9","id":1,"poolTy > pe":"NetworkFilesystem","host":"10.223.110.232","path":"/export/home/rayees/SC_QA_AUTO4/primary","port":2049}},"name":"ROOT-453","size":147456,"path":"d57149f0-9932-49dd-b4f0- > 4dc286c95283","volumeId":509,"vmName":"i-251-453-QA","accountId":251,"format":"QCOW2","id":509,"hypervisorType":"KVM"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObj > ectTO":{"path":"template/tmpl/251/226","uuid":"b884ddac-ba48-4946-8266-ce10fe40ab7d","id":226,"format":"RAW","accountId":251,"hvm":true,"displayText":"Cent OS Template","image > DataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary","_role":"Image"}},"name":"2ac0ba622-e789-354d-b69b-d3b40de4 > 5701","hypervisorType":"KVM"}},"executeInSequence":false,"wait":10800}}] } > 2013-07-05 03:29:45,456 DEBUG [agent.transport.Request] (AgentManager-Handler-6:null) Seq 4-297077579: Processing: { Ans: , MgmtId: 29066118877352, via: 4, Ver: v1, Flags: 10 > , [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"java.lang.NullPointerException","wait":0}}] } > 2013-07-05 03:29:45,456 DEBUG [agent.transport.Request] (Job-Executor-14:job-1314 = [ bad71aec-8f24-4964-b510-e30b4ef1a999 ]) Seq 4-297077579: Received: { Ans: , MgmtId: 2906 > 6118877352, via: 4, Ver: v1, Flags: 10, { CopyCmdAnswer } } > 2013-07-05 03:29:45,464 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-14:job-1314 = [ bad71aec-8f24-4964-b510-e30b4ef1a999 ]) Failed to create templatejava.lang.NullPointerException > 2013-07-05 03:29:45,560 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-14:job-1314 = [ bad71aec-8f24-4964-b510-e30b4ef1a999 ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd > com.cloud.utils.exception.CloudRuntimeException: Failed to create templatejava.lang.NullPointerException > at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1372) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:263) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > 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:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-07-05 03:29:45,561 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-14:job-1314 = [ bad71aec-8f24-4964-b510-e30b4ef1a999 ]) Complete async job-1314 = [ bad71aec-8f24-4964-b510-e30b4ef1a999 ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to create templatejava.lang.NullPointerException > 2013-07-05 03:29:46,044 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===START=== 10.223.240.194 -- GET signature=d5oNqmtHPLw0QTpehRKp0O0OhPo%3D&apiKey=p4VwLP4mhd90QBeBxwJ39YurvbLtOuGc-qgcm4pN2B58bSZJZgGJezD5V1GR6vx38YPDGF4-h7_R0WqxvUkGEA&command=queryAsyncJobResult&response=json&jobid=f7075411-b89e-4fd0-804d-e9af80b856ce > 2013-07-05 03:29:46,058 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END=== 10.223.240.194 -- GET signature=d5oNqmtHPLw0QTpehRKp0O0OhPo%3D&apiKey=p4VwLP4mhd90QBeBxwJ39YurvbLtOuGc-qgcm4pN2B58bSZJZgGJezD5V1GR6vx38YPDGF4-h7_R0WqxvUkGEA&command=queryAsyncJobResult&response=json&jobid=f7075411-b89e-4fd0-804d-e9af80b856ce > 2013-07-05 03:29:46,732 DEBUG [network.resource.NetscalerResource] (DirectAgent-118:null) Netscaler load balancer 10.223.52.5 successfully executed IPAssocCommand to remove IP com.cloud.agent.api.to.IpAddressTO@23a4c7ec -- 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