• Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoI

    From Surendra K@21:1/5 to All on Mon Jan 31 10:21:43 2022
    Hi Experts,

    We recently deployed RabbitMQ JMS client 2.3.0 jar and its dependences jar slf4j-api-2.0.0-alpha5.jar
    amqp-client-5.14.0.jar
    rabbitmq-jms-2.3.0-sources.jar

    into our SAP PI/PO system.

    After succesfull deployment and communication channel configuration we are unable to reach or connect JMS queue and we are getting following error.

    " EXCEPTION]
    javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory (loaded by library:com.sap.aii.adapter.lib.jms20@69499 com.
    sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"


    kindly Suggest.

    Thanks in Advance.

    Regards,
    Surendra

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eric Sosman@21:1/5 to Surendra K on Mon Jan 31 15:03:56 2022
    On 1/31/2022 1:21 PM, Surendra K wrote:
    Hi Experts,

    We recently deployed RabbitMQ JMS client 2.3.0 jar and its dependences jar slf4j-api-2.0.0-alpha5.jar
    amqp-client-5.14.0.jar
    rabbitmq-jms-2.3.0-sources.jar

    into our SAP PI/PO system.

    After succesfull deployment and communication channel configuration we are unable to reach or connect JMS queue and we are getting following error.

    " EXCEPTION]
    javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory (loaded by library:com.sap.aii.adapter.lib.jms20@69499
    com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"


    kindly Suggest.

    The immediate Java problem is that the RMQObjectFactory class does
    does not implement the InitialContextFactory interface, so an RMQOF
    instance cannot be cast to ICF.

    ... which is no help at all: It's like saying "The reason this man
    can't walk is that he has no legs," and not addressing how he lost his
    legs nor why the legless man is trying to walk in the first place.

    Although I personally have no experience with RabbitMQ (nor with
    anything JNDI, for that matter), it appears to me you should seek
    Rabbit advice rather than Java advice. A quick look around the Web
    finds several Rabbit-oriented sites; maybe some of them can help you.

    --
    esosman@comcast-dot-net.invalid
    Look on my code, ye Hackers, and guffaw!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Arne_Vajh=c3=b8j?=@21:1/5 to Eric Sosman on Mon Jan 31 15:18:40 2022
    On 1/31/2022 3:03 PM, Eric Sosman wrote:
    On 1/31/2022 1:21 PM, Surendra K wrote:
    We recently deployed RabbitMQ JMS client 2.3.0 jar and its dependences
    jar     slf4j-api-2.0.0-alpha5.jar
        amqp-client-5.14.0.jar
        rabbitmq-jms-2.3.0-sources.jar

    into our SAP PI/PO system.

    After succesfull deployment and communication channel configuration we
    are unable to reach or connect  JMS queue   and we are getting
    following error.

    "    EXCEPTION]
    javax.naming.NoInitialContextException: Cannot instantiate class:
    com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is
    java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory
    (loaded by library:com.sap.aii.adapter.lib.jms20@69499
    com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be
    cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"

        The immediate Java problem is that the RMQObjectFactory class does does not implement the InitialContextFactory interface, so an RMQOF
    instance cannot be cast to ICF.

        ... which is no help at all: It's like saying "The reason this man can't walk is that he has no legs," and not addressing how he lost his
    legs nor why the legless man is trying to walk in the first place.

    It reveals a little bit.

    I seems like the application is attempting to do a JNDI lookup and
    it fails early because it get a JMS class instead of a
    InitialContextFactory.

    So looking at the JNDI configuration could be relevant.

        Although I personally have no experience with RabbitMQ (nor with anything JNDI, for that matter), it appears to me you should seek
    Rabbit advice rather than Java advice.  A quick look around the Web
    finds several Rabbit-oriented sites; maybe some of them can help you.

    Some RabbitMQ Java client advice. The RabbitMQ server developers
    using Erlang are probably not going to be able to help.

    But maybe SAP can help. If it is a SAP system then they
    should be first in line to help.

    Arne

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Leitgeb@21:1/5 to Surendra K on Tue Feb 1 11:52:18 2022
    Surendra K <kvsbasis@gmail.com> wrote:
    javax.naming.NoInitialContextException: Cannot instantiate
    class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory
    (loaded by library:com.sap.aii.adapter.lib.jms20@69499 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be
    cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"

    Looks like you configured "com.rabbitmq.jms.admin.RMQObjectFactory" as
    value for some property within the application-context, but that property should have the name of a different class.

    The the correct class's name likely ends with *ContextFactory, rather
    than with *ObjectFactory.

    You might open the rabbitMQ-jarfile as a zip-file and list its contents.
    Maybe some class in it even has a name like "RMQContextFactory".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Leitgeb@21:1/5 to Andreas Leitgeb on Tue Feb 1 14:25:19 2022
    Andreas Leitgeb <avl@logic.at> wrote:
    Surendra K <kvsbasis@gmail.com> wrote:
    javax.naming.NoInitialContextException: Cannot instantiate
    class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is
    java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory
    (loaded by library:com.sap.aii.adapter.lib.jms20@69499
    com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be
    cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"

    Looks like you configured "com.rabbitmq.jms.admin.RMQObjectFactory" as
    value for some property within the application-context, but that property should have the name of a different class.

    The the correct class's name likely ends with *ContextFactory, rather
    than with *ObjectFactory.

    You might open the rabbitMQ-jarfile as a zip-file and list its contents. Maybe some class in it even has a name like "RMQContextFactory".

    I googled some more, and found page:
    https://docs.parasoft.com/display/SVC20201/JMS+Provider+Configuration (search for RabbitMQ within that page)

    that seems to suggest:
    com.sun.jndi.fscontext.RefFSContextFactory
    as the initial context factory.

    Not sure if "com.sun.*" classes even exist any more... but maybe thats
    the starting point for another search, for the replacement.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Natalia Arenas@21:1/5 to All on Tue Aug 2 08:05:53 2022
    Buenos dias.

    Necesito su apoyo si tienen alguna guia para instalar el driver rabbit MQ en SAP PO por NDWS.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ricardo Palomares Martinez@21:1/5 to All on Tue Aug 2 20:26:06 2022
    El 2/8/22 a las 17:05, Natalia Arenas escribió:
    Buenos dias.

    Necesito su apoyo si tienen alguna guia para instalar el driver rabbit MQ en SAP PO por NDWS.

    Natalia, este grupo es de comunicación en inglés. Sinceramente, no sé
    bien qué es Rabbit MQ, :-) pero he encontrado este artículo en los
    blogs de SAP:

    https://blogs.sap.com/2017/11/30/hello-world-of-rabbitmq/

    -----

    Natalia, in this newsgroup English language is expected. Honestly, I
    don't really know what is Rabbit MQ, :-) but I've found this article
    in SAP blogs:

    https://blogs.sap.com/2017/11/30/hello-world-of-rabbitmq/

    HTH

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Natalia Arenas@21:1/5 to All on Wed Sep 14 05:36:55 2022
    El martes, 2 de agosto de 2022 a las 13:26:24 UTC-5, Ricardo Palomares Martinez escribió:
    El 2/8/22 a las 17:05, Natalia Arenas escribió:
    Buenos dias.

    Necesito su apoyo si tienen alguna guia para instalar el driver rabbit MQ en SAP PO por NDWS.
    Natalia, este grupo es de comunicación en inglés. Sinceramente, no sé bien qué es Rabbit MQ, :-) pero he encontrado este artículo en los
    blogs de SAP:

    https://blogs.sap.com/2017/11/30/hello-world-of-rabbitmq/

    -----

    Natalia, in this newsgroup English language is expected. Honestly, I
    don't really know what is Rabbit MQ, :-) but I've found this article
    in SAP blogs:

    https://blogs.sap.com/2017/11/30/hello-world-of-rabbitmq/

    HTH
    muchas gracias.. ya con el equipo basis al parecer logramos hacer la instalación, pero tenemos unos errores,, habrá algun instructivo para la configuracion en sap pi de los canales JMS en relación a rabbit?. mi l
    gracias

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)