# BufferUnderflowException error while updating sonatype nexus

**URL:** <https://community.sonatype.com/t/bufferunderflowexception-error-while-updating-sonatype-nexus/10824>\
**Category:** Sonatype Nexus Repository\
**Created:** [June 21, 2023, 5:10am UTC](https://community.sonatype.com/t/bufferunderflowexception-error-while-updating-sonatype-nexus/10824 "2023-06-21T05:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asy00341](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@asy00341](https://community.sonatype.com/u/asy00341)\
**Post date:** [June 21, 2023, 5:10am UTC](https://community.sonatype.com/t/bufferunderflowexception-error-while-updating-sonatype-nexus/10824/1 "2023-06-21T05:10:54Z")

</div>

I am using Sonatype Nexus.  
When running the update, I got the following error:

```auto
ERROR [OrientDB rebuild indexes] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `543473F7` in storage `plocal:/nexus-data/db/component`: 2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc73193, branch 2.2.x)
java.nio.BufferUnderflowException: null
        at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:270)
        at java.nio.ByteBuffer.get(ByteBuffer.java:723)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage.getBinaryValue(ODurablePage.java:140)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.OClusterPage.getRecordBinaryValue(OClusterPage.java:386)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.readFullEntry(OPaginatedCluster.java:1910)
        at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.readRecordBuffer(OPaginatedCluster.java:779)
        ・・・
        at com.orientechnologies.orient.core.index.OIndexManagerShared$RecreateIndexesTask.run(OIndexManagerShared.java:515)
        at java.lang.Thread.run(Thread.java:750)

```

I would like to know the reason for this and how to fix it.

Version Before Update version: 3.20.1  
Version After Update version: 3.43.0  
Data Source Size: 5TB  
INSTALL4J\_ADD\_VM\_PARAMS: “-Xms4G -Xmx4G -XX:MaxDirectMemorySize=6717M -Djava.util.prefs.userRoot=/nexus-data/javaprefs”
