Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1849

Misconfigured SASL protocol can fail with NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Optional
    • 3.4.5, 3.5
    • None
    • None

    Description

      Misconfigured JGroups SASL protocol (e.g. mech is not specified) can result into NPE:

      Caused by: java.lang.NullPointerException
              at org.jgroups.auth.sasl.SaslUtils.getSaslServerFactory(SaslUtils.java:118) [jgroups.jar:3.5.0.Beta7]
              at org.jgroups.protocols.SASL.init(SASL.java:178) [jgroups.jar:3.5.0.Beta7]
              at org.jgroups.stack.ProtocolStack.initProtocolStack(ProtocolStack.java:861) [jgroups.jar:3.5.0.Beta7]
              at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:481) [jgroups.jar:3.5.0.Beta7]
              at org.jgroups.JChannel.init(JChannel.java:849) [jgroups.jar:3.5.0.Beta7]
              at org.jgroups.JChannel.<init>(JChannel.java:159) [jgroups.jar:3.5.0.Beta7]
              at org.jgroups.JChannel.<init>(JChannel.java:129) [jgroups.jar:3.5.0.Beta7]
              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.buildChannel(JGroupsTransport.java:373) [infinispan-core.jar:7.0.0-SNAPSHOT]
              ... 124 more
      

      It should fail more gracefully, e.g. throw some custom exception with details what's wrong with configuration.

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            vjuranek@redhat.com Vojtech Juranek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: