× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ashish Kulkarni wrote:
> 
> hi
> so what may be the reason for my problem,
> how can i solve it...is there any PTF or some thing
> missing
> 

I don't know.  Doing RCLRSC and RCLACTGRP won't affect your Java
program.  Your RPG program will think it is running the first time, but
the Java part will not.  Maybe your RPG program is trying to initialize
something in Java but the Java doesn't want to be initialized when it is
already active.  If this is the problem, you should write an activation
group exit so you can close down all your Java resources when the
activation group ends (maybe the Java class has to close a file or
something).  To register your activation group exit, see the CEE4RAGE
function in the info center.

Here's a debugging suggestion:

1. write a small Java class with a method that calls the constructor for 
   com.pfizer.maps.data.PORPGToJava(String)

   Something like this:

      import com.pfizer.maps.data.*;
      class Debug
      {
          static PORPGToJava test (String s)
          {
              try
              {
                 return new PORPGToJava (s);
              }
              catch (Exception e)
              {
                 e.printStackTrace();    
                 throw new Exception("constructor failed, see output");
              }
          }
      }

2. Change your RPG program to call this method instead of the
PORPGToJava 
   constructor.
3. Start a new job.  Follow the instructions here to have Java's stderr 
   output sent to a file: 
      http://archive.midrange.com/rpg400-l/200309/msg00018.html
4. Run your application again.  When the call fails, look in your stderr 
   file - hopefully the stack trace will have some information on the 
   cause of the error.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.