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

SASLTest-functional and SASL_SimpleAuthorizingCallbackTest-functional fails on IBM jdk 1.8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.14, 4.0.7
    • None
    • None

      We see these two tests failing on IBM jdk 1.8
      org.jgroups.protocols.SASLTest-functional
      org.jgroups.protocols.SASL_SimpleAuthorizingCallbackTest-functional

      This issue may be related to https://issues.jboss.org/browse/JGRP-1993 somehow.

      There is standard output of tests.

      ------------- testSASLDigestMD5 -----------
      
      -------------------------------------------------------------------
      GMS: address=A, cluster=SaslTest
      -------------------------------------------------------------------
      521823 [TRACE] GMS: A: no members discovered after 3000 ms: creating cluster as first member
      
      521823 [DEBUG] GMS: A: installing view [A|0] (1) [A]
      
      521823 [DEBUG] GMS: A: created cluster (first member). My view is [A|0], impl is org.jgroups.protocols.pbcast.CoordGmsImpl
      
      
      -------------------------------------------------------------------
      GMS: address=B, cluster=SaslTest
      -------------------------------------------------------------------
      521825 [TRACE] GMS: B: discovery took 0 ms, members: 1 rsps (1 coords) [done]
      
      521826 [DEBUG] GMS: B: sending JOIN(B) to A
      
      521826 [TRACE] SASL: B: received CHALLENGE from A
      
      521827 [WARN] SASL: B: failed to validate CHALLENGE from A, token
      javax.security.sasl.SaslException: DIGEST-MD5: Error acquiring realm, authentication ID or password
      	at com.ibm.security.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:380) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	at com.ibm.security.sasl.digest.DigestMD5Client.evaluateChallenge(DigestMD5Client.java:236) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	at org.jgroups.auth.sasl.SaslClientContext.evaluateChallenge(SaslClientContext.java:119) ~[classes/:?]
      	at org.jgroups.auth.sasl.SaslClientContext.addHeader(SaslClientContext.java:92) ~[classes/:?]
      	at org.jgroups.auth.sasl.SaslClientContext.nextMessage(SaslClientContext.java:72) ~[classes/:?]
      	at org.jgroups.protocols.SASL.up(SASL.java:239) [classes/:?]
      	at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1064) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:779) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:426) [classes/:?]
      	at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:645) [classes/:?]
      	at org.jgroups.protocols.Discovery.up(Discovery.java:296) [classes/:?]
      	at org.jgroups.protocols.TP.passMessageUp(TP.java:1567) [classes/:?]
      	at org.jgroups.protocols.TP$SingleMessageHandler.run(TP.java:1783) [classes/:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153) [?:1.8.0-internal]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:1.8.0-internal]
      	at java.lang.Thread.run(Thread.java:785) [?:1.8.0-internal]
      Caused by: java.io.IOException: Invalid realm A
      	at org.jgroups.auth.sasl.SimpleAuthorizingCallbackHandler.handle(SimpleAuthorizingCallbackHandler.java:119) ~[classes/:?]
      	at com.ibm.security.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:353) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	... 16 more
      
      524826 [WARN] GMS: B: JOIN(B) sent to A timed out (after 3000 ms), on try 1
      
      524827 [TRACE] GMS: B: discovery took 1 ms, members: 1 rsps (1 coords) [done]
      
      524827 [DEBUG] GMS: B: sending JOIN(B) to A
      
      524828 [TRACE] SASL: B: received CHALLENGE from A
      
      524828 [WARN] SASL: B: failed to validate CHALLENGE from A, token
      javax.security.sasl.SaslException: DIGEST-MD5: Error acquiring realm, authentication ID or password
      	at com.ibm.security.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:380) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	at com.ibm.security.sasl.digest.DigestMD5Client.evaluateChallenge(DigestMD5Client.java:236) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	at org.jgroups.auth.sasl.SaslClientContext.evaluateChallenge(SaslClientContext.java:119) ~[classes/:?]
      	at org.jgroups.auth.sasl.SaslClientContext.addHeader(SaslClientContext.java:92) ~[classes/:?]
      	at org.jgroups.auth.sasl.SaslClientContext.nextMessage(SaslClientContext.java:72) ~[classes/:?]
      	at org.jgroups.protocols.SASL.up(SASL.java:239) [classes/:?]
      	at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1064) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:779) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:426) [classes/:?]
      	at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:645) [classes/:?]
      	at org.jgroups.protocols.Discovery.up(Discovery.java:296) [classes/:?]
      	at org.jgroups.protocols.TP.passMessageUp(TP.java:1567) [classes/:?]
      	at org.jgroups.protocols.TP$SingleMessageHandler.run(TP.java:1783) [classes/:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153) [?:1.8.0-internal]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:1.8.0-internal]
      	at java.lang.Thread.run(Thread.java:785) [?:1.8.0-internal]
      Caused by: java.io.IOException: Invalid realm A
      	at org.jgroups.auth.sasl.SimpleAuthorizingCallbackHandler.handle(SimpleAuthorizingCallbackHandler.java:119) ~[classes/:?]
      	at com.ibm.security.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:353) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	... 16 more
      
      526826 [WARN] SASL: failed to validate SaslHeader from B, header: payload=[B@ad737f58
      
      
      
      ------------- testSASLDigestMD5Failure -----------
      
      -------------------------------------------------------------------
      GMS: address=A, cluster=SaslTest
      -------------------------------------------------------------------
      529863 [TRACE] GMS: A: no members discovered after 3000 ms: creating cluster as first member
      
      529864 [DEBUG] GMS: A: installing view [A|0] (1) [A]
      
      529864 [DEBUG] GMS: A: created cluster (first member). My view is [A|0], impl is org.jgroups.protocols.pbcast.CoordGmsImpl
      
      
      -------------------------------------------------------------------
      GMS: address=B, cluster=SaslTest
      -------------------------------------------------------------------
      529866 [TRACE] GMS: B: discovery took 1 ms, members: 1 rsps (1 coords) [done]
      
      529866 [DEBUG] GMS: B: sending JOIN(B) to A
      
      529867 [TRACE] SASL: B: received CHALLENGE from A
      
      529867 [WARN] SASL: B: failed to validate CHALLENGE from A, token
      javax.security.sasl.SaslException: DIGEST-MD5: Error acquiring realm, authentication ID or password
      	at com.ibm.security.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:380) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	at com.ibm.security.sasl.digest.DigestMD5Client.evaluateChallenge(DigestMD5Client.java:236) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	at org.jgroups.auth.sasl.SaslClientContext.evaluateChallenge(SaslClientContext.java:119) ~[classes/:?]
      	at org.jgroups.auth.sasl.SaslClientContext.addHeader(SaslClientContext.java:92) ~[classes/:?]
      	at org.jgroups.auth.sasl.SaslClientContext.nextMessage(SaslClientContext.java:72) ~[classes/:?]
      	at org.jgroups.protocols.SASL.up(SASL.java:239) [classes/:?]
      	at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1064) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:779) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:426) [classes/:?]
      	at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:645) [classes/:?]
      	at org.jgroups.protocols.Discovery.up(Discovery.java:296) [classes/:?]
      	at org.jgroups.protocols.TP.passMessageUp(TP.java:1567) [classes/:?]
      	at org.jgroups.protocols.TP$SingleMessageHandler.run(TP.java:1783) [classes/:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153) [?:1.8.0-internal]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:1.8.0-internal]
      	at java.lang.Thread.run(Thread.java:785) [?:1.8.0-internal]
      Caused by: java.io.IOException: Invalid realm A
      	at org.jgroups.auth.sasl.SimpleAuthorizingCallbackHandler.handle(SimpleAuthorizingCallbackHandler.java:119) ~[classes/:?]
      	at com.ibm.security.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:353) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	... 16 more
      
      532867 [WARN] GMS: B: JOIN(B) sent to A timed out (after 3000 ms), on try 1
      
      532867 [TRACE] GMS: B: discovery took 0 ms, members: 1 rsps (1 coords) [done]
      
      532867 [DEBUG] GMS: B: sending JOIN(B) to A
      
      532868 [TRACE] SASL: B: received CHALLENGE from A
      
      532869 [WARN] SASL: B: failed to validate CHALLENGE from A, token
      javax.security.sasl.SaslException: DIGEST-MD5: Error acquiring realm, authentication ID or password
      	at com.ibm.security.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:380) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	at com.ibm.security.sasl.digest.DigestMD5Client.evaluateChallenge(DigestMD5Client.java:236) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	at org.jgroups.auth.sasl.SaslClientContext.evaluateChallenge(SaslClientContext.java:119) ~[classes/:?]
      	at org.jgroups.auth.sasl.SaslClientContext.addHeader(SaslClientContext.java:92) ~[classes/:?]
      	at org.jgroups.auth.sasl.SaslClientContext.nextMessage(SaslClientContext.java:72) ~[classes/:?]
      	at org.jgroups.protocols.SASL.up(SASL.java:239) [classes/:?]
      	at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1064) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:779) [classes/:?]
      	at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:426) [classes/:?]
      	at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:645) [classes/:?]
      	at org.jgroups.protocols.Discovery.up(Discovery.java:296) [classes/:?]
      	at org.jgroups.protocols.TP.passMessageUp(TP.java:1567) [classes/:?]
      	at org.jgroups.protocols.TP$SingleMessageHandler.run(TP.java:1783) [classes/:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153) [?:1.8.0-internal]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:1.8.0-internal]
      	at java.lang.Thread.run(Thread.java:785) [?:1.8.0-internal]
      Caused by: java.io.IOException: Invalid realm A
      	at org.jgroups.auth.sasl.SimpleAuthorizingCallbackHandler.handle(SimpleAuthorizingCallbackHandler.java:119) ~[classes/:?]
      	at com.ibm.security.sasl.digest.DigestMD5Client.processChallenge(DigestMD5Client.java:353) ~[ibmsaslprovider.jar:8.0 build_20150506]
      	... 16 more
      
      534867 [WARN] SASL: failed to validate SaslHeader from B, header: payload=[B@6f6c2511
      
      

              ttarrant@redhat.com Tristan Tarrant
              istraka@redhat.com Ivan Straka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: