com.thoughtworks.xstream.converters.ConversionException: Cannot externalize class java.lang.Class : Expected 8192 bytes from stream, got 98 ---- Debugging information ---- message : Cannot externalize class java.lang.Class cause-exception : java.io.StreamCorruptedException cause-message : Expected 8192 bytes from stream, got 98 class : org.grails.buffer.StreamCharBuffer required-type : org.grails.buffer.StreamCharBuffer converter-type : com.thoughtworks.xstream.converters.reflection.ExternalizableConverter path : /concurrent-hash-map/entry/org.grails.web.servlet.GrailsFlashScope/next/entry/org.codehaus.groovy.runtime.GStringImpl/values/org.grails.buffer.StreamCharBuffer line number : 16 class[1] : [Ljava.lang.Object; converter-type[1] : com.thoughtworks.xstream.converters.collections.ArrayConverter class[2] : org.codehaus.groovy.runtime.GStringImpl converter-type[2] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter class[3] : java.util.concurrent.ConcurrentHashMap converter-type[3] : com.thoughtworks.xstream.converters.collections.MapConverter class[4] : org.grails.web.servlet.GrailsFlashScope version : 1.4.7 -------------------------------

GitHub | j4y | 2 months ago
  1. 0

    Error with XStream and Grails 3.0.17 - Cannot externalize org.grails.web.servlet.GrailsFlashScope

    GitHub | 2 months ago | j4y
    com.thoughtworks.xstream.converters.ConversionException: Cannot externalize class java.lang.Class : Expected 8192 bytes from stream, got 98 ---- Debugging information ---- message : Cannot externalize class java.lang.Class cause-exception : java.io.StreamCorruptedException cause-message : Expected 8192 bytes from stream, got 98 class : org.grails.buffer.StreamCharBuffer required-type : org.grails.buffer.StreamCharBuffer converter-type : com.thoughtworks.xstream.converters.reflection.ExternalizableConverter path : /concurrent-hash-map/entry/org.grails.web.servlet.GrailsFlashScope/next/entry/org.codehaus.groovy.runtime.GStringImpl/values/org.grails.buffer.StreamCharBuffer line number : 16 class[1] : [Ljava.lang.Object; converter-type[1] : com.thoughtworks.xstream.converters.collections.ArrayConverter class[2] : org.codehaus.groovy.runtime.GStringImpl converter-type[2] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter class[3] : java.util.concurrent.ConcurrentHashMap converter-type[3] : com.thoughtworks.xstream.converters.collections.MapConverter class[4] : org.grails.web.servlet.GrailsFlashScope version : 1.4.7 -------------------------------
  2. 0

    IndexedChronicle TCP replication not working

    GitHub | 2 years ago | postol
    java.io.StreamCorruptedException: Expected index 41 but got 40
  3. 0

    Problem with Objectuinputstream

    Coderanch | 9 years ago | viswanath sigamala
    java.io.StreamCorruptedException: invalid stream header
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate 5 java.time issue on postgres

    Stack Overflow | 1 month ago | Arash
    java.io.StreamCorruptedException: invalid stream header: 32303135
  6. 0

    Why I can't retrieve a database field havin "point" as data type using Hibernate5\Spring Data JPA into this Spring Boot project?

    Stack Overflow | 1 month ago | AndreaNobili
    org.springframework.orm.jpa.JpaSystemException: could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize

    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.io.StreamCorruptedException

      Expected 8192 bytes from stream, got 98

      at com.thoughtworks.xstream.core.util.CustomObjectInputStream.read()
    2. XStream Core
      CustomObjectInputStream.read
      1. com.thoughtworks.xstream.core.util.CustomObjectInputStream.read(CustomObjectInputStream.java:195)
      1 frame
    3. Java RT
      Reader.read
      1. sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
      2. sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
      3. sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
      4. java.io.InputStreamReader.read(InputStreamReader.java:184)
      5. java.io.Reader.read(Reader.java:140)
      5 frames
    4. Grails
      StreamCharBuffer.readExternal
      1. org.grails.buffer.StreamCharBuffer.readExternal(StreamCharBuffer.java:2727)
      1 frame
    5. XStream Core
      XStream.fromXML
      1. com.thoughtworks.xstream.converters.reflection.ExternalizableConverter.unmarshal(ExternalizableConverter.java:150)
      2. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      3. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      4. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      5. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      6. com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      7. com.thoughtworks.xstream.converters.collections.ArrayConverter.unmarshal(ArrayConverter.java:55)
      8. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      9. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      10. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      11. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:474)
      12. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:406)
      13. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
      14. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      15. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      16. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      17. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      18. com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      19. com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryIntoMap(MapConverter.java:110)
      20. com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:98)
      21. com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:92)
      22. com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:87)
      23. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      24. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      25. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      26. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:474)
      27. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:406)
      28. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
      29. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      30. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      31. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      32. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      33. com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      34. com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryIntoMap(MapConverter.java:110)
      35. com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:98)
      36. com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:92)
      37. com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:87)
      38. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      39. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      40. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      41. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      42. com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
      43. com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      44. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185)
      45. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1169)
      46. com.thoughtworks.xstream.XStream.fromXML(XStream.java:1049)
      46 frames
    6. de.javakaffee.web
      XStreamTranscoder.deserializeAttributes
      1. de.javakaffee.web.msm.serializer.xstream.XStreamTranscoder.deserializeAttributes(XStreamTranscoder.java:96)
      1 frame
    7. memcached-session-manager core
      MemcachedBackupSessionManager.findSession
      1. de.javakaffee.web.msm.TranscoderService.deserializeAttributes(TranscoderService.java:167)
      2. de.javakaffee.web.msm.TranscoderService.deserialize(TranscoderService.java:124)
      3. de.javakaffee.web.msm.MemcachedSessionService.loadFromMemcached(MemcachedSessionService.java:1147)
      4. de.javakaffee.web.msm.MemcachedSessionService.findSession(MemcachedSessionService.java:597)
      5. de.javakaffee.web.msm.MemcachedBackupSessionManager.findSession(MemcachedBackupSessionManager.java:218)
      5 frames
    8. Glassfish Core
      StandardHostValve.invoke
      1. org.apache.catalina.connector.Request.doGetSession(Request.java:2913)
      2. org.apache.catalina.connector.Request.getSessionInternal(Request.java:2531)
      3. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:426)
      4. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      4 frames
    9. memcached-session-manager core
      RequestTrackingHostValve.invoke
      1. de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      2. de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:156)
      2 frames
    10. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      2. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      4 frames
    11. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      3 frames
    12. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    13. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    14. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame