Problem in creating work item from plain java client
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);" 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
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
Perhaps this is a Lotus Notes Problem? BG, Fabian |
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 |
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 |
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.
|
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.