Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 59750 invoked from network); 11 Oct 2007 13:59:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2007 13:59:44 -0000 Received: (qmail 10101 invoked by uid 500); 11 Oct 2007 13:59:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 10055 invoked by uid 500); 11 Oct 2007 13:59:30 -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: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 10044 invoked by uid 99); 11 Oct 2007 13:59:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 06:59:30 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 13:59:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5D87C71420E for ; Thu, 11 Oct 2007 06:58:51 -0700 (PDT) Message-ID: <31124364.1192111131380.JavaMail.jira@brutus> Date: Thu, 11 Oct 2007 06:58:51 -0700 (PDT) From: "Bill Kuker (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS-2701) SOAPMonitor stops when it receives information about a response that it never saw a request for. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org SOAPMonitor stops when it receives information about a response that it never saw a request for. ------------------------------------------------------------------------------------------------ Key: AXIS-2701 URL: https://issues.apache.org/jira/browse/AXIS-2701 Project: Axis Issue Type: Bug Affects Versions: 1.4 Environment: 1.5 JVM on firefox on windows, 1.4 AXIS on tomcat on solaris, but this will happen anywhere. Reporter: Bill Kuker Priority: Trivial There is a minor bug in SOAPMonitor applet. If you start it after a request has come in, but before the response gets sent back, the SOAPMonitorHandler sends the response to the applet, which can't find a request and disconnects, saying "The server communication has been terminated." The following function throws a NullPointerException trying to get the id value. For clarity I've just included the fix in context. The stderr output is clearly not necessary. /** * Find the data for a given id */ public SOAPMonitorData findData(Long id) { SOAPMonitorData soap = null; for (int row=data.size(); (row > 0) && (soap == null); row--) { soap = (SOAPMonitorData) data.elementAt(row-1); //NEW CODE if ( soap == null || soap.getId() == null ){ System.err.println("Never saw a request to match this response."); return null; } //END NEW CODE if (soap.getId().longValue() != id.longValue()) { soap = null; } } return soap; } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org