It's all about the answers!

Ask a question

Running Plain Java Client on z/OS


SEC Servizi (97123860) | asked Aug 17 '12, 5:23 a.m.
edited Aug 20 '12, 2:47 a.m.
 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.

Be the first one to answer this question!


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.