You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is that when flow is running and node is restarted, then on startup the flow is resumed and it fails with ClassNotFoundException for requested class from the cordapp - Thread.contextClassLoader does not have any of cordapp classes, only Corda classes.
Maybe when resuming the flow in such case we should set Thread.contextClassLoader as it was set originally in FlowStateMachineImpl.kt#L349 ?
The text was updated successfully, but these errors were encountered:
One of our Cordapps 3rd party library loads classes dynamically using following code:
https://github.com/JodaOrg/joda-convert/blob/d226248e25f0b16cd7f573389e9bddf1fb4f0b47/src/main/java/org/joda/convert/StringConvert.java#L883
Normally it does not cause any issue on running flow, maybe because of following line in FlowStateMachineImpl, but I'm not sure.
corda/node/src/main/kotlin/net/corda/node/services/statemachine/FlowStateMachineImpl.kt
Line 349 in f3c45e9
Problem is that when flow is running and node is restarted, then on startup the flow is resumed and it fails with ClassNotFoundException for requested class from the cordapp - Thread.contextClassLoader does not have any of cordapp classes, only Corda classes.
Maybe when resuming the flow in such case we should set Thread.contextClassLoader as it was set originally in FlowStateMachineImpl.kt#L349 ?
The text was updated successfully, but these errors were encountered: