Profiles WSADMIN command fails with NameError: bAskForNodeComm error
The WSADMIN ProfilesService.activateUserByUserId command fails with the error:
com.ibm.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<input>", line 1, in ?
File "profilesAdmin.py", line 676, in activateUserByUserId
File "profilesAdmin.py", line 803, in getMBeanName
File "profilesAdmin.py", line 887, in promptAdminForBean
NOTE: this has also been reported with other ProfilesService commands, such as inactiveUserByUserId and publishUserData. However, the line specified by the error in the profilesAdmin.py file will be different.
Resolving the problem
The root of the issue is that the user is never prompted to choose which node to run the command on. The following workaround can be applied:
- Start wsadmin as you normally would and run the command execfile("communitiesAdmin.py").
- Next run the command execfile("profilesAdmin.py").
- Now try the ProfilesService.activateUserByUserId command again.
If that doesn't work, repeat the steps above, only this time try switching the execfile commands.
This issue does not occur in 4.5 CR2.