When running Custom Java code with the Policy Server, the Policy Server crashes.
The stack reports the crash occurs in Custom Java code:
#0 0x00007f3af823c5c8 in myClass::Connect
(ConnectRequest_s&, char*, unsigned short) ()
from /{home_policy_server}/mylibforjava.so
The Custom Java code is launched by an Active Expression.
The code to launch the ActiveExpression is:
public int init(APIContext context) throws Exception {
// Initialize the Cache
log.info("Initialization of <CustomJavaActiveResponse> was successful");
return 0;
}
The Java initialization is done through several threads in time as seen from logs:
2021-06-21 00:55:05,902 Thread-8 INFO myCustomJavaActiveResponse - Initialization of myCustomJavaActiveResponse was successful
2021-06-21 00:57:57,104 main INFO myCustomJavaActiveResponse - Initialization of myCustomJavaActiveResponse was successful
2021-06-30 11:54:12,271 Thread-3 INFO myCustomJavaActiveResponse - Initialization of myCustomJavaActiveResponse was successful
Some questions:
# ps -eLf
# ps -T
# htop