Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-2489

Client builder bug is blocking usage of Daytrader AppClient

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.1, 1.1.1
    • 1.1.2, 1.2, 2.0-M5
    • application client
    • Security Level: public (Regular issues)
    • None
    • Patch Available
    • Regression

    Description

      If you try to use the Daytrader app client, the following exception is thrown:
      java -jar client.jar wasce-samples/daytrader-derby-tomcat_streamer.jar/1.1/car
      16:10:19,562 INFO [Log4jService] ----------------------------------------------
      16:10:19,562 INFO [Log4jService] Started Logging Service
      16:10:22,484 WARN [RMIRegistryService] RMI Registry failed
      16:10:22,500 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
      e FAILED state: abstractName="geronimo/rmi-naming/1.1/car?ServiceModule=geronimo
      /rmi-naming/1.1/car,j2eeType=GBean,name=RMIRegistry"
      java.rmi.server.ExportException: Port already in use: 1099; nested exception is:

      java.net.BindException: Address already in use: NET_Bind
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:284)
      at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:219
      )
      at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:398)
      at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:131)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:19
      5)
      at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:107)
      at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:93)
      at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:1
      98)
      at org.apache.geronimo.system.rmi.RMIRegistryService.doStart(RMIRegistry
      Service.java:58)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanI
      nstance.java:981)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
      (GBeanInstanceState.java:267)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta
      nceState.java:102)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(G
      BeanInstanceState.java:124)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanI
      nstance.java:540)
      at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(Basi
      cKernel.java:379)
      at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
      nGBeans(ConfigurationUtil.java:374)
      at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
      rnelConfigurationManager.java:187)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
      figuration(SimpleConfigurationManager.java:527)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
      figuration(SimpleConfigurationManager.java:508)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastCla
      ssByCGLIB$$ce77a924.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
      at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
      Invoker.java:38)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
      n.java:122)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
      java:817)
      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
      7)
      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
      ionInvoker.java:35)
      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
      xyMethodInterceptor.java:96)
      at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$ec0bda8e.s
      tartConfiguration(<generated>)
      at org.apache.geronimo.system.main.CommandLine.loadConfigurations(Comman
      dLine.java:167)
      at org.apache.geronimo.system.main.CommandLine.invokeMainGBean(CommandLi
      ne.java:92)
      at org.apache.geronimo.system.main.ClientCommandLine.<init>(ClientComman
      dLine.java:79)
      at org.apache.geronimo.system.main.ClientCommandLine.main(ClientCommandL
      ine.java:49)
      Caused by:
      java.net.BindException: Address already in use: NET_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398)
      at java.net.ServerSocket.bind(ServerSocket.java:331)
      at java.net.ServerSocket.<init>(ServerSocket.java:197)
      at java.net.ServerSocket.<init>(ServerSocket.java:109)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMI
      DirectSocketFactory.java:46)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMI
      MasterSocketFactory.java:350)
      at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:63
      8)
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:272)
      ... 31 more
      org.apache.geronimo.kernel.config.LifecycleException: start of wasce-samples/day
      trader-derby-tomcat_streamer.jar/1.1/car failed
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
      figuration(SimpleConfigurationManager.java:544)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
      figuration(SimpleConfigurationManager.java:508)
      at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
      Invoker.java:38)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
      n.java:122)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
      java:817)
      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
      7)
      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
      ionInvoker.java:35)
      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
      xyMethodInterceptor.java:96)
      at org.apache.geronimo.system.main.CommandLine.loadConfigurations(Comman
      dLine.java:167)
      at org.apache.geronimo.system.main.CommandLine.invokeMainGBean(CommandLi
      ne.java:92)
      at org.apache.geronimo.system.main.ClientCommandLine.<init>(ClientComman
      dLine.java:79)
      at org.apache.geronimo.system.main.ClientCommandLine.main(ClientCommandL
      ine.java:49)
      Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown sta
      rt exception
      at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
      nGBeans(ConfigurationUtil.java:440)
      at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
      rnelConfigurationManager.java:187)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
      figuration(SimpleConfigurationManager.java:527)
      ... 11 more
      Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
      n geronimo/rmi-naming/1.1/car failed to start due to the following reasons:
      The service ServiceModule=geronimo/rmi-naming/1.1/car,j2eeType=GBean,name=RMIR
      egistry did not start because the doStart method threw an exception.
      java.rmi.server.ExportException: Port already in use: 1099; nested exception is:

      java.net.BindException: Address already in use: NET_Bind
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:284)
      at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:219
      )
      at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:398)
      at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:131)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:19
      5)
      at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:107)
      at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:93)
      at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:1
      98)
      at org.apache.geronimo.system.rmi.RMIRegistryService.doStart(RMIRegistry
      Service.java:58)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanI
      nstance.java:981)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
      (GBeanInstanceState.java:267)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta
      nceState.java:102)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(G
      BeanInstanceState.java:124)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanI
      nstance.java:540)
      at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(Basi
      cKernel.java:379)
      at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
      nGBeans(ConfigurationUtil.java:374)
      at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(Ke
      rnelConfigurationManager.java:187)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
      figuration(SimpleConfigurationManager.java:527)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon
      figuration(SimpleConfigurationManager.java:508)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastCla
      ssByCGLIB$$ce77a924.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
      at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
      Invoker.java:38)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
      n.java:122)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
      java:817)
      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
      7)
      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
      ionInvoker.java:35)
      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
      xyMethodInterceptor.java:96)
      at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$ec0bda8e.s
      tartConfiguration(<generated>)
      at org.apache.geronimo.system.main.CommandLine.loadConfigurations(Comman
      dLine.java:167)
      at org.apache.geronimo.system.main.CommandLine.invokeMainGBean(CommandLi
      ne.java:92)
      at org.apache.geronimo.system.main.ClientCommandLine.<init>(ClientComman
      dLine.java:79)
      at org.apache.geronimo.system.main.ClientCommandLine.main(ClientCommandL
      ine.java:49)
      Caused by: java.net.BindException: Address already in use: NET_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398)
      at java.net.ServerSocket.bind(ServerSocket.java:331)
      at java.net.ServerSocket.<init>(ServerSocket.java:197)
      at java.net.ServerSocket.<init>(ServerSocket.java:109)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMI
      DirectSocketFactory.java:46)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMI
      MasterSocketFactory.java:350)
      at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:63
      8)
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:272)
      ... 31 more

      at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio
      nGBeans(ConfigurationUtil.java:403)
      ... 13 more

      Attachments

        1. G2489-1.1.1.patch
          1 kB
          Donald Woods

        Activity

          People

            Unassigned Unassigned
            drwoods Donald Woods
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: