[
https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ant elder updated TUSCANY-2304:
-------------------------------
Attachment: tuscany-binding-ws-axis2-1.2-incubating.jar
I've attached a patch binding-ws-axis2 jar to the JIRA, the change in there is
the following:
Index:
src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java
===================================================================
---
src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java
(revision 655474)
+++
src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2BindingInvoker.java
(working copy)
@@ -109,9 +109,10 @@
protected Object invokeTarget(Message msg) throws AxisFault {
OperationClient operationClient = createOperationClient(msg);
-
// ensure connections are tracked so that they can be closed by the
reference binding
MessageContext requestMC =
operationClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
+ try {
+
requestMC.getOptions().setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
Boolean.TRUE);
requestMC.getOptions().setTimeOutInMilliSeconds(120000L);
@@ -128,9 +129,11 @@
response.build();
}
+ return response;
+
+ } finally {
operationClient.complete(requestMC);
-
- return response;
+ }
}
@SuppressWarnings("deprecation")
> SCA client Hang Forver after getting handled exception from service
> -------------------------------------------------------------------
>
> Key: TUSCANY-2304
> URL: https://issues.apache.org/jira/browse/TUSCANY-2304
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Embedded Runtime
> Affects Versions: Java-SCA-1.2
> Environment: Tuscnay SCA 1.2
> Reporter: Nishant Joshi
> Priority: Blocker
> Fix For: Java-SCA-Next
>
> Attachments: Client_Service.zip,
> tuscany-binding-ws-axis2-1.2-incubating.jar
>
>
> Hi there,
> The problem here from SCA client is blocking me to go further.
> Here i m also attaching my client and service to give you idea.
> Here from service i m throwing exception and handled them into my exception
> class.
> Now on client side after getting two exception from service it was hang and
> not proceed further.
> I have also tested with diff. sequence of call and behavior i noticed is
> after getting total 2 exception from service my SCA client hangs forever.
> Its a very interesting scenario for me. please let me know if any body has
> faced same.
> By investigating my sample i guess many of us may face same problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.