Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 35545 invoked from network); 9 Feb 2005 18:11:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Feb 2005 18:11:18 -0000 Received: (qmail 14197 invoked by uid 500); 9 Feb 2005 18:11:15 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 14159 invoked by uid 500); 9 Feb 2005 18:11:15 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 14146 invoked by uid 99); 9 Feb 2005 18:11:15 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 09 Feb 2005 10:11:14 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j19IBBkH032181 for ; Wed, 9 Feb 2005 19:11:11 +0100 Message-ID: <512259742.1107972671871.JavaMail.jira@ajax.apache.org> Date: Wed, 9 Feb 2005 19:11:11 +0100 (CET) From: "Danielle Vella (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-1261) engineConfigFactoryMissing (for concurrent requests) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-1261?page=comments#action_58834 ] Danielle Vella commented on AXIS-1261: -------------------------------------- I had the same issue with Axis 1.1. My problem disappeared when I started using Axis 1.2 RC2. Does anybody know what code change was made to get this to work? > engineConfigFactoryMissing (for concurrent requests) > ----------------------------------------------------- > > Key: AXIS-1261 > URL: http://issues.apache.org/jira/browse/AXIS-1261 > Project: Axis > Type: Bug > Components: Basic Architecture > Versions: 1.1 > Environment: Linux 2.4.20; Java 1.4.1; Tomcat 5.0.19; Axis 1.1 on Pentium4 + 1Gb > Reporter: Philip Fletcher > > Bug logged at request of Davanum Srinivas: > To attempt to test concurrent performance of Axis (using samples/userguide/example3), I have created two testing classes: TestThread (extends Thread:) which calls samples.userguide.example3.Client.main( args ) from it's run method and Test which simply starts 10 TestThread threads. > Occasionally (1 in 10) I will get a NullPointerException for the first 2-5 threads often accompanied by: > org.apache.axis.configuration.EngineConfigurationFactoryFinder$1 run > SEVERE: Unable to locate a valid EngineConfigurationFactory > java.lang.NullPointerException > The error is generated from line 183 of EngineConfigurationFactoryFinder.java where it has the following comments: > log.error(Messages.getMessage("engineConfigFactoryMissing")); > // we should be throwing an exception here, > // > // but again, requires more refactoring than we want to swallow > // at this point in time. Ifthis DOES occur, it's a coding error: > // factory should NEVER be null. > // Testing will find this, as NullPointerExceptions will be generated > // elsewhere. > The two (very noddy) test classes follow, along with an example stack trace: > ===TestThread.java=== > public class TestThread extends Thread { > private String mythread; > public void run() { > java.util.Random r = new java.util.Random(); > int randomtime = r.nextInt() % 250; > String tname = Thread.currentThread().getName(); > String args[] = { "-lhttp://localhost:8080/axis/services/MyService", tname }; > //Run twice in this thread > samples.userguide.example3.Client.main( args ); > samples.userguide.example3.Client.main( args ); > } > } > ===Test.java=== > class Test { > public static void main(String[] args) { > //Start some threads > for ( int i=0; i<10; i++ ) { > new TestThread().start(); > } > } > } > ===Stack Trace=== > $java Test > Mar 23, 2004 7:25:59 PM org.apache.axis.configuration.EngineConfigurationFactoryFinder$1 run > SEVERE: Unable to locate a valid EngineConfigurationFactory > java.lang.NullPointerException > at org.apache.axis.client.Service.getEngineConfiguration(Service.java:801) > at org.apache.axis.client.Service.getAxisClient(Service.java:143) > at org.apache.axis.client.Service.(Service.java:152) > at Client.main(Client.java:27) > at TestThread.run(TestThread.java:16) > java.lang.NullPointerException -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira