You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Imesh Gunaratne <im...@apache.org> on 2014/12/14 07:38:15 UTC

NPE in Cloud Controller TopologyBuilder

Hi Devs,

I'm seeing the below error in the Topology Builder:

[2014-12-14 11:59:02,329]  INFO
{org.apache.stratos.cloud.controller.messaging.topology.TopologyEventPublisher}
-  Publishing member terminated event: [service] tomcat [cluster]
tomcat.tomcat.domain  [instance-id] single-cartridge-app_1
[network-partition] network-p1 [partition] p1 [member]
tomcat.tomcat.domain470d1b7a-4493-4a29-884c-b3818d8fd8a6 [groupId] null
[2014-12-14 11:59:02,345] ERROR
{org.apache.stratos.cloud.controller.services.impl.InstanceTerminator} -
 Instance termination failed! MemberContext
[memberId=tomcat.tomcat.domain470d1b7a-4493-4a29-884c-b3818d8fd8a6,
nodeId=89640c15-8698-4eb8-82b4-78cf899f2c72,
instanceId=single-cartridge-app_1, clusterId=tomcat.tomcat.domain,
partition=Partition [id=p1, description=null, isPublic=false,
provider=mock, partitionMin=0, partitionMax=0, properties=Properties
[properties=[Property [name=region, value=default]]]],
cartridgeType=tomcat, privateIpAddress=10.0.0.4, publicIpAddress=20.0.0.4,
allocatedIpAddress=null, initTime=1418535571993, lbClusterId=null,
networkPartitionId=network-p1, properties=Properties [properties=[Property
[name=PRIMARY, value=false], Property [name=MIN_COUNT, value=1]]]]
java.lang.NullPointerException
at
org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder.handleMemberTerminated(TopologyBuilder.java:743)
at
org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.executeMemberTerminationPostProcess(CloudControllerServiceUtil.java:67)
at
org.apache.stratos.cloud.controller.services.impl.InstanceTerminator.run(InstanceTerminator.java:59)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)


Thanks

-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: NPE in Cloud Controller TopologyBuilder

Posted by Imesh Gunaratne <im...@apache.org>.
I did a quick fix to avoid this but need to check why this is happening.

Thanks

On Sun, Dec 14, 2014 at 1:03 PM, Lahiru Sandaruwan <la...@wso2.com> wrote:
>
> I'm also experiencing this.
>
> Thanks.
>
> On Sun, Dec 14, 2014 at 12:08 PM, Imesh Gunaratne <im...@apache.org>
> wrote:
>>
>> Hi Devs,
>>
>> I'm seeing the below error in the Topology Builder:
>>
>> [2014-12-14 11:59:02,329]  INFO
>> {org.apache.stratos.cloud.controller.messaging.topology.TopologyEventPublisher}
>> -  Publishing member terminated event: [service] tomcat [cluster]
>> tomcat.tomcat.domain  [instance-id] single-cartridge-app_1
>> [network-partition] network-p1 [partition] p1 [member]
>> tomcat.tomcat.domain470d1b7a-4493-4a29-884c-b3818d8fd8a6 [groupId] null
>> [2014-12-14 11:59:02,345] ERROR
>> {org.apache.stratos.cloud.controller.services.impl.InstanceTerminator} -
>>  Instance termination failed! MemberContext
>> [memberId=tomcat.tomcat.domain470d1b7a-4493-4a29-884c-b3818d8fd8a6,
>> nodeId=89640c15-8698-4eb8-82b4-78cf899f2c72,
>> instanceId=single-cartridge-app_1, clusterId=tomcat.tomcat.domain,
>> partition=Partition [id=p1, description=null, isPublic=false,
>> provider=mock, partitionMin=0, partitionMax=0, properties=Properties
>> [properties=[Property [name=region, value=default]]]],
>> cartridgeType=tomcat, privateIpAddress=10.0.0.4, publicIpAddress=20.0.0.4,
>> allocatedIpAddress=null, initTime=1418535571993, lbClusterId=null,
>> networkPartitionId=network-p1, properties=Properties [properties=[Property
>> [name=PRIMARY, value=false], Property [name=MIN_COUNT, value=1]]]]
>> java.lang.NullPointerException
>> at
>> org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder.handleMemberTerminated(TopologyBuilder.java:743)
>> at
>> org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.executeMemberTerminationPostProcess(CloudControllerServiceUtil.java:67)
>> at
>> org.apache.stratos.cloud.controller.services.impl.InstanceTerminator.run(InstanceTerminator.java:59)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>> Thanks
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>

-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: NPE in Cloud Controller TopologyBuilder

Posted by Lahiru Sandaruwan <la...@wso2.com>.
I'm also experiencing this.

Thanks.

On Sun, Dec 14, 2014 at 12:08 PM, Imesh Gunaratne <im...@apache.org> wrote:
>
> Hi Devs,
>
> I'm seeing the below error in the Topology Builder:
>
> [2014-12-14 11:59:02,329]  INFO
> {org.apache.stratos.cloud.controller.messaging.topology.TopologyEventPublisher}
> -  Publishing member terminated event: [service] tomcat [cluster]
> tomcat.tomcat.domain  [instance-id] single-cartridge-app_1
> [network-partition] network-p1 [partition] p1 [member]
> tomcat.tomcat.domain470d1b7a-4493-4a29-884c-b3818d8fd8a6 [groupId] null
> [2014-12-14 11:59:02,345] ERROR
> {org.apache.stratos.cloud.controller.services.impl.InstanceTerminator} -
>  Instance termination failed! MemberContext
> [memberId=tomcat.tomcat.domain470d1b7a-4493-4a29-884c-b3818d8fd8a6,
> nodeId=89640c15-8698-4eb8-82b4-78cf899f2c72,
> instanceId=single-cartridge-app_1, clusterId=tomcat.tomcat.domain,
> partition=Partition [id=p1, description=null, isPublic=false,
> provider=mock, partitionMin=0, partitionMax=0, properties=Properties
> [properties=[Property [name=region, value=default]]]],
> cartridgeType=tomcat, privateIpAddress=10.0.0.4, publicIpAddress=20.0.0.4,
> allocatedIpAddress=null, initTime=1418535571993, lbClusterId=null,
> networkPartitionId=network-p1, properties=Properties [properties=[Property
> [name=PRIMARY, value=false], Property [name=MIN_COUNT, value=1]]]]
> java.lang.NullPointerException
> at
> org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder.handleMemberTerminated(TopologyBuilder.java:743)
> at
> org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.executeMemberTerminationPostProcess(CloudControllerServiceUtil.java:67)
> at
> org.apache.stratos.cloud.controller.services.impl.InstanceTerminator.run(InstanceTerminator.java:59)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
>
> Thanks
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>


-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146