[ https://issues.apache.org/jira/browse/CLOUDSTACK-1776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prasanna Santhanam updated CLOUDSTACK-1776: ------------------------------------------- Labels: integration-test (was: ) > NPE on listSecondaryStorageHostsInAllZones in Upgraded setup from 4.0 to 4.1 > ---------------------------------------------------------------------------- > > Key: CLOUDSTACK-1776 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1776 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Storage Controller > Affects Versions: 4.1.0 > Environment: RHEL 6.3 > Reporter: Sowmya Krishnan > Priority: Critical > Labels: integration-test > Fix For: 4.1.0 > > > Getting the following NPE while MS is starting up after upgrade from 4.0 to > 4.1. > Although MS didn't come up (due to already filed issue: CLOUDSTACK-1694) I > see the following NPE in the management server logs. > I am not yet sure if this causes any functional impact since I am not able to > login to the Management server due to the above issue. > Also, version table is not updated with upgraded version either. > mysql> select * from version; > +----+----------------------+---------------------+----------+ > | id | version | updated | step | > +----+----------------------+---------------------+----------+ > | 1 | 4.0.0.20130314045651 | 2013-03-21 15:38:50 | Complete | > +----+----------------------+---------------------+----------+ > 1 row in set (0.00 sec) > Following is the exception: > ===================== > 2013-03-22 12:10:49,605 ERROR [cloud.server.StatsCollector] > (StatsCollector-2:null) Error trying to retrieve storage stats > java.lang.NullPointerException > at com.cloud.utils.db.SearchCriteria2.create(SearchCriteria2.java:72) > at > com.cloud.storage.secondary.SecondaryStorageManagerImpl.listSecondaryStorageHostsInAllZones(SecondaryStorageManagerImpl.java:1395) > at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at > org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) > at > org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) > at > com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:45) > at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) > at > org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) > at $Proxy230.listSecondaryStorageHostsInAllZones(Unknown Source) > at > com.cloud.server.StatsCollector$StorageCollector.run(StatsCollector.java:277) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at > java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) > 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