Security

Why am I getting the JMS modular input error?

arunsundaram
New Member

can someone help me with the below error message

03-14-2018 18:08:27.361 +0100 INFO  ExecProcessor -     interval: run once
03-14-2018 18:08:28.059 +0100 ERROR ExecProcessor - message from "python /dnb/prosess/splunk/splunk/etc/apps/jms_ta/bin/jms.py" Stanza jms://queue/jms://queue/qa54:okicpsmq : Can't instantiate local resource factory :  , java.lang.ClassNotFoundException:
03-14-2018 18:08:28.059 +0100 ERROR ExecProcessor - message from "python /dnb/prosess/splunk/splunk/etc/apps/jms_ta/bin/jms.py"         at java.lang.Class.forName0(Native Method)
03-14-2018 18:08:28.059 +0100 ERROR ExecProcessor - message from "python /dnb/prosess/splunk/splunk/etc/apps/jms_ta/bin/jms.py"         at java.lang.Class.forName(Class.java:195)
03-14-2018 18:08:28.059 +0100 ERROR ExecProcessor - message from "python /dnb/prosess/splunk/splunk/etc/apps/jms_ta/bin/jms.py"         at com.splunk.modinput.jms.JMSModularInput$MessageReceiver.(Unknown Source)
03-14-2018 18:08:28.059 +0100 ERROR ExecProcessor - message from "python /dnb/prosess/splunk/splunk/etc/apps/jms_ta/bin/jms.py"         at com.splunk.modinput.jms.JMSModularInput.startMessageReceiverThread(Unknown Source)
03-14-2018 18:08:28.059 +0100 ERROR ExecProcessor - message from "python /dnb/prosess/splunk/splunk/etc/apps/jms_ta/bin/jms.py"         at com.splunk.modinput.jms.JMSModularInput.doRun(Unknown Source)
03-14-2018 18:08:28.059 +0100 ERROR ExecProcessor - message from "python /dnb/prosess/splunk/splunk/etc/apps/jms_ta/bin/jms.py"         at com.splunk.modinput.ModularInput.init(Unknown Source)
03-14-2018 18:08:28.059 +0100 ERROR ExecProcessor - message from "python /dnb/prosess/splunk/splunk/etc/apps/jms_ta/bin/jms.py"         at com.splunk.modinput.jms.JMSModularInput.main(Unknown Source)
0 Karma

p_gurav
Champion

Can you verify JAVA CLASSPATH? It looks like a required jar file is not available in the CLASSPATH.

Also, run this command as the same user that you are running Splunk as and observe console output :

"$SPLUNK_HOME/bin/splunk cmd python ../etc/apps/jms_ta/bin/jms.py --scheme"
0 Karma

deepashri_123
Motivator

Hey @arunsundaram,

You can refer this accepted answer:
https://answers.splunk.com/answers/462896/jms-messaging-modular-input-151-how-to-troubleshoo.html

Let me know if this helps!!

0 Karma
Get Updates on the Splunk Community!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...