IBM Support

SizeLimitExceededException occurs when publishing a model

Troubleshooting


Problem

When publishing a model, WebSphere® Business Modeler Publishing Server throws an exception (javax.naming.SizeLimitExceededException).

Symptom

WebSphere Business Modeler seems to hang when you are publishing a project.

Cause

When Tivoli® Directory Server (LDAP) is used, the default search size limit is set to 500. If you have more than 500 hits for a specific LDAP query, you run into this problem.

Diagnosing The Problem

In the SystemOut.log file of WebSphere Application Server, you will find a javax.naming.SizeLimitExceededException in the UserRegistryManager getAllGroups method.

The exception looks like the following example:
 
[07/10/22 23:06:04:396 CAT] 00000024 UserRegistryM W UserRegistryManager getAllGroups() Exception Occurred
com.ibm.websphere.security.CustomRegistryException: WMM-UR: javax.naming.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded]; remaining name 'dc=intranetp,dc=vodacom'
at com.ibm.websphere.wmm.registry.WMMUserRegistry.getGroups(WMMUserRegistry.java:1157)
...

Resolving The Problem

To resolve the problem, you need to set the search size used by Tivoli Directory Server to Unlimited. For more information, see the Tivoli Directory Server documentation.

Assuming that Tivoli Directory Server is installed in the directory C:\IBM, complete the following steps to resolve the problem:
C:\IBM\LDAP\V6\appsrv\bin\startServer.bat server1
  1. Start the LDAP Administrative server using the following command:
     
  2. Login in to the LDAP Administrative Console using the following information:
    • URL:
      http://localhost:12100/IDSWebApp/IDSjsp/Login.jsp
    • Username: superadmin
    • Password: secret
       
  3. Select Console administration > Manage console servers.
     
  4. Add your LDAP server.
     
  5. Log out again.
     
  6. Login to your LDAP server.
     
  7. Select Server administration > Manage server properties > Search settings.
     
  8. Set Search size limit to Unlimited.
     
  9. Click Apply and OK.
     
  10. Log out again.
     
  11. Restart your LDAP server.
     
  12. Try to publish your model again.

[{"Product":{"code":"SSCRHV","label":"WebSphere Business Modeler Publishing Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Performance \/ Scalability","Platform":[{"code":"PF033","label":"Windows"}],"Version":"6.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
02 September 2022

UID

swg21285866