1 Reply Latest reply on Feb 23, 2011 12:11 PM by Tom Cunningham

    Can not find a free port for use

    Tanu Gulati Newbie

      i am getting below error while starting the server it is related to

      Can not find a free port for use.  i  searched jboss forum and found Cannot find free port - problemhttp://community.jboss.org/thread/49421 link but situations are different in both posts. in my case i am not having any ipaddrss in the log.

      Any suggestions on it?

       

       

      org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unable to start Remoting Listener instsance org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener

                at org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener.startJBRServer(JBossRemotingGatewayListener.java:306)

                at org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener.doStart(JBossRemotingGatewayListener.java:268)

                at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle.start(AbstractManagedLifecycle.java:173)

                at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.startInstances(ManagedLifecycleController.java:136)

                at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.start(ManagedLifecycleController.java:67)

                at org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment.start(EsbDeployment.java:125)

                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 org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)

                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)

                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

                at org.jboss.system.ServiceController.start(ServiceController.java:460)

                at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)

                at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

                at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)

                at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:291)

                at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)

                at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1570)

                at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1535)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:944)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)

                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)

                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)

                at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                at org.jboss.Main.boot(Main.java:221)

                at org.jboss.Main$1.run(Main.java:556)

                at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.RuntimeException: Error setting up server invoker org.jboss.remoting.transport.coyote.CoyoteInvoker@7c3235

                at org.jboss.remoting.ServerInvoker.create(ServerInvoker.java:942)

                at org.jboss.remoting.transport.Connector.init(Connector.java:436)

                at org.jboss.remoting.transport.Connector.create(Connector.java:1157)

                at org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener.startJBRServer(JBossRemotingGatewayListener.java:295)

                ... 83 more

      Caused by: java.io.IOException: Can not find a free port for use.

                at org.jboss.remoting.transport.PortUtil.findFreePort(PortUtil.java:152)

                at org.jboss.remoting.ServerInvoker.assignPort(ServerInvoker.java:1329)

                at org.jboss.remoting.ServerInvoker.setupHomes(ServerInvoker.java:1219)

                at org.jboss.remoting.ServerInvoker.setup(ServerInvoker.java:1074)

                at org.jboss.remoting.transport.coyote.CoyoteInvoker.setup(CoyoteInvoker.java:114)

                at org.jboss.remoting.ServerInvoker.create(ServerInvoker.java:938)

                ... 86 more