Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-1870

ManagedDatagramSocketBinding throw NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.ER2 (Beta)
    • 7.0.0.DR12
    • Management
    • None

      I'm proposing this upstream issue for inclusion in EAP 7 as I suspect it may be related to the https://bugzilla.redhat.com/show_bug.cgi?id=1268185 work. Following is the original report:

      i think i have found the same bug as in WFCORE-1033 but in another method.
      in the previous bug the bind method was the problem, here i have the same NPE in the close method. there is no null check to registry as in the bind method.

      [Server:mgmt-1-prod] 2015-11-10 00:37:15,454 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.jgroups.channel.ee.connector: org.jboss.msc.service.StartException in service jboss.jgroups.channel.ee.connector:
      java.lang.NullPointerException
      [Server:mgmt-1-prod]    at org.wildfly.clustering.jgroups.spi.service.ChannelConnectorBuilder.start(ChannelConnectorBuilder.java:9
      6)
      [Server:mgmt-1-prod]    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      [Server:mgmt-1-prod]    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      [Server:mgmt-1-prod]    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      [Server:mgmt-1-prod]    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      [Server:mgmt-1-prod]    at java.lang.Thread.run(Thread.java:745)
      [Server:mgmt-1-prod] Caused by: java.lang.NullPointerException
      [Server:mgmt-1-prod]    at org.jboss.as.network.ManagedDatagramSocketBinding.close(ManagedDatagramSocketBinding.java:73)
      [Server:mgmt-1-prod]    at java.net.DatagramSocket.<init>(DatagramSocket.java:245)
      [Server:mgmt-1-prod]    at org.jboss.as.network.ManagedDatagramSocketBinding.<init>(ManagedDatagramSocketBinding.java:41)
      [Server:mgmt-1-prod]    at org.jboss.as.network.SocketBindingManagerImpl.createDatagramSocket(SocketBindingManagerImpl.java:87)
      [Server:mgmt-1-prod]    at org.jboss.as.clustering.jgroups.ManagedSocketFactory.createDatagramSocket(ManagedSocketFactory.java:103)
      [Server:mgmt-1-prod]    at org.jboss.as.clustering.jgroups.ManagedSocketFactory.createDatagramSocket(ManagedSocketFactory.java:113)
      [Server:mgmt-1-prod]    at org.jgroups.protocols.UDP.createDatagramSocketWithBindPort(UDP.java:487)
      [Server:mgmt-1-prod]    at org.jgroups.protocols.UDP.createSockets(UDP.java:361)
      [Server:mgmt-1-prod]    at org.jgroups.protocols.UDP.start(UDP.java:270)
      [Server:mgmt-1-prod]    at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:965)
      [Server:mgmt-1-prod]    at org.jgroups.JChannel.startStack(JChannel.java:890)
      [Server:mgmt-1-prod]    at org.jgroups.JChannel._preConnect(JChannel.java:553)
      [Server:mgmt-1-prod]    at org.jgroups.JChannel.connect(JChannel.java:288)
      [Server:mgmt-1-prod]    at org.jgroups.JChannel.connect(JChannel.java:279)
      [Server:mgmt-1-prod]    at org.wildfly.clustering.jgroups.spi.service.ChannelConnectorBuilder.start(ChannelConnectorBuilder.java:94)
      [Server:mgmt-1-prod]    ... 5 more
      

              bstansbe@redhat.com Brian Stansberry
              timtasse_jira Stefan Dilk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: