[JNBException] - NoRmiRegistryFound: ConnectException - Connection Refused


Problem Description:

 

DataSplice is unable to locate an RMI registry on the URL provided in the MaximoServer setting.


Common Causes:


  • Connection timed out (IP cannot be reached or is invalid).
  • Connection refused (Incorrect port or RMI registry not running).


Fixes:


  •  Verify the RMI registry host is running.
  •  Work with networking personnel to verify the IP and port of the RMI registry and open communication between the Maximo instance and DataSplice server.


Example Error Logs & Stack Trace (../Server/logs):


DataSplicePluginForMaximoStatus = RmiError
JavaStatus = Ok
RmiStatus = NoRmiRegistryFound
RmiStatusDetails
MaximoProxy.Errors.MaximoPluginException: Basic Information:
  Connection refused to host: 123.123.123.123; nested exception is:
  java.net.ConnectException: Connection refused: connect
  
Error Details:

  Exception Type: MaximoProxy.Errors.MaximoPluginException
  
JNBridgeDotNetStackTrace:

  at com.jnbridge.jnbproxy.ExceptionFactory.throwException(JNBException e, Hashtable objMap)  
  at sun.rmi.registry.RegistryImpl_Stub.list()  at MaximoProxy.Plugin.MaximoPlugin.TestConnection()
  
JNBridgeDotNetExceptions:

  java.rmi.ConnectException: Connection refused to host: 123.45.67.89; nested exception is: 
  java.net.ConnectException: Connection refused: connect
  
JavaStackTrace:
  java.rmi.ConnectException: Connection refused to host: 123.123.123.123; nested exception is:   
  java.net.ConnectException: Connection refused: connect  
  at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)  
  at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:210)  
  at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)  
  at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:334)  
  at sun.rmi.registry.RegistryImpl_Stub.list(RegistryImpl_Stub.java:61)  
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)  
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)  
  at java.lang.reflect.Method.invoke(Method.java:611)  
  at com.jnbridge.jnbcore.JNBDispatcher.objectVirtualCall(Unknown Source)  
  at com.jnbridge.jnbcore.JNBDispatcher.call(Unknown Source)  
  at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.a(Unknown Source)  
  at com.jnbridge.jnbcore.server.sharedmem.SharedMemRequestHandler.handleRequest(Unknown Source)
  Caused by: java.net.ConnectException: Connection refused: connect  
  at java.net.PlainSocketImpl.socketConnect(Native Method)  
  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:381)  
  at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:243)  
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:230)  
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)  
  at java.net.Socket.connect(Socket.java:539)  
  at java.net.Socket.connect(Socket.java:488)  
  at java.net.Socket.<init>(Socket.java:385)  
  at java.net.Socket.<init>(Socket.java:199)  
  at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:34)  
  at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:140)  
  at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:607)  ... 12 more
  
JavaExceptions:

  java.net.ConnectException: Connection refused: connect
  java.rmi.ConnectException: Connection refused to host: 123.123.123.123;

Test RMI at 11/1/2016 10:17:06 AM
RMI host = 123.123.123.123 port = 13400 searching for object name = MXServer
  List RMI Registry:

ADO.NET Database connection using connection profile = maximo
Database connection Ok



For additional assistance please email support@datasplice.com and we'd be happy to help!