1 Reply Latest reply on Nov 14, 2011 3:36 PM by Stephen Wick

    JGroups UDP Errors starting JBoss AS

    Stephen Wick Newbie

      I am trying to start up a fresh copy of the "all" server for JBoss EAP 4.3 (I know it's redhat but I hope you can help anyway) on my Windows Vista SP2 Laptop.  We run JBoss EAP 4.3 on Redhat Linux servers, but I want to do development on my laptop.  I am also using Eclipse Indigo with the JBoss Tools plug-in (for Eclipse Helios because there isn't a newer version).

       

      I created a JBoss EAP 4.3 Runtime with the Jboss Tools plugin.  My problem is, when I try to start the server I get the following error message:

       

      16:23:47,528 WARN  [ServiceController] Problem starting service jboss.cache:service=TomcatClusteringCache
      org.jgroups.ChannelException: failed to start protocol stack
           at org.jgroups.JChannel.connect(JChannel.java:389)
           at org.jboss.cache.TreeCache.startService(TreeCache.java:1549)
           at org.jboss.cache.aop.PojoCache.startService(PojoCache.java:94)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
           at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
                      ... truncated (see attachment)
      Caused by: java.lang.Exception: exception caused by UDP.start()
           at org.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:582)
           ... 94 more
      Caused by: java.lang.Exception: problem creating sockets (bind_addr=KCDLE641CPHV2M1/10.202.153.12, mcast_addr=230.1.2.7:45577)
           at org.jgroups.protocols.UDP.start(UDP.java:381)
           at org.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:571)
           ... 135 more
      Caused by: java.net.SocketException: An operation was attempted on something that is not a socket
           at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
           at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299)
           at java.net.MulticastSocket.setInterface(MulticastSocket.java:420)
           at org.jgroups.protocols.UDP.createSockets(UDP.java:529)
           at org.jgroups.protocols.UDP.start(UDP.java:376)
           ... 136 more
      

       

      There are other components, like the JMS PostOffice, that use Jgroups, but they use TCP instead of UDP.  TCP is working for some reason.

       

      I'll also attach the full stack trace and tomcat cluster config.

       

      I could really use some help.

       

      Thanks!

        • 1. Re: JGroups UDP Errors starting JBoss AS
          Stephen Wick Newbie

          The problem was fixed by adding "-server -Djava.net.preferIPv4Stack=true" to the Launch Configuration for the JBoss server. 

           

          In Eclipse, from the "Servers" view, double-click on the JBoss Server, in my case this was "JBoss EAP 4.3 Runtime Server", then click on the link "Open launch configuration".  Under the "Arguments" tab, add the string "-server -Djava.net.preferIPv4Stack=true" after the memory parameters "-XX:MaxPermSize=..."