Coder Social home page Coder Social logo

Comments (3)

ElesG avatar ElesG commented on May 7, 2024

当前定位到的问题是在运行过程中序列化com.caucho.hessian.io.java8time.LocalDateTimeHandle加载失败导致。
因为在 com.caucho.hessian.io.SerializerFactory#getObjectDeserializer(java.lang.String)方法的逻辑中,如果根据LocalDateTimeHandle这个名称找不到反序列化类,就会返回有hashmap的反序列化类。
具体报错日志:

2019-09-21 17:47:24.709  WARN 6083 --- [eat-task-pool-1] com.caucho.hessian.io.SerializerFactory  : Hessian/Burlap: 'com.caucho.hessian.io.java8time.LocalDateTimeHandle' is an unknown class in org.springframework.boot.loader.LaunchedURLClassLoader@19ae6bb:
java.lang.ClassNotFoundException: com.caucho.hessian.io.java8time.LocalDateTimeHandle

from jvm-sandbox-repeater.

ElesG avatar ElesG commented on May 7, 2024

对比了单测中的执行结果,发现在单测中会从sun.misc.Launcher$AppClassLoaderLocalDateTimeHandle 类进行加载,而在agent/attach模式下启动的时候,则会从org.springframework.boot.loader.LaunchedURLClassLoader中进行加载。

具体为什么会导致这种差异,还是说这个差异必然存在,需要像BigDecimal类型一样另外做一个Deserializer这块,我还没想明白。要继续看看

from jvm-sandbox-repeater.

zhaoyb1990 avatar zhaoyb1990 commented on May 7, 2024

HessianHandle是一个特殊实现方式,可以具体跟进看一下源码;
该问题已在dev分支中解决,原因是HessianHandle的type默认使用了序列化的类加载器加载。

from jvm-sandbox-repeater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.