Need help on - Error connecting got JMS AppServer service

Posted by Chaya Krishnappa on 12-Oct-2016 06:39

Progress version : 11.6

WE are trying to configure ActiveMQ with Generic JMS Adapter from an ABL session. Followed the steps as provided in the below post and used the same sample code as attached in the post:

https://community.progress.com/community_groups/f/27/t/22805

When we try to connect to ActiveMQ, the error displayed is " Error connecting got JMS AppServer service ".

We found an article http://knowledgebase.progress.com/articles/Article/P189133, which mentioned the solution for this error - increase the maxClientInstances to the number of WebSpeed agents and the maxAdptrThreads to twice the number of maxClientInstances.

Even after updating the ubroker file, we are still facing the same error " Error connecting got JMS AppServer service ".

Can somebody please help on if we are missing something?

Thanks,

Chaya

All Replies

Posted by Anand Adike on 13-Oct-2016 00:55

Could you please share log files by increasing logging level to 5 for SonicMQ Adapter.

Thanks,

Anand.

Posted by Chaya Krishnappa on 13-Oct-2016 07:22

Hi Anand,

Below is the log detail:

[16/10/13@17:27:03.681+2300] P-014144 T-008804 1 4GL -- Logging level set to = 2

[16/10/13@17:27:03.681+2300] P-014144 T-008804 1 4GL -- No entry types are activated

[16/10/13@17:27:03.681+2300] P-014144 T-008804 1 4GL -- Logging level set to = 5

S-0009>(Oct 13, 2016 17:27:04:012) 10.242.244.47::sonicMQ1::3620::3a0c48e56235696c:-c9451c:157bd75f0ce:-7f4c:     Startup Parameters:

   jmsServerName: null

   Point-To-Point    

   brokerURL: tcp://CTSC00520904801:61616

   user: admin

   password: admin

   clientID: null

   pingInterval: null

   transactedPublish: false

   transactedReceive: false

   singleMessageAck: false

   symbiontAdapter: false

   jmsDomain: true

S-0009>(Oct 13, 2016 17:27:04:012) S-0009: Sonic receive message queue size set to 10

S-0009>(Oct 13, 2016 17:27:04:012) S-0009: Sonic browse message queue size set to 500

S-0009>(Oct 13, 2016 17:27:04:013) : In SessionContainer()

S-0009>(Oct 13, 2016 17:27:04:013) : Creating JMS connection factory: tcp://CTSC00520904801:61616

S-0009>(Oct 13, 2016 17:27:04:013) 10.242.244.47::sonicMQ1::3620::3a0c48e56235696c:-c9451c:157bd75f0ce:-7f4c: Using connection values: 26,null,true,null,true,false,-1,-1,false,0,false,false,null,10000,0,30,false,60,0,20,0,null,admin,admin,CTSC00520904801,CTSC00520904801

S-0009>(Oct 13, 2016 17:27:04:017) 10.242.244.47::sonicMQ1::3620::3a0c48e56235696c:-c9451c:157bd75f0ce:-7f4c

javax.jms.JMSException: The connection was rejected by the broker - Did you forget to use ssl:// or http:// in your connect string ?

at progress.message.jimpl.JMSExceptionUtil.createJMSException(JMSExceptionUtil.java:42)

Thanks,

Chaya

Posted by Anand Adike on 13-Oct-2016 07:36

Hi Chaya,

Thank you for sharing the log file.

Could you please the procedure that you are using to connect ActiveMQ.

Thanks,

Anand.

Posted by Chaya Krishnappa on 14-Oct-2016 00:31

/***  Producer.p ****/

/* Publishes A Text message. */

DEFINE VARIABLE ptpsession AS HANDLE.

DEFINE VARIABLE messageH AS HANDLE.

DEFINE VARIABLE iping AS INTEGER    NO-UNDO INITIAL 20.

DEFINE VARIABLE lDebug AS LOGICAL.

DEFINE VARIABLE cdate AS CHARACTER NO-UNDO FORMAT "x(16)".

DEFINE VARIABLE ddate AS DATE      NO-UNDO.

/* Creates a session object. */

RUN jms/jmssession.p PERSISTENT SET ptpsession ("-H localhost -S 5162 -AppService AD.sonicMQ1").

/* Set user credentials. */

RUN setBrokerURL      IN ptpsession (INPUT "tcp://localhost:61616").

RUN setUser           IN ptpsession (INPUT "admin").

RUN setPassword       IN ptpsession (INPUT "admin").

/* Connect to the broker. */

RUN beginSession IN ptpsession.

/* Create a text message */

RUN createTextMessage IN ptpsession (OUTPUT messageH).

ddate = DATE(cdate).

RUN setText IN messageH ("This is test message sent on " + STRING(TIME,"HH:MM:SS")).

/* Publish the message on the "SampleQ1" topic */

RUN sendToQueue IN ptpsession ("SampleQ1", messageH, ?, ?, ?).  

RUN deleteMessage IN messageH.

RUN deleteSession IN ptpsession.

Message "Sent".

Note: This procedure was shared in one of the posts -

community.progress.com/.../22805

Posted by Anand Adike on 14-Oct-2016 00:55

Hi Chaya,

Please follow the below steps to configure ActiveMQ with GenericJMS Adapter.

1) Update [PluginPolicy.Progress.SonicMQ] section in AdminServerPlugins.properties file as show below:

[PluginPolicy.Progress.SonicMQ]
pluginclasspath=${DLC}/java/progress.jar,${DLC}/java/ext/activemq-all-5.10.0.jar
classpath=${DLC}/java/progress.jar,${DLC}/java/ext/activemq-all-5.10.0.jar
jvmargs=-DsonicMQExtensions=false -DjmsProvider=ActiveMQ

2) Start the AdminServer
3) Start SonicMQ adatper by setting the server logging level to 5 under [Adapter.sonicMQ1] section in $DLC/properties/ubroker.properties file as shown below

[Adapter.sonicMQ1]
srvrLoggingLevel=5
4) Execute the procedure to connect ActiveMQ

Please share complete server log file (sonicMQ1.server.log), AdminServerPlugins.properties and ubroker.properties file incase if it doesn't work.

Quickly tested at my end it's working fine, please find the attached server log file for your reference.

Hope this helps!!

Thanks,
Anand.

[View:/cfs-file/__key/communityserver-discussions-components-files/19/6457.sonicMQ1.server.log:320:240]

Posted by Chaya Krishnappa on 14-Oct-2016 03:25

Thanks Anand.

The steps mentioned are what exactly I followed. But with no luck.

Attached are the sonicMQ1.server.log, AdminServerPlugins.properties and ubroker.properties files.

I do see differences in your and my log files.

I am using 11.6 trial version. Does this make any difference?

Thank you,

Chaya

[View:/cfs-file/__key/communityserver-discussions-components-files/19/sonicMQ1.server.log.log:20:20][View:/cfs-file/__key/communityserver-discussions-components-files/19/AdminServerPlugins.properties:20:20][View:/cfs-file/__key/communityserver-discussions-components-files/19/ubroker.properties:20:20]

Posted by Chaya Krishnappa on 14-Oct-2016 03:37

Sorry, Attaching the updated AdminServerPlugins.properties file.

[View:/cfs-file/__key/communityserver-discussions-components-files/19/4857.AdminServerPlugins.properties:20:20]

Posted by Anand Adike on 14-Oct-2016 03:41

Thanks Chaya for sharing the files.

To use  ActiveMQ with Generic JMS Adapter, we need to update [PluginPolicy.Progress.SonicMQ] section in $DLC/properties/AdminServerPlugins.properties file, which is not updated in your file. Could you please update the section in your AdminServerPlugins.properties file as shown below.

Change  From:

[PluginPolicy.Progress.SonicMQ]

   pluginclasspath=C:\Progress\OpenEdge/sonic/MQ8.5/lib/sonic_Client.jar,C:\Progress\OpenEdge/sonic/MQ8.5/lib/mgmt_client.jar,C:\Progress\OpenEdge/java/progress.jar

   classpath=C:\Progress\OpenEdge/sonic/MQ8.5/lib/sonic_Client.jar,C:\Progress\OpenEdge/java/progress.jar

Change To:

[PluginPolicy.Progress.SonicMQ]

pluginclasspath=C:\Progress\OpenEdge/java/progress.jar,C:\Progress\OpenEdge/java/ext/activemq-all-5.10.0.jar

classpath=C:\Progress\OpenEdge/java/progress.jar,C:\Progress\OpenEdge/java/ext/activemq-all-5.10.0.jar

jvmargs=-DsonicMQExtensions=false -DjmsProvider=ActiveMQ

Please update above properties and execute the procedure, it should work.

Hope this helps!!

Thanks,

Anand.

Posted by Chaya Krishnappa on 14-Oct-2016 04:10

It is working now !

Thank you Anand !!

This thread is closed