Troubleshooting
Problem
We are writing custom Java clients using Nirvana APIs to connect to UM to create a NSPS port. We deleted this NSP port after the first creation of a NSPS port (as the initial activity). After this point, all interactions with UM will only be using NSPS.
If I try interact with UM for any action, for e.g. adding another NSPS port, I am unable to connect. I get the following error:
main, IOException in getSession(): javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
com.pcbsys.nirvana.nAdminAPI.nBaseAdminException: Unable to establish RealmAdmin connection with nSessionAttributes:conns=1/[nsps://host:9099/] :: com.pcbsys.nirvana.client.nRealmUnreachableException: Realm is currently not reachable:Realm was still unreachable after max retry count - nSessionAttributes:conns=1/[nsps://host:9099/]
at com.pcbsys.nirvana.nAdminAPI.nRealmAdmin.connectToRealm(nRealmAdmin.java:251)
at com.pcbsys.nirvana.nAdminAPI.nRealmAdmin.create(nRealmAdmin.java:163)
at com.pcbsys.nirvana.nAdminAPI.nRealmAdmin.<init>(nRealmAdmin.java:103)
at com.pcbsys.nirvana.nAdminAPI.nRealmAdmin.<init>(nRealmAdmin.java:77)
at jl.mwi.nirvana.nAdminAPI.apps.nDeleteRealmInterface.<init>(nDeleteRealmInterface.java:79)
at jl.mwi.nirvana.nAdminAPI.apps.nDeleteRealmInterface.main(nDeleteRealmInterface.java:223)
Caused by: com.pcbsys.nirvana.client.nRealmUnreachableException: Realm is currently not reachable:Realm was still unreachable after max retry count - nSessionAttributes:conns=1/[nsps://host:9099/]
at com.pcbsys.nirvana.client.nSession.actualInit(nSession.java:6243)
at com.pcbsys.nirvana.client.nSession.init(nSession.java:6192)
at com.pcbsys.nirvana.client.nSession.init(nSession.java:6139)
at com.pcbsys.nirvana.nAdminAPI.nRealmAdmin.connectToRealm(nRealmAdmin.java:242)
... 5 more
Caused by: com.pcbsys.nirvana.client.nRealmUnreachableException: Realm is currently not reachable:com.pcbsys.foundation.base.fException: SSL exception received when connecting to - [nsps://host:9099/] (check cause for underlying exception)
at com.pcbsys.nirvana.client.nSession.establishConnection(nSession.java:7559)
at com.pcbsys.nirvana.client.nSession.connect(nSession.java:7390)
at com.pcbsys.nirvana.client.nSession.actualInit(nSession.java:6223)
... 8 more
Caused by: com.pcbsys.foundation.base.fException: SSL exception received when connecting to - [nsps://host:9099/] (check cause for underlying exception)
at com.pcbsys.foundation.drivers.fDriverFactory.attemptConnection(fDriverFactory.java:553)
at com.pcbsys.foundation.drivers.fDriverFactory.doConnect(fDriverFactory.java:460)
at com.pcbsys.foundation.drivers.fDriverFactory.connect(fDriverFactory.java:412)
at com.pcbsys.foundation.drivers.fDriverFactory.connect(fDriverFactory.java:404)
at com.pcbsys.foundation.io.fDefaultConnectionFactory.establishConnection(fDefaultConnectionFactory.java:81)
at com.pcbsys.foundation.io.fConnection.createConnection(fConnection.java:749)
at com.pcbsys.nirvana.client.nSession.establishConnection(nSession.java:7557)
... 10 more
Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at sun.security.ssl.SSLSessionImpl.getPeerCertificateChain(SSLSessionImpl.java:482)
at com.pcbsys.foundation.drivers.fSSLSocketDriver.createSocket(fSSLSocketDriver.java:311)
at com.pcbsys.foundation.drivers.fSocketDriver.<init>(fSocketDriver.java:318)
at com.pcbsys.foundation.drivers.fSSLSocketDriver.<init>(fSSLSocketDriver.java:258)
at com.pcbsys.foundation.drivers.fDriverFactory.attemptConnection(fDriverFactory.java:507)
... 16 more
Could you explain why this could be happening that Nirvana is presenting its port as a Non-SSL port even when the port is definitely SSL enabled and in "Running" state.
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
20 March 2025
UID
ibm17210511