You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Wido den Hollander <wi...@widodh.nl> on 2014/08/15 15:10:41 UTC

[ACS441] MS doesn't start due to ClassNotFound Exception

Hi,

On a test setup I'm trying to upgrade from 4.4.0 to 4.4.1 and I'm 
hitting what it seems like CS-7117 [0]

A snippet from my syslog:

Aug 15 14:05:50 cs-management jsvc.exec[27434]: Exception in thread 
"CapacityChecker"
Aug 15 14:05:50 cs-management jsvc.exec[27434]: 
java.lang.NoClassDefFoundError: 
org/apache/cloudstack/managed/context/ManagedContextTimerTask$1
Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at 
org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at 
java.util.TimerThread.mainLoop(Timer.java:555)
Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at 
java.util.TimerThread.run(Timer.java:505)
Aug 15 14:05:50 cs-management jsvc.exec[27434]: Caused by: 
java.lang.ClassNotFoundException: 
org.apache.cloudstack.managed.context.ManagedContextTimerTask$1
Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011... 3 more

Has anybody else seen this? I'm trying to find the root cause, but no 
luck yet.

Wido

[0]: https://issues.apache.org/jira/browse/CLOUDSTACK-7117

Re: [ACS441] MS doesn't start due to ClassNotFound Exception

Posted by Wido den Hollander <wi...@widodh.nl>.

On 08/18/2014 10:34 PM, Rohit Yadav wrote:
> Thanks for the update on this Wido. Can you share which field that was so we can fix the upgrade path or help fix it?
>

It was the 'display' field of the 'snapshot_policy' table. But I'm not 
sure if the update was to blame since the system was already running 
with 4.4.0 code.

It could be that I messed something up with the upgrade, can't be 100% 
sure about that.

Wido

> Cheers.
>
> On 18-Aug-2014, at 10:11 pm, Wido den Hollander <wi...@widodh.nl> wrote:
>
>>
>>
>> On 08/15/2014 03:10 PM, Wido den Hollander wrote:
>>> Hi,
>>>
>>> On a test setup I'm trying to upgrade from 4.4.0 to 4.4.1 and I'm
>>> hitting what it seems like CS-7117 [0]
>>>
>>> A snippet from my syslog:
>>>
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: Exception in thread
>>> "CapacityChecker"
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]:
>>> java.lang.NoClassDefFoundError:
>>> org/apache/cloudstack/managed/context/ManagedContextTimerTask$1
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>>> org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
>>>
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>>> java.util.TimerThread.mainLoop(Timer.java:555)
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>>> java.util.TimerThread.run(Timer.java:505)
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: Caused by:
>>> java.lang.ClassNotFoundException:
>>> org.apache.cloudstack.managed.context.ManagedContextTimerTask$1
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
>>>
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
>>>
>>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011... 3 more
>>>
>>> Has anybody else seen this? I'm trying to find the root cause, but no
>>> luck yet.
>>>
>>
>> So this was actually a SQL problem where a field didn't exist. It only showed up in my localhost-*.log in /var/log/cloudstack/management
>>
>> Pretty confusing and hard to find, but that was the problem.
>>
>> Wido
>>
>>> Wido
>>>
>>> [0]: https://issues.apache.org/jira/browse/CLOUDSTACK-7117
>
> Regards,
> Rohit Yadav
> Software Architect, ShapeBlue
> M. +41 779015219 | rohit.yadav@shapeblue.com
> Blog: bhaisaab.org | Twitter: @_bhaisaab
>
>
>
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>

Re: [ACS441] MS doesn't start due to ClassNotFound Exception

Posted by Rohit Yadav <ro...@shapeblue.com>.
Thanks for the update on this Wido. Can you share which field that was so we can fix the upgrade path or help fix it?

Cheers.

On 18-Aug-2014, at 10:11 pm, Wido den Hollander <wi...@widodh.nl> wrote:

>
>
> On 08/15/2014 03:10 PM, Wido den Hollander wrote:
>> Hi,
>>
>> On a test setup I'm trying to upgrade from 4.4.0 to 4.4.1 and I'm
>> hitting what it seems like CS-7117 [0]
>>
>> A snippet from my syslog:
>>
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: Exception in thread
>> "CapacityChecker"
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]:
>> java.lang.NoClassDefFoundError:
>> org/apache/cloudstack/managed/context/ManagedContextTimerTask$1
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>> org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
>>
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>> java.util.TimerThread.mainLoop(Timer.java:555)
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>> java.util.TimerThread.run(Timer.java:505)
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: Caused by:
>> java.lang.ClassNotFoundException:
>> org.apache.cloudstack.managed.context.ManagedContextTimerTask$1
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
>>
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
>>
>> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011... 3 more
>>
>> Has anybody else seen this? I'm trying to find the root cause, but no
>> luck yet.
>>
>
> So this was actually a SQL problem where a field didn't exist. It only showed up in my localhost-*.log in /var/log/cloudstack/management
>
> Pretty confusing and hard to find, but that was the problem.
>
> Wido
>
>> Wido
>>
>> [0]: https://issues.apache.org/jira/browse/CLOUDSTACK-7117

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +41 779015219 | rohit.yadav@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: [ACS441] MS doesn't start due to ClassNotFound Exception

Posted by Wido den Hollander <wi...@widodh.nl>.

On 08/15/2014 03:10 PM, Wido den Hollander wrote:
> Hi,
>
> On a test setup I'm trying to upgrade from 4.4.0 to 4.4.1 and I'm
> hitting what it seems like CS-7117 [0]
>
> A snippet from my syslog:
>
> Aug 15 14:05:50 cs-management jsvc.exec[27434]: Exception in thread
> "CapacityChecker"
> Aug 15 14:05:50 cs-management jsvc.exec[27434]:
> java.lang.NoClassDefFoundError:
> org/apache/cloudstack/managed/context/ManagedContextTimerTask$1
> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
> org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
>
> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
> java.util.TimerThread.mainLoop(Timer.java:555)
> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
> java.util.TimerThread.run(Timer.java:505)
> Aug 15 14:05:50 cs-management jsvc.exec[27434]: Caused by:
> java.lang.ClassNotFoundException:
> org.apache.cloudstack.managed.context.ManagedContextTimerTask$1
> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
>
> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
>
> Aug 15 14:05:50 cs-management jsvc.exec[27434]: #011... 3 more
>
> Has anybody else seen this? I'm trying to find the root cause, but no
> luck yet.
>

So this was actually a SQL problem where a field didn't exist. It only 
showed up in my localhost-*.log in /var/log/cloudstack/management

Pretty confusing and hard to find, but that was the problem.

Wido

> Wido
>
> [0]: https://issues.apache.org/jira/browse/CLOUDSTACK-7117