[
https://issues.apache.org/jira/browse/TUSCANY-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464871
]
Lou Amodeo commented on TUSCANY-1046:
-------------------------------------
I do not think that I am exactly past this problem. It makes sense to me to
annotate with @Scope("CONVERSATION') on the implemmentation class to designate
a specific services instances should be managed as conversational by the
container. I am unclear what is required on the client interface to indicate
to the client runtime that a conversation needs to be started. Are we saying
that for now @Scope("CONVERSATION") is required on the interface as well and
that a new annotation will be defined to the spec in the future? Is it
valid to have a conversational client interface but not the service impl and
vice- versa? It also appears that there is no validation of the annotations by
the runtime and when annotations are misplaced or not synchronized
inappropriate exceptions may be thrown as in this instance.
> 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-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]