question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storage-related NPEs

See original GitHub issue

Expected behavior and actual behavior

I’m upgrading a database from 2.1.17 to 2.2.0.

Logging in to studio doesn’t seem to work. There are many exceptions in the log:

2016-05-23 10:58:45:335 SEVER {db=mydb} Cannot store state of cache for storage placed under /san/orientdb-community/databases/mydb [O2QCache]$ANSI{green {db=mydb}} Error during storage close
java.lang.NullPointerException
        at com.orientechnologies.common.directmemory.OByteBufferPool.acquireDirect(OByteBufferPool.java:269)
        at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.cacheFileContent(OWOWCache.java:1206)
        at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.load(OWOWCache.java:617)
        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.updateCache(O2QCache.java:1200)
        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.doLoad(O2QCache.java:439)
        at com.orientechnologies.orient.core.storage.cache.local.twoq.O2QCache.load(O2QCache.java:384)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.loadPage(ODurableComponent.java:150)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.loadPage(ODurableComponent.java:144)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.open(OPaginatedCluster.java:219)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.openClusters(OAbstractPaginatedStorage.java:285)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:208)
        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:231)
        at com.orientechnologies.orient.server.OServer.openDatabaseBypassingSecurity(OServer.java:934)
        at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:913)
        at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:886)
        at com.orientechnologies.orient.server.OServer.openDatabase(OServer.java:873)
        at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.authenticate(OServerCommandAuthenticatedDbAbstract.java:163)
        at com.orientechnologies.orient.server.network.protocol.http.command.OServerCommandAuthenticatedDbAbstract.beforeExecute(OServerCommandAuthenticatedDbAbstract.java:123)
        at com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetConnect.beforeExecute(OServerCommandGetConnect.java:50)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:163)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:617)
        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)

2016-05-23 10:58:45:371 SEVER {db=mydb} Internal server error:
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/san/orientdb-community/databases/mydb' with mode=rw
        Storage URL="plocal:/san/orientdb-community/databases/mydb"
--> java.lang.NullPointerException [ONetworkProtocolHttpDb]
2016-05-23 10:58:46:246 SEVER isAuthorized() Exception: Cannot open local storage '/san/orientdb-community/databases/OSystem' with mode=rw
        Storage URL="plocal:/san/orientdb-community/databases/OSystem" [OSystemUserAuthenticator]
2016-05-23 10:58:46:718 SEVER isAuthorized() Exception: Cannot open local storage '/san/orientdb-community/databases/OSystem' with mode=rw
        Storage URL="plocal:/san/orientdb-community/databases/OSystem" [OSystemUserAuthenticator]
2016-05-23 10:58:48:467 SEVER {db=mydb} authenticate() Exception: Cannot open local storage '/san/orientdb-community/databases/OSystem' with mode=rw
        Storage URL="plocal:/san/orientdb-community/databases/OSystem" [OSystemUserAuthenticator]

Important Questions

Runninng Mode

  • Embedded, using PLOCAL access mode
  • Embedded, using MEMORY access mode
  • Remote

Misc

  • I have a distributed setup with multiple servers. How many?
  • I’m using the Enterprise Edition

OrientDB Version

  • v2.0.x - Please specify last number:
  • v2.1.x - Please specify last number:
  • v2.2.x - Please specify last number:

Operating System

  • Linux
  • MacOSX
  • Windows
  • Other Unix
  • Other, name?

Java Version

  • 6
  • 7
  • 8

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
taburetcommented, May 25, 2016

Fixed on the develop branch. Now we have a more advanced byte memory pool configuration validation logic and automatic fixes for common memory configuration problems like “cache size > direct memory size” and “memory chunk size > cache size”.

2reactions
laacommented, May 23, 2016

@mriehl I think we can improve validation of settings before start to avoid given issues in future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Revision 6.0 - NPES
In addition to being independent of data storage-related fields, the field is also independent of the PhotometricInterpretation field.
Read more >
Storage & Networks Converge | Network Computing
Networking vendors will bring storage-related products to the masses at ... The new NPE-G2 blade, which is priced at $19,000, will be available...
Read more >
STORAGE LEAK OF NATIVE STORAGE IN SUBPOOL 132 ...
First, the storage leaked from subpool 132 key 2 is the storage related to the ... A NullPointerException (NPE) thrown from an IDL...
Read more >
1340607 – NPE when listing VMs via REST - Red Hat Bugzilla
Bug 1340607 - NPE when listing VMs via REST. Summary: NPE when listing VMs via REST ... From the trace looks like a...
Read more >
Dataproc release notes - Google Cloud
Added Solr 6.6.0; HIVE-18786: NPE in Hive windowing functions ... when trying to set YARN log-aggregation to output to Cloud Storage (related to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found