Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11426

EJB call via twice remote-outbound-connection was authentication failed

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: EJB, Remoting
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Please see the attachment as "reproducer.zip".

      • reproducer.zip/Readme.txt
      Show
      Please see the attachment as "reproducer.zip". reproducer.zip/Readme.txt

      Description

      In the following environment, SaslException was thrown during calling EJB_B from EJB_A via Servlet.[1]
      But EJB_A called from standalone client instad of servlet, EJB_B was finished to call successfully.[2]

      Environment :

        EAP1
          - Servlet
          - EJB_A (inside separate ear)
        EAP2
          - EJB_B
      
      [1] Servlet -> EJB_A -> EJB_B
      [2] Standalone client -> EJB_A -> EJB_B
      

      Exception:

       javax.security.sasl.SaslException: Authentication failed: none of the mechanisms presented by the server (DIGEST-MD5) are supported
      

      StackTrace:

      ERROR [stderr] (default task-1) javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for "/server-side-ejb/ServerEJBBean", view is interface com.sample.ServerEJB, affinity is None
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:592)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:114)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:938)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:177)
      ERROR [stderr] (default task-1) 	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
      ERROR [stderr] (default task-1) 	at com.sun.proxy.$Proxy54.test(Unknown Source)
      
      ERROR [stderr] (default task-1) 	Suppressed: javax.security.sasl.SaslException: Authentication failed: none of the mechanisms presented by the server (DIGEST-MD5) are supported
      ERROR [stderr] (default task-1) 		at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:444)
      ERROR [stderr] (default task-1) 		at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
      ERROR [stderr] (default task-1) 		at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      ERROR [stderr] (default task-1) 		at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
      ERROR [stderr] (default task-1) 		at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
      ERROR [stderr] (default task-1) 		at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
      ERROR [stderr] (default task-1) 		at ...asynchronous invocation...(Unknown Source)
      ERROR [stderr] (default task-1) 		at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:571)
      ERROR [stderr] (default task-1) 		at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:537)
      ERROR [stderr] (default task-1) 		at org.jboss.remoting3.ConnectionInfo$None.getConnection(ConnectionInfo.java:82)
      ERROR [stderr] (default task-1) 		at org.jboss.remoting3.ConnectionInfo.getConnection(ConnectionInfo.java:55)
      ERROR [stderr] (default task-1) 		at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:488)
      ERROR [stderr] (default task-1) 		at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:434)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.getConnectedIdentityUsingClusterEffective(RemotingEJBDiscoveryProvider.java:311)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider$DiscoveryAttempt.lambda$connectAndDiscover$0(RemotingEJBDiscoveryProvider.java:384)
      ERROR [stderr] (default task-1) 		at java.security.AccessController.doPrivileged(Native Method)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider$DiscoveryAttempt.connectAndDiscover(RemotingEJBDiscoveryProvider.java:384)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.discover(RemotingEJBDiscoveryProvider.java:151)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.protocol.remote.RemoteEJBDiscoveryConfigurator.lambda$configure$0(RemoteEJBDiscoveryConfigurator.java:42)
      ERROR [stderr] (default task-1) 		at org.wildfly.discovery.impl.AggregateDiscoveryProvider.discover(AggregateDiscoveryProvider.java:58)
      ERROR [stderr] (default task-1) 		at org.wildfly.discovery.Discovery.discover(Discovery.java:100)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.discover(DiscoveryEJBClientInterceptor.java:241)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.doAnyDiscovery(DiscoveryEJBClientInterceptor.java:370)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.executeDiscovery(DiscoveryEJBClientInterceptor.java:304)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocation(DiscoveryEJBClientInterceptor.java:94)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocation(NamingEJBClientInterceptor.java:63)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:165)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
      ERROR [stderr] (default task-1) 		at org.wildfly.common.context.Contextual.runExConsumer(Contextual.java:203)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.EJBClientInvocationContext.sendRequestInitial(EJBClientInvocationContext.java:327)
      ERROR [stderr] (default task-1) 		at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:173)
      ERROR [stderr] (default task-1) 		... 122 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  spyrkob Bartosz Spyrko-Smietanko
                  Reporter:
                  spyrkob Bartosz Spyrko-Smietanko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: