java.lang.NullPointerException: null

GitHub | dx9 | 2 months ago

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    null

    at io.cattle.platform.util.net.NetUtils.ip2Long()
  2. io.cattle.platform
    ProcessEventListenerImpl.processExecute
    1. io.cattle.platform.util.net.NetUtils.ip2Long(NetUtils.java:8)[cattle-framework-utils-0.5.0-SNAPSHOT.jar:na]
    2. io.cattle.platform.resource.pool.subnet.SubnetAddressGenerator.fromString(SubnetAddressGenerator.java:14)[cattle-iaas-resource-pool-0.5.0-SNAPSHOT.jar:na]
    3. io.cattle.platform.resource.pool.impl.AbstractStringRangeGenerator.<init>(AbstractStringRangeGenerator.java:17)[cattle-iaas-resource-pool-0.5.0-SNAPSHOT.jar:na]
    4. io.cattle.platform.resource.pool.subnet.SubnetAddressGenerator.<init>(SubnetAddressGenerator.java:9)[cattle-iaas-resource-pool-0.5.0-SNAPSHOT.jar:na]
    5. io.cattle.platform.resource.pool.subnet.SubnetAddressGeneratorFactory.createGenerator(SubnetAddressGeneratorFactory.java:17)[cattle-iaas-resource-pool-0.5.0-SNAPSHOT.jar:na]
    6. io.cattle.platform.resource.pool.impl.AbstractTypeAndQualifierPooledItemGeneratorFactory.getGenerator(AbstractTypeAndQualifierPooledItemGeneratorFactory.java:28)[cattle-iaas-resource-pool-0.5.0-SNAPSHOT.jar:na]
    7. io.cattle.platform.resource.pool.impl.ResourcePoolManagerImpl.getItem(ResourcePoolManagerImpl.java:138)[cattle-iaas-resource-pool-0.5.0-SNAPSHOT.jar:na]
    8. io.cattle.platform.resource.pool.impl.ResourcePoolManagerImpl.allocateResource(ResourcePoolManagerImpl.java:56)[cattle-iaas-resource-pool-0.5.0-SNAPSHOT.jar:na]
    9. io.cattle.platform.resource.pool.impl.ResourcePoolManagerImpl.allocateOneResource(ResourcePoolManagerImpl.java:130)[cattle-iaas-resource-pool-0.5.0-SNAPSHOT.jar:na]
    10. io.cattle.platform.servicediscovery.service.impl.ServiceDiscoveryServiceImpl.allocateIpForService(ServiceDiscoveryServiceImpl.java:229)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    11. io.cattle.platform.servicediscovery.service.impl.ServiceDiscoveryServiceImpl.allocateIpToServiceIndex(ServiceDiscoveryServiceImpl.java:528)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    12. io.cattle.platform.servicediscovery.deployment.impl.unit.DefaultDeploymentUnitInstance.createServiceIndex(DefaultDeploymentUnitInstance.java:346)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    13. io.cattle.platform.servicediscovery.deployment.impl.unit.DefaultDeploymentUnitInstance.<init>(DefaultDeploymentUnitInstance.java:74)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    14. io.cattle.platform.servicediscovery.deployment.impl.unit.DeploymentUnitInstanceFactoryImpl.createDeploymentUnitInstance(DeploymentUnitInstanceFactoryImpl.java:44)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    15. io.cattle.platform.servicediscovery.deployment.impl.unit.DeploymentUnit.createMissingUnitInstances(DeploymentUnit.java:166)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    16. io.cattle.platform.servicediscovery.deployment.impl.unit.DeploymentUnit.create(DeploymentUnit.java:299)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    17. io.cattle.platform.servicediscovery.deployment.ServiceDeploymentPlanner.deploy(ServiceDeploymentPlanner.java:150)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    18. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl.startUnits(DeploymentManagerImpl.java:360)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    19. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl$2.run(DeploymentManagerImpl.java:335)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    20. io.cattle.platform.activity.ActivityService.run(ActivityService.java:43)[cattle-activity-log-0.5.0-SNAPSHOT.jar:na]
    21. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl.activateDeploymentUnits(DeploymentManagerImpl.java:332)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    22. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:263)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    23. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl.reconcileDeployment(DeploymentManagerImpl.java:129)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    24. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl$1.doWithLock(DeploymentManagerImpl.java:118)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    25. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl$1.doWithLock(DeploymentManagerImpl.java:112)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    26. io.cattle.platform.lock.impl.AbstractLockManagerImpl$3.doWithLock(AbstractLockManagerImpl.java:40)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    27. io.cattle.platform.lock.impl.LockManagerImpl.doLock(LockManagerImpl.java:33)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    28. io.cattle.platform.lock.impl.AbstractLockManagerImpl.lock(AbstractLockManagerImpl.java:13)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    29. io.cattle.platform.lock.impl.AbstractLockManagerImpl.lock(AbstractLockManagerImpl.java:37)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    30. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl.activate(DeploymentManagerImpl.java:112)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    31. io.cattle.platform.servicediscovery.deployment.impl.DeploymentManagerImpl.activate(DeploymentManagerImpl.java:98)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    32. io.cattle.platform.servicediscovery.process.ServiceUpdateActivate$1.run(ServiceUpdateActivate.java:73)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    33. io.cattle.platform.activity.ActivityService.run(ActivityService.java:43)[cattle-activity-log-0.5.0-SNAPSHOT.jar:na]
    34. io.cattle.platform.servicediscovery.process.ServiceUpdateActivate.handle(ServiceUpdateActivate.java:70)[cattle-iaas-service-discovery-server-0.5.0-SNAPSHOT.jar:na]
    35. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.runHandler(DefaultProcessInstanceImpl.java:427)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    36. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl$4.execute(DefaultProcessInstanceImpl.java:378)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    37. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl$4.execute(DefaultProcessInstanceImpl.java:372)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    38. io.cattle.platform.engine.idempotent.Idempotent.execute(Idempotent.java:54)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    39. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.runHandlers(DefaultProcessInstanceImpl.java:372)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    40. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.runLogic(DefaultProcessInstanceImpl.java:474)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    41. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.runWithProcessLock(DefaultProcessInstanceImpl.java:308)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    42. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl$2.doWithLockNoResult(DefaultProcessInstanceImpl.java:247)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    43. io.cattle.platform.lock.LockCallbackNoReturn.doWithLock(LockCallbackNoReturn.java:7)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    44. io.cattle.platform.lock.LockCallbackNoReturn.doWithLock(LockCallbackNoReturn.java:3)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    45. io.cattle.platform.lock.impl.AbstractLockManagerImpl$3.doWithLock(AbstractLockManagerImpl.java:40)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    46. io.cattle.platform.lock.impl.LockManagerImpl.doLock(LockManagerImpl.java:33)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    47. io.cattle.platform.lock.impl.AbstractLockManagerImpl.lock(AbstractLockManagerImpl.java:13)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    48. io.cattle.platform.lock.impl.AbstractLockManagerImpl.lock(AbstractLockManagerImpl.java:37)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    49. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.acquireLockAndRun(DefaultProcessInstanceImpl.java:244)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    50. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.runDelegateLoop(DefaultProcessInstanceImpl.java:186)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    51. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.executeWithProcessInstanceLock(DefaultProcessInstanceImpl.java:159)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    52. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl$1.doWithLock(DefaultProcessInstanceImpl.java:108)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    53. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl$1.doWithLock(DefaultProcessInstanceImpl.java:105)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    54. io.cattle.platform.lock.impl.AbstractLockManagerImpl$3.doWithLock(AbstractLockManagerImpl.java:40)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    55. io.cattle.platform.lock.impl.LockManagerImpl.doLock(LockManagerImpl.java:33)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    56. io.cattle.platform.lock.impl.AbstractLockManagerImpl.lock(AbstractLockManagerImpl.java:13)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    57. io.cattle.platform.lock.impl.AbstractLockManagerImpl.lock(AbstractLockManagerImpl.java:37)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    58. io.cattle.platform.engine.process.impl.DefaultProcessInstanceImpl.execute(DefaultProcessInstanceImpl.java:105)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    59. io.cattle.platform.engine.eventing.impl.ProcessEventListenerImpl.processExecute(ProcessEventListenerImpl.java:75)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    60. io.cattle.platform.engine.eventing.impl.ProcessEventListenerImpl.processExecute(ProcessEventListenerImpl.java:57)[cattle-framework-engine-0.5.0-SNAPSHOT.jar:na]
    60 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor540.invoke(Unknown Source)[na:na]
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_111]
    3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_111]
    3 frames
  4. io.cattle.platform
    AbstractThreadPoolingEventService$2.doRun
    1. io.cattle.platform.eventing.annotation.MethodInvokingListener$1.doWithLockNoResult(MethodInvokingListener.java:76)[cattle-framework-eventing-0.5.0-SNAPSHOT.jar:na]
    2. io.cattle.platform.lock.LockCallbackNoReturn.doWithLock(LockCallbackNoReturn.java:7)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    3. io.cattle.platform.lock.LockCallbackNoReturn.doWithLock(LockCallbackNoReturn.java:3)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    4. io.cattle.platform.lock.impl.AbstractLockManagerImpl$3.doWithLock(AbstractLockManagerImpl.java:40)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    5. io.cattle.platform.lock.impl.LockManagerImpl.doLock(LockManagerImpl.java:33)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    6. io.cattle.platform.lock.impl.AbstractLockManagerImpl.lock(AbstractLockManagerImpl.java:13)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    7. io.cattle.platform.lock.impl.AbstractLockManagerImpl.lock(AbstractLockManagerImpl.java:37)[cattle-framework-lock-0.5.0-SNAPSHOT.jar:na]
    8. io.cattle.platform.eventing.annotation.MethodInvokingListener.onEvent(MethodInvokingListener.java:72)[cattle-framework-eventing-0.5.0-SNAPSHOT.jar:na]
    9. io.cattle.platform.eventing.impl.AbstractThreadPoolingEventService$2.doRun(AbstractThreadPoolingEventService.java:135)[cattle-framework-eventing-0.5.0-SNAPSHOT.jar:na]
    9 frames
  5. org.apache.cloudstack
    ManagedContextRunnable.run
    1. org.apache.cloudstack.managed.context.NoExceptionRunnable.runInContext(NoExceptionRunnable.java:15)[cattle-framework-managed-context-0.5.0-SNAPSHOT.jar:na]
    2. org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)[cattle-framework-managed-context-0.5.0-SNAPSHOT.jar:na]
    3. org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)[cattle-framework-managed-context-0.5.0-SNAPSHOT.jar:na]
    4. org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:108)[cattle-framework-managed-context-0.5.0-SNAPSHOT.jar:na]
    5. org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)[cattle-framework-managed-context-0.5.0-SNAPSHOT.jar:na]
    6. org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)[cattle-framework-managed-context-0.5.0-SNAPSHOT.jar:na]
    6 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_111]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_111]
    3. java.lang.Thread.run(Thread.java:745)[na:1.7.0_111]
    3 frames