Informix Error -25791: Cannot execute privileged built-in Java routine without the EXTEND role or DBSA authority.
Cause and resolution
Cannot execute privileged built-in Java routine without the EXTEND role or DBSA authority.
For security reasons, only a DBSA or users who have been granted the EXTEND role, if the IFX_EXTEND_ROLE configuration parameter is enabled, can execute the following built-in Java routines: install_jar, remove_jar, replace_jar, install_jar_deploy, remove_jar_undeploy, alter_java_path, setUDTExtName, and unsetUDTExtName
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25791 fires when a user without DBSA authority or the EXTEND role (when
IFX_EXTEND_ROLE is enabled) tries to execute a privileged built-in Java routine — per the
official guidance, this applies to install_jar, remove_jar, replace_jar,
install_jar_deploy, remove_jar_undeploy, alter_java_path, setUDTExtName, and
unsetUDTExtName.
- A user lacking DBSA authority or the
EXTENDrole calling one of the named privileged Java routines, per the official guidance — the direct, only cause.
Solutions / Resolution
- Have a DBSA execute the routine, per the official guidance, or
- Have a DBSA grant the user the
EXTENDrole, per the official guidance, ifIFX_EXTEND_ROLEis enabled.
Examples
N/A
No specific triggering statement is documented beyond a non-DBSA/non-EXTEND user calling
one of the named routines.
Diagnostic Checks
- Check the executing user's DBSA authority or
EXTENDrole, and check theIFX_EXTEND_ROLEconfiguration parameter's setting.
Related Errors / Related Topics
- -25785 — "Cannot create external routine (%s) without the EXTEND role." A related
EXTEND-role restriction, on routine creation rather than these specific Java routines. - -25786 — "Only DBSA can grant/revoke permissions for the EXTEND role." A related
EXTEND-role error, on who can manage the role's grants. - -25788 — "Cannot unload or reload module without the EXTEND role." A related
EXTEND-role restriction, on module unload/reload.
A non-DBSA/non-EXTEND user tried to call a privileged built-in Java routine
(install_jar and similar) — have a DBSA run it, or grant EXTEND.