stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reka Thirunavukkarasu <r...@wso2.com>
Subject Re: NPE while undeploying an application
Date Sun, 09 Nov 2014 07:31:47 GMT
This is fixed now...

On Fri, Nov 7, 2014 at 7:27 PM, Udara Liyanage <udara@wso2.com> wrote:

>
> Hi Reka, Isuru,
>
> I got the following NPE when I undeployed an app. While debuging I noticed
> that the appId of the moniter is not set, thus application become null.
>
>
>    1.         String appId = monitor.getAppId();
>    2.                    Application application = ApplicationHolder.
>    getApplications().getApplication(appId)
>
>
> id: mymysql.mysql.domain and of cartridge type: mysql
> [2014-11-07 19:11:57,719]  INFO
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
>  Member is terminated: MemberContext
> [memberId=mymysql.mysql.domainb79e62a8-0e0a-435e-8dd4-2a4035c7596a,
> nodeId=ap-southeast-1/i-a4cb0d8f, instanceId=null,
> clusterId=mymysql.mysql.domain, partition=Partition [id=p1,
> description=null, isPublic=false, provider=ec2, partitionMin=1,
> partitionMax=3, properties=Properties
> [properties=[Lorg.apache.stratos.common.Property;@38c5caeb]],
> cartridgeType=mysql, privateIpAddress=10.142.246.63,
> publicIpAddress=54.179.238.59, allocatedIpAddress=null,
> initTime=1415367587874, lbClusterId=null, networkPartitionId=ec2,
> properties=Properties
> [properties=[Lorg.apache.stratos.common.Property;@418d276b]]
> [2014-11-07 19:11:57,778]  INFO
> {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher} -
>  Publishing member terminated event: [service] mysql [cluster]
> mymysql.mysql.domain [network-partition] ec2 [partition] p1 [member]
> mymysql.mysql.domainb79e62a8-0e0a-435e-8dd4-2a4035c7596a [groupId] null
> [2014-11-07 19:11:57,905]  INFO
> {org.apache.stratos.manager.topology.receiver.StratosManagerTopologyEventReceiver}
> -  [MemberTerminatedEventListener] Received: class
> org.apache.stratos.messaging.event.topology.MemberTerminatedEvent
> [2014-11-07 19:11:57,908]  INFO
> {org.apache.stratos.messaging.message.processor.topology.MemberTerminatedMessageProcessor}
> -  Member terminated: [service] mysql [cluster] mymysql.mysql.domain
> [member] mymysql.mysql.domainb79e62a8-0e0a-435e-8dd4-2a4035c7596a
> [2014-11-07 19:11:57,908]  INFO
> {org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor} -  Member
> stat context has been removed successfully: [member]
> mymysql.mysql.domainb79e62a8-0e0a-435e-8dd4-2a4035c7596a
> [2014-11-07 19:11:57,909]  WARN
> {org.apache.stratos.messaging.message.processor.topology.MemberTerminatedMessageProcessor}
> -  Member already terminated: [service] mysql [cluster]
> mymysql.mysql.domain [member]
> mymysql.mysql.domainb79e62a8-0e0a-435e-8dd4-2a4035c7596a
> [2014-11-07 19:12:18,109]  WARN
> {org.apache.stratos.messaging.message.receiver.applications.ApplicationsEventMessageListener}
> -  Connection is lost
> Connection lost (32109) - java.net.SocketException: Connection reset
> at
> org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:138)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(SocketInputStream.java:168)
> at java.net.SocketInputStream.read(SocketInputStream.java:182)
> at java.io.DataInputStream.readByte(DataInputStream.java:248)
> at
> org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:56)
> at
> org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:100)
> ... 1 more
> [2014-11-07 19:12:49,642]  INFO
> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Trying to
> spawn an instance via cloud controller: [cluster] mymysql.mysql.domain
> [partition] p1 [lb-cluster] null [network-partition-id] ec2
>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Mime
View raw message