You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Full Name (JIRA)" <ji...@apache.org> on 2007/06/26 13:02:25 UTC
[jira] Created: (AXIS2-2860) Namespace prefix counter not reseted
Namespace prefix counter not reseted
------------------------------------
Key: AXIS2-2860
URL: https://issues.apache.org/jira/browse/AXIS2-2860
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: adb
Affects Versions: 1.2
Reporter: Full Name
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 {
stub.call(param);
} 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2860:
------------------------------------
Fix Version/s: 1.3
I think that the correct way to do this is to generate the nsprefix in each of the "new javax.xml.namespace.QName" in the generated code. we are already doing this in a couple of spots. we need to extend it further.
thanks,
dims
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.2
> Reporter: Full Name
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Minor
> Fix For: 1.3
>
>
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509350 ]
Davanum Srinivas commented on AXIS2-2860:
-----------------------------------------
Full Name,
Lowering the bug to critical. i checked in a fix that reduces calls to BeanUtils.getUniquePrefix drastically. Please try latest nightly.
Amila,
Can you please check for other situations where we can avoid calls or even completely eliminate it?
thanks,
dims
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.2
> Reporter: Full Name
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Critical
> Fix For: 1.3
>
>
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2860:
------------------------------------
Priority: Blocker (was: Minor)
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.2
> Reporter: Full Name
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Blocker
> Fix For: 1.3
>
>
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509067 ]
Amila Chinthaka Suriarachchi commented on AXIS2-2860:
-----------------------------------------------------
I'll put synchronization part for sake. but that may not realy necessary in this case. because what we want is to getunique set of prefixes for one thread.
if we keep one object per thread this could create a memory increase and have to parse this object among each ADB generated class. So the implemented way is a much simpler solution.
On the otherhand we can parse an int to serialize method and an use it to generate prefixes for each serialization. This requried some code changes and I'll look into it.
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2860:
------------------------------------
Fix Version/s: (was: 1.3)
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.2
> Reporter: Full Name
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Critical
>
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2860:
------------------------------------
Priority: Critical (was: Blocker)
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.2
> Reporter: Full Name
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Critical
> Fix For: 1.3
>
>
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Reopened: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Full Name (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Full Name reopened AXIS2-2860:
------------------------------
Please see my comments. I do not think that this fix is very robust and may lead to errors under heavy load.
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Full Name (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509053 ]
Full Name commented on AXIS2-2860:
----------------------------------
Hi,
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: https://issues.apache.org/jira/browse/AXIS2-2860
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2860:
------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-2860) Namespace prefix counter not reseted
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-2860.
-------------------------------------------------
Resolution: Fixed
fixed the issue with revision 551024.
> Namespace prefix counter not reseted
> ------------------------------------
>
> Key: AXIS2-2860
> URL: https://issues.apache.org/jira/browse/AXIS2-2860
> 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 {
> stub.call(param);
> } 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org