Forum Stats

  • 3,741,746 Users
  • 2,248,473 Discussions
  • 7,861,976 Comments

Discussions

(JE 7.5.11) DatabaseException producing NPE after deserialization

Thommy74
Thommy74 Member Posts: 1
edited Mar 23, 2018 5:29AM in Berkeley DB Java Edition

Hi,

after serializing and deserializing a DatabaseException, calling getMessage on the exception seems to produce a NullPointerException:

java.lang.NullPointerException

at com.sleepycat.je.DatabaseException.getMessage(DatabaseException.java:156)

at java.base/java.lang.Throwable.getLocalizedMessage(Throwable.java:396)

at java.base/java.lang.Throwable.toString(Throwable.java:485)

at java.base/java.lang.String.valueOf(String.java:2801)

at java.base/java.lang.StringBuilder.append(StringBuilder.java:135)

Kind regards

Thomas

This discussion has been closed.