axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5653) StackOverflowException triggered by OperationDescriptionImpl.toString()
Date Sun, 05 Jul 2015 10:44:04 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14614207#comment-14614207
] 

Hudson commented on AXIS2-5653:
-------------------------------

SUCCESS: Integrated in Axis2 #2897 (See [https://builds.apache.org/job/Axis2/2897/])
AXIS2-5653: Applied Hiranya Jayathilaka's patch to prevent a StackOverflowException triggered
by OperationDescriptionImpl.toString(). (veithen: rev 1689227)
* /axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java


> StackOverflowException triggered by OperationDescriptionImpl.toString()
> -----------------------------------------------------------------------
>
>                 Key: AXIS2-5653
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5653
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.6.2
>            Reporter: James Livingston
>         Attachments: AXIS2-5653.patch
>
>
> If the logging level is set to DEBUG, a StackOverFlowException can be triggered by running
toString() on an appropriate OperationDescriptionImpl.
>     ...
>     at java.lang.String.valueOf(String.java:2854) [:1.7.0_09]
>     at java.lang.StringBuilder.append(StringBuilder.java:128) [:1.7.0_09]
>     at org.apache.axis2.jaxws.description.impl.OperationDescriptionImpl.getSyncOperation(OperationDescriptionImpl.java:1013)
>     at org.apache.axis2.jaxws.description.impl.OperationDescriptionImpl.getAxisOperation(OperationDescriptionImpl.java:704)
>     at org.apache.axis2.jaxws.description.impl.OperationDescriptionImpl.toString(OperationDescriptionImpl.java:2300)
>     at java.lang.String.valueOf(String.java:2854) [:1.7.0_09]
>     ...
> 1) toString() includes the code 'string.append("Axis Operation: " + getAxisOperation());'
> 2) The first time getAxisOperation() is called, it calls getSyncOperation()
> 3) The first time getSyncOperation() is called, the description is set to `this` if isJAXWSAsyncClientMethod()
is false.
> 4) Further on, if the logging is set to DEBUG level, toString() is called on the description,
looping to (1)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message