java.lang.NullPointerException: null

Atlassian JIRA | Richard Friend [Atlassian] | 4 months ago
  1. 0

    h2. Summary Under some conditions when a Bitbucket Data Center clustered instance changes topology (i.e., node(s) leave or join), Hazelcast may log many errors of the form: {noformat} 2016-08-09 04:37:24,518 ERROR [hz.hazelcast.partition-operation.thread-0] c.h.p.impl.MigrationOperation [10.0.1.230]:5701 [bitbucket-data-center-1d2704] [3.5.2-atlassian-36] An exception occurred while executing migration operation com.hazelcast.map.impl.operation.MapReplicationOperation{serviceName='null', partitionId=16, callId=0, invocationTime=-1, waitTimeout=-1, callTimeout=9223372036854775807} java.lang.NullPointerException: null at com.hazelcast.map.impl.record.AbstractRecordWithStats.getCost(AbstractRecordWithStats.java:62) ~[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.map.impl.record.DataRecordWithStats.getCost(DataRecordWithStats.java:38) ~[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.map.impl.MapSizeEstimator.getCost(MapSizeEstimator.java:46) ~[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.map.impl.MapSizeEstimator.getCost(MapSizeEstimator.java:26) ~[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.map.impl.AbstractRecordStore.calculateRecordHeapCost(AbstractRecordStore.java:119) ~[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.map.impl.DefaultRecordStore.putRecord(DefaultRecordStore.java:178) ~[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.map.impl.operation.MapReplicationOperation.run(MapReplicationOperation.java:123) ~[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.partition.impl.MigrationOperation.runMigrationTask(MigrationOperation.java:177) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.partition.impl.MigrationOperation.migrate(MigrationOperation.java:155) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.partition.impl.MigrationOperation.doRun(MigrationOperation.java:93) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.partition.impl.MigrationOperation.run(MigrationOperation.java:79) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:137) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:315) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.processPacket(OperationThread.java:142) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.process(OperationThread.java:115) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.doRun(OperationThread.java:101) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.run(OperationThread.java:76) [hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36] 2016-08-09 04:37:24,529 WARN [hz.hazelcast.migration] c.h.p.InternalPartitionService [10.0.1.230]:5701 [bitbucket-data-center-1d2704] [3.5.2-atlassian-36] Migration failed: com.hazelcast.partition.MigrationInfo{partitionId=16, source=Address[10.0.0.98]:5701, destination=Address[10.0.1.230]:5701, master=Address[10.0.1.230]:5701, valid=true, processing=false} {noformat} If affected, the state of data in Hazelcast {{IMap}}'s in the instance may become incorrect, requiring a full cluster restart (bringing all nodes down and up around the same time) to resolve. h2. Workaround Shut down all nodes in the cluster, set the following property in {{bitbucket.properties}}: {noformat} hazelcast.statistics.enabled=true {noformat} and restart all cluster nodes. Do _not_ attempt to apply this workaround with a rolling (zero downtime) restart, as having a cluster with mixed configuration of the {{hazelcast.statistics.enabled}} property is one way to trigger the problem. h2. Solution Upgrade Bitbucket Data Center to 4.8.4 or higher.

    Atlassian JIRA | 4 months ago | Richard Friend [Atlassian]
    java.lang.NullPointerException: null
  2. 0

    HQL Exception (org.hibernate.dialect.Dialect$3)

    Stack Overflow | 4 years ago | Hari
    java.lang.NullPointerException: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error loading model properties in JPA on play 2.0.3

    Stack Overflow | 4 years ago | Chappies
    java.lang.NullPointerException: null
  5. 0

    Why lift can't find my "db.properties"

    Stack Overflow | 5 years ago | Freewind
    java.lang.NullPointerException: null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at com.hazelcast.map.impl.record.AbstractRecordWithStats.getCost()
    2. com.hazelcast.map
      MapReplicationOperation.run
      1. com.hazelcast.map.impl.record.AbstractRecordWithStats.getCost(AbstractRecordWithStats.java:62)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      2. com.hazelcast.map.impl.record.DataRecordWithStats.getCost(DataRecordWithStats.java:38)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      3. com.hazelcast.map.impl.MapSizeEstimator.getCost(MapSizeEstimator.java:46)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      4. com.hazelcast.map.impl.MapSizeEstimator.getCost(MapSizeEstimator.java:26)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      5. com.hazelcast.map.impl.AbstractRecordStore.calculateRecordHeapCost(AbstractRecordStore.java:119)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      6. com.hazelcast.map.impl.DefaultRecordStore.putRecord(DefaultRecordStore.java:178)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      7. com.hazelcast.map.impl.operation.MapReplicationOperation.run(MapReplicationOperation.java:123)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      7 frames
    3. Hazelcast
      MigrationOperation.run
      1. com.hazelcast.partition.impl.MigrationOperation.runMigrationTask(MigrationOperation.java:177)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      2. com.hazelcast.partition.impl.MigrationOperation.migrate(MigrationOperation.java:155)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      3. com.hazelcast.partition.impl.MigrationOperation.doRun(MigrationOperation.java:93)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      4. com.hazelcast.partition.impl.MigrationOperation.run(MigrationOperation.java:79)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      4 frames
    4. com.hazelcast.spi
      OperationThread.run
      1. com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:137)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      2. com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:315)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      3. com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.processPacket(OperationThread.java:142)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      4. com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.process(OperationThread.java:115)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      5. com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.doRun(OperationThread.java:101)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      6. com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.run(OperationThread.java:76)[hazelcast-3.5.2-atlassian-36.jar:3.5.2-atlassian-36]
      6 frames