• Subject: Re: Error 5 on API - Java Virtual Machine could not be found
  • From: "Fred Kulack" <kulack@xxxxxxxxxx>
  • Date: Tue, 30 Jan 2001 13:22:52 -0600
  • Importance: Normal


Hate to ask a stupid question but you didn't actually say so...

You WERE running other Java and servlet stuff on the AS/400
successfully before this particular failure started, right?

Just checking... 8-)

Did you check any of the log files? Perhaps the classpath
includes things on your PC/Tomcat installation that
aren't present in the default classpath of the IBM HTTP
server on the AS/400.


"Do you believe that my being stronger or faster has anything
 to do with my muscles in this place?" ... "Free your mind."
Laurence Fishburne as Morpheus in 'The Matrix'.

Fred A. Kulack  -  AS/400e  Java and Java DB2 access, Jdbc, JTA, etc...
IBM in Rochester, MN  (Phone: 507.253.5982   T/L 553-5982)
mailto:kulack@us.ibm.com   Personal: mailto:kulack@bresnanlink.net
AOL Instant Messenger: Home:FKulack  Work:FKulackWrk


"Richard Casey" <casey_r@popmail.firn.edu>@midrange.com on 01/30/2001
11:57:27 AM

Please respond to JAVA400-L@midrange.com

Sent by:  owner-java400-l@midrange.com


To:   "Java-400 List \(E-mail\)" <JAVA400-L@midrange.com>
cc:
Subject:  Error 5 on API - Java Virtual Machine could not be found



I've been experimenting with servlets that access AS/400 information and
display it in my browser. Running the servlet under Tomcat on my PC works
fine.
In theory, I should be able to move the class files to the AS/400 and run
them under IBM's HTTP server. However, when I submit the form to run the
servlet, the browser just sits there waiting. Looking at the joblog for the
HTTP server instance shows the following message.

 Message ID . . . . . . :   CPDB520       Severity . . . . . . . :   40
 Message type . . . . . :   Diagnostic

 Message . . . . :   Error 5 detected on application programming interface.
 Cause . . . . . :   An error was found on the application programming
   interface (API) request.  The error code is 5.  The error codes are
defined
   as follows:
     03- An API parameter is not valid.
     04- The current thread is attached to another Java Virtual Machine.
     05- The Java Virtual Machine could not be found.  It was never created
or
   has been destroyed.
     06- Insufficient application storage exists to return the requested
data.
     07- A Java Virtual Machine cannot be created in a job that allows only
one
   thread to be started.
     08- The classpath is not valid.


Any ideas where my JVM went? Thanks in advance!

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---



+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.