Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  IBM Connections Forum

IBM Connections Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Benjamin Wolber 27.Oct.11 09:08 AM a Web browser
Administration 3.0.1 Windows


Hey everybody,

my intention is to add all users, which have been logged on Connections at least once, to a specific Community.
Therefor I created a task which exports those Users (as mail or UUID) into a file. I then execute a batch-file, which opens up the wsadmin.bat and establishes a session. Then, a python (jython)-script is executed, which reads up the list with the users and adds them to the Community.
When I execute this I get the following error:
- Adding via CommunitiesService.addMembersToCommunityByMemberUuid
WASX7015E: Exception running command: "execfile("C:/jobs/addToCommunity.py")"; exception information:
javax.management.RuntimeMBeanException
java.lang.RuntimeException: java.lang.RuntimeException: Can't find resource for bundle java.util.PropertyResourceBundle, key err.bad.address.memberId

- Adding via CommunitiesService.addMembersToCommunityByEmail
WASX7015E: Exception running command: "execfile("C:/jobs/addToCommunity.py")"; exception information:
javax.management.RuntimeMBeanException
java.lang.RuntimeException: java.lang.RuntimeException: CLFRM0033E: Dieser E-Mail-Adresse (@) ist kein Verzeichnisprofil zugeordnet

When I add the test-users manually to the community it is working perfectly.
Here is my jython-script:
__________________________
import java.util

fobj = open("S:/exporttest.txt", "r")
content = fobj.readline()
list = "["

while(content != ""):
list += content[:-1] + ", "
content = fobj.readline()

list = list[:-2] + "]"
print list
execfile("D:/IBM/WebSphere/AppServer/profiles/Dmgr01/config/bin_lc_admin/communitiesAdmin.py")

# CommunitiesService.addMembersToCommunityByMemberUuid("Connections",0,list)
# CommunitiesService.addMembersToCommunityByEmail("a5f959e6-1b23-4fbb-8f1c-44bd23b8af46", 0, list)

fobj.close()
__________________________

Commands for addMembers... is active when executed.
Command "print list" shows that list is correct:
["email1@domain.de", "email2@domain.de"]

Anybody got an idea, as I think it's strange that I can execute the commands manually without problems.

Best regards and thanks in advance
Benjamin






Error when executing jython-script (Benjamin Wolber... 27.Oct.11)
. . RE: Error when executing jython-scr... (Sonia DELRIEU 3.Nov.11)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow