IBM Support

Sterling B2B Integrator: error when executing startup script : java.lang.RuntimeException: Restricted security policy expired

Troubleshooting


Problem

When trying to execute the run.sh or many other scripts located in the /bin directory, like setupfiles.sh, dbverify.sh, dump_info.sh etc. a java security error is thrown.

Symptom

Below is the type of java stack trace returned when trying to execute a script.

java.lang.RuntimeException: Restricted security policy expired.
at java.base/openj9.internal.security.RestrictedSecurity.printStackTraceAndExit(RestrictedSecurity.java:663)
at java.base/openj9.internal.security.RestrictedSecurity.restrictsCheck(RestrictedSecurity.java:607)
at java.base/openj9.internal.security.RestrictedSecurity.configure(RestrictedSecurity.java:484)
at java.base/java.security.Security.initialize(Security.java:147)
at java.base/java.security.Security$1.run(Security.java:96)
at java.base/java.security.Security$1.run(Security.java:94)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:693)
 

Cause

The error is due to having the FIPS_MODE set to True in the sandbox.cfg file and tmp.sh script.

The flag enforces a restricted security policy which can have an expiry date.

Resolving The Problem

To resolve the issue follow the steps below.

1). The first step is to fix the tmp.sh file.

  • Go to the <install_dir>/bin directory
  • Edit the tmp.sh script
  • Search for "¨FIPS_MODE"
  • Set the value to "false" and save the file.
  • To verify the change is valid, execute a script like ./setupfiles.sh

 

2). The next steps is to disable FIPS Mode in the sandbox.Cfg file.

  • Go to the <install_dir>/properties directory.
  • Edit the sandbox.cfg file
  • Search for "¨FIPS_MODE"
  • Set the value to "false" and save the file.
  • The go to the <install_dir>/bin and execute the command: ./setupfiles.sh

The second execution of the setupfiles.sh will disable the FIPS mode in various locations such as security.properties, tmp.sh.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"ARM Category":[{"code":"a8m50000000L29MAAS","label":"Security"},{"code":"a8m50000000CjroAAC","label":"Security-\u003ESecurity Issues - JVM\/OS"},{"code":"a8m50000000CjpCAAS","label":"System Administration"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"5.1.0;5.2.0;5.2.1;5.2.2;5.2.3;5.2.4;5.2.5;5.2.6;6.0.0;6.0.1;6.0.2;6.0.3;6.1.0;6.1.1;6.1.2;6.2.0;6.2.1;6.2.2;6.3.0"}]

Document Information

Modified date:
24 September 2026

UID

ibm17289266