axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Full Name (JIRA)" <>
Subject [jira] Commented: (AXIS2-2860) Namespace prefix counter not reseted
Date Fri, 29 Jun 2007 08:29:05 GMT


Full Name commented on AXIS2-2860:


I am not very pleased about your fix in BeanUtil:

public static String getUniquePrefix() {
        if (nsCount > 1000){
            nsCount = 1;
        return "s" + nsCount++;

Please correct me if I am wrong but why is nsCount static and not synchronized? Under heavy
load strange side effects may appear.
Please tell me, why you do not use the counter per SOAP Thread- request-base and reset it
before every new ADB serializiation? Each message could then start with '1' and would not
interrupt with parallel messages.

> Namespace prefix counter not reseted
> ------------------------------------
>                 Key: AXIS2-2860
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.2
>            Reporter: Full Name
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Minor
> We are using current Axis2 release with ADB binding. Each Axis stub is reused after each
call. After several calls, we have noticed, that some namespace-prefix counters are never
reseted and will increase after every loop:
> <ns27:tag..> will result to: <ns1233:tag..> after several calls with the
same stub instance. You can reproduce this behaviour if you just put a loop aroung a stub:
> while (true) {
> try {
> } catch (Exception e) {
>    e.printStackTrace();
> } finally {
>   stub.cleanup();
> }
> }
> It seems, that 'xmlWriter.getPrefix(namespace)' inside the ADB classes is not reseted
after each call. 
> It would be better (performance and payload length), to reset counter (e.g. to ns1) back.

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:
For additional commands, e-mail:

View raw message