sofa-hessian icon indicating copy to clipboard operation
sofa-hessian copied to clipboard

it is easy to cause class loading conflicts

Open PeppaO opened this issue 1 year ago • 0 comments

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

For example, when hessian 4.0.63 and sofa-hessian 4.0.3 exist in the same project, an error is reported Caused by: java.lang.InstantiationException: com.caucho.hessian.io.StackTraceElementDeserializer at java.lang.Class.newInstance(Class.java:427) at com.caucho.hessian.io.ContextSerializerFactory.init(ContextSerializerFactory.java:322) ... 22 common frames omitted Caused by: java.lang.NoSuchMethodException: com.caucho.hessian.io.StackTraceElementDeserializer.() at java.lang.Class.getConstructor0(Class.java:3082) at java.lang.Class.newInstance(Class.java:412) ... 23 common frames omitted <==

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

  • Project Version [e.g. SOFA-RPC 1.0.0] :
  • Language Version (e.g. Go 1.13):
  • OS version (e.g. uname -a):
  • IDE version:

Additional context

Add any other context about the problem here.

PeppaO avatar Aug 31 '24 03:08 PeppaO