Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39724 > unrolled thread
| Started by | Surendra K <kvsbasis@gmail.com> |
|---|---|
| First post | 2022-01-31 10:21 -0800 |
| Last post | 2022-09-14 05:36 -0700 |
| Articles | 8 — 6 participants |
Back to article view | Back to comp.lang.java.programmer
Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory Surendra K <kvsbasis@gmail.com> - 2022-01-31 10:21 -0800
Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory Eric Sosman <esosman@comcast-dot-net.invalid> - 2022-01-31 15:03 -0500
Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory Arne Vajhøj <arne@vajhoej.dk> - 2022-01-31 15:18 -0500
Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory Andreas Leitgeb <avl@logic.at> - 2022-02-01 11:52 +0000
Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory Andreas Leitgeb <avl@logic.at> - 2022-02-01 14:25 +0000
intall Driver RabiitMQ en SAP PI 7.5 Natalia Arenas <naaj27@gmail.com> - 2022-08-02 08:05 -0700
Re: intall Driver RabiitMQ en SAP PI 7.5 Ricardo Palomares Martinez <rpm.NOADS@proyectonave.es> - 2022-08-02 20:26 +0200
Re: intall Driver RabiitMQ en SAP PI 7.5 Natalia Arenas <naaj27@gmail.com> - 2022-09-14 05:36 -0700
| From | Surendra K <kvsbasis@gmail.com> |
|---|---|
| Date | 2022-01-31 10:21 -0800 |
| Subject | Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory |
| Message-ID | <52e745d1-7c61-4e8c-a211-dc1b941a18b9n@googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2022-01-31 15:03 -0500 |
| Subject | Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory |
| Message-ID | <st9fbc$idl$1@dont-email.me> |
| In reply to | #39724 |
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!
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2022-01-31 15:18 -0500 |
| Subject | Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection error javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory |
| Message-ID | <61f8441f$0$700$14726298@news.sunsite.dk> |
| In reply to | #39725 |
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
[toc] | [prev] | [next] | [standalone]
| From | Andreas Leitgeb <avl@logic.at> |
|---|---|
| Date | 2022-02-01 11:52 +0000 |
| Message-ID | <slrnsvi7ni.13d3.avl@logic.at> |
| In reply to | #39724 |
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".
[toc] | [prev] | [next] | [standalone]
| From | Andreas Leitgeb <avl@logic.at> |
|---|---|
| Date | 2022-02-01 14:25 +0000 |
| Message-ID | <slrnsvigmf.13d3.avl@logic.at> |
| In reply to | #39727 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Natalia Arenas <naaj27@gmail.com> |
|---|---|
| Date | 2022-08-02 08:05 -0700 |
| Subject | intall Driver RabiitMQ en SAP PI 7.5 |
| Message-ID | <c4cb8ef7-46c5-43ba-937f-233540ca9219n@googlegroups.com> |
| In reply to | #39729 |
Buenos dias. Necesito su apoyo si tienen alguna guia para instalar el driver rabbit MQ en SAP PO por NDWS.
[toc] | [prev] | [next] | [standalone]
| From | Ricardo Palomares Martinez <rpm.NOADS@proyectonave.es> |
|---|---|
| Date | 2022-08-02 20:26 +0200 |
| Subject | Re: intall Driver RabiitMQ en SAP PI 7.5 |
| Message-ID | <tcbq7v$1ig4$1@gioia.aioe.org> |
| In reply to | #39802 |
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
[toc] | [prev] | [next] | [standalone]
| From | Natalia Arenas <naaj27@gmail.com> |
|---|---|
| Date | 2022-09-14 05:36 -0700 |
| Subject | Re: intall Driver RabiitMQ en SAP PI 7.5 |
| Message-ID | <3141b915-8233-4ea1-a273-8e0c3e67a6e3n@googlegroups.com> |
| In reply to | #39803 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web