IBM Support

ASYN9999E - Scheduler task error in SystemOut.log occurs on regular interval

Technote (troubleshooting)


Problem(Abstract)

The SystemOut.log records one or both of the following exceptions with regular frequency in a WebSphere Portal environment:

Case #1:
ASYN9999E: Unexpected Exception Occurred: com.ibm.websphere.asynchbeans.SerialDeserialException: Exception while deserializing a saved service. Service=security. Unable to deserialize the Subjects in this Context, cause: Validation of LTPA token failed due to invalid keys or token type.

Case #2:
ASYN9999E: Unexpected Exception Occurred:
com.ibm.websphere.asynchbeans.SerialDeserialException: Exception while deserializing a saved service. Service=security. Unable to deserialize the Subjects in this Context, cause: The user is from a foreign realm, <realmName>, and this foreign realm is not trusted.
Current realm is <realmName>.

Case #3:
ASYN9999E: Unexpected Exception Occurred:
com.ibm.websphere.asynchbeans.SerialDeserialException: Exception while deserializing a saved service. Service=security. Unable to deserialize the Subjects in this Context, cause: Token expiration Date: [datestamp] current Date: [datestamp] Token attributes:
username=user:[realm/DN of user]

Cause

Case #1: The AsyncBean in the scheduler table has an LTPA token that was signed by the outdated LTPA key.

Case #2: The security configuration has changed and the credentials stored by WebSphere Application Server for the scheduler tasks need to be updated.

Case #3: Defect noted in WebSphere Application Server APAR PI33215 is occurring.


Resolving the problem

For Case #1, the scheduler table needs to be cleaned up via the ConfigEngine script 'action-clean-scheduled-tasks'.

- For Windows: ConfigEngine.bat action-clean-scheduled-tasks -DWasPassword=<WasAdminPassword>

- For UNIX: ./ConfigEngine.sh action-clean-scheduled-tasks -DWasPassword=<WasAdminPassword>

For Case #2, re-register the scheduler so that the realm is reset by running this
ConfigEngine task:

- For Windows: ConfigEngine.bat reregister-scheduler-tasks -DPortalAdminId=<adminID>
-DPortalAdminPwd=<password>

- For UNIX: ./ConfigEngine.sh reregister-scheduler-tasks -DPortalAdminId=<adminID>
-DPortalAdminPwd=<password>

Note: The ConfigEngine tasks are run from <WP_profile>/ConfigEngine/.

For Case #3, apply the latest WebSphere Application Server Fix Pack containing the fix for APAR PI33215 and follow the manual steps in the the APAR text to update the security configuration.

Related information

WebSphere Application Server Fix Packs

Document information

More support for: WebSphere Portal
WebSphere Application Server Integration

Software version: 7.0, 8.0, 8.5, 9.0

Operating system(s): AIX, HP-UX, IBM i, Linux, Solaris, Windows, z/OS

Reference #: 1618152

Modified date: 03 January 2017