Were you able to get things going?

The client is regularly tested against ActiveMQ and other servers,
though your issue would seem to be independent of the server in use
since its occuring prior to any connection. In particular, its failing
to configure some internals of the client in a way I haven't seen
occur before.

The first URI format is the correct one, as used in the examples you
referenced and the docs
http://qpid.apache.org/releases/qpid-jms-0.29.0/docs/index.html#connection-uri.

Robbie

On 7 February 2018 at 15:26, Jeroen van Ooststroom
<j.van.ooststr...@gmail.com> wrote:
> Hello,
>
> I started trying to use Qpid JMS in our services. I’ve been using the
> following source code as an example:
> https://github.com/apache/qpid-jms/tree/0.29.0/qpid-jms-examples.
>
> I’m using ActiveMQ 5.13.4 as the message broker which is configured to use
> the AMQP transport connector:
>
>    2018-02-07 13:47:44,469 | INFO  | Listening for connections at:
>
> amqp://msgs:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>    | org.apache.activemq.transport.TransportServerThreadSupport | main
>
> However, when trying to connect to it using Qpid JMS and the following
> Connection Factory 'amqp://msgs:5672' I’m getting the following exception at
> the moment:
>
>    Caused by: java.io.IOException: Provider scheme NOT recognized: [amqp]
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:124)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:99)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.create(ProviderFactory.java:70)
>         at
>
> org.apache.qpid.jms.JmsConnectionFactory.createProvider(JmsConnectionFactory.java:328)
>         at
>
> org.apache.qpid.jms.JmsConnectionFactory.createQueueConnection(JmsConnectionFactory.java:227)
>         ... 38 more
>    Caused by: java.lang.IllegalArgumentException:  Not all provider
>    options could be set on the found factory. Check the options are
>    spelled correctly. Given parameters=[{providerScheme=amqp,
>    transportScheme=tcp}]. This provider instance cannot be started.
>         at
>
> org.apache.qpid.jms.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:191)
>         at
>
> org.apache.qpid.jms.util.FactoryFinder.newInstance(FactoryFinder.java:129)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:122)
>         ... 42 more
>
> Changing the Connection Factory to
> 'amqp:///test?brokerlist='tcp://msgs:5672'' I'm getting the same exception:
>
>    Caused by: java.io.IOException: Provider scheme NOT recognized: [amqp]
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:124)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:99)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.create(ProviderFactory.java:70)
>         at
>
> org.apache.qpid.jms.JmsConnectionFactory.createProvider(JmsConnectionFactory.java:328)
>         at
>
> org.apache.qpid.jms.JmsConnectionFactory.createQueueConnection(JmsConnectionFactory.java:227)
>         ... 38 more
>    Caused by: java.lang.IllegalArgumentException:  Not all provider
>    options could be set on the found factory. Check the options are
>    spelled correctly. Given parameters=[{providerScheme=amqp,
>    transportScheme=tcp}]. This provider instance cannot be started.
>         at
>
> org.apache.qpid.jms.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:191)
>         at
>
> org.apache.qpid.jms.util.FactoryFinder.newInstance(FactoryFinder.java:129)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:122)
>         ... 42 more
>
> Changing the amqp:// scheme to tcp:// scheme gives the following exception:
>
>    Caused by: java.io.IOException: Provider scheme NOT recognized: [tcp]
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:124)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:99)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.create(ProviderFactory.java:70)
>         at
>
> org.apache.qpid.jms.JmsConnectionFactory.createProvider(JmsConnectionFactory.java:328)
>         at
>
> org.apache.qpid.jms.JmsConnectionFactory.createQueueConnection(JmsConnectionFactory.java:227)
>         ... 38 more
>    Caused by: org.apache.qpid.jms.util.ResourceNotFoundException: Could
>    not find factory resource:
>    META-INF/services/org/apache/qpid/jms/provider/tcp
>         at
>
> org.apache.qpid.jms.util.FactoryFinder$StandaloneObjectFactory.loadProperties(FactoryFinder.java:230)
>         at
>
> org.apache.qpid.jms.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:171)
>         at
>
> org.apache.qpid.jms.util.FactoryFinder.newInstance(FactoryFinder.java:129)
>         at
>
> org.apache.qpid.jms.provider.ProviderFactory.findProviderFactory(ProviderFactory.java:122)
>         ... 42 more
>
> How can I get a working connection to ActiveMQ's AMQP using Qpid JMS?
>
> Thanks,
> Jeroen...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to