You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Nishant Joshi (JIRA)" <tu...@ws.apache.org> on 2008/05/08 16:38:55 UTC

[jira] Created: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

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


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.


[jira] Updated: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ant elder updated TUSCANY-2304:
-------------------------------

    Attachment: tuscany-sca-all-1.2-incubating.jar

Its the client side that needs this fix and it sounds like you are using the tuscany-sca-all jar on the client side so here's a patched version of that atached to the jira

> 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, tuscany-sca-all-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.


[jira] Updated: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ 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.


[jira] Updated: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "Nishant Joshi (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nishant Joshi updated TUSCANY-2304:
-----------------------------------

    Attachment: Client_Service.zip

> 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
>         Attachments: Client_Service.zip
>
>
> 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.


[jira] Commented: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596035#action_12596035 ] 

ant elder commented on TUSCANY-2304:
------------------------------------

Ok, which release do you need the jar to be based on and do you use the tuscany-sca-all jar or  the tuscany-binding-ws-axis2 jar?

> 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
>
>
> 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.


[jira] Commented: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596029#action_12596029 ] 

ant elder commented on TUSCANY-2304:
------------------------------------

The problem is that when the Axis2BindingInvoker.invokeTarget receives an exception response from the remote service it does not call operationClient.complete so the outgoing connection is not freed up and as we have HttpClient setDefaultMaxConnectionsPerHost set to 2 after two exceptions are received all the connections are used up so subsequent requests hang.





> 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
>
>
> 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.


[jira] Commented: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "Nishant Joshi (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596033#action_12596033 ] 

Nishant Joshi commented on TUSCANY-2304:
----------------------------------------

Thanks Ant for investigating it. It would be convenient for me if you can provide me built jar for test.

> 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
>
>
> 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.


[jira] Commented: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596031#action_12596031 ] 

ant elder commented on TUSCANY-2304:
------------------------------------

I've committed a fix for this in r655464, can you try this out on the trunk code or can I give you a built jar to try out to check it fixes the issue for you?

> 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
>
>
> 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.


[jira] Commented: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "Nishant Joshi (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596037#action_12596037 ] 

Nishant Joshi commented on TUSCANY-2304:
----------------------------------------

I m using 1.2 incubating so it will be best if fix included in next release i m using lib\tuscany-sca-manifest when i run it in Eclipse, Actually i will replace the afftected jar into my deployment so if you can provide me all the modifed jar for this fix then it will be best

> 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
>
>
> 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.


[jira] Updated: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ant elder updated TUSCANY-2304:
-------------------------------

    Fix Version/s:     (was: Java-SCA-Next)
                   Java-SCA-1.2.1

> 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-1.2.1
>
>         Attachments: Client_Service.zip, tuscany-binding-ws-axis2-1.2-incubating.jar, tuscany-sca-all-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.


[jira] Commented: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "Nishant Joshi (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596083#action_12596083 ] 

Nishant Joshi commented on TUSCANY-2304:
----------------------------------------

Yeah your are right, now you can closed this issue.
thanks a lot for all your help

> 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, tuscany-sca-all-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.


[jira] Commented: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "Nishant Joshi (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596047#action_12596047 ] 

Nishant Joshi commented on TUSCANY-2304:
----------------------------------------

Hi Ant,
Still I m facing same issue. please can you check the jar you have attached ?
I have replaced this jar into lib of my war and also in my 1.2 incubating \modules... As i have explianed you in above i m using \lib\tuscnay-sca-manifest on client side to invoke the SCA client.


> 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.


[jira] Commented: (TUSCANY-2304) SCA client Hang Forver after getting handled exception from service

Posted by "Nishant Joshi (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596058#action_12596058 ] 

Nishant Joshi commented on TUSCANY-2304:
----------------------------------------

Sorry for my last comment, problem is resolved now 
thanks Ant 

> 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.