Linking OO Cobol gives "GetClassObject UNRESOLVED" error



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby LotharLochkarte » Fri Aug 27, 2010 6:59 pm

Dear folks,

I try to compile and link a OO Cobol program, but the link-step abends with the messages:

IEW2456E 9207 SYMBOL GetJVMPtr UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.
IEW2456E 9207 SYMBOL GetEnvPtr UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.
IEW2456E 9207 SYMBOL GetClassObject UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.


I modified the sample JCL in the "COBOL programming guide" example. Maybe the following lines of the JCL are relevant:

//OBJMOD DD DISP=SHR,DSN=*.COMP001.SYSLIN
//SYSDEFSD DD DUMMY
//SYSLIN DD *
INCLUDE '/usr/lpp/java/J5.0/bin/j9vm/libjvm.x'
INCLUDE '/usr/lpp/cobol/lib/igzcjava.x'
INCLUDE OBJMOD

If I delete the "INCLUDE OBJMOD" line, the messages disappear, but of course the Object is needed in this statement.

I compiled the example Hello1.java file with omvs and the class is located in /u/myuserid where I also set the classpath to. (Don't know if it is important)

Can somebody make an educated guess what is going wrong here?

Thank you very much in advance!
LotharLochkarte
 
Posts: 68
Joined: Fri Aug 27, 2010 6:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby LotharLochkarte » Fri Aug 27, 2010 7:00 pm

Sorry, the sample JCL is to be found on page 322 in this document: http://publibfp.boulder.ibm.com/epubs/pdf/igy3pg50.pdf

Thanks
LotharLochkarte
 
Posts: 68
Joined: Fri Aug 27, 2010 6:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby Robert Sample » Fri Aug 27, 2010 7:58 pm

I just entered and compiled the indicated test program from the COBOL manual. The library members your linkage editor / binder step are not finding are all in /usr/lpp/cobol/lib/igzcjava.x so you need to contact your site support group to find out where they installed this library. It is also possible that they defined a mount point for this library but it is not being mounted after an IPL -- all I can say for sure is that the library wasn't found in your compile and link-edit for some reason.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby LotharLochkarte » Fri Aug 27, 2010 8:33 pm

Thank your for the reply!

I'll check it out on monday.

I remember to have inspected the file /usr/lpp/cobol/lib/igzcjava.x and I found only one line in there (which I do not remember right now). The same issue with '/usr/lpp/java/J5.0/bin/j9vm/libjvm.x'.

Is this normal or is the file corrupt/incomplete?
LotharLochkarte
 
Posts: 68
Joined: Fri Aug 27, 2010 6:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby Robert Sample » Fri Aug 27, 2010 9:08 pm

That's normal -- those are object / load modules and as such are not human-readable.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby LotharLochkarte » Thu Sep 02, 2010 3:06 am

Thank you again, now the linkage-editor steps works fine and gives RC=0! :-)

However, I am not finished yet. The GO-step (again I copied from the sample JCL above) abends with RC=16 and the message "Exception in thread 'main'".

I guess the system cannot find Hello1.class file. I compiled the Hello1.java file unter USS (with omvs shell) and the resulting class file is located in /u/myuserid/Hello1.class.

The ENV-file, which I specify in the GO-step looks like this:

PATH=/bin:/usr/lpp/java/J5.0/bin.
LIBPATH=/lib:/usr/lib:/usr/lpp/java/J5.0/bin:/usr/lpp/java/J5.0/bin/j9vm
CLASSPATH=/u/myuserid

Do you have an idea how to solve this?

Thanks. :-)
LotharLochkarte
 
Posts: 68
Joined: Fri Aug 27, 2010 6:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby Robert Sample » Thu Sep 02, 2010 4:40 am

My experiments came up with the same error. I haven't had time to go back and figure out what's going on, yet, but hopefully things will slow down soon and I can work out the "exception in thread main" error.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby dick scherrer » Thu Sep 02, 2010 9:10 am

Hello,

Just a couple of thoughts/guesses. . .

Is there a "class" directory beneath /u/myuserid?

Might it help to add /u/myuserid to the end of LIBPATH?

I've not done this on the mainframe, but when i worked on different UNIX systems, it was often product dependent as to which directories had to be named in various "..path" variables.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby LotharLochkarte » Fri Sep 03, 2010 1:38 am

Dear Dick,

I have tried out your ideas, but unfortunately they didn't solve the problem...
LotharLochkarte
 
Posts: 68
Joined: Fri Aug 27, 2010 6:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Linking OO Cobol gives "GetClassObject UNRESOLVED" error

Postby LotharLochkarte » Tue Sep 07, 2010 9:31 pm

I tried out several things in the meantime, but it still doesn't work...

If somebody has an idea... :-)
LotharLochkarte
 
Posts: 68
Joined: Fri Aug 27, 2010 6:51 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post