Need help on IBM MQ - "Error connecting to the JMS AppServer service" - Forum - OpenEdge Development - Progress Community

Need help on IBM MQ - "Error connecting to the JMS AppServer service"

 Forum

Need help on IBM MQ - "Error connecting to the JMS AppServer service"

This question is answered

Hi,

When I am connecting to websphere MQ I got this error message - "Error connecting to the JMS AppServer service".

Please find the attachments for setups and programs are used for testing the IBM MQ.

1. AdminServerPlugins.properties

2. ubroker.properties

3. Testing sample code

4. Sonimq server log.

Other than ubroker and adminserverplugin properties, do I need to any other changes or any setup is required in websphere MQ?

0601.sonicMQ1.server.log

5481.AdminServerPlugins.properties6557.ubroker.propertiesJMSWebsphereMQ.zip

Thanks in advance.

Regards,

Sivarami

All Replies
  • Hi Sivarami,

    Please make sure that classes are available in AdminObjectFinder.jar and add the jar in classpath.

    Thanks,

    Anand.

  • Hi Anand,

    Thanks  for the update.

    Here the issues seems to be my Jar file is not picking. I have changed the class path to like below.

    pluginclasspath=C:\JNDI-Directory\AdminObjectFinder.jar,C:\Progress\OpenEdge\java\progress.jar,C:\Program Files\IBM\WebSphere MQ\java\lib\com.ibm.mqjms.jar

       classpath=C:\JNDI-Directory\AdminObjectFinder.jar,C:\Progress\OpenEdge\java\progress.jar,C:\Program Files\IBM\WebSphere MQ\java\lib\com.ibm.mqjms.jar

       jvmargs=-DsonicMQExtensions=false -DjmsProvider=WebSphereMQ

    After changing my class path also I am getting the same error message. Whatever we are adding before progress.jar these are not picking.

    Main  >(Aug 8, 2017 11:33:47:505) C:\OpenEdge\WRK\sonicMQ1.server.log opened.

    Main  >(Aug 8, 2017 11:33:47:506) : Starts Adapter server logging.

    Main  >(Aug 8, 2017 11:33:47:506) : LoggingLevel set to = 5

    Main  >(Aug 8, 2017 11:33:47:506) : The system property: sonicMQExtensions is set to  false

    Main  >(Aug 8, 2017 11:33:47:506) : The classpath is set to  C:\Progress\OpenEdge\java\progress.jar;C:\Program Files\IBM\WebSphere MQ\java\lib\com.ibm.mqjms.jar;C:\JNDI-Directory\AdminObjectFinder.jar

    Main  >(Aug 8, 2017 11:33:47:541) : Reading jmsProvider.properties from location : C:\Progress\OpenEdge\properties\jmsProvider.properties

    Main  >: A public jmsfromABL.AdminObjectFinder class was not found.

    Main  >======================================================================

    Main  >(Aug 8, 2017 11:44:08:250) C:\OpenEdge\WRK\sonicMQ1.server.log opened.

    Main  >(Aug 8, 2017 11:44:08:250) : Starts Adapter server logging.

    Main  >(Aug 8, 2017 11:44:08:250) : LoggingLevel set to = 5

    Main  >(Aug 8, 2017 11:44:08:250) : The system property: sonicMQExtensions is set to  false

    Main  >(Aug 8, 2017 11:44:08:251) : The classpath is set to  C:\Progress\OpenEdge\java\progress.jar;C:\Program Files\IBM\WebSphere MQ\java\lib\com.ibm.mqjms.jar

    Main  >(Aug 8, 2017 11:44:08:332) : Reading jmsProvider.properties from location : C:\Progress\OpenEdge\properties\jmsProvider.properties

    Main  >: A public jmsfromABL.AdminObjectFinder class was not found.

     

    I have one doubt - In the SonicMQ1 service  we have added "adapter.progress.jms" name to AppService Name List, where can i find this file or service?

    What is the hierarchy to pick the jmsfromABL.AdminObjectFinder.jar file?

    Thanks,

    Sivarami

  • Hi Anand,

    Please find files, which are extracted from Jar.

    AdminObjectFinder.zip

    Thanks,

    Sivarami

  • Hi Sivarami,

    Could you please share the AdminObjectFinder.jar that you are configured in AdminServerPlugins.properties file.

    Thanks,

    Anand.

  • Hi Anand,

    Please find the attached Jar file.

    3343.AdminObjectFinder.Jar

    Thanks,

    Sivarami

  • Hi Sivarami,

    AdminObjectFinder.jar contains invalid package name for the classes. Use the following command to compile and create the jar file.

    javac -cp jms.jar;.; -d . AdminObjectFinder.java
    jar -cvf AdminObjectFinder.jar jmsfromABL

    Hope this helps.

    Thanks,
    Anand.

  • Hi Anand,

    Thanks lot for your help.

    W e need to follow the below steps to generate the Jar file.

    1. Go to the command prompt.

    2. Go to the path where we have .java program then run the below commands.

    javac -cp jms.jar;.; -d . AdminObjectFinder.java

    jar -cvf AdminObjectFinder.jar jmsfromABL

    Now my error - "class not found" has been resolved.

    Now I am receiving the other when I am running the programs from client machine. Please find the attached consumer program and the log file.

    7573.consumer.p0640.sonicMQ1.server.log

    Thanks,

    Sivarami

  • Hi Sivarami,

    Please find the attached recorded video on WebSphere MQ remote queue setup.

    Hope this helps!!

    Thanks,

    Anand.

  • Hi Anand,

    Thanks for the file.

    I am almost done, but I am getting the security authentication error. Please find the below log for the same.

    While creating the Channel Authentication Records I have mentioned MCA UserID  as "Administrator".

    In the AdminObjectFinder.java program.

    env.put(Context.SECURITY_PRINCIPAL, "");  // This i have mentioned as my server login userid and password.

    env.put(Context.SECURITY_CREDENTIALS, "");

    Main  >======================================================================

    Main  >(Aug 10, 2017 11:11:14:888) C:\OpenEdge\WRK\sonicMQ1.server.log opened.

    Main  >(Aug 10, 2017 11:11:14:889) : Starts Adapter server logging.

    Main  >(Aug 10, 2017 11:11:14:889) : LoggingLevel set to = 5

    Main  >(Aug 10, 2017 11:11:14:889) : The system property: sonicMQExtensions is set to  false

    Main  >(Aug 10, 2017 11:11:14:889) : The classpath is set to  C:\Progress\OpenEdge\java\progress.jar;C:\Program Files\IBM\WebSphere MQ\java\lib\com.ibm.mqjms.jar;C:\Users\492839\websphereMQJMS\AdminObjectFinder.jar

    Main  >(Aug 10, 2017 11:11:15:038) : Reading jmsProvider.properties from location : C:\Progress\OpenEdge\properties\jmsProvider.properties

    Main  >: The AdminObjectFinder.getTopicConnectionFactory method is used for finding the TopicConnectionFactory object. (9301)

    Main  >: The AdminObjectFinder.getQueueConnectionFactory method is used for finding the QueueConnectionFactory object. (9303)

    Main  >: The AdminObjectFinder.getTopic method is used for finding the Topic objects. (9305)

    Main  >: The AdminObjectFinder.getQueue method is used for finding the Queue objects. (9307)

    S-0001>(Aug 10, 2017 11:24:37:074) 192.168.56.1::sonicMQ1::3620::3fe460f6942a13bc:4e0d9c5b:15dcaa928fa:-7fdb:     Startup Parameters:

       jmsServerName:

       Point-To-Point    

       brokerURL: RemoteCF

       user:

       password:

       clientID: null

       pingInterval:

       transactedPublish: false

       transactedReceive: false

       singleMessageAck: false

       symbiontAdapter: false

       jmsDomain: true

    S-0001>(Aug 10, 2017 11:24:37:084) S-0001: receive message queue size set to 10

    S-0001>(Aug 10, 2017 11:24:37:088) S-0001: browse message queue size set to 500

    S-0001>(Aug 10, 2017 11:24:37:089) : In SessionContainer()

    S-0001>(Aug 10, 2017 11:24:38:731) : Looking up ConnectionFactory in JNDI Object Store

    S-0001>(Aug 10, 2017 11:24:38:731) 192.168.56.1::sonicMQ1::3620::3fe460f6942a13bc:4e0d9c5b:15dcaa928fa:-7fdb: Using connection values: 26,null,true,,true,false,-1,-1,false,0,false,false,,10000,0,30,false,60,0,20,0,,null,null,PC302075,localhost

    S-0001>(Aug 10, 2017 11:24:39:447) 192.168.56.1::sonicMQ1::3620::3fe460f6942a13bc:4e0d9c5b:15dcaa928fa:-7fdb

    com.ibm.msg.client.jms.DetailedJMSSecurityException: JMSWMQ2021: The security authentication was not valid that was supplied for QueueManager 'SampleQM' with connection mode 'Client' and supplied CCDT URL 'file:C:/Users/492839/websphereMQJMS/AMQCLCHL.TAB', see linked exception for more information.

    Please check if the supplied username and password are correct on the QueueManager to which you are connecting.

    at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:514)

    at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:214)

    at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:406)

    at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createV7ProviderConnection(WMQConnectionFactory.java:6865)

    at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:6221)

    at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl._createConnection(JmsConnectionFactoryImpl.java:285)

    at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createConnection(JmsConnectionFactoryImpl.java:233)

    at com.ibm.mq.jms.MQConnectionFactory.createCommonConnection(MQConnectionFactory.java:6016)

    at com.ibm.mq.jms.MQConnectionFactory.createConnection(MQConnectionFactory.java:6041)

    at com.progress.messaging.jms.SessionContainer.createConnection(SessionContainer.java:1519)

    at com.progress.messaging.jms.SessionContainer.init(SessionContainer.java:303)

    at com.progress.messaging.jms.JmsConnection.<init>(JmsConnection.java:39)

    at com.progress.messaging.jms.jms._connect(jms.java:306)

    at com.progress.javafrom4gl.implementation.JavaServlet.<init>(JavaServlet.java:81)

    at com.progress.javafrom4gl.implementation.ServiceImpl.createConnectionServlet(ServiceImpl.java:106)

    at com.progress.ubroker.broker.ubServerThreadIPC.write(ubServerThreadIPC.java:433)

    at com.progress.ubroker.broker.ubASserverThread.processConnect(ubASserverThread.java:574)

    at com.progress.ubroker.broker.ubServerThread.processEvent(ubServerThread.java:1210)

    at com.progress.ubroker.broker.ubServerThread.mainline(ubServerThread.java:479)

    at com.progress.ubroker.broker.ubServerThread.run(ubServerThread.java:356)

    Caused by: com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').

    at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:202)

    ... 18 more

    Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2059;AMQ9204: Connection to host '10.242.244.47(1414)' rejected. [3=10.242.244.47(1414)                                                                                                                                                                                                                                                     ]

    at com.ibm.mq.jmqi.remote.api.RemoteFAP.jmqiConnect(RemoteFAP.java:2401)

    at com.ibm.mq.jmqi.remote.api.RemoteFAP.jmqiConnect(RemoteFAP.java:1396)

    at com.ibm.mq.ese.jmqi.InterceptedJmqiImpl.jmqiConnect(InterceptedJmqiImpl.java:376)

    at com.ibm.mq.ese.jmqi.ESEJMQI.jmqiConnect(ESEJMQI.java:561)

    at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:342)

    ... 17 more.

    Thanks,

    Sivarami

  • Hi Sivarami,

    You need to add client IP address pattern at the time of creating Client Authentication records. Please check what is the client IP and what is configured in Client Authentication records.

    Thanks,

    Anand.

  • Hi Anand,

    Thanks.

    I have changed Ip address and i have restarted my admin server and Sonic MQ adapter. Now I am receiving the below error.

    1. My websphere MQ is installed in one machine, the same IP I have provided in my client connections and checked then I have received user authentication error.

    2. Where I have my all programs, this IP I have provided in my client connections and checked then I have received the below error.

    I have 2 IP's in my client machine i have tried with both the IP's.

    1. Ethernet adapter Local Area Connection:

       IPv4 Address

    2. Ethernet adapter VirtualBox Host-Only Network:

        IPv4 Address

    S-0001>(Aug 10, 2017 14:51:52:803) : Looking up ConnectionFactory in JNDI Object Store

    S-0001>(Aug 10, 2017 14:51:52:804) 192.168.56.1::sonicMQ1::3620::ef54940a8d2b9a05:426b6e3a:15dcb711771:-7feb: Using connection values: 26,null,true,,true,false,-1,-1,false,0,false,false,,10000,0,30,false,60,0,20,0,,null,null,PC302075,localhost

    S-0001>(Aug 10, 2017 14:51:54:969) 192.168.56.1::sonicMQ1::3620::ef54940a8d2b9a05:426b6e3a:15dcb711771:-7feb

    com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ2020: Failed to connect to queue manager 'SampleQM' with connection mode 'Client' and supplied CCDT URL 'file:C:/Users/492839/websphereMQJMS/AMQCLCHL.TAB', see linked exception for more information.

    Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information.

    Thanks,

    Sivarami

  • Hi Anand,

    If I provide the IP Address of the WebSphereMQ server, I am getting authentication error.

    Thanks,

    Sivarami

  • Hi Sivarami,

    Please log an RFA for further investigation on this.

    Thanks,

    Anand.