Search This Blog

Tuesday, July 16, 2013

Sterling installation failed on linux centos. java.rmi.server.ExportException: Port already in use:



<entry num='115' time='1373981103913' elapsed='02:47.94' level='ERROR' thread='main'>
<logger>com.ibm.cic.agent.core.Engine</logger>
<class>com.ibm.cic.agent.core.Engine.Phase</class>
<method>perform</method>
<message>java.rmi.server.ExportException: Port already in use: 0; nested exception is:
        java.net.BindException: Cannot assign requested address</message>
<exception>
  java.rmi.server.ExportException: Port already in use: 0; nested exception is:
       java.net.BindException: Cannot assign requested address
  <stack>sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:322)</stack>
  <stack>sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:230)</stack>
  <stack>sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:405)</stack>
  <stack>sun.rmi.transport.LiveRef.exportObject(LiveRef.java:141)</stack>
  <stack>sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:202)</stack>
  <stack>java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:304)</stack>
  <stack>java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:267)</stack>
  <stack>com.ibm.sterling.afc.install.launch.InstallServer.export(InstallServer.java:43)</stack>
  <stack>com.ibm.sterling.afc.install.launch.BackendLauncher.run(BackendLauncher.java:65)</stack>
  <stack>sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</stack>
  <stack>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)</stack>
  <stack>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)</stack>
  <stack>java.lang.reflect.Method.invoke(Method.java:611)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.Invoke$InvokeRunnable.run(Invoke.java:189)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.Invoke.perform(Invoke.java:66)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.InvokeInstallOperation.doPerform(InvokeInstallOperation.java:61)</stack>
  <stack>com.ibm.cic.agent.core.AbstractInstallOperation.perform(AbstractInstallOperation.java:120)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.ICommonNativeInstallAdapter.processCommonPerformOperation(ICommonNativeInstallAdapter.java:527)</stack>
  <stack>com.ibm.cic.agent.internal.adapters.nativeAdapter.NativeInstallAdapter.customOperation(NativeInstallAdapter.java:117)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.PerformInstallOperation.doPerform(PerformInstallOperation.java:54)</stack>
  <stack>com.ibm.cic.agent.core.AbstractInstallOperation.perform(AbstractInstallOperation.java:120)</stack>
  <stack>com.ibm.cic.agent.core.InstallTransaction.performOperation(InstallTransaction.java:75)</stack>
  <stack>com.ibm.cic.agent.core.InstallContext.performOperationReturnStatus(InstallContext.java:584)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.ICommonNativeInstallAdapter.handlePerformOperation(ICommonNativeInstallAdapter.java:404)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.ICommonNativeInstallAdapter.processCommonOperation(ICommonNativeInstallAdapter.java:441)</stack>
  <stack>com.ibm.cic.agent.internal.adapters.nativeAdapter.NativeInstallAdapter.dispatcher(NativeInstallAdapter.java:78)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.ICommonNativeInstallAdapter.performMain(ICommonNativeInstallAdapter.java:285)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.ICommonNativeInstallAdapter.performOtherPhase(ICommonNativeInstallAdapter.java:131)</stack>
  <stack>com.ibm.cic.agent.core.commonNativeInstallAdapter.ICommonNativeInstallAdapter.perform(ICommonNativeInstallAdapter.java:104)</stack>
  <stack>com.ibm.cic.agent.internal.adapters.nativeAdapter.NativeInstallAdapter.install(NativeInstallAdapter.java:54)</stack>
  <stack>com.ibm.cic.agent.internal.core.SafeInstallAdaptorWrapper.install(SafeInstallAdaptorWrapper.java:88)</stack>
  <stack>com.ibm.cic.agent.core.Engine$Phase$Install.performIU(Engine.java:606)</stack>
  <stack>com.ibm.cic.agent.core.Engine$Phase$IUPhase$IUPhaseSubOperation.perform(Engine.java:473)</stack>
  <stack>com.ibm.cic.agent.core.InstallTransaction.performOperation(InstallTransaction.java:75)</stack>

Solution

    Sterling installer picks hostname of machine from network script and then do reverse lookup and if  reverse lookup fails, installer fails with above exception. To fix this make sure

   VM Hostname is mapped in host file with correct IP.

 

No comments:

Post a Comment