You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Lou Amodeo (JIRA)" <tu...@ws.apache.org> on 2006/12/06 20:26:21 UTC

[jira] Created: (TUSCANY-977) NoRegisteredCallbackException not thrown to client

NoRegisteredCallbackException not thrown to client
--------------------------------------------------

                 Key: TUSCANY-977
                 URL: http://issues.apache.org/jira/browse/TUSCANY-977
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core
            Reporter: Lou Amodeo


NoRegisteredCallbackException not thrown to client.  

The client does not implement the callback interface and does not call setCallback prior to calling the service.   I was expecting to receive an exception and instead the service was invoked.  

try
     {
       aCallBackService.knockKnock("Knock Knock");
     }
     catch (NoRegisteredCallbackException NotRegEx)
     {
    	correctException = true; 
     }  
     catch (Exception ex)
     {
      ex.printStackTrace();	 
     }	 
	  



[INFO] [tuscany-itest:start {execution: start}]
[INFO] Starting Tuscany...
[INFO] [tuscany-itest:test {execution: test}]
[INFO] Executing tests...
CallBackBasicServiceImpl message received: Knock Knock
java.lang.NullPointerException
        at org.apache.tuscany.sca.test.CallBackSetCallbackServiceImpl.knockKnock
(CallBackSetCallbackServiceImpl.java:29)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT
arget(JavaTargetInvoker.java:71)
        at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target
InvokerExtension.java:64)
        at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
ptor.java:44)
        at org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non
BlockingBridgingInterceptor.java:80)
        at org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2
37Work.run(Jsr237WorkScheduler.java:212)
        at org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo
rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:665)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:690)
        at java.lang.Thread.run(Thread.java:797)
[INFO] Test results: {skipped=0, completedCount=1, failures=1, errors=0}
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There were test failures
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Wed Dec 06 14:06:57 EST 2006
[INFO] Final Memory: 7M/19M
[INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TUSCANY-977) NoRegisteredCallbackException not thrown to client

Posted by "Lou Amodeo (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463334 ] 

Lou Amodeo commented on TUSCANY-977:
------------------------------------

This is now functioning with r494421.  Thank You. 

> NoRegisteredCallbackException not thrown to client
> --------------------------------------------------
>
>                 Key: TUSCANY-977
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-977
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core
>            Reporter: Lou Amodeo
>         Assigned To: Ignacio Silva-Lepe
>
> NoRegisteredCallbackException not thrown to client.  
> The client does not implement the callback interface and does not call setCallback prior to calling the service.   I was expecting to receive an exception and instead the service was invoked.  
> try
>      {
>        aCallBackService.knockKnock("Knock Knock");
>      }
>      catch (NoRegisteredCallbackException NotRegEx)
>      {
>     	correctException = true; 
>      }  
>      catch (Exception ex)
>      {
>       ex.printStackTrace();	 
>      }	 
> 	  
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> CallBackBasicServiceImpl message received: Knock Knock
> java.lang.NullPointerException
>         at org.apache.tuscany.sca.test.CallBackSetCallbackServiceImpl.knockKnock
> (CallBackSetCallbackServiceImpl.java:29)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT
> arget(JavaTargetInvoker.java:71)
>         at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target
> InvokerExtension.java:64)
>         at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
> ptor.java:44)
>         at org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non
> BlockingBridgingInterceptor.java:80)
>         at org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2
> 37Work.run(Jsr237WorkScheduler.java:212)
>         at org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo
> rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:665)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:690)
>         at java.lang.Thread.run(Thread.java:797)
> [INFO] Test results: {skipped=0, completedCount=1, failures=1, errors=0}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There were test failures
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Wed Dec 06 14:06:57 EST 2006
> [INFO] Final Memory: 7M/19M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Closed: (TUSCANY-977) NoRegisteredCallbackException not thrown to client

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

Ignacio Silva-Lepe closed TUSCANY-977.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: Java-Mx

> NoRegisteredCallbackException not thrown to client
> --------------------------------------------------
>
>                 Key: TUSCANY-977
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-977
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core
>            Reporter: Lou Amodeo
>         Assigned To: Ignacio Silva-Lepe
>             Fix For: Java-Mx
>
>
> NoRegisteredCallbackException not thrown to client.  
> The client does not implement the callback interface and does not call setCallback prior to calling the service.   I was expecting to receive an exception and instead the service was invoked.  
> try
>      {
>        aCallBackService.knockKnock("Knock Knock");
>      }
>      catch (NoRegisteredCallbackException NotRegEx)
>      {
>     	correctException = true; 
>      }  
>      catch (Exception ex)
>      {
>       ex.printStackTrace();	 
>      }	 
> 	  
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> CallBackBasicServiceImpl message received: Knock Knock
> java.lang.NullPointerException
>         at org.apache.tuscany.sca.test.CallBackSetCallbackServiceImpl.knockKnock
> (CallBackSetCallbackServiceImpl.java:29)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT
> arget(JavaTargetInvoker.java:71)
>         at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target
> InvokerExtension.java:64)
>         at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
> ptor.java:44)
>         at org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non
> BlockingBridgingInterceptor.java:80)
>         at org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2
> 37Work.run(Jsr237WorkScheduler.java:212)
>         at org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo
> rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:665)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:690)
>         at java.lang.Thread.run(Thread.java:797)
> [INFO] Test results: {skipped=0, completedCount=1, failures=1, errors=0}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There were test failures
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Wed Dec 06 14:06:57 EST 2006
> [INFO] Final Memory: 7M/19M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TUSCANY-977) NoRegisteredCallbackException not thrown to client

Posted by "Lou Amodeo (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-977?page=comments#action_12456954 ] 
            
Lou Amodeo commented on TUSCANY-977:
------------------------------------

I am still seeing the same problem with r484648.    I would expect that the exception would be thrown prior to the method being dispatched on the service impl.  If the client does not implement the callback interface then it must specify a callback via the setCallback() API. If it doesn't do this then there would be no callback registered thus the exception.    Am I misundersatnding the spec here?  Thank You 

> NoRegisteredCallbackException not thrown to client
> --------------------------------------------------
>
>                 Key: TUSCANY-977
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-977
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core
>            Reporter: Lou Amodeo
>         Assigned To: Ignacio Silva-Lepe
>
> NoRegisteredCallbackException not thrown to client.  
> The client does not implement the callback interface and does not call setCallback prior to calling the service.   I was expecting to receive an exception and instead the service was invoked.  
> try
>      {
>        aCallBackService.knockKnock("Knock Knock");
>      }
>      catch (NoRegisteredCallbackException NotRegEx)
>      {
>     	correctException = true; 
>      }  
>      catch (Exception ex)
>      {
>       ex.printStackTrace();	 
>      }	 
> 	  
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> CallBackBasicServiceImpl message received: Knock Knock
> java.lang.NullPointerException
>         at org.apache.tuscany.sca.test.CallBackSetCallbackServiceImpl.knockKnock
> (CallBackSetCallbackServiceImpl.java:29)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT
> arget(JavaTargetInvoker.java:71)
>         at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target
> InvokerExtension.java:64)
>         at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
> ptor.java:44)
>         at org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non
> BlockingBridgingInterceptor.java:80)
>         at org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2
> 37Work.run(Jsr237WorkScheduler.java:212)
>         at org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo
> rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:665)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:690)
>         at java.lang.Thread.run(Thread.java:797)
> [INFO] Test results: {skipped=0, completedCount=1, failures=1, errors=0}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There were test failures
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Wed Dec 06 14:06:57 EST 2006
> [INFO] Final Memory: 7M/19M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TUSCANY-977) NoRegisteredCallbackException not thrown to client

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-977?page=comments#action_12456432 ] 
            
Ignacio Silva-Lepe commented on TUSCANY-977:
--------------------------------------------

I have checked in a fix with r483467. Can you verify and let me know to mark this issue as resolved?

> NoRegisteredCallbackException not thrown to client
> --------------------------------------------------
>
>                 Key: TUSCANY-977
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-977
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core
>            Reporter: Lou Amodeo
>         Assigned To: Ignacio Silva-Lepe
>
> NoRegisteredCallbackException not thrown to client.  
> The client does not implement the callback interface and does not call setCallback prior to calling the service.   I was expecting to receive an exception and instead the service was invoked.  
> try
>      {
>        aCallBackService.knockKnock("Knock Knock");
>      }
>      catch (NoRegisteredCallbackException NotRegEx)
>      {
>     	correctException = true; 
>      }  
>      catch (Exception ex)
>      {
>       ex.printStackTrace();	 
>      }	 
> 	  
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> CallBackBasicServiceImpl message received: Knock Knock
> java.lang.NullPointerException
>         at org.apache.tuscany.sca.test.CallBackSetCallbackServiceImpl.knockKnock
> (CallBackSetCallbackServiceImpl.java:29)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT
> arget(JavaTargetInvoker.java:71)
>         at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target
> InvokerExtension.java:64)
>         at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
> ptor.java:44)
>         at org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non
> BlockingBridgingInterceptor.java:80)
>         at org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2
> 37Work.run(Jsr237WorkScheduler.java:212)
>         at org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo
> rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:665)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:690)
>         at java.lang.Thread.run(Thread.java:797)
> [INFO] Test results: {skipped=0, completedCount=1, failures=1, errors=0}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There were test failures
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Wed Dec 06 14:06:57 EST 2006
> [INFO] Final Memory: 7M/19M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TUSCANY-977) NoRegisteredCallbackException not thrown to client

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-977?page=comments#action_12457892 ] 
            
Ignacio Silva-Lepe commented on TUSCANY-977:
--------------------------------------------

Ok, I misunderstood the spec. I have checked in a fix with r486333. Can you verify and let me know to mark this issue as resolved? 

> NoRegisteredCallbackException not thrown to client
> --------------------------------------------------
>
>                 Key: TUSCANY-977
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-977
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core
>            Reporter: Lou Amodeo
>         Assigned To: Ignacio Silva-Lepe
>
> NoRegisteredCallbackException not thrown to client.  
> The client does not implement the callback interface and does not call setCallback prior to calling the service.   I was expecting to receive an exception and instead the service was invoked.  
> try
>      {
>        aCallBackService.knockKnock("Knock Knock");
>      }
>      catch (NoRegisteredCallbackException NotRegEx)
>      {
>     	correctException = true; 
>      }  
>      catch (Exception ex)
>      {
>       ex.printStackTrace();	 
>      }	 
> 	  
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> CallBackBasicServiceImpl message received: Knock Knock
> java.lang.NullPointerException
>         at org.apache.tuscany.sca.test.CallBackSetCallbackServiceImpl.knockKnock
> (CallBackSetCallbackServiceImpl.java:29)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT
> arget(JavaTargetInvoker.java:71)
>         at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target
> InvokerExtension.java:64)
>         at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
> ptor.java:44)
>         at org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non
> BlockingBridgingInterceptor.java:80)
>         at org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2
> 37Work.run(Jsr237WorkScheduler.java:212)
>         at org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo
> rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:665)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:690)
>         at java.lang.Thread.run(Thread.java:797)
> [INFO] Test results: {skipped=0, completedCount=1, failures=1, errors=0}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There were test failures
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Wed Dec 06 14:06:57 EST 2006
> [INFO] Final Memory: 7M/19M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Assigned: (TUSCANY-977) NoRegisteredCallbackException not thrown to client

Posted by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-977?page=all ]

Ignacio Silva-Lepe reassigned TUSCANY-977:
------------------------------------------

    Assignee: Ignacio Silva-Lepe

> NoRegisteredCallbackException not thrown to client
> --------------------------------------------------
>
>                 Key: TUSCANY-977
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-977
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core
>            Reporter: Lou Amodeo
>         Assigned To: Ignacio Silva-Lepe
>
> NoRegisteredCallbackException not thrown to client.  
> The client does not implement the callback interface and does not call setCallback prior to calling the service.   I was expecting to receive an exception and instead the service was invoked.  
> try
>      {
>        aCallBackService.knockKnock("Knock Knock");
>      }
>      catch (NoRegisteredCallbackException NotRegEx)
>      {
>     	correctException = true; 
>      }  
>      catch (Exception ex)
>      {
>       ex.printStackTrace();	 
>      }	 
> 	  
> [INFO] [tuscany-itest:start {execution: start}]
> [INFO] Starting Tuscany...
> [INFO] [tuscany-itest:test {execution: test}]
> [INFO] Executing tests...
> CallBackBasicServiceImpl message received: Knock Knock
> java.lang.NullPointerException
>         at org.apache.tuscany.sca.test.CallBackSetCallbackServiceImpl.knockKnock
> (CallBackSetCallbackServiceImpl.java:29)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT
> arget(JavaTargetInvoker.java:71)
>         at org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target
> InvokerExtension.java:64)
>         at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
> ptor.java:44)
>         at org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non
> BlockingBridgingInterceptor.java:80)
>         at org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2
> 37Work.run(Jsr237WorkScheduler.java:212)
>         at org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo
> rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:665)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:690)
>         at java.lang.Thread.run(Thread.java:797)
> [INFO] Test results: {skipped=0, completedCount=1, failures=1, errors=0}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There were test failures
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Wed Dec 06 14:06:57 EST 2006
> [INFO] Final Memory: 7M/19M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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