IS-10.5 Apache Active MQ JMS Connection

Hello,
I’m trying to establish the connectivity in IS-10.5 with Apache MQ server.

Copied the below jars to the path /opt/webmapig/10.5/APIGW/IntegrationServer/lib/jars/ and then server restart.

activemq-all-5.16.0.jar

xstream-1.4.12.jar

xmlpull-1.1.3.1.jar

kxml2.jar

in this way, the connectivity has been established but APIGATEWAY UI(9072 port) is non-responsive.

Alternatively I tried with AMQP,

Created on AMQP Properties file and configured the server details, referred the file path in JNDI

AMQP Properties file :
#java.naming.factory.initial = org.apache.qpid.jndi.PropertiesFileInitialContextFactory
java.naming.factory.initial = org.apache.qpid.jms.jndi.JmsInitialContextFactory

Define the required ConnectionFactory instances

#connectionfactory.qpidConnectionFactory = https://hostname:5555
#connectionfactory.qpidConnectionFactory = amqp://hostname:5555
connectionfactory.qpidConnectionFactory = amqp://hostname:5555?transportScheme=https

JNDI lookup is successful, but JMS connection is not getting enabled.(it’s changing to inprogress)

Please advise if any other settings to be applied.

Thanks

Hi Shiva,

is ther an additional instances/default/lib/jars dir under the IntegrationServer dir?
You should copy the jars to there also. Most likely they should be placed one level deeper in the lib/jars/custom directory.

Restart the server one more time afterwards.

Are there any error messages in profiles/IS_default/logs/wrapper.log and/or IS/instances/default/logs/server.log, which might be helpful?

Regards,
Holger

Hi Holger,
After copying jars to default/lib/custom path also, same issue.
Please see the server logs message

java.lang.RuntimeException: java.lang.Exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0’: Initialization of bean failed; nested exception is java.lang.NullPointerException

   at com.softwareag.apigateway.ui.utils.SAMLAssertionUtil.getISSession(SAMLAssertionUtil.java:108) ~[com.softwareag.apigateway.webapp.apimanager_10.5.0.0008-0317.

jar:?]
at com.softwareag.apigateway.ui.utils.SAMLAssertionUtil.getISSession(SAMLAssertionUtil.java:90) ~[com.softwareag.apigateway.webapp.apimanager_10.5.0.0008-0317.j
ar:?]
at com.softwareag.apigateway.ui.utils.SAMLAssertionTechnicalUser.getIsSession(SAMLAssertionTechnicalUser.java:29) ~[com.softwareag.apigateway.webapp.apimanager_
10.5.0.0008-0317.jar:?]
at com.softwareag.apigateway.ui.ISConfiguration$1.run(ISConfiguration.java:104) [com.softwareag.apigateway.webapp.apimanager_10.5.0.0008-0317.jar:?]
at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_261]
at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_261]
Caused by: javax.ws.rs.ProcessingException: java.net.ConnectException: Connection refused (Connection refused)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:287) ~[jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255) ~[jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:684) ~[jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:681) ~[jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.internal.Errors.process(Errors.java:228) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:681) ~[jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:437) ~[jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:343) ~[jersey-client-2.22.2.jar:?]
at com.softwareag.apigateway.ui.servlet.WebUtil.execute(WebUtil.java:97) ~[com.softwareag.apigateway.webapp.apimanager_10.5.0.0008-0317.jar:?]
… 6 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.8.0_261]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:1.8.0_261]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:1.8.0_261]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:1.8.0_261]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_261]
at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_261]
at sun.net.NetworkClient.doConnect(NetworkClient.java:175) ~[?:1.8.0_261]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:1.8.0_261]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:1.8.0_261]
at sun.net.www.http.HttpClient.(HttpClient.java:242) ~[?:1.8.0_261]
at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[?:1.8.0_261]
at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[?:1.8.0_261]
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) ~[?:1.8.0_261]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) ~[?:1.8.0_261]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) ~[?:1.8.0_261]
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) ~[?:1.8.0_261]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1340) ~[?:1.8.0_261]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1315) ~[?:1.8.0_261]
at org.glassfish.jersey.client.internal.HttpUrlConnector$4.getOutputStream(HttpUrlConnector.java:385) ~[jersey-client-2.22.2.jar:?]
at org.glassfish.jersey.message.internal.CommittingOutputStream.commitStream(CommittingOutputStream.java:200) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.message.internal.CommittingOutputStream.commitStream(CommittingOutputStream.java:194) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.message.internal.CommittingOutputStream.write(CommittingOutputStream.java:228) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$UnCloseableOutputStream.write(WriterInterceptorExecutor.java:299) ~[jersey-common-2.22.2.jar:
?]
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) ~[?:1.8.0_261]
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) ~[?:1.8.0_261]
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) ~[?:1.8.0_261]
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) ~[?:1.8.0_261]
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) ~[?:1.8.0_261]
at org.glassfish.jersey.message.internal.ReaderWriter.writeToAsString(ReaderWriter.java:193) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:130) ~[jersey-common-2.22.
2.jar:?]
at org.glassfish.jersey.message.internal.StringMessageProvider.writeTo(StringMessageProvider.java:99) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.message.internal.StringMessageProvider.writeTo(StringMessageProvider.java:59) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265) ~[jersey-common-2
.22.2.jar:?]
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250) ~[jersey-common-2
.22.2.jar:?]
at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162) ~[jersey-common-2.22.2.jar:?]
at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1130) ~[jersey-common-2.22.2.jar:?]

    at com.softwareag.apigateway.ui.utils.SAMLAssertionTechnicalUser.getIsSession(SAMLAssertionTechnicalUser.java:29) ~[com.softwareag.apigateway.webapp.apimanager_

10.5.0.0008-0317.jar:?]
at com.softwareag.apigateway.ui.ISConfiguration$1.run(ISConfiguration.java:104) [com.softwareag.apigateway.webapp.apimanager_10.5.0.0008-0317.jar:?

per the log message, i think there is some compatibility issue, or some jars corrupted.

Please let me know if any advise to fix this.

Thanks

Hi Shiva,

Did you place all the required associated jars in this dir path and configure? Restarted IS?

/opt/webmapig/10.5/APIGW/IntegrationServer/instances/default/lib/jars

HTH,
RMG

Hi Shiva,

as per your log snippet, the Active MQ JMS server did not accept your connection request:
“Connection refused”

Is there anything in the logs of the Active MQ JMS server, which might be helpful, why the connection was refused?

Addendum to RMGs post:
/opt/webmapig/10.5/APIGW/IntegrationServer/instances/default/lib/jars/custom might be a better location so you can distinguish between jars provided by SAG and those you have added later on by your own.

See IS Administrators Guide for further informations.

Regards,
Holger