Udara Liyanage created STRATOS-874:
--------------------------------------

             Summary: Grouping- class cast exception while deploying an 
application
                 Key: STRATOS-874
                 URL: https://issues.apache.org/jira/browse/STRATOS-874
             Project: Stratos
          Issue Type: Bug
            Reporter: Udara Liyanage


[2014-10-07 17:24:01,137] DEBUG 
{org.apache.stratos.manager.topology.model.TopologyClusterInformationModel} -   
Adding cluster [mytomcat.tomcat.domain] 
[2014-10-07 17:24:11,310] DEBUG 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  application monitor is going to be started for [application] test_app_1
[2014-10-07 17:24:11,317]  WARN 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  Application monitor creation failed for Application: 
java.lang.ClassCastException: 
org.apache.stratos.messaging.domain.topology.Application cannot be cast to 
org.apache.stratos.messaging.domain.topology.Group
        at 
org.apache.stratos.autoscaler.grouping.dependency.DependencyBuilder.buildDependency(DependencyBuilder.java:57)
        at org.apache.stratos.autoscaler.monitor.Monitor.<init>(Monitor.java:73)
        at 
org.apache.stratos.autoscaler.monitor.application.ApplicationMonitor.<init>(ApplicationMonitor.java:42)
        at 
org.apache.stratos.autoscaler.util.AutoscalerUtil.getApplicationMonitor(AutoscalerUtil.java:331)
        at 
org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver$ApplicationMonitorAdder.run(AutoscalerTopologyEventReceiver.java:583)
        at java.lang.Thread.run(Thread.java:662)
[2014-10-07 17:24:16,318] DEBUG 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  application monitor is going to be started for [application] test_app_1
[2014-10-07 17:24:16,318]  WARN 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  Application monitor creation failed for Application: 
java.lang.ClassCastException: 
org.apache.stratos.messaging.domain.topology.Application cannot be cast to 
org.apache.stratos.messaging.domain.topology.Group
        at 
org.apache.stratos.autoscaler.grouping.dependency.DependencyBuilder.buildDependency(DependencyBuilder.java:57)
        at org.apache.stratos.autoscaler.monitor.Monitor.<init>(Monitor.java:73)
        at 
org.apache.stratos.autoscaler.monitor.application.ApplicationMonitor.<init>(ApplicationMonitor.java:42)
        at 
org.apache.stratos.autoscaler.util.AutoscalerUtil.getApplicationMonitor(AutoscalerUtil.java:331)
        at 
org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver$ApplicationMonitorAdder.run(AutoscalerTopologyEventReceiver.java:583)
        at java.lang.Thread.run(Thread.java:662)
[2014-10-07 17:24:21,319] DEBUG 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  application monitor is going to be started for [application] test_app_1
[2014-10-07 17:24:21,319]  WARN 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  Application monitor creation failed for Application: 
java.lang.ClassCastException: 
org.apache.stratos.messaging.domain.topology.Application cannot be cast to 
org.apache.stratos.messaging.domain.topology.Group
        at 
org.apache.stratos.autoscaler.grouping.dependency.DependencyBuilder.buildDependency(DependencyBuilder.java:57)
        at org.apache.stratos.autoscaler.monitor.Monitor.<init>(Monitor.java:73)
        at 
org.apache.stratos.autoscaler.monitor.application.ApplicationMonitor.<init>(ApplicationMonitor.java:42)
        at 
org.apache.stratos.autoscaler.util.AutoscalerUtil.getApplicationMonitor(AutoscalerUtil.java:331)
        at 
org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver$ApplicationMonitorAdder.run(AutoscalerTopologyEventReceiver.java:583)
        at java.lang.Thread.run(Thread.java:662)
[2014-10-07 17:24:26,320] DEBUG 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  application monitor is going to be started for [application] test_app_1
[2014-10-07 17:24:26,320]  WARN 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  Application monitor creation failed for Application: 
java.lang.ClassCastException: 
org.apache.stratos.messaging.domain.topology.Application cannot be cast to 
org.apache.stratos.messaging.domain.topology.Group
        at 
org.apache.stratos.autoscaler.grouping.dependency.DependencyBuilder.buildDependency(DependencyBuilder.java:57)
        at org.apache.stratos.autoscaler.monitor.Monitor.<init>(Monitor.java:73)
        at 
org.apache.stratos.autoscaler.monitor.application.ApplicationMonitor.<init>(ApplicationMonitor.java:42)
        at 
org.apache.stratos.autoscaler.util.AutoscalerUtil.getApplicationMonitor(AutoscalerUtil.java:331)
        at 
org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver$ApplicationMonitorAdder.run(AutoscalerTopologyEventReceiver.java:583)
        at java.lang.Thread.run(Thread.java:662)
[2014-10-07 17:24:31,321] DEBUG 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  application monitor is going to be started for [application] test_app_1
[2014-10-07 17:24:31,322]  WARN 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  Application monitor creation failed for Application: 
java.lang.ClassCastException: 
org.apache.stratos.messaging.domain.topology.Application cannot be cast to 
org.apache.stratos.messaging.domain.topology.Group
        at 
org.apache.stratos.autoscaler.grouping.dependency.DependencyBuilder.buildDependency(DependencyBuilder.java:57)
        at org.apache.stratos.autoscaler.monitor.Monitor.<init>(Monitor.java:73)
        at 
org.apache.stratos.autoscaler.monitor.application.ApplicationMonitor.<init>(ApplicationMonitor.java:42)
        at 
org.apache.stratos.autoscaler.util.AutoscalerUtil.getApplicationMonitor(AutoscalerUtil.java:331)
        at 
org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver$ApplicationMonitorAdder.run(AutoscalerTopologyEventReceiver.java:583)
        at java.lang.Thread.run(Thread.java:662)
Exception in thread "Thread-64" java.lang.NullPointerException
        at 
org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver$ApplicationMonitorAdder.run(AutoscalerTopologyEventReceiver.java:596)
        at java.lang.Thread.run(Thread.java:662)
[2014-10-07 17:24:38,127] DEBUG 
{org.apache.stratos.autoscaler.message.receiver.topology.AutoscalerTopologyEventReceiver}
 -  Application monitor thread has been started successfully: [application] 
test_app_1 
[2014-10-07 17:25:01,003] DEBUG 
{org.apache.stratos.manager.publisher.TenantSynzhronizerTask} -  Publishing 
complete tenant event
[2014-10-07 17:25:01,005] DEBUG 
{org.apache.stratos.cloud.controller.topology.TopologySynchronizerTask} -  
Executing topology synchronization task
[2014-10-07 17:25:01,006] DEBUG 
{org.apache.stratos.cloud.controller.topology.TopologyEventPublisher} -  
Publishing complete topology event




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to