java.lang.IllegalStateException: File has been unmapped:blah/neo4j/data/databases/graph.db/neostore.counts.db.b

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Meatballs1
, 1 year ago
File has been unmapped:blah/neo4j/data/databases/graph.db/neostore.counts.db.b
via GitHub by baaa
, 4 months ago
File has been unmapped: /data/databases/graph.db/neostore.counts.db.b
via GitHub by mburak
, 11 months ago
File has been unmapped: /Users/matiasburak/Development/neo4j-community-3.1.0/data/databases/graph.db/neostore.counts.db.b
java.lang.IllegalStateException: File has been unmapped:blah/neo4j/data/databases/graph.db/neostore.counts.db.b
at org.neo4j.io.pagecache.impl.muninn.MuninnPagedFile.getLastPageId(MuninnPagedFile.java:380)
at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.assertPagedFileStillMappedAndGetIdOfLastPage(MuninnPageCursor.java:369)
at org.neo4j.kernel.impl.store.kvstore.KeyValueStoreFile.scan(KeyValueStoreFile.java:87)
at org.neo4j.kernel.impl.store.kvstore.ReadableState$1.lookup(ReadableState.java:67)
at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState.performLookup(ConcurrentMapState.java:354)
at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState.lookup(ConcurrentMapState.java:342)
at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState.performLookup(ConcurrentMapState.java:354)
at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState.access$300(ConcurrentMapState.java:33)
at org.neo4j.kernel.impl.store.kvstore.ConcurrentMapState$Prototype.lookup(ConcurrentMapState.java:277)
at org.neo4j.kernel.impl.store.kvstore.RotationState$Rotation.lookup(RotationState.java:201)
at org.neo4j.kernel.impl.store.kvstore.AbstractKeyValueStore.lookup(AbstractKeyValueStore.java:86)
at org.neo4j.kernel.impl.store.counts.CountsTracker.get(CountsTracker.java:165)
at org.neo4j.kernel.impl.store.counts.CountsTracker.nodeCount(CountsTracker.java:176)
at org.neo4j.kernel.impl.api.store.DiskLayer.countsForNode(DiskLayer.java:562)
at org.neo4j.kernel.impl.api.store.CacheLayer.countsForNode(CacheLayer.java:351)
at org.neo4j.kernel.impl.api.StateHandlingStatementOperations.countsForNodeWithoutTxState(StateHandlingStatementOperations.java:1193)
at org.neo4j.cypher.internal.spi.v3_0.TransactionBoundGraphStatistics$BaseTransactionBoundGraphStatistics.indexSelectivity(TransactionBoundGraphStatistics.scala:39)
at org.neo4j.cypher.internal.compiler.v3_0.spi.DelegatingGraphStatistics.indexSelectivity(GraphStatistics.scala:66)
at org.neo4j.cypher.internal.compiler.v3_0.spi.InstrumentedGraphStatistics.indexSelectivity(InstrumentedGraphStatistics.scala:77)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator$$anonfun$5.apply(ExpressionSelectivityCalculator.scala:139)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator$$anonfun$5.apply(ExpressionSelectivityCalculator.scala:136)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator.calculateSelectivityForPropertyEquality(ExpressionSelectivityCalculator.scala:135)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator.apply(ExpressionSelectivityCalculator.scala:55)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$4.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:101)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$4.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:101)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator.calculateSelectivityForPropertyEquality(ExpressionSelectivityCalculator.scala:135)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.ExpressionSelectivityCalculator.apply(ExpressionSelectivityCalculator.scala:55)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$4.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:101)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$4.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:101)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel.calculateSelectivity(AssumeIndependenceQueryGraphCardinalityModel.scala:101)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel.org$neo4j$cypher$internal$compiler$v3_0$planner$logical$cardinality$assumeIndependence$AssumeIndependenceQueryGraphCardinalityModel$$cardinalityForQueryGraph(AssumeIndependenceQueryGraphCardinalityModel.scala:77)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$1.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:46)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel$$anonfun$1.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:46)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:46)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.cardinality.assumeIndependence.AssumeIndependenceQueryGraphCardinalityModel.apply(AssumeIndependenceQueryGraphCardinalityModel.scala:31)
at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35)
at org.neo4j.cypher.internal.compiler.v3_0.helpers.CachedFunction$$anon$1$$anonfun$apply$1.apply(CachedFunction.scala:30)
at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:194)
at org.neo4j.cypher.internal.compiler.v3_0.helpers.CachedFunction$$anon$1.apply(CachedFunction.scala:30)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel.org$neo4j$cypher$internal$compiler$v3_0$planner$logical$StatisticsBackedCardinalityModel$$calculateCardinalityForQueryGraph(StatisticsBackedCardinalityModel.scala:95)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel$$anonfun$1.apply(StatisticsBackedCardinalityModel.scala:36)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel$$anonfun$1.apply(StatisticsBackedCardinalityModel.scala:34)
at org.neo4j.cypher.internal.compiler.v3_0.planner.PlannerQuery$class.recurse$1(PlannerQuery.scala:145)
at org.neo4j.cypher.internal.compiler.v3_0.planner.PlannerQuery$class.fold(PlannerQuery.scala:153)
at org.neo4j.cypher.internal.compiler.v3_0.planner.RegularPlannerQuery.fold(PlannerQuery.scala:39)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel.apply(StatisticsBackedCardinalityModel.scala:34)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.StatisticsBackedCardinalityModel.apply(StatisticsBackedCardinalityModel.scala:31)
at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35)
at org.neo4j.cypher.internal.compiler.v3_0.helpers.CachedFunction$$anon$1$$anonfun$apply$1.apply(CachedFunction.scala:30)
at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:194)
at org.neo4j.cypher.internal.compiler.v3_0.helpers.CachedFunction$$anon$1.apply(CachedFunction.scala:30)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.LogicalPlanProducer.estimatePlannerQuery(LogicalPlanProducer.scala:641)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.LogicalPlanProducer$$anonfun$planStarProjection$1.apply(LogicalPlanProducer.scala:379)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.LogicalPlanProducer$$anonfun$planStarProjection$1.apply(LogicalPlanProducer.scala:379)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.plans.LogicalPlan.updateSolved(LogicalPlan.scala:77)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.LogicalPlanProducer.planStarProjection(LogicalPlanProducer.scala:379)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.steps.projection$.apply(projection.scala:42)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanEventHorizon$.apply(PlanEventHorizon.scala:47)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanEventHorizon$.apply(PlanEventHorizon.scala:31)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanWithTail.apply(PlanWithTail.scala:46)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanWithTail.apply(PlanWithTail.scala:29)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanSingleQuery.apply(PlanSingleQuery.scala:47)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.PlanSingleQuery.apply(PlanSingleQuery.scala:30)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.DefaultQueryPlanner$$anonfun$2.apply(QueryPlanner.scala:51)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.DefaultQueryPlanner$$anonfun$2.apply(QueryPlanner.scala:51)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.DefaultQueryPlanner.planQueries(QueryPlanner.scala:51)
at org.neo4j.cypher.internal.compiler.v3_0.planner.logical.DefaultQueryPlanner.plan(QueryPlanner.scala:36)
at org.neo4j.cypher.internal.compiler.v3_0.planner.CostBasedExecutablePlanBuilder.produceLogicalPlan(CostBasedExecutablePlanBuilder.scala:95)
at org.neo4j.cypher.internal.compiler.v3_0.planner.CostBasedExecutablePlanBuilder$$anonfun$1.apply(CostBasedExecutablePlanBuilder.scala:71)
at org.neo4j.cypher.internal.compiler.v3_0.planner.CostBasedExecutablePlanBuilder$$anonfun$1.apply(CostBasedExecutablePlanBuilder.scala:71)
at org.neo4j.cypher.internal.compiler.v3_0.helpers.package$$anonfun$closing$1.apply(package.scala:29)
at org.neo4j.cypher.internal.compiler.v3_0.helpers.package$$anonfun$closing$1.apply(package.scala:29)
at org.neo4j.cypher.internal.compiler.v3_0.helpers.package$.using(package.scala:37)
at org.neo4j.cypher.internal.compiler.v3_0.helpers.package$.closing(package.scala:29)
at org.neo4j.cypher.internal.compiler.v3_0.planner.CostBasedExecutablePlanBuilder.producePlan(CostBasedExecutablePlanBuilder.scala:70)
at org.neo4j.cypher.internal.compiler.v3_0.executionplan.procs.DelegatingProcedureExecutablePlanBuilder.producePlan(DelegatingProcedureExecutablePlanBuilder.scala:98)
at org.neo4j.cypher.internal.compiler.v3_0.executionplan.FallbackBuilder$class.producePlan(SilentFallbackPlanBuilder.scala:38)
at org.neo4j.cypher.internal.compiler.v3_0.executionplan.SilentFallbackPlanBuilder.producePlan(SilentFallbackPlanBuilder.scala:61)
at org.neo4j.cypher.internal.compiler.v3_0.executionplan.ExecutionPlanBuilder.build(ExecutionPlanBuilder.scala:83)
at org.neo4j.cypher.internal.compiler.v3_0.CypherCompiler$$anonfun$5.apply(CypherCompiler.scala:170)
at org.neo4j.cypher.internal.compiler.v3_0.CypherCompiler$$anonfun$5.apply(CypherCompiler.scala:170)
at org.neo4j.cypher.internal.compiler.v3_0.QueryCache$$anonfun$getOrElseUpdate$1$$anonfun$apply$1.apply(CacheAccessor.scala:36)
at org.neo4j.cypher.internal.compiler.v3_0.MonitoringCacheAccessor$$anonfun$1.apply(CacheAccessor.scala:57)
at org.neo4j.cypher.internal.compiler.v3_0.LRUCache.getOrElseUpdate(LRUCache.scala:34)
at org.neo4j.cypher.internal.compiler.v3_0.LRUCache.apply(LRUCache.scala:64)
at org.neo4j.cypher.internal.compiler.v3_0.MonitoringCacheAccessor.getOrElseUpdate(CacheAccessor.scala:55)
at org.neo4j.cypher.internal.compiler.v3_0.QueryCache$$anonfun$getOrElseUpdate$1.apply(CacheAccessor.scala:34)
at scala.collection.Iterator$$anon$9.next(Iterator.scala:162)
at scala.collection.Iterator$$anon$12.nextCur(Iterator.scala:434)
at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:440)
at org.neo4j.cypher.internal.compiler.v3_0.QueryCache.getOrElseUpdate(CacheAccessor.scala:46)
at org.neo4j.cypher.internal.compiler.v3_0.CypherCompiler.planPreparedQuery(CypherCompiler.scala:168)
at org.neo4j.cypher.internal.compatibility.CompatibilityFor3_0$$anon$3$$anonfun$plan$1.apply(CompatibilityFor3_0.scala:194)
at org.neo4j.cypher.internal.compatibility.CompatibilityFor3_0$$anon$3$$anonfun$plan$1.apply(CompatibilityFor3_0.scala:191)
at org.neo4j.cypher.internal.compatibility.exceptionHandlerFor3_0$.runSafely(CompatibilityFor3_0.scala:139)
at org.neo4j.cypher.internal.compatibility.CompatibilityFor3_0$$anon$3.plan(CompatibilityFor3_0.scala:191)
at org.neo4j.cypher.internal.ExecutionEngine.org$neo4j$cypher$internal$ExecutionEngine$$producePlan$1(ExecutionEngine.scala:167)
at org.neo4j.cypher.internal.ExecutionEngine$$anonfun$liftedTree1$1$1.apply(ExecutionEngine.scala:170)
at org.neo4j.cypher.internal.compiler.v3_0.QueryCache$$anonfun$getOrElseUpdate$1$$anonfun$apply$1.apply(CacheAccessor.scala:36)
at org.neo4j.cypher.internal.compiler.v3_0.MonitoringCacheAccessor$$anonfun$1.apply(CacheAccessor.scala:57)
at org.neo4j.cypher.internal.compiler.v3_0.LRUCache.getOrElseUpdate(LRUCache.scala:34)
at org.neo4j.cypher.internal.compiler.v3_0.LRUCache.apply(LRUCache.scala:64)
at org.neo4j.cypher.internal.compiler.v3_0.MonitoringCacheAccessor.getOrElseUpdate(CacheAccessor.scala:55)
at org.neo4j.cypher.internal.compiler.v3_0.QueryCache$$anonfun$getOrElseUpdate$1.apply(CacheAccessor.scala:34)
at scala.collection.Iterator$$anon$9.next(Iterator.scala:162)
at scala.collection.Iterator$$anon$12.nextCur(Iterator.scala:434)
at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:440)
at org.neo4j.cypher.internal.compiler.v3_0.QueryCache.getOrElseUpdate(CacheAccessor.scala:46)
at org.neo4j.cypher.internal.ExecutionEngine.liftedTree1$1(ExecutionEngine.scala:170)
at org.neo4j.cypher.internal.ExecutionEngine.planQuery(ExecutionEngine.scala:156)
at org.neo4j.cypher.internal.javacompat.ExecutionEngine.executeQuery(ExecutionEngine.java:65)
at org.neo4j.bolt.v1.runtime.internal.CypherStatementRunner.run(CypherStatementRunner.java:73)
at org.neo4j.bolt.v1.runtime.internal.StandardStateMachineSPI.run(StandardStateMachineSPI.java:110)
at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine$State$2.runStatement(SessionStateMachine.java:132)
at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine.run(SessionStateMachine.java:725)
at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorkerFacade.lambda$run$1(SessionWorkerFacade.java:69)
at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.execute(SessionWorker.java:116)
at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.run(SessionWorker.java:77)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.