[jboss-user] [JBossCache] - Error starting protocol stack

rwillie6 do-not-reply at jboss.com
Sun Dec 2 19:19:46 EST 2007


My setup:

3 - machine glassfish cluster
Hibernate 3.2 as the persistence provider
TreeCache 1.4 as the second-level cache provider in Hibernate

When starting my cluster, I receive the following stack trace:

error 3 [#|2007-12-02T19:16:15.362-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=pool-1-thread-2;_RequestID=26f7c7cd-6af3-4e18-92ac-1e030e02b17b;|WEB0207: Error starting web context StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[] on virtual server server
java.lang.RuntimeException: javax.persistence.PersistenceException: org.hibernate.cache.CacheException: org.jgroups.ChannelException: failed to start protocol stack
        at com.sun.enterprise.web.WebModuleListener.loadPersistenceUnits(WebModuleListener.java:193)
        at com.sun.enterprise.web.WebModuleListener.lifecycleEvent(WebModuleListener.java:168)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:143)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5086)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:327)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:296)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:330)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.persistence.PersistenceException: org.hibernate.cache.CacheException: org.jgroups.ChannelException: failed to start protocol stack
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737)
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
        at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:149)
        at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:84)
        at com.sun.enterprise.web.WebModuleListener.loadPersistenceUnits(WebModuleListener.java:190)
        ... 13 more
Caused by: org.hibernate.cache.CacheException: org.jgroups.ChannelException: failed to start protocol stack
        at org.hibernate.cache.OptimisticTreeCacheProvider.start(OptimisticTreeCacheProvider.java:97)
        at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:183)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
        at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
        ... 17 more
Caused by: org.jgroups.ChannelException: failed to start protocol stack
        at org.jgroups.JChannel.connect(JChannel.java:371)
        at org.jboss.cache.TreeCache.startService(TreeCache.java:1333)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
        at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
        at org.hibernate.cache.OptimisticTreeCacheProvider.start(OptimisticTreeCacheProvider.java:94)
        ... 21 more
Caused by: java.lang.Exception: problem creating sockets (bind_addr=/fe80:0:0:0:218:feff:fe70:b2a6%3, mcast_addr=null)
        at org.jgroups.protocols.UDP.start(UDP.java:366)
        at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:75)
        at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:273)
        at org.jgroups.JChannel.connect(JChannel.java:368)
        ... 25 more
Caused by: java.lang.IllegalArgumentException: port out of range:65536
        at java.net.InetSocketAddress.(InetSocketAddress.java:83)
        at java.net.DatagramSocket.(DatagramSocket.java:261)
        at org.jgroups.protocols.UDP.createEphemeralDatagramSocket(UDP.java:562)
        at org.jgroups.protocols.UDP.createSockets(UDP.java:430)
        at org.jgroups.protocols.UDP.start(UDP.java:362)
        ... 28 more


The error is repeated on all three instances in my cluster. 


Here is the JGroups  section of my TreeCache configuration file:


   
      <UDP mcast_addr="228.1.2.3" mcast_port="48866" ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false" />
      <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false"/>
      <MERGE2 min_interval="10000" max_interval="20000"/>
<!--<FD shun="true" up_thread="true" down_thread="true" />-->
      <FD_SOCK/>
      <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false"/>
      <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800" max_xmit_size="8192" up_thread="false" down_thread="false"/>
      <UNICAST timeout="600,1200,2400" down_thread="false"/>
      <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false"/>
      <FRAG frag_size="8192" down_thread="false" up_thread="false"/>
      <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true"/>
      <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
   


Seems to be caused by that "port out of range" exception... Any ideas how I can fix this?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109678#4109678

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109678



More information about the jboss-user mailing list