You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org> on 2007/01/09 18:46:27 UTC

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

     [ 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