In IBM WebSphere Portal, if you perform a search for a user or group in the People Picker portlet that results in multiple wildcards being used for the query to the federated respository, you receive the error message, "Search pattern is not valid", and error number CWWIM4534E.
[datetime] 000005c0 exception W com.ibm.ws.wim.adapter.file.was.FileXPathHelper countWildcardAndValidatePattern CWWIM4534E The 'My*Group Search*' search pattern is not valid.
[datetime] 000005c0 exception W com.ibm.ws.wim.adapter.file.was.FileXPathHelper countWildcardAndValidatePattern
com.ibm.websphere.wim.exception.InvalidArgumentException: CWWIM4534E The 'My*Group Search*' search pattern is not valid.
You may encounter a Directory Search UI message as below.
Too many names were found. Type more characters of the name, then search again.
The VMM file-based repository does not support search queries with multiple wildcards. When an LDAP is used, it is important to remove the file repository. For more information, refer to the section, "User registry considerations" in the WebSphere Portal Information Center.
Resolving the problem
In this case, Portal was connected to LDAP but the file repository had not been removed. Therefore, queries with multiple wildcards are directed to both LDAP and the file repository where the above exception occurs. Removing the built-in file repository (defaultWIMFileBasedRealm], the exceptions disappeared from the log.
Using LDAP only should resolve the issue.