You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Cedric Hurst <ce...@gmail.com> on 2008/04/24 21:10:01 UTC

Symantec Antivirus and Apache Geronimo - NET_BIND Issue

I've been racking my brain trying to figure out what could be causing a port
conflict with Apache Geronimo which results in this error when trying to
start the server:


org.apache.geronimo.corba.security.config.ConfigException: Error starting
transient name service
    at
org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter.java:179)
    at
org.apache.geronimo.yoko.ORBConfigAdapter$$FastClassByCGLIB$$76e4a002.invoke(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
    at
org.apache.geronimo.corba.security.config.ConfigAdapter$$EnhancerByCGLIB$$3f9e1dfe.createNameService(<generated>)
    at org.apache.geronimo.corba.NameService.doStart(NameService.java:164)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:996)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:539)
    at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
    at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
    at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
    at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
    at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
    at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553)
    at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448)
    at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
    at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$236fa26e.startConfiguration(<generated>)
    at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
    at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:83)
    at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
    at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
    at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
Caused by: 
org.apache.yoko.orb.CosNaming.tnaming.TransientServiceException: Unable to
initialize name service
    at
org.apache.yoko.orb.CosNaming.tnaming.TransientNameService.initialize(TransientNameService.java:156)
    at
org.apache.yoko.orb.CosNaming.tnaming.TransientNameService.run(TransientNameService.java:116)
    at
org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter.java:175)
    ... 42 more
Caused by: 
org.omg.CORBA.COMM_FAILURE: bind() failed: Address already in use: NET_Bind: 
vmcid: Apache minor code: 0x8  completed: No
    at
org.apache.yoko.orb.OCI.IIOP.Acceptor_impl.<init>(Acceptor_impl.java:475)
    at
org.apache.yoko.orb.OCI.IIOP.AccFactory_impl.create_acceptor(AccFactory_impl.java:159)
    at
org.apache.yoko.orb.OBPortableServer.POAManagerFactory_impl.create_POAManager(POAManagerFactory_impl.java:252)
    at
org.apache.yoko.orb.OB.ORBControl.initializeRootPOA(ORBControl.java:539)
    at
org.apache.yoko.orb.OBCORBA.ORB_impl.resolve_initial_references(ORB_impl.java:1098)
    at
org.apache.yoko.orb.CosNaming.tnaming.TransientNameService.initialize(TransientNameService.java:130)
    ... 44 more
Caused by: 
java.net.BindException: Address already in use: NET_Bind
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:415)
    at java.net.ServerSocket.bind(ServerSocket.java:331)
    at java.net.ServerSocket.<init>(ServerSocket.java:197)
    at java.net.ServerSocket.<init>(ServerSocket.java:153)
    at
org.apache.yoko.orb.OCI.IIOP.DefaultConnectionHelper.createServerSocket(DefaultConnectionHelper.java:51)
    at
org.apache.yoko.orb.OCI.IIOP.Acceptor_impl.<init>(Acceptor_impl.java:465)
    ... 49 more
11:20:40,718 ERROR [GBeanInstanceState] Error while starting; GBean is now
in the FAILED state:
abstractName="org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-corba-yoko/2.0.2/car,j2eeType=CORBANameService,name=NameServer"
org.apache.geronimo.corba.security.config.ConfigException: Error starting
transient name service
    at
org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter.java:179)
    at
org.apache.geronimo.yoko.ORBConfigAdapter$$FastClassByCGLIB$$76e4a002.invoke(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
    at
org.apache.geronimo.corba.security.config.ConfigAdapter$$EnhancerByCGLIB$$3f9e1dfe.createNameService(<generated>)
    at org.apache.geronimo.corba.NameService.doStart(NameService.java:164)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:996)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
    at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553)
    at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
    at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448)
    at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
    at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
    at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$236fa26e.startConfiguration(<generated>)
    at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
    at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:83)
    at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
    at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
    at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
Caused by: 
org.apache.yoko.orb.CosNaming.tnaming.TransientServiceException: Unable to
initialize name service
    at
org.apache.yoko.orb.CosNaming.tnaming.TransientNameService.initialize(TransientNameService.java:156)
    at
org.apache.yoko.orb.CosNaming.tnaming.TransientNameService.run(TransientNameService.java:116)
    at
org.apache.geronimo.yoko.ORBConfigAdapter.createNameService(ORBConfigAdapter.java:175)
    ... 33 more
Caused by: 
org.omg.CORBA.COMM_FAILURE: bind() failed: Address already in use: NET_Bind: 
vmcid: Apache minor code: 0x8  completed: No
    at
org.apache.yoko.orb.OCI.IIOP.Acceptor_impl.<init>(Acceptor_impl.java:475)
    at
org.apache.yoko.orb.OCI.IIOP.AccFactory_impl.create_acceptor(AccFactory_impl.java:159)
    at
org.apache.yoko.orb.OBPortableServer.POAManagerFactory_impl.create_POAManager(POAManagerFactory_impl.java:252)
    at
org.apache.yoko.orb.OB.ORBControl.initializeRootPOA(ORBControl.java:539)
    at
org.apache.yoko.orb.OBCORBA.ORB_impl.resolve_initial_references(ORB_impl.java:1098)
    at
org.apache.yoko.orb.CosNaming.tnaming.TransientNameService.initialize(TransientNameService.java:130)
    ... 35 more
Caused by: 
java.net.BindException: Address already in use: NET_Bind
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:415)
    at java.net.ServerSocket.bind(ServerSocket.java:331)
    at java.net.ServerSocket.<init>(ServerSocket.java:197)
    at java.net.ServerSocket.<init>(ServerSocket.java:153)
    at
org.apache.yoko.orb.OCI.IIOP.DefaultConnectionHelper.createServerSocket(DefaultConnectionHelper.java:51)
    at
org.apache.yoko.orb.OCI.IIOP.Acceptor_impl.<init>(Acceptor_impl.java:465)
    ... 40 more
Server startup failed


It seemed to happen randomly, even after a reboot.  It was also affecting
every single member of my team at various points throughout our project. 
The only solution we could come up with was to change the PortOffset on the
Geronimo server, or wait until the issue mysteriously fixed itself about an
hour later.

Initially, I thought it had something to do with the default geronimo naming
port of 1099.  But doing a "netstat -abn" failed to produce any process
bound to that port prior to starting the server.  So then, I went down the
list of other default ports and found that the geronimo default
"COSNamingPort" and "COSSunNamingPort" of 1050 was in use by another running
process on my machine, "ccApp.exe".  It turns out that "ccApp.exe" is the
process that Symantec LiveUpdate uses to refresh its virus definition files,
and it listens on port 1050 whenever its time for a scheduled update.  Thus,
the NET_BIND issue would occur at seemingly random points throughout the
day, and even after a reboot because the LiveUpdate process would resume
itself on login.

The fix for this issue is to go into
%GERONIMO_HOME%/var/config/config-substitutions.properties and change the
following values from:

COSNamingPort=1050
COSSunNamingPort=1050

to:

COSNamingPort=1051
COSSunNamingPort=1051

Hopefully, this will save a lot of time and headaches for people with
similar issues.  It might also be worthwhile to change the default ports in
Geronimo out-the-box for future releases.

Best,
- C


-- 
View this message in context: http://www.nabble.com/Symantec-Antivirus-and-Apache-Geronimo---NET_BIND-Issue-tp16851544s134p16851544.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.