× 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.



Hello
I had same issue when i was trying to call Java from
RPG in V5R1, i had open a PMR with IBM (PMR 22654-278,
i tried to google it but could not find it)
We had same situtation where we used to call
reclaiming activation group and reclaim resources when
the program returns to menu screen. 
First time java program would work fine, but when i
try to call it again after calling reclaiming
activation group and reclaim resources it would give
error
"Tried to refer to all or part of an object that no
longer"

This is the reply i got from IBM
"The service program QJVAIO14 is built to run in      

default activation group.  RCLRSC apparently closes a 
file which QJVAIO14 uses and assumes to be open; hence

the error."

I was asked to open a system enhancement ticket with
IBM which i did and never heard from them again.
I have not tested it on V5R2 and V5R3.

As a alternate solution, i created a subsystem on
AS400 and ran my java program in that subsystem.
So my java program would be running in subsystem
listening to a data queue, my RPG program would write
data to this data queue, and then java program would
process it and write it back to another data queue.
This way the response was fast and i did not have to
worry about activation groups

Ashish

--- Larry Gorlin <LGorlin@xxxxxxxxxxxxxxxxx> wrote:

> I seem to have an odd issue going on when accessing
> Java from RPG
> programs within a single interactive job.  
>  
> Our company uses two activation groups (we'll call
> them ActivationGroup1
> and ActivationGroup2).  All standard ILE RPG
> programs are compiled under
> ActivationGroup1 and Service Programs are compiled
> under
> ActivationGroup2.
>  
> We have a main menu program which regularly does a
> RCLACTGRP for each of
> these two activation groups.
>  
> The problem is when accessing Java methods inside an
> RPG Program.  The
> first time in, there's no issue.  The JVM creates
> itself and all methods
> run fine.
>  
> The issue happens after the user returns to the menu
> and the RCLACTGRP's
> are run.  When the user then returns to one of the
> procedures that call
> java methods, the program crashes with a "Attempting
> to access a
> destroyed object" message.  Occasionally, I've also
> seen the message
> "The Java Virtual Machine has ended".
>  
> After some experimentation, it seems that the
> RCLACTGRP for the Service
> Program activation group is the one that causes the
> problem.  If at any
> time I do a RCLACTGRP ActivationGroup2, all attempts
> to access Java from
> within my RPG will fail.
>  
> I don't see the link between the JVM and the
> activation group. 
>  
> Any ideas?
>  
> Thanks,
> Larry (lgorlin@xxxxxxxxxxxxxxxxx)
> 
>
_________________________________________________________
> 
> REMINDER:  IP User Conference Sept. 12-14!  Click
> here to register:  
>
https://www.Islandpacific.com/2005UserConference/register.asp
> 
>
_________________________________________________________
>         - ISLAND PACIFIC E-MAIL LEGAL DISCLAIMER -
> 
>   This email is covered by the disclaimer linked
> below.
>           You are urged to read the disclaimer.
>         <http://www.islandpacific.com/email.htm>
>
_________________________________________________________
> 
> -- 
> This is the Java Programming on and around the
> iSeries / AS400 (JAVA400-L) mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/java400-l.
> 
> 



                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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.