Gary Tully created ARTEMIS-1552:
-----------------------------------

             Summary: SASL GSSAPI IBM JDK - clients get authentication refused 
first time they connect to broker
                 Key: ARTEMIS-1552
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1552
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: AMQP
    Affects Versions: 2.4.0
            Reporter: Gary Tully
            Assignee: Gary Tully
             Fix For: 2.5.0


{code}
[JGSS_DBG_WRAP]  Thread-18 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@d7b0af0d)
 GSSContextImpl.unwrap buffer (len=0, offset=0):
[JGSS_DBG_WRAP]  Thread-18 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@d7b0af0d)
 
[JGSS_DBG_WRAP]  Thread-18 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@d7b0af0d)
 Krb5Context.unwrap: buffer (len=0, offset=0):
[JGSS_DBG_WRAP]  Thread-18 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@d7b0af0d)
 
[JGSS_DBG_UNMARSH]  Thread-18 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@d7b0af0d)
 AES256WrapToken.decode: buffer :
[JGSS_DBG_UNMARSH]  Thread-18 
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$5@d7b0af0d)
 
14:23:14.955 INFO  
[org.apache.activemq.artemis.protocol.amqp.sasl.GSSAPIServerSASL] Error on sasl 
input: java.security.PrivilegedActionException: 
javax.security.sasl.SaslException: Final handshake step failed [Caused by 
org.ietf.jgss.GSSException, major code: 11, minor code: 0
        major string: General failure, unspecified at GSSAPI level
        minor string: Error while decoding token: 
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0]: 
java.security.PrivilegedActionException: javax.security.sasl.SaslException: 
Final handshake step failed [Caused by org.ietf.jgss.GSSException, major code: 
11, minor code: 0
        major string: General failure, unspecified at GSSAPI level
        minor string: Error while decoding token: 
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0]
        at 
java.security.AccessController.doPrivileged(AccessController.java:692) 
[vm.jar:1.8.0]
        at javax.security.auth.Subject.doAs(Subject.java:569) [rt.jar:1.8.0]
        at 
org.apache.activemq.artemis.protocol.amqp.sasl.GSSAPIServerSASL.processSASL(GSSAPIServerSASL.java:77)
 [artemis-amqp-protocol-2.4.0.amq-710001-redhat-1.jar:]
        at 
org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.checkSASL(ProtonHandler.java:315)
 [artemis-amqp-protocol-2.4.0.amq-710001-redhat-1.jar:]
        at 
org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.flush(ProtonHandler.java:274)
 [artemis-amqp-protocol-2.4.0.amq-710001-redhat-1.jar:]
        at 
org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.flush(AMQPConnectionContext.java:178)
 [artemis-amqp-protocol-2.4.0.amq-710001-redhat-1.jar:]
        at 
org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection.flush(ActiveMQProtonRemotingConnection.java:136)
 [artemis-amqp-protocol-2.4.0.amq-710001-redhat-1.jar:]
        at 
org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$FailureCheckAndFlushThread$1.run(RemotingServiceImpl.java:715)
 [artemis-server-2.4.0.amq-710001-redhat-1.jar:2.4.0.amq-710001-redhat-1]
        at 
org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42)
 [artemis-commons-2.4.0.amq-710001-redhat-1.jar:2.4.0.amq-710001-redhat-1]
        at 
org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31)
 [artemis-commons-2.4.0.amq-710001-redhat-1.jar:2.4.0.amq-710001-redhat-1]
        at 
org.apache.activemq.artemis.utils.actors.ProcessorBase$ExecutorTask.run(ProcessorBase.java:53)
 [artemis-commons-2.4.0.amq-710001-redhat-1.jar:2.4.0.amq-710001-redhat-1]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160) 
[rt.jar:1.8.0]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 
[rt.jar:1.8.0]
        at java.lang.Thread.run(Thread.java:785) [vm.jar:2.6 (07-22-2017)]{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to