Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Running Plain Java Client on z/OS

 We would try to run a Plain Java Client on z/OS (OMVS).
A JRE 6 is available:
$ java -version                                                                 
java version "1.6.0"                                                            
Java(TM) SE Runtime Environment (build pmz3160_26-20110228_01)                  
IBM J9 VM (build 2.6, JRE 1.6.0 z/OS s390-31 20110217_75924 (JIT enabled, AOT enabled)                                                                         
J9VM - R26_Java626_GA_20110217_1713_B75924                                      
JIT  - r11_20110215_18645                                                       
GC   - R26_Java626_GA_20110217_1713_B75924                                      
J9CL - 20110217_75924)                                                          
JCL  - 20110207_01      
We can also correctly compile our classes:
$ javac -cp .:/jazz/client/plainjava/* Test.java
But, when we try to execute the class, we got an exception:
$ java -cp .:/jazz/client/plainjava/* Test
Exception in thread "main" java.lang.ExceptionInInitializerError
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:227)
      at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:412)
      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 Test.main(Test.java:14)
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
      at com.ibm.team.repository.common.internal.querypath.AbstractQueryPathModel$Implementation.getItemType(AbstractQueryPathModel.java:190)
      at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuery.java:92)
      at com.ibm.team.repository.client.internal.ContributorManager.createAllContributorsQuery(ContributorManager.java:57)
      at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(ContributorManager.java:45)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:205)
      ... 5 more 
Anyone has already tryed it?
Thanks in advance.

P.S. Yep, the same class works if we run it on Windows.

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 457
× 411
× 69
× 2

Question asked: Aug 17 '12, 5:23 a.m.

Question was seen: 4,469 times

Last updated: Aug 20 '12, 2:47 a.m.

Confirmation Cancel Confirm