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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to