mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
CORDA-2050 Prevent node startup failure upon cross-platform execution. (#5527)
* Prevent fat packaging of platform-specific JDK tools.jar (required at compile time for Java 8). * Catch Throwable. * Re-instate "tools.jar" in corda.jar as JRE's do not ship with this platform dependency. * Baseline "TooGenericExceptionCaught".
This commit is contained in:
parent
e0eb358d59
commit
1a4aaf32f0
@ -4224,7 +4224,7 @@
|
||||
<ID>TooGenericExceptionCaught:InternalUtils.kt$ex: Exception</ID>
|
||||
<ID>TooGenericExceptionCaught:InternalUtils.kt$th: Throwable</ID>
|
||||
<ID>TooGenericExceptionCaught:IssueCash.kt$IssueCash$e: Exception</ID>
|
||||
<ID>TooGenericExceptionCaught:JVMAgentUtil.kt$JVMAgentUtil$e: Exception</ID>
|
||||
<ID>TooGenericExceptionCaught:JVMAgentUtil.kt$JVMAgentUtil$e: Throwable</ID>
|
||||
<ID>TooGenericExceptionCaught:JacksonSupport.kt$JacksonSupport.PartyDeserializer$e: Exception</ID>
|
||||
<ID>TooGenericExceptionCaught:JacksonSupport.kt$JacksonSupport.PublicKeyDeserializer$e: Exception</ID>
|
||||
<ID>TooGenericExceptionCaught:JacksonSupport.kt$JacksonSupport.SecureHashDeserializer$e: Exception</ID>
|
||||
|
@ -16,8 +16,8 @@ object JVMAgentUtil {
|
||||
return try {
|
||||
val vm = VirtualMachine.attach(jvmPid)
|
||||
return vm.agentProperties
|
||||
} catch (e: Exception) {
|
||||
log.warn("Unable to determine whether checkpoint agent is running: ${e.message}.\n" +
|
||||
} catch (e: Throwable) {
|
||||
log.warn("Unable to determine whether agent is running: ${e.message}.\n" +
|
||||
"You may need to pass in -Djdk.attach.allowAttachSelf=true if running on a Java 9 or later VM")
|
||||
Properties()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user