Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 63080 invoked from network); 22 Mar 2007 08:58:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 08:58:28 -0000 Received: (qmail 80475 invoked by uid 500); 22 Mar 2007 08:58:31 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 80396 invoked by uid 500); 22 Mar 2007 08:58:31 -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 80378 invoked by uid 99); 22 Mar 2007 08:58:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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, 22 Mar 2007 01:58:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A02C9714057 for ; Thu, 22 Mar 2007 01:57:32 -0700 (PDT) Message-ID: <27406401.1174553852651.JavaMail.jira@brutus> Date: Thu, 22 Mar 2007 01:57:32 -0700 (PDT) From: "Full Name (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS2-2366) Endless loop during serialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Endless loop during serialization --------------------------------- Key: AXIS2-2366 URL: https://issues.apache.org/jira/browse/AXIS2-2366 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: adb Affects Versions: nightly Reporter: Full Name Priority: Blocker During SOAP transmission, ADB's beans are serialized. If a namespace prefix is already used, a new one is generated with this method: private java.lang.String registerPrefix(..) { .. while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) { prefix = createPrefix(); } ... } private java.lang.String createPrefix() { return "ns" + (int)Math.random(); } It will always return "ns0", because Math.random return a value betwen 0.0and < 1. Should be fixed IMHO. -- 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