[ https://issues.apache.org/jira/browse/AXIS2-2366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483110 ]
Amila Chinthaka Suriarachchi commented on AXIS2-2366: ----------------------------------------------------- Can you have a look at with the nightly builds? > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]