-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
@DaTa
@component
@slf4j
public class FiscoBcos {
private BcosSDK bcosSDK;
@PostConstruct
public void init() {
ConfigProperty configProperty = loadProperty();
ConfigOption configOption;
try {
configOption = new ConfigOption(configProperty);
} catch (ConfigException e) {
log.error(e.getMessage());
return;
}
bcosSDK = new BcosSDK(configOption);
}
public ConfigProperty loadProperty() {
Representer representer = new Representer();
representer.getPropertyUtils().setSkipMissingProperties(true);
Yaml yaml = new Yaml(representer);
String configFile = "/fisco/fisco-config.yml";
try (InputStream inputStream = this.getClass().getResourceAsStream(configFile)) {
return yaml.loadAs(inputStream, ConfigProperty.class);
} catch (Exception e) {
log.error(e.getMessage());
}
return null;
}
}
bcosSDK = new BcosSDK(configOption);
long nativePointer = create(jniConfig);
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x00007ffc4bcaaf29, pid=8520, tid=2316
JRE version: Java(TM) SE Runtime Environment (17.0.10+11) (build 17.0.10+11-LTS-240)
Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.10+11-LTS-240, mixed mode, emulated-client, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
Problematic frame:
C [KERNELBASE.dll+0x3af29]
No core dump will be written. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as:
E:\idea\project\Java\fish-dish-server\hs_err_pid8520.log
If you would like to submit a bug report, please visit:
https://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
Process finished with exit code 1
Metadata
Metadata
Assignees
Labels
No labels