Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You're using a keyboard! How quaint!


devel / comp.lang.java.programmer / 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

SubjectAuthor
* Rabbit MQ JMS Client 2.3.0, JMS Queue connection errorSurendra K
+* Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection errorEric Sosman
|`- Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection errorArne Vajhøj
`* Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection errorAndreas Leitgeb
 `- Re: Rabbit MQ JMS Client 2.3.0, JMS Queue connection errorAndreas Leitgeb

1
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

<52e745d1-7c61-4e8c-a211-dc1b941a18b9n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9934&group=comp.lang.java.programmer#9934

  copy link   Newsgroups: comp.lang.java.programmer
X-Received: by 2002:a05:622a:192:: with SMTP id s18mr15798449qtw.268.1643653304355;
Mon, 31 Jan 2022 10:21:44 -0800 (PST)
X-Received: by 2002:a05:6808:1b0f:: with SMTP id bx15mr19112848oib.172.1643653304039;
Mon, 31 Jan 2022 10:21:44 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.java.programmer
Date: Mon, 31 Jan 2022 10:21:43 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=103.132.244.186; posting-account=4h_nqAoAAAD4c2ybahajmm8pj91LA5he
NNTP-Posting-Host: 103.132.244.186
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <52e745d1-7c61-4e8c-a211-dc1b941a18b9n@googlegroups.com>
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
From: kvsba...@gmail.com (Surendra K)
Injection-Date: Mon, 31 Jan 2022 18:21:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 26
 by: Surendra K - Mon, 31 Jan 2022 18:21 UTC

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

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

<st9fbc$idl$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9935&group=comp.lang.java.programmer#9935

  copy link   Newsgroups: comp.lang.java.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: esos...@comcast-dot-net.invalid (Eric Sosman)
Newsgroups: comp.lang.java.programmer
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
Date: Mon, 31 Jan 2022 15:03:56 -0500
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <st9fbc$idl$1@dont-email.me>
References: <52e745d1-7c61-4e8c-a211-dc1b941a18b9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 31 Jan 2022 20:03:56 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5774aa1f967a8cc872d002d5018d2033";
logging-data="18869"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+J2cgPuI+9Fee0bDHYCUvn"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Cancel-Lock: sha1:iN+XduStStHeTRMCf5GmXCaTiUU=
In-Reply-To: <52e745d1-7c61-4e8c-a211-dc1b941a18b9n@googlegroups.com>
Content-Language: en-US
 by: Eric Sosman - Mon, 31 Jan 2022 20:03 UTC

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!

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

<61f8441f$0$700$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9936&group=comp.lang.java.programmer#9936

  copy link   Newsgroups: comp.lang.java.programmer
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 31 Jan 2022 15:18:40 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
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
Content-Language: en-US
Newsgroups: comp.lang.java.programmer
References: <52e745d1-7c61-4e8c-a211-dc1b941a18b9n@googlegroups.com>
<st9fbc$idl$1@dont-email.me>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <st9fbc$idl$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 51
Message-ID: <61f8441f$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 2d55c3ee.news.sunsite.dk
X-Trace: 1643660320 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:52390
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Mon, 31 Jan 2022 20:18 UTC

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

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

<slrnsvi7ni.13d3.avl@logic.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9937&group=comp.lang.java.programmer#9937

  copy link   Newsgroups: comp.lang.java.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: avl...@logic.at (Andreas Leitgeb)
Newsgroups: comp.lang.java.programmer
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
Date: Tue, 1 Feb 2022 11:52:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <slrnsvi7ni.13d3.avl@logic.at>
References: <52e745d1-7c61-4e8c-a211-dc1b941a18b9n@googlegroups.com>
Reply-To: avl@logic.at
Injection-Date: Tue, 1 Feb 2022 11:52:18 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d509ee38c1148eff9113974475cf0a76";
logging-data="27264"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xB3FSi2UfbRz5mQBC2YC9"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Z85wXPGURkawNjcwefykCMYy0Wo=
 by: Andreas Leitgeb - Tue, 1 Feb 2022 11:52 UTC

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".

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

<slrnsvigmf.13d3.avl@logic.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9939&group=comp.lang.java.programmer#9939

  copy link   Newsgroups: comp.lang.java.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: avl...@logic.at (Andreas Leitgeb)
Newsgroups: comp.lang.java.programmer
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
Date: Tue, 1 Feb 2022 14:25:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <slrnsvigmf.13d3.avl@logic.at>
References: <52e745d1-7c61-4e8c-a211-dc1b941a18b9n@googlegroups.com>
<slrnsvi7ni.13d3.avl@logic.at>
Reply-To: avl@logic.at
Injection-Date: Tue, 1 Feb 2022 14:25:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d509ee38c1148eff9113974475cf0a76";
logging-data="10817"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18q6genJNJlAY9nG+/TArfL"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:BF72YL2cs18tdSn5UIeQ/+a8fa8=
 by: Andreas Leitgeb - Tue, 1 Feb 2022 14:25 UTC

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.


devel / comp.lang.java.programmer / 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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor