[
https://issues.apache.org/jira/browse/PROTON-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13986910#comment-13986910
]
ASF subversion and git services commented on PROTON-495:
--------------------------------------------------------
Commit 1591753 from [email protected] in branch 'proton/trunk'
[ https://svn.apache.org/r1591753 ]
PROTON-495: simplified factory pattern for proton-j
> fix proton constructors to not be so brittle
> --------------------------------------------
>
> Key: PROTON-495
> URL: https://issues.apache.org/jira/browse/PROTON-495
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-j
> Reporter: Rafael H. Schloming
>
> Currently it is ridiculously easy to get exceptions like the one below. Given
> that we are providing an API, not an SPI, this should never be able to happen.
> Caused by: java.lang.IllegalStateException: Can't find service loader for
> org.apache.qpid.proton.messenger.MessengerFactory for implementation type ANY
> at
> org.apache.qpid.proton.ProtonFactoryLoader.loadFactory(ProtonFactoryLoader.java:107)
> at
> org.apache.qpid.proton.ProtonFactoryLoader.loadFactory(ProtonFactoryLoader.java:84)
> at org.apache.qpid.proton.Proton.<clinit>(Proton.java:55)
> ... 84 more
> java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError
--
This message was sent by Atlassian JIRA
(v6.2#6252)