java.nio.BufferOverflowException

JIRA | (sourceforge) | 10 years ago
  1. 0

    Hi, I have just got the following exception. After that, the JVM crashed with a SIGSEGV (see dump below) com.sleepycat.util.RuntimeExceptionWrapper: java.nio.BufferOverflowException at com.sleepycat.collections.StoredContainer.convertException(StoredContainer. java:444) at com.sleepycat.collections.StoredContainer.handleException(StoredContainer.j ava:436) at com.sleepycat.collections.StoredContainer.put(StoredContainer.java:317) at com.sleepycat.collections.StoredMap.put(StoredMap.java:258) at org.archive.util.CachedBdbMap.expungeStaleEntry(CachedBdbMap.java:498) at org.archive.util.CachedBdbMap.expungeStaleEntries(CachedBdbMap.java:471) at org.archive.util.CachedBdbMap.get(CachedBdbMap.java:337) at org.archive.crawler.datamodel.ServerCache.getHostFor(ServerCache.java:131) at org.archive.crawler.datamodel.ServerCache.getHostFor(ServerCache.java:160) at org.archive.crawler.admin.StatisticsTracker.crawledURISuccessful(Statistics Tracker.java:642) at org.archive.crawler.framework.CrawlController.fireCrawledURISuccessfulEvent (CrawlController.java:465) at org.archive.crawler.frontier.WorkQueueFrontier.finished(WorkQueueFrontier.j ava:865) at org.archive.crawler.framework.ToeThread.run(ToeThread.java:170) Caused by: com.sleepycat.je.DatabaseException: java.nio.BufferOverflowException at com.sleepycat.je.log.LogManager.logInternal(LogManager.java:413) at com.sleepycat.je.log.SyncedLogManager.logItem(SyncedLogManager.java:49) at com.sleepycat.je.log.LogManager.log(LogManager.java:234) at com.sleepycat.je.log.LogManager.log(LogManager.java:182) at com.sleepycat.je.tree.LN.log(LN.java:383) at com.sleepycat.je.tree.LN.log(LN.java:332) at com.sleepycat.je.tree.Tree.insert(Tree.java:2007) at com.sleepycat.je.dbi.CursorImpl.putLN(CursorImpl.java:835) at com.sleepycat.je.dbi.CursorImpl.put(CursorImpl.java:858) at com.sleepycat.je.Cursor.putAllowPhantoms(Cursor.java:793) at com.sleepycat.je.Cursor.putNoNotify(Cursor.java:730) at com.sleepycat.je.Cursor.putInternal(Cursor.java:690) at com.sleepycat.je.Cursor.put(Cursor.java:291) at com.sleepycat.collections.RangeCursor.put(RangeCursor.java:697) at com.sleepycat.collections.DataCursor.put(DataCursor.java:560) at com.sleepycat.collections.StoredContainer.put(StoredContainer.java:311) ... 10 more Caused by: java.nio.BufferOverflowException at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:311) at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:290) at sun.nio.ch.IOUtil.write(IOUtil.java:70) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:651) at com.sleepycat.je.log.FileManager.writeBufferToChannel(FileManager.java:963) at com.sleepycat.je.log.FileManager.writeLogBuffer(FileManager.java:883) at com.sleepycat.je.log.LogBufferPool.writeBufferToFile(LogBufferPool.java:209 ) at com.sleepycat.je.log.LogBufferPool.getWriteBuffer(LogBufferPool.java:162) at com.sleepycat.je.log.LogManager.logInternal(LogManager.java:366) ... 25 more # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00031000, pid=5103, tid=1293941680 # # Java VM: Java HotSpot(TM) Server VM (1.5.0_01-b08 mixed mode) # Problematic frame: # C 0x00031000 # --------------- T H R E A D --------------- Current thread (0x49ff11a0): JavaThread "ToeThread #10: http://home.comcast.net/~jgj252/BB/SomeAssemblyReq.JPG" [_thread_in_Java, id=5355] siginfo:si_signo=11, si_errno=0, si_code=2, si_addr=0x00031000 Registers: EAX=0x00000000, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000 ESP=0x4d1ff2b8, EBP=0x4d1ff2e8, ESI=0x514b0686, EDI=0x518b8118 EIP=0x00031000, CR2=0x00031000, EFLAGS=0x00010246 Top of Stack: (sp=0x4d1ff2b8) 0x4d1ff2b8: b259aa3f 00000400 00000000 aa013328 0x4d1ff2c8: 00000000 4d1ff2cc 514b0686 4d1ff300 0x4d1ff2d8: 514b1c88 518b8118 514b0720 4d1ff2f4 0x4d1ff2e8: 4d1ff320 b259aa3f 00000000 00000000 0x4d1ff2f8: 00000000 aa013328 56269dd0 4d1ff304 0x4d1ff308: 51814f80 4d1ff338 5185aa40 518ed900 0x4d1ff318: 51814fe8 4d1ff32c 4d1ff358 b259aa3f 0x4d1ff328: 00000000 00000000 00000000 00000000 Instructions: (pc=0x00031000) 0x00030ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x00031000: [error occurred during error reporting, step 100, id 0xb] Stack: [0x4d17f000,0x4d200000), sp=0x4d1ff2b8, free space=512k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C 0x00031000 j org.apache.commons.httpclient.ContentLengthInputStream.read([BII)I+64 j org.apache.commons.httpclient.ContentLengthInputStream.read([B)I+5 j org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(Ljava/i o/InputStream;)V+8 v ~C2IAdapter

    JIRA | 10 years ago | (sourceforge)
    java.nio.BufferOverflowException
  2. 0

    BufferOverflowException when saving editor

    Eclipse Bugzilla | 9 years ago | g.watson
    java.nio.BufferOverflowException
  3. 0

    video recording issue in AS3 in Red5 server

    Stack Overflow | 3 years ago | user3061376
    java.nio.BufferOverflowException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 50#170210079

    GitHub | 11 months ago | Mierzmit
    java.nio.BufferOverflowException

    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.nio.BufferOverflowException

      No message provided

      at java.nio.DirectByteBuffer.put()
    2. Java RT
      FileChannelImpl.write
      1. java.nio.DirectByteBuffer.put(DirectByteBuffer.java:311)
      2. java.nio.DirectByteBuffer.put(DirectByteBuffer.java:290)
      3. sun.nio.ch.IOUtil.write(IOUtil.java:70)
      4. sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:651)
      4 frames
    3. Berkeley DB Java Edition
      StoredMap.put
      1. com.sleepycat.je.log.FileManager.writeBufferToChannel(FileManager.java:963)
      2. com.sleepycat.je.log.FileManager.writeLogBuffer(FileManager.java:883)
      3. com.sleepycat.je.log.LogBufferPool.writeBufferToFile(LogBufferPool.java:209)
      4. com.sleepycat.je.log.LogBufferPool.getWriteBuffer(LogBufferPool.java:162)
      5. com.sleepycat.je.log.LogManager.logInternal(LogManager.java:366)
      6. com.sleepycat.je.log.SyncedLogManager.logItem(SyncedLogManager.java:49)
      7. com.sleepycat.je.log.LogManager.log(LogManager.java:234)
      8. com.sleepycat.je.log.LogManager.log(LogManager.java:182)
      9. com.sleepycat.je.tree.LN.log(LN.java:383)
      10. com.sleepycat.je.tree.LN.log(LN.java:332)
      11. com.sleepycat.je.tree.Tree.insert(Tree.java:2007)
      12. com.sleepycat.je.dbi.CursorImpl.putLN(CursorImpl.java:835)
      13. com.sleepycat.je.dbi.CursorImpl.put(CursorImpl.java:858)
      14. com.sleepycat.je.Cursor.putAllowPhantoms(Cursor.java:793)
      15. com.sleepycat.je.Cursor.putNoNotify(Cursor.java:730)
      16. com.sleepycat.je.Cursor.putInternal(Cursor.java:690)
      17. com.sleepycat.je.Cursor.put(Cursor.java:291)
      18. com.sleepycat.collections.RangeCursor.put(RangeCursor.java:697)
      19. com.sleepycat.collections.DataCursor.put(DataCursor.java:560)
      20. com.sleepycat.collections.StoredContainer.put(StoredContainer.java:311)
      21. com.sleepycat.collections.StoredMap.put(StoredMap.java:258)
      21 frames
    4. webarchive-commons
      CachedBdbMap.get
      1. org.archive.util.CachedBdbMap.expungeStaleEntry(CachedBdbMap.java:498)
      2. org.archive.util.CachedBdbMap.expungeStaleEntries(CachedBdbMap.java:471)
      3. org.archive.util.CachedBdbMap.get(CachedBdbMap.java:337)
      3 frames
    5. org.archive.crawler
      ToeThread.run
      1. org.archive.crawler.datamodel.ServerCache.getHostFor(ServerCache.java:131)
      2. org.archive.crawler.datamodel.ServerCache.getHostFor(ServerCache.java:160)
      3. org.archive.crawler.admin.StatisticsTracker.crawledURISuccessful(StatisticsTracker.java:642)
      4. org.archive.crawler.framework.CrawlController.fireCrawledURISuccessfulEvent(CrawlController.java:465)
      5. org.archive.crawler.frontier.WorkQueueFrontier.finished(WorkQueueFrontier.java:865)
      6. org.archive.crawler.framework.ToeThread.run(ToeThread.java:170)
      6 frames