[ 
https://issues.apache.org/jira/browse/TUSCANY-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465858
 ] 

Ignacio Silva-Lepe commented on TUSCANY-1046:
---------------------------------------------

To indicate to the client runtime that a conversation needs to be started, the 
interface used by the client needs to be marked as conversational. In other 
words, there needs to be an indication in the contract between the client and 
the service that the interaction is conversational. The actual syntax to use 
is, at the moment, @Scope("CONVERSATION") [notice that the spec illustrates 
this by using @Scope("session")] but I believe that is supposed to change, 
probably to something like @Conversational.
The fact that the contract between the client and the service is conversational 
does not necessarily imply that the service implementation must be managed as 
conversational by the container. So it is possible to have a conversational 
client interface but not a service implementation managed as conversational.
The opposite case, a non-conversational client interface and a conversational 
service implementation, does not make sense if any client at all wants to 
interact conversationally with the service, and so the client runtime does not 
start a conversation. This case can still be useful for handling conversational 
callbacks, for instance, in which case some other mechanism for starting the 
conversation will be implemented, but it is not there yet.

> NPE in MemoryStore.insertRecord()  when @SCOPE("CONVERSATION")
> --------------------------------------------------------------
>
>                 Key: TUSCANY-1046
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1046
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Integration Tests
>            Reporter: Lou Amodeo
>         Assigned To: Ignacio Silva-Lepe
>             Fix For: Java-SCA-Mx
>
>         Attachments: test-CallBackSetCallbackConv.zip
>
>
> r494421
> test-CallBackSetCallbackConv
> - This test attempts to use @Scope("CONVERSATION").  Upon launch of test case 
> using integration test environment the 
>   following NPE occurs.     
> -------------------------------------------------------------------------------
> Test set: org.apache.tuscany.sca.test.CallBackSetCallbackConvITest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.02 sec <<< 
> FAILURE!
> testCallBackSetCallback(org.apache.tuscany.sca.test.CallBackSetCallbackConvITest)
>   Time elapsed: 0.01 sec  <<< ERROR!
> java.lang.NullPointerException
>       at 
> java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:172)
>       at 
> java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:760)
>       at 
> org.apache.tuscany.core.services.store.memory.MemoryStore.insertRecord(MemoryStore.java:110)
>       at 
> org.apache.tuscany.core.component.scope.ConversationalScopeContainer.getInstance(ConversationalScopeContainer.java:92)
>       at 
> org.apache.tuscany.core.implementation.PojoAtomicComponent.getTargetInstance(PojoAtomicComponent.java:122)
>       at 
> org.apache.tuscany.core.implementation.java.JavaTargetInvoker.getInstance(JavaTargetInvoker.java:127)
>       at 
> org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:75)
>       at 
> org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(TargetInvokerExtension.java:67)
>       at 
> org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterceptor.java:44)
>       at 
> org.apache.tuscany.spi.wire.AbstractInboundInvocationHandler.invoke(AbstractInboundInvocationHandler.java:45)
>       at 
> org.apache.tuscany.core.wire.jdk.JDKInboundInvocationHandler.invoke(JDKInboundInvocationHandler.java:122)
>       at $Proxy22.run(Unknown Source)
>       at 
> org.apache.tuscany.sca.test.CallBackSetCallbackConvITest.testCallBackSetCallback(CallBackSetCallbackConvITest.java:12)

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

Reply via email to