Failed to disable email notifications using RTC API
Hi,
I have requirement for disabling email for Bulk users.
The user information is in .txt file . I parsed it and stored data into array.
when I loop them and use RTC API to disable the mail notification it is getting stuck when Im half way through.
sometimes it is working fine for the same set of users.
did any one know what the reason behind this weird behaviour?
Thanks
Surender
showing 5 of 17
show 12 more comments
|
Be the first one to answer this question!
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
can you tell us more what you are doing?
my sample code that code this from a file with a list of users is here
https://jazz.net/forum/questions/137079/resolved-not-a-bug-with-user-mail-settings-and-receivemails
in the accepted answer
I
m using code which provided in the link. <div> When I
m trying to execute it from eclipse it is working fine.that code has been run a few 1000 times.. I've never seen a hang like u describe.
the only place it could hang is in the read loop
but this is the normal pattern for read
while((line = br.readLine()) != null)
then the next place is getting the contributor (user) info
IContributor contributor = icm.fetchContributorByUserId(userid, null);
the platform. startup & user hang, sounds like there is some rtc or network issue.
Thanks for the clarification Sam.
is a different set of RTC plain java libraries being used?
did you build the .exe thru the eclipse export to runnable jar function?
I have not seen any difference between the two environments
We are using the correct RTC libraries. And I got the .exe through a maven build.
interesting..
can u show/tell us about the other commands executed in the batch file?
What do they do?
The first one in the list is
what happens if you reverse those two commands? order for those shouldn't matter.
I don't KNOW what the problem is, so I am just working thru the debug scenarios..
how does the disable required fields command work? I guess it edits the project process xml.
yes it edits the Project Process xml file.
sounds like there is some background processing going on after the process xml change which is affecting the the next tool to connect to that same project area.
can u try reversing those two commands (and also at the finish of the batch automation.)
I tried reversing the commands and I also restarted the Server.but no luck :(
even more interesting. what server version are you using?
I have 4.0.1, 4.0.3 4.0.4, 4.0.6 and 5.0 all running locally.
Im using RTC 4.0.5.
4.0.5 seems to have a number of regressions reported. any chance u could try another version locally
This is the version we are recently migrated to.
my request was only for some version verification of the issue.