UM is up still the JNDI test Loookup is getting failed

webMethods 10.15 version is used.

####We are upgrading to webMethods 10.15. The UM is also installed. However, we are not able to connect to 10.15 UM. The 10.15 UM instance is running. I can see the process in the Linux. However JNDI test lookup is not getting connected. Even we are not ale to connect to 10.5 UM also from the 10.15 IS. But the 10.5 UM is connected to 10.5 IS. Need to know if any configuration is missing.

Logs are given in the below :

[Fri Jul 07 20:39:16.775 AEST 2023] [HTTP Handler 10.155.231.150] Session 3813 has been created with URL list: nSessionAttributes:conns=1/[[nsps://XXXXXX:9002]]
[Fri Jul 07 20:39:16.775 AEST 2023] [HTTP Handler 10.155.231.150] Session 3813 has been created with URL list: nSessionAttributes:conns=1/[[nsps://XXXXXX:9002]]
[Fri Jul 07 20:39:16.776 AEST 2023] [HTTP Handler 10.155.231.150] Session 3813 attempting connection to [nsps://XXXXXX:9002]
[Fri Jul 07 20:39:16.776 AEST 2023] [HTTP Handler 10.155.231.150] Establishing connection for session 3813
[Fri Jul 07 20:39:16.776 AEST 2023] [HTTP Handler 10.155.231.150] Attempting connection to nsps://XXXXXX:9002
[Fri Jul 07 20:39:16.776 AEST 2023] [HTTP Handler 10.155.231.150] Constructing Custom SSL SocketFactory
[Fri Jul 07 20:39:16.778 AEST 2023] [HTTP Handler 10.155.231.150] java.net.ConnectException: Connection refused (Connection refused)
java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:615)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:305)
at com.pcbsys.foundation.drivers.fSSLSocketDriver.createSocket(fSSLSocketDriver.java:128)
at com.pcbsys.foundation.drivers.fSocketDriver.init(fSocketDriver.java:60)
at com.pcbsys.foundation.drivers.fSSLSocketDriver.(fSSLSocketDriver.java:66)
at com.pcbsys.foundation.drivers.fDriverFactory.attemptConnection(fDriverFactory.java:273)
at com.pcbsys.foundation.drivers.fDriverFactory.doConnect(fDriverFactory.java:225)
at com.pcbsys.foundation.drivers.fDriverFactory.connect(fDriverFactory.java:182)
at com.pcbsys.nirvana.base.DefaultConnectionFactory.establishConnection(DefaultConnectionFactory.java:24)
at com.pcbsys.nirvana.base.clientimpl.singleconnection.ClientConnectionManagerImpl.establishConnection(ClientConnectionManagerImpl.java:784)
at com.pcbsys.nirvana.base.clientimpl.singleconnection.ClientConnectionManagerImpl.connect(ClientConnectionManagerImpl.java:623)
at com.pcbsys.nirvana.base.clientimpl.singleconnection.ClientConnectionManagerImpl.initialise(ClientConnectionManagerImpl.java:411)
at com.pcbsys.nirvana.client.nSession.init(nSession.java:244)
at com.pcbsys.nirvana.nSpace.NirvanaContext.(NirvanaContext.java:198)
at com.pcbsys.nirvana.nSpace.NirvanaContext.(NirvanaContext.java:114)
at com.pcbsys.nirvana.nSpace.NirvanaContextFactory.getContext(NirvanaContextFactory.java:72)
at com.pcbsys.nirvana.nSpace.NirvanaContextFactory.getInitialContext(NirvanaContextFactory.java:52)
at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:730)
at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
at java.naming/javax.naming.InitialContext.init(InitialContext.java:236)
at java.naming/javax.naming.InitialContext.(InitialContext.java:208)
at wm.server.jndi.checkJNDIProvider(jndi.java:946)
at wm.server.jndi.testJNDILookup(jndi.java:790)
at jdk.internal.reflect.GeneratedMethodAccessor600.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:405)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:761)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:67)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49)
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:339)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:33)
at com.wm.app.b2b.server.invoke.ConcurrentRequestLimitProcessor.process(ConcurrentRequestLimitProcessor.java:57)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:400)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:631)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:436)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:394)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:260)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:116)
at com.wm.app.b2b.server.ns.Namespace.invoke(Namespace.java:760)
at com.wm.util.template.Reporter.invoke(Reporter.java:921)
at com.wm.util.template.InvokeToken.eval(InvokeToken.java:69)
at com.wm.util.template.TemplateToken.evalChild(TemplateToken.java:196)
at com.wm.util.template.SwitchToken.evalChild(SwitchToken.java:78)
at com.wm.util.template.TemplateToken.eval(TemplateToken.java:166)
at com.wm.util.template.SwitchToken.eval(SwitchToken.java:51)
at com.wm.util.template.TemplateToken.evalChild(TemplateToken.java:196)
at com.wm.util.template.TemplateToken.eval(TemplateToken.java:166)
at com.wm.util.template.Reporter.reportNoReset(Reporter.java:1467)
at com.wm.util.template.Reporter.reportToOutput(Reporter.java:1443)
at com.wm.util.template.Reporter.reportIData(Reporter.java:1339)
at com.wm.app.b2b.server.HTTPDocHandler._process(HTTPDocHandler.java:640)
at com.wm.app.b2b.server.HTTPDocHandler.process(HTTPDocHandler.java:131)
at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:227)
at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:391)
at com.wm.util.pool.PooledThread.run(PooledThread.java:127)
at java.base/java.lang.Thread.run(Thread.java:829)
[Fri Jul 07 20:39:16.778 AEST 2023] [HTTP Handler 10.155.231.150] Failed to connect to Realm on attempt 1 - nSessionAttributes:conns=1/[[nsps://XXXXXX:9002]]
[Fri Jul 07 20:39:16.778 AEST 2023] [HTTP Handler 10.155.231.150] com.pcbsys.nirvana.client.nRealmUnreachableException: Realm is currently not reachable:Retry count=1 exceeded attempting to connect to host - [nsps://XXXXXX:9002]
com.pcbsys.nirvana.client.nRealmUnreachableException: Realm is currently not reachable:Retry count=1 exceeded attempting to connect to host - [nsps://XXXXXX:9002]
at com.pcbsys.nirvana.base.clientimpl.singleconnection.ClientConnectionManagerImpl.establishConnection(ClientConnectionManagerImpl.java:792)
at com.pcbsys.nirvana.base.clientimpl.singleconnection.ClientConnectionManagerImpl.connect(ClientConnectionManagerImpl.java:623)
at com.pcbsys.nirvana.base.clientimpl.singleconnection.ClientConnectionManagerImpl.initialise(ClientConnectionManagerImpl.java:411)
at com.pcbsys.nirvana.client.nSession.init(nSession.java:244)
at com.pcbsys.nirvana.nSpace.NirvanaContext.(NirvanaContext.java:198)
at com.pcbsys.nirvana.nSpace.NirvanaContext.(NirvanaContext.java:114)
at com.pcbsys.nirvana.nSpace.NirvanaContextFactory.getContext(NirvanaContextFactory.java:72)
at com.pcbsys.nirvana.nSpace.NirvanaContextFactory.getInitialContext(NirvanaContextFactory.java:52)
at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:730)
at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
at java.naming/javax.naming.InitialContext.init(InitialContext.java:236)
at java.naming/javax.naming.InitialContext.(InitialContext.java:208)
at wm.server.jndi.checkJNDIProvider(jndi.java:946)
at wm.server.jndi.testJNDILookup(jndi.java:790)
at jdk.internal.reflect.GeneratedMethodAccessor600.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:405)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:761)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:67)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49)
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:339)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:33)
at com.wm.app.b2b.server.invoke.ConcurrentRequestLimitProcessor.process(ConcurrentRequestLimitProcessor.java:57)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:400)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:631)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:436)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:394)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:260)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:116)
at com.wm.app.b2b.server.ns.Namespace.invoke(Namespace.java:760)
at com.wm.util.template.Reporter.invoke(Reporter.java:921)
at com.wm.util.template.InvokeToken.eval(InvokeToken.java:69)
at com.wm.util.template.TemplateToken.evalChild(TemplateToken.java:196)
at com.wm.util.template.SwitchToken.evalChild(SwitchToken.java:78)
at com.wm.util.template.TemplateToken.eval(TemplateToken.java:166)
at com.wm.util.template.SwitchToken.eval(SwitchToken.java:51)
at com.wm.util.template.TemplateToken.evalChild(TemplateToken.java:196)
at com.wm.util.template.TemplateToken.eval(TemplateToken.java:166)
at com.wm.util.template.Reporter.reportNoReset(Reporter.java:1467)
at com.wm.util.template.Reporter.reportToOutput(Reporter.java:1443)
at com.wm.util.template.Reporter.reportIData(Reporter.java:1339)
at com.wm.app.b2b.server.HTTPDocHandler._process(HTTPDocHandler.java:640)
at com.wm.app.b2b.server.HTTPDocHandler.process(HTTPDocHandler.java:131)
at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:227)
at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:391)
at com.wm.util.pool.PooledThread.run(PooledThread.java:127)
at java.base/java.lang.Thread.run(Thread.java:829)
[Fri Jul 07 20:39:16.778 AEST 2023] [HTTP Handler 10.155.231.150] The connection failed to initialize. ID: 3813
[Fri Jul 07 20:39:16.778 AEST 2023] [HTTP Handler 10.155.231.150] Closing session 3813
[Fri Jul 07 20:39:16.778 AEST 2023] [HTTP Handler 10.155.231.150] Session 3813 has been closed

Production (customer)

####Production (customer) instance.

@Arup_Sarkar1 Can you check why your IS is not able to reach you UM servers on the respective ports. There is communication connection drop while connecting from IS to UM.

[HTTP Handler 10.155.231.150] Session 3813 attempting connection to [nsps://XXXXXX:9002]
[Fri Jul 07 20:39:16.776 AEST 2023] [HTTP Handler 10.155.231.150] Establishing connection for session 3813
[Fri Jul 07 20:39:16.776 AEST 2023] [HTTP Handler 10.155.231.150] Attempting connection to nsps://XXXXXX:9002
[Fri Jul 07 20:39:16.776 AEST 2023] [HTTP Handler 10.155.231.150] Constructing Custom SSL SocketFactory
[Fri Jul 07 20:39:16.778 AEST 2023] [HTTP Handler 10.155.231.150] java.net.ConnectException: Connection refused (Connection refused)
[/quote]

Please check if firewall-cmd is blocking any ports.

systemctl status firewalld
firewall-cmd --list-all

Did you add the connection factory for JNDI? After creating JNDI context you need to add the connection factory as well. You need to set it to the same name as your IS JNDI settings.

It should look like this in Enterprise Manager

and this is what it looks like in IS JMS connection alias

Off-topic a bit and does not help with the problem. But I’m always compelled to rail against the relative complexity of JMS and advocate to avoid it whenever possible. Offers capabilities and flexibility sure, but IME is generally a royal pain. Especially when compared with the super-simplicity of “webMethods Messaging” that handles all of the details behind the scenes. All we have to do is mark a doc type as publishable. Configure one or more triggers to subscribe to it. Couldn’t be easier.

Likely not reasonable for you at this point, but consider retiring the use of JMS and use wM messaging instead.

/end-mild-rant :slight_smile:

2 Likes

I agree on not using JNDI manually, but it is required for optimize configuration as far as I remember. Also there is no harm configuring it during installation. Using JNDI manually to publish/subscribe will create an extra dependency and it will haunt you in your sleep in the future.

That’s correct. JMS is a complex process. However, we have to use JMS as we are supposed to upgrade using current architecture.

Regards,
Arup

Recreated the connection factory and it worked.

Glad you managed to fix the problem, I would assume the issue was a misconfiguration in the Connection Factory URL

Joshua

Joshua I am not sure. recreated the port in Command central again. The port configuration was not proper for UM.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.