It's all about the answers!

Ask a question

Problem in creating work item from plain java client


r vijay (3676) | asked Feb 17 '11, 1:55 a.m.
Hi All,

I am using RTC2.0.0.2. I am trying to create a RTC work item from Lotus Notes Environment. So i have a Java agent created in lotus notes, i followed the instructions as per the blow url
https://jazz.net/wiki/bin/view/Main/ClientLibrarySetup


I am able to import all the .jar files and also snippet java files. The local jazz server is started and i am able to access it through web browser. When i try to run the snippet1.java file , it throws the following error (while executing the below line)
"ITeamRepository repository = TeamPlatform.getTeamRepositoryService().getTeamRepository(REPOSITORY_ADDRESS);"

Error Message

Exception in thread "AgentThread: workitem.JavaAgent" java.lang.NoClassDefFoundError: com.ibm.team.repository.transport.client.RemoteTeamServer (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at com.ibm.team.repository.transport.client.TeamServerFactoryImpl.newTeamServerFromURL(TeamServerFactoryImpl.java:184)
at com.ibm.team.repository.transport.client.TeamServerFactory.newTeamServerFromURL(TeamServerFactory.java:100)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:323)
at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository(TeamRepositoryService.java:366)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:91)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:110)
at snippets.Snippet1.login(Unknown Source)
at workitem.JavaAgent.NotesMain(Unknown Source)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(Unknown Source)


I am not sure whats missing. It would be great if some one can help on this.

Thanks,
Vijay

4 answers



permanent link
Sathish Balakrishnan (345) | answered Nov 22 '12, 9:35 a.m.
edited Nov 22 '12, 10:04 a.m.
 Hi Vijay,  Fabian, 

I am trying to do the same task as you have tried to do - "Creating a Work Item from Lotus notes". I am facing the same scenario as yours. I am able to do it through Plain Java, but when I write the same code in Notes Domino, I am facing the same error. Were you able to resolve this ? 

 It would be great if you can help on this.



permanent link
r vijay (3676) | answered Feb 18 '11, 4:11 a.m.
yes Fabian, I was able to execute the API from normal java environment but not thru Lotus Notes 8.5.1. I too feel it could be a JVM issue in Lotus Notes..

Thanks,
Vijay

permanent link
sam detweiler (12.5k6195201) | answered Feb 17 '11, 7:58 a.m.
here is a list of all the 2.0.0.2 files I needed for a workitem client

Sam

com.ibm.team.repository.client_1.0.2.I201009021352.jar
com.ibm.team.repository.common.remoteaccess_1.0.2.I201008120202.jar
com.ibm.team.process.common_1.0.200.I201005101625.jar
com.ibm.team.repository.common.remoteaccess.auth_1.0.2.I201004212002.jar
com.ibm.team.repository.common.serialize_1.0.2.I200910242001.jar
com.ibm.team.process.client_1.0.200.I200911110022.jar
com.ibm.team.repository.common.json_1.0.2.I200910052001.jar
com.ibm.team.interop.client_2.0.0.I200905221928.jar
com.ibm.team.repository.common_1.0.2.I201008190402.jar
com.ibm.team.repository.common.transport_1.0.2.I200910052001.jar
com.ibm.team.interop.common_2.0.1.I200909012238.jar
com.ibm.team.repository.rcp.common_2.0.0.I201001291657.jar
org.eclipse.core.runtime_3.4.0.v20080512.jar
org.eclipse.core.jobs_3.4.1.R34x_v20081128.jar
org.eclipse.emf.ecore.xmi_2.4.1.v200902171115.jar
org.eclipse.equinox.registry_3.4.0.v20080516-0950.jar
org.eclipse.equinox.common_3.4.0.v20080421-2006.jar
org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
org.eclipse.emf.common_2.4.0.v200902171115.jar
org.eclipse.emf.ecore_2.4.2.v200902171115.jar

permanent link
Fabian Ehls (161) | answered Feb 17 '11, 7:15 a.m.
Hello,

That is exactly the thing i am trying to do, too. I have working code that creates a work item from a plain java application. Now i wanted to extend it by integrating it in lotus notes to create work items directly from mail content.

Here is the stack trace i get in lotus notes when running my code (which works fine in a normal java environment):

You can also reproduce the stack trace using the example code at:

https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation


Exception in thread "AgentThread: JavaAgent" java.lang.NoClassDefFoundError: com.ibm.team.repository.transport.client.RemoteTeamServer (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at com.ibm.team.repository.transport.client.TeamServerFactoryImpl.newTeamServerFromURL(TeamServerFactoryImpl.java:184)
at com.ibm.team.repository.transport.client.TeamServerFactory.newTeamServerFromURL(TeamServerFactory.java:100)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:358)
at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository(TeamRepositoryService.java:400)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:111)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:130)
at MailToRTCWorkItemMover.run(Unknown Source)
at JavaAgent.NotesMain(Unknown Source)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(Unknown Source)
Caused by: java.security.AccessControlException: Access denied (java.util.logging.LoggingPermission control)
at java.security.AccessControlException.<init>(AccessControlException.java:62)
at java.security.AccessController.checkPermission(AccessController.java:68)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at COM.ibm.JEmpower.applet.AppletSecurity.superDotCheckPermission(AppletSecurity.java:1449)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1480)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1464)
at java.util.logging.LogManager.checkAccess(LogManager.java:293)
at java.util.logging.Logger.setLevel(Logger.java:544)
at com.ibm.team.repository.transport.client.RemoteTeamServer.<clinit>(RemoteTeamServer.java:112)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 10 more


Perhaps this is a Lotus Notes Problem?

BG, Fabian

Your answer


Register or to post your answer.


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.