2 Replies Latest reply on Jan 27, 2011 7:14 AM by manik

    TCP : Port value out of range: 65536

    snacker

      I'm getting the following error when I try to deploy 3 different TreeCache's using TCP (not multicast UDP).

      I have checked all 3 of the *-service.xml for the "ClusterConfig"s I don't see where a port number is wrong.

      Here is the "ClusterConfig" section of the xml file(s):

      <attribute name="ClusterConfig">
       <config>
       <TCP bind_addr="168.192.0.10" start_port="7810" stop_port="10000" loopback="true"/>
       <TCPPING initial_hosts="168.192.0.10[7810],168.192.0.33[7810]" port_range="3" timeout="3500"
       num_initial_members="3" up_thread="true" down_thread="true"/>
       <MERGE2 min_interval="5000" max_interval="10000"/>
       <FD shun="true" timeout="2500" max_tries="5" up_thread="true" down_thread="true" />
       <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
       <pbcast.NAKACK down_thread="true" up_thread="true" gc_lag="100"
       retransmit_timeout="3000"/>
       <pbcast.STABLE desired_avg_gossip="20000" down_thread="false" up_thread="false" />
       <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="false"
       print_local_addr="true" down_thread="true" up_thread="true"/>
       <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
       </config>
      </attribute>
      


      Here is the output:

      ...
      21:47:00,973 INFO [ProxyFactory] Bound EJB Home 'MyBigEJB' to jndi 'ejb/MyBigEJB'
      21:47:00,973 INFO [EJBDeployer] Deployed: file:/C:/jboss/server/all/farm/MyTstEJBs_session.jar
      21:47:01,383 INFO [TomcatDeployer] deploy, ctxPath=/MyCacheWeb, warUrl=.../tmp/deploy/tmp41317MyCacheWeb-exp.war/
      21:47:01,503 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
      21:47:01,533 INFO [JBossCacheManager] Starting JBossManager
      21:47:01,603 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      21:47:01,603 INFO [TreeCache] cache mode is REPL_SYNC
      21:47:05,940 ERROR [JChannel] exception: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
      21:47:05,950 WARN [ServiceController] Problem starting service jboss.cache:service=MyCache
      ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       at org.jgroups.JChannel.connect(JChannel.java:328)
       at org.jboss.cache.TreeCache.startService(TreeCache.java:1119)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at org.jboss.system.ServiceController.start(ServiceController.java:446)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
       at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
       at org.jboss.Main.boot(Main.java:187)
       at org.jboss.Main$1.run(Main.java:438)
       at java.lang.Thread.run(Thread.java:595)
      21:47:05,950 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      21:47:05,950 INFO [TreeCache] cache mode is REPL_SYNC
      21:47:10,136 ERROR [JChannel] exception: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
      21:47:10,136 WARN [ServiceController] Problem starting service jboss.cache:service=MyBigCache
      ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       at org.jgroups.JChannel.connect(JChannel.java:328)
       ...
       at org.jboss.Main$1.run(Main.java:438)
       at java.lang.Thread.run(Thread.java:595)
      21:47:10,146 INFO [TreeCache] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.LockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      21:47:10,146 INFO [TreeCache] cache mode is REPL_SYNC
      21:47:14,412 ERROR [JChannel] exception: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
      21:47:14,412 WARN [ServiceController] Problem starting service jboss.cache:service=MyBigListCache
      ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       at org.jgroups.JChannel.connect(JChannel.java:328)
       at org.jboss.cache.TreeCache.startService(TreeCache.java:1119)
       ...
       at org.jboss.Main$1.run(Main.java:438)
       at java.lang.Thread.run(Thread.java:595)
      21:47:14,432 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.cache:service=MyCache
       State: FAILED
       Reason: ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       I Depend On:
       jboss:service=Naming
       jboss:service=TransactionManager
       jboss:service=FarmMember,partition=DefaultPartition
      
      ObjectName: jboss.cache:service=MyBigCache
       State: FAILED
       Reason: ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       I Depend On:
       jboss:service=Naming
       jboss:service=TransactionManager
       jboss:service=FarmMember,partition=DefaultPartition
      
      ObjectName: jboss.cache:service=MyBigListCache
       State: FAILED
       Reason: ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       I Depend On:
       jboss:service=Naming
       jboss:service=TransactionManager
       jboss:service=FarmMember,partition=DefaultPartition
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.cache:service=MyBigCache
       State: FAILED
       Reason: ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       I Depend On:
       jboss:service=Naming
       jboss:service=TransactionManager
       jboss:service=FarmMember,partition=DefaultPartition
      
      ObjectName: jboss.cache:service=MyBigListCache
       State: FAILED
       Reason: ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       I Depend On:
       jboss:service=Naming
       jboss:service=TransactionManager
       jboss:service=FarmMember,partition=DefaultPartition
      
      ObjectName: jboss.cache:service=MyCache
       State: FAILED
       Reason: ChannelException: java.lang.Exception: exception caused by TCP.start(): java.lang.IllegalArgumentException: Port value out of range: 65536
       I Depend On:
       jboss:service=Naming
       jboss:service=TransactionManager
       jboss:service=FarmMember,partition=DefaultPartition
      
      
      21:47:14,603 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      21:47:14,733 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      21:47:14,753 INFO [JkMain] Jk running ID=0 time=0/100 config=null
      21:47:14,833 INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)] Started in 51s:486ms
      


      Any help would be greatly appreciated. I have been searching for hours trying to figure out what the problem is.




        • 1. Re: TCP : Port value out of range: 65536
          snacker

          I found out what the problem was. I had to swap the two ip addresses.

          Had

           <TCP bind_addr="168.192.0.10" start_port="7810" stop_port="10000" loopback="true"/>
           <TCPPING initial_hosts="168.192.0.10[7810],168.192.0.33[7810]" port_range="3" timeout="3500"
           num_initial_members="3" up_thread="true" down_thread="true"/>
          


          Changed to:
           <TCP bind_addr="168.192.0.33" start_port="7810" stop_port="10000" loopback="true"/>
           <TCPPING initial_hosts="168.192.0.33[7810],168.192.0.10[7810]" port_range="3" timeout="3500"
           num_initial_members="3" up_thread="true" down_thread="true"/>
          


          I wish it said the ip address didn't belong to the server or something instead of trying to listen on a different servers port and trying until it got to 65536.


          • 2. TCP : Port value out of range: 65536
            manik

            I know this is old, but I've created a JIRA to track this: JGRP-1280