Michael, On 9/20/05, Michael Peters <[EMAIL PROTECTED]> wrote: > Hello all, > > I don't know if anyone has any ideas of what might be happening, or > where to start trouble shooting this, but I thought I'd toss it out there. > > We have an application that uses Inline::Java under mod_perl and it > works great most of the time. We are using the JT400 open source Java > libraries to access an IBM AS400 machine and it works as expected. > However the AS400 is constantly coming down for backups (at least once a > day for about an hour, and 2-3 hours over the weekend). The smaller > backups don't seem to be a problem, but the longer ones do. When the > AS400 comes back up and the mod_perl application (or even standalone > scripts that run under cron) attempts to contact the AS400 again, we get > this message in the error log: > > [error] Can't receive packet from JVM: at > /usr/local/plunkit/lib/i386-linux/Inline/Java/Protocol.pm line 337
Basically this means that the socket connection between the Perl and Java parts of Inline::Java has been closed unexpectedly. Just to make sure I get this properly: One one machine you have mod_perl/Inline::Java running, and inside the Java part of Inline::Java you are using the JT400 library to connect to an AS400 machine. The problem happens when the AS400 machine goes down and then comes back up again. When the problem occurs, is the entire JVM gone or is it still running (meaning that only the current thread could be having problems)? Also, have you tried activating DEBUG (say level 3) to see if you can get anything useful? Patrick > To muddy the waters even further, this doesn't happen in the QA > environment, but only on the production machines. The main difference I > can see right now is the firewall between the AS400 and the > mod_perl/Inline::Java app in production. > > Restarting the JVM and restarting our mod_perl application seems to fix > it everytime. But we'd rather not have to do that. Suggestions? > > -- > Michael Peters > Developer > Plus Three, LP > > -- ===================== Patrick LeBoutillier Laval, Québec, Canada
