You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/04/20 16:02:00 UTC

[jira] [Commented] (QPIDJMS-498) race during concurrent creation of initial connection

    [ https://issues.apache.org/jira/browse/QPIDJMS-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17087885#comment-17087885 ] 

ASF subversion and git services commented on QPIDJMS-498:
---------------------------------------------------------

Commit 1c94188c417f5cbd9053a5c05d535632c265a08c in qpid-jms's branch refs/heads/master from Robbie Gemmell
[ https://gitbox.apache.org/repos/asf?p=qpid-jms.git;h=1c94188 ]

QPIDJMS-498: ensure props inserted first, ensuring they are populated if the previous class lookup succeeded


> race during concurrent creation of initial connection
> -----------------------------------------------------
>
>                 Key: QPIDJMS-498
>                 URL: https://issues.apache.org/jira/browse/QPIDJMS-498
>             Project: Qpid JMS
>          Issue Type: Bug
>          Components: qpid-jms-client
>    Affects Versions: 0.50.0
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Major
>             Fix For: 0.51.0
>
>
> There is a race within some handling code for loading/creation of underlying client objects during creation of a connection which can occur during concurrent attempts to create the first connection after JVM startup, and could lead to failure for some of the attempts as they fail to provide required details.
> It occurs due to accessing the related contents of some caching maps in the opposite order of their population and allowing a narrow window to violate expectation both details would be present. It cant occur again after the first connection creation has passed this point.
> {noformat}
> ...
> Caused by: java.lang.IllegalArgumentException: Given Properties object cannot be null
>  at org.apache.qpid.jms.util.PropertyUtil.setProperties(PropertyUtil.java:300)
>  at org.apache.qpid.jms.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:185)
>  at org.apache.qpid.jms.util.FactoryFinder.newInstance(FactoryFinder.java:129)
>  at org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:154)
>  ... 18 more
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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