axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Full Name (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-2366) Endless loop during serialization
Date Thu, 22 Mar 2007 08:57:32 GMT
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


Mime
View raw message