[JNBException] - systemnotboundexception: ConnectException - Connection refused / timed out


Problem Description:


The desired Maximo instance cannot be reached by the DataSplice server.


Common Causes:

  • Firewall / network rules
  • Maximo is configured to use a dynamic RMI port


Fixes:

  • Verify the "mxe.rmi.port" property is set correctly in Maximo.  This is often found in the maximo.properties file.  If set to 0, then Maximo will select a random port to use for RMI communication and can be difficult to create firewall rules for.
  • Work with networking personnel to verify the IP and RMI port of the desired Maximo instance and if necessary, open communication between the Maximo instance and DataSplice server.


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


DataSplicePluginForMaximoStatus = RmiError

JavaStatus = Ok

RmiStatus = <strong>MaximoLoginFailed</strong>

RmiStatusDetails

Test RMI at 11/2/2016 10:30:52 AM

RMI host = 123.123.123.123 port = 13400 searching for object name = MXServer

 List RMI Registry:

 found RMI object = MXServer

Basic Information:

 <strong>systemnotboundexception</strong>

Error Details:

 <strong>Exception Type: MaximoProxy.Java.JavaInvocationException</strong>

 Java method invocation exception. Method: connect ()

JNBridgeDotNetStackTrace:

  at com.jnbridge.jnbproxy.ExceptionFactory.throwException(JNBException e, Hashtable objMap)   
  at java.lang.reflect.Method.invoke(Object p1, Object[] p2)   
  at MaximoProxy.Java.JavaObjectBinding.Invoke(String methodName, MethodLookupStyle lookupStyle, Object[] parameters)

JNBridgeDotNetExceptions:

 java.lang.reflect.InvocationTargetException: <strong>Exception of type 'com.jnbridge.jnbcore.JNBException' was thrown.</strong>

JavaStackTrace:

  java.lang.reflect.InvocationTargetException   
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)   
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)   
  at java.lang.reflect.Method.invoke(Unknown Source)   
  at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)   
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)   
  at java.lang.reflect.Method.invoke(Unknown Source)   
  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)
  <strong>Caused by: psdi.util.MXSystemException: <u>systemnotboundexception</u></strong>   
  at psdi.util.RMISession.connect(RMISession.java:119)   ... 11 more
  <strong>Caused by: java.rmi.<u>ConnectException: Connection refused to host: 123.123.123.123;</u></strong> nested exception is:    
  <strong>java.net.ConnectException: <u>Connection timed out: connect</u></strong>   
  at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)   
  at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)   
  at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)   
  at sun.rmi.server.UnicastRef.invoke(Unknown Source)   
  at psdi.server.MXServer_Stub.lookup(Unknown Source)   
  at psdi.util.RMISession.authenticateUser(RMISession.java:310)   
  at psdi.util.RMISession.loadUserInfo(RMISession.java:206)   
  at psdi.util.RMISession.connect(RMISession.java:62)   ... 11 more
  Caused by: java.net.ConnectException: Connection timed out: connect   
  at java.net.DualStackPlainSocketImpl.connect0(Native Method)   
  at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)   
  at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)   
  at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)   
  at java.net.AbstractPlainSocketImpl.connect(Unknown Source)   
  at java.net.PlainSocketImpl.connect(Unknown Source)   
  at java.net.SocksSocketImpl.connect(Unknown Source)   
  at java.net.Socket.connect(Unknown Source)   
  at java.net.Socket.connect(Unknown Source)   
  at java.net.Socket.<init>(Unknown Source)   
  at java.net.Socket.<init>(Unknown Source)   
  at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)   
  at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)

JavaExceptions:

 <strong>psdi.util.MXSystemException: <u>systemnotboundexception</u></strong>

 <strong>java.rmi.<u>ConnectException: Connection refused to host: 123.123.123.123;</u></strong>
 

 

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!