-
1. Re: [ERROR] javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
H H Feb 23, 2021 12:05 AM (in response to User informatica)You need to have activemq related jar in $INFA_HOME/server/bin/javalib directory. Example : activemq-all-5.15.0.jar
-
2. Re: [ERROR] javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
User informatica Feb 23, 2021 1:05 AM (in response to H H)Hi ,
Thankyou for the update. I jave added the respective file (activemq-all-5.7.0.fuse-71-047.jar) but now a different error comes.
JAVA PLUGIN_1762 [ERROR] Failed to create the message consumer: User eax499it is not authorized to read from: queue://dynamicQueues/COMMERCIAL.RA.MSDS.RA.TSQException Stack: javax.jms.JMSException: User eax499it is not authorized to read from: queue://dynamicQueues/COMMERCIAL.RA.MSDS.RA.TSQ
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1377)
at org.apache.activemq.ActiveMQSession.syncSendPacket(ActiveMQSession.java:1909)
at org.apache.activemq.ActiveMQMessageConsumer.<init>(ActiveMQMessageConsumer.java:273)
at org.apache.activemq.ActiveMQQueueReceiver.<init>(ActiveMQQueueReceiver.java:70)
at org.apache.activemq.ActiveMQSession.createReceiver(ActiveMQSession.java:1420)
at org.apache.activemq.ActiveMQQueueSession.createReceiver(ActiveMQQueueSession.java:233)
at com.informatica.powerconnect.jms.server.common.PlginJMSConnection$PlginJMSQueueConnection.createMessageConsumer(PlginJMSConnection.java:442)
at com.informatica.powerconnect.jms.server.reader.JMSReaderPartitionDriver.createSessionAndMessageConsumer(JMSReaderPartitionDriver.java:1953)
at com.informatica.powerconnect.jms.server.reader.JMSReaderPartitionDriver.run(JMSReaderPartitionDriver.java:1542)
Caused by: java.lang.SecurityException: User eax499it is not authorized to read from: queue://dynamicQueues/COMMERCIAL.RA.MSDS.RA.TSQ
at org.apache.activemq.security.AuthorizationBroker.addConsumer(AuthorizationBroker.java:159)
at org.apache.activemq.broker.MutableBrokerFilter.addConsumer(MutableBrokerFilter.java:107)
at org.apache.activemq.broker.util.LoggingBrokerPlugin.addConsumer(LoggingBrokerPlugin.java:186)
at org.apache.activemq.broker.MutableBrokerFilter.addConsumer(MutableBrokerFilter.java:107)
at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:102)
at org.apache.activemq.plugin.SubQueueSelectorCacheBroker.addConsumer(SubQueueSelectorCacheBroker.java:164)
at org.apache.activemq.br
-
3. Re: [ERROR] javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
H H Feb 23, 2021 2:03 AM (in response to User informatica)This looks like an issue of authorization, as the earlier issue is now solved due to adding the relevant jar. Check this with the MQ admins, if eax499it user has permissions to read from the queue.
-
4. Re: [ERROR] javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
User informatica Feb 25, 2021 11:21 PM (in response to H H)Hi HH,
We checked with the respective team to provide access , the access already exist with this user account. For your information, we've upgraded our system to 10.4 version and we see this error after we perform the upgrade. We tested the account in different environments which is with older version and the job runs fine without any issues . But the same connection details throwing authorization error in upgraded environment. Is there anything else we need to do? as the job is failing after the upgrade.
Thanks!
-
5. Re: [ERROR] javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
H H Feb 27, 2021 8:45 AM (in response to User informatica)Hi, If the error is coming after the upgrade to 10.4, better to raise a ticket with informatica support through their channels. If it is a known issue after upgrades, they should be able to give you a solution.
-
6. Re: [ERROR] javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
Asmita Kesarwani Feb 28, 2021 2:49 AM (in response to User informatica)Hi,
Do you have any other environment where you are not facing this issue?
If so can you please check if all the jars under the $INFA_HOME/server/bin/javalib are present in the working and non-working environment.
If they are present can you also check if the size of the jars are same.
Please let us know if that helps.
Kind Regards,
Asmita
-
7. Re: [ERROR] javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory]
Rajan Rath Feb 28, 2021 9:59 AM (in response to User informatica)Is the upgrade performed on the same machine or a different one; by this I mean, do the older version and the newer version run on the same server machine or a different one?
Do you have SSL enabled for the JMS queue/servers?
What is the JMS provider used in this case?
Can you also confirm the older Informatica version and the new one along with the OS type?
As far as I remember there was a known issue with Informatica 10.4.0 or 10.4.1 for which a fix had to be applied.
This will help me in verifying that.
Thanks,
Rajan