java.lang.NullPointerException

Terracotta Project Issue Tracker | Vincent PERICART | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Terracotta Project Issue Tracker

    terracotta.org | 1 year ago
    java.lang.NullPointerException
  2. 0

    Context : - JDK 7, Linux 64 - object being cached is a XJC-generated POJO which contains mutable ArrayLists - high GC pressure When ehcache is trying to serialize it to disk, an error is being logged (stacktrace follows). The expected behaviour is to log at most at WARN level, and retry. java.lang.NullPointerException at java.util.ArrayList.writeObject(ArrayList.java:706) at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) at java.util.ArrayList.writeObject(ArrayList.java:710) at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:438) at net.sf.ehcache.Element.writeObject(Element.java:835) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:97) at net.sf.ehcache.store.disk.DiskStorageFactory.serializeElement(DiskStorageFactory.java:405) at net.sf.ehcache.store.disk.DiskStorageFactory.write(DiskStorageFactory.java:384) at net.sf.ehcache.store.disk.DiskStorageFactory$DiskWriteTask.call(DiskStorageFactory.java:485) at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1088) at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1072)

    Terracotta Project Issue Tracker | 4 years ago | Vincent PERICART
    java.lang.NullPointerException
  3. 0

    Context : - JDK 7, Linux 64 - object being cached is a XJC-generated POJO which contains mutable ArrayLists - high GC pressure When ehcache is trying to serialize it to disk, an error is being logged (stacktrace follows). The expected behaviour is to log at most at WARN level, and retry. java.lang.NullPointerException at java.util.ArrayList.writeObject(ArrayList.java:706) at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) at java.util.ArrayList.writeObject(ArrayList.java:710) at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:438) at net.sf.ehcache.Element.writeObject(Element.java:835) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:97) at net.sf.ehcache.store.disk.DiskStorageFactory.serializeElement(DiskStorageFactory.java:405) at net.sf.ehcache.store.disk.DiskStorageFactory.write(DiskStorageFactory.java:384) at net.sf.ehcache.store.disk.DiskStorageFactory$DiskWriteTask.call(DiskStorageFactory.java:485) at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1088) at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1072)

    Terracotta Project Issue Tracker | 4 years ago | Vincent PERICART
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.util.ArrayList.writeObject()
    2. Java RT
      ObjectOutputStream.defaultWriteObject
      1. java.util.ArrayList.writeObject(ArrayList.java:706)
      2. sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      5. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
      6. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
      7. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      8. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      9. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
      10. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
      11. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      12. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      13. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
      14. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
      15. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      16. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      17. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
      18. java.util.ArrayList.writeObject(ArrayList.java:710)
      19. sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
      20. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      21. java.lang.reflect.Method.invoke(Method.java:601)
      22. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
      23. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
      24. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      25. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      26. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
      27. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
      28. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      29. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      30. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
      31. java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:438)
      31 frames
    3. Ehcache
      Element.writeObject
      1. net.sf.ehcache.Element.writeObject(Element.java:835)
      1 frame
    4. Java RT
      ObjectOutputStream.writeObject
      1. sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:601)
      4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
      5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
      6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      8. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
      8 frames
    5. Ehcache
      DiskStorageFactory$PersistentDiskWriteTask.call
      1. net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:97)
      2. net.sf.ehcache.store.disk.DiskStorageFactory.serializeElement(DiskStorageFactory.java:405)
      3. net.sf.ehcache.store.disk.DiskStorageFactory.write(DiskStorageFactory.java:384)
      4. net.sf.ehcache.store.disk.DiskStorageFactory$DiskWriteTask.call(DiskStorageFactory.java:485)
      5. net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1088)
      6. net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1072)
      6 frames