Robert, Unfortunately for the moment there is only one easy solution to your problem: the PORT configuration option.
The default port is 7890. What I think is happening is that some of the tests can't start the server because it is already running on that port. In your scripts you can set a different port for each user and that should work fine. Let me know if that works, even if it might not be that practical. One of the problems I have is that I can't tell the JVM where classes are after it is started. It has to be known in advance in the CLASSPATH. That's why each script needs it's own separate process. SHARED_JVM is good for CGI scripts and stuff where all the processes are sharing the same Java classes. What I could do is check if the port is available and then increment the port number until I find an available port, but that could slow down startup. If some of you have suggestions thet are welcome... Cheers, Patrick ---------------------------------- | Patrick LeBoutillier | [EMAIL PROTECTED]
From: Robert Bruccoleri <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [EMAIL PROTECTED] (John Hinsdale)
Subject: Multiple programs running Inline-Java-0.33
Date: Wed, 12 Feb 103 11:20:24 -0500 (EST)
Dear Patrick,
I've successfully built and tested Inline-Java-0.33 on an SGI
Origin 2000 system using the Java2 SDK 1.3.1. It tests out just fine
when run by a single user. However, when multiple users try it, it
fails with all sorts of protocol errors. The following output
resulted when I tried running "make test" twice.
Our SGI system has 32 CPU's, so these tests do run in
parallel.
Do you have any plans to modify the JVM server process to
spawn a separate processes for each connection request? Thanks. --Bob
gaia root 105 >>make test
PERL_DL_NONLAZY=1 /stf/sys/bin/perl -Iblib/arch -Iblib/lib -I/stf/sys/perl/lib/5.6/IP27-irix-o32-multi -I/stf/sys/perl/lib/5.6 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/01_init..............
J2SDK version is 1.3.1
t/01_init..............ok
t/02_primitives........ok
t/03_objects...........ok
t/04_members...........ok
t/05_arrays............Can't receive packet from JVM: Connection reset by peer at blib/lib/Inline/Java/Protocol.pm line 280
INIT failed--call queue aborted.
Lost connection with Java virtual machine at blib/lib/Inline/Java.pm line 1107
t/05_arrays............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-50
Failed 50/50 tests, 0.00% okay
t/06_static............Can't open server socket on port 7890: Address already in use
Can't receive packet from JVM: Connection reset by peer at blib/lib/Inline/Java/Protocol.pm line 280
INIT failed--call queue aborted.
Lost connection with Java virtual machine at blib/lib/Inline/Java.pm line 1107
t/06_static............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
t/07_polymorph.........Can't receive packet from JVM: Connection reset by peer at blib/lib/Inline/Java/Protocol.pm line 280
INIT failed--call queue aborted.
Lost connection with Java virtual machine at blib/lib/Inline/Java.pm line 1107
t/07_polymorph.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-22
Failed 22/22 tests, 0.00% okay
t/08_study.............Can't unlink file '/cxfs/stf/sys/src/Inline-Java-0.33/_Inline_test/build/study_a55d/InlineJavaServer.java':
at blib/lib/Inline/Java/Portable.pm line 72
INIT failed--call queue aborted.
t/08_study.............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-9
Failed 9/9 tests, 0.00% okay
t/09_usages............ok
t/10_1_shared_alone....ok
t/10_2_shared_start....
A problem was encountered while attempting to compile and install your Inline
Java code. The command that failed was:
"/usr/java2v131_02/bin/javac" InlineJavaServer.java t10.java > cmd.out 2>&1
The build directory was:
/cxfs/stf/sys/src/Inline-Java-0.33/_Inline_test/build/t10
The error message was:
To debug the problem, cd to the build directory, and inspect the output files.
at t/10_2_shared_start.t line 30
BEGIN failed--compilation aborted at t/10_2_shared_start.t line 30, <DATA> line 59.
t/10_2_shared_start....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED tests 1-4
Failed 4/4 tests, 0.00% okay
t/10_3_shared_use......ok
t/10_4_shared_stop.....FAILED test 1
Failed 1/4 tests, 75.00% okay
t/10_5_shared_fork.....ok
t/10_6_shared_sim......ok 5/8Can't receive packet from JVM: Connection reset by peer at blib/lib/Inline/Java/Protocol.pm line 280
at t/10_6_shared_sim.t line 61
at t/10_6_shared_sim.t line 61
t/10_6_shared_sim......dubious
Test returned status 131 (wstat 33536, 0x8300)
DIED. FAILED tests 6-8
Failed 3/8 tests, 62.50% okay
t/11_exceptions........ok
t/12_callbacks.........
A problem was encountered while attempting to compile and install your Inline
Java code. The command that failed was:
"/usr/java2v131_02/bin/javac" InlineJavaServer.java _12_callbacks_t_85a3.java > cmd.out 2>&1
The build directory was:
/cxfs/stf/sys/src/Inline-Java-0.33/_Inline_test/build/_12_callbacks_t_85a3
The error message was:
To debug the problem, cd to the build directory, and inspect the output files.
at t/12_callbacks.t line 0
INIT failed--call queue aborted.
t/12_callbacks.........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED tests 1-20
Failed 20/20 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/05_arrays.t 255 65280 50 50 100.00% 1-50
t/06_static.t 255 65280 10 10 100.00% 1-10
t/07_polymorph.t 255 65280 22 22 100.00% 1-22
t/08_study.t 255 65280 9 9 100.00% 1-9
t/10_2_shared_start.t 1 256 4 4 100.00% 1-4
t/10_4_shared_stop.t 4 1 25.00% 1
t/10_6_shared_sim.t 131 33536 8 3 37.50% 6-8
t/12_callbacks.t 1 256 20 20 100.00% 1-20
Failed 8/17 test scripts, 52.94% okay. 119/309 subtests failed, 61.49% okay.
*** Error code 2 (bu21)
========================================================================
I did turn on SHARED_JVM mode, but it still failed.
+--------------------------------+-------------------------------+
| Robert E. Bruccoleri, Ph.D. | Phone: 609 818 7251 |
| Research Fellow | Fax: 609 818 3100 |
| Applied Genomics | email: [EMAIL PROTECTED] |
| Bristol-Myers Squibb Company | Ship: Room 3A-023, |
| Mail: HW3-0.03, P.O. Box 5400 | 311 Pennington-Rocky Hill Rd |
| Princeton, NJ 08543-5400 | Pennington NJ 08534 |
+-------------------------------+--------------------------------+
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963