java.lang.NullPointerException: This exception has no message.

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by pdeva
, 2 years ago
via Terracotta by sandarenu, 1 year ago
java.lang.NullPointerException:
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:256)
at java.util.concurrent.ConcurrentHashMap$Segment.put(ConcurrentHashMap.java:408)
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:848)
at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1412)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at com.tctest.SerializationTest.deserialize(SerializationTest.java:347)

Users with the same issue

Once, 1 year ago
2 times, 1 year ago
2 times, 1 year ago

Write tip

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