cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Chen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-2485) Object_Store_Refactor - ISO - ClassCastException when trying to extract ISO.
Date Wed, 15 May 2013 00:48:14 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-2485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Min Chen resolved CLOUDSTACK-2485.
----------------------------------

    Resolution: Fixed

Fixed with commit 252f384e89c85f373d69a9586d451f64217aaac7
                
> Object_Store_Refactor - ISO - ClassCastException when trying to extract ISO.
> ----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2485
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2485
>             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
>         Environment: Build from object_store
>            Reporter: Sangeetha Hariharan
>            Assignee: Min Chen
>             Fix For: 4.2.0
>
>
> Steps to reproduce the problem:
> Register an ISO.
> Try to download ISO.
> This fails with ClassCastException.
> management server logs:
> 2013-05-14 12:20:25,876 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===START===
 10.217.252.128 -- GET  command=extractIso&mode=HTTP_DOWNLOAD&id=dcec8151-8066-43a5-a5fa-97a23861129f&zoneid=a281057d-2a6a-47c1-ab05-f36a20006129&response=json&sessionkey=C9NJNvY%2BchMADG3kPD%2BUIlWvcC0%3D&_=1368562644746
> 2013-05-14 12:20:25,921 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-24:null)
submit async job-21, details: AsyncJobVO {id:21, userId: 2, accountId: 2, sessionKey: null,
instanceType: Iso, instanceId: 204, cmd: org.apache.cloudstack.api.command.user.iso.ExtractIsoCmd,
cmdOriginator: null, cmdInfo: {"response":"json","id":"dcec8151-8066-43a5-a5fa-97a23861129f","sessionkey":"C9NJNvY+chMADG3kPD+UIlWvcC0\u003d","ctxUserId":"2","zoneid":"a281057d-2a6a-47c1-ab05-f36a20006129","httpmethod":"GET","_":"1368562644746","ctxAccountId":"2","ctxStartEventId":"75","mode":"HTTP_DOWNLOAD"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 206915885079359, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
> 2013-05-14 12:20:25,924 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-23:job-21)
Executing org.apache.cloudstack.api.command.user.iso.ExtractIsoCmd for job-21
> 2013-05-14 12:20:25,927 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) ===END===
 10.217.252.128 -- GET  command=extractIso&mode=HTTP_DOWNLOAD&id=dcec8151-8066-43a5-a5fa-97a23861129f&zoneid=a281057d-2a6a-47c1-ab05-f36a20006129&response=json&sessionkey=C9NJNvY%2BchMADG3kPD%2BUIlWvcC0%3D&_=1368562644746
> 2013-05-14 12:20:25,979 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-23:job-21)
Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.ExtractIsoCmd
> java.lang.ClassCastException: org.apache.cloudstack.storage.image.store.ImageStoreImpl
cannot be cast to org.apache.cloudstack.storage.datastore.db.ImageStoreVO
>         at com.cloud.storage.upload.UploadMonitorImpl.createEntityDownloadURL(UploadMonitorImpl.java:232)
>         at com.cloud.template.TemplateManagerImpl.extract(TemplateManagerImpl.java:501)
>         at com.cloud.template.TemplateManagerImpl.extract(TemplateManagerImpl.java:346)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.iso.ExtractIsoCmd.execute(ExtractIsoCmd.java:127)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
>         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-05-14 12:20:25,980 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-23:job-21)
Complete async job-21, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
org.apache.cloudstack.storage.image.store.ImageStoreImpl cannot be cast to org.apache.cloudstack.storage.datastore.db.ImageStoreVO

--
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

Mime
View raw message