Remote EJB2 invocation fails on EAP 7.1 with JBREM000308: Authentication failed (no mechanisms left), tried: (none) or JBREM000308: Authentication failed (no mechanisms left), tried: JBOSS-LOCAL-USER

Solution Verified - Updated -

Issue

  • EJB2 application is failing to invoke remote EJB when looking up RemoteHome and trying to invoke a method on the Remote interface.
     [java] javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for "/helloWorld-ejb/Example", view is interface com.jboss.examples.ejb2.ExampleRemote, affinity is URI<remote+http://localhost:8080>
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:592)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:114)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:938)
     [java]     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:177)
     [java]     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
     [java]     at com.sun.proxy.$Proxy4.hello(Unknown Source)
     [java]     at com.jboss.examples.client.Client.testEJB2(Client.java:46)
     [java]     at com.jboss.examples.client.Client.main(Client.java:26)
     [java]     Suppressed: org.jboss.ejb.client.RequestSendFailedException
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:101)
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:74)
     [java]         at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:215)
     [java]         at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)
     [java]         at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:949)
     [java]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     [java]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     [java]         at java.lang.Thread.run(Thread.java:748)
     [java]     Caused by: org.wildfly.security.auth.AuthenticationException: JBREM000308: Authentication failed (no mechanisms left), tried: (none)
     [java]         at org.jboss.remoting3.ConnectionPeerIdentityContext.doAuthenticate(ConnectionPeerIdentityContext.java:368)
     [java]         at org.jboss.remoting3.ConnectionPeerIdentityContext.authenticate(ConnectionPeerIdentityContext.java:174)
     [java]         at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:506)
     [java]         at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:495)
     [java]         at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:208)
     [java]         at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)
     [java]         at org.xnio.IoUtils$2.execute(IoUtils.java:71)
     [java]         at org.xnio.AbstractIoFuture.runNotifier(AbstractIoFuture.java:693)
     [java]         at org.xnio.AbstractIoFuture$CompleteState.withNotifier(AbstractIoFuture.java:132)
     [java]         at org.xnio.AbstractIoFuture.addNotifier(AbstractIoFuture.java:570)
     [java]         at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:495)
     [java]         at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:434)
     [java]         at org.jboss.remoting3.UncloseableEndpoint.getConnectedIdentity(UncloseableEndpoint.java:52)
     [java]         at org.jboss.remoting3.Endpoint.getConnectedIdentity(Endpoint.java:123)
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.lambda$getConnection$2(RemoteEJBReceiver.java:185)
     [java]         at java.security.AccessController.doPrivileged(Native Method)
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.getConnection(RemoteEJBReceiver.java:185)
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.processInvocation(RemoteEJBReceiver.java:128)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:479)
     [java]         at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocation(RemotingEJBClientInterceptor.java:51)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocation(TransactionPostDiscoveryInterceptor.java:79)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocation(DiscoveryEJBClientInterceptor.java:100)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocation(NamingEJBClientInterceptor.java:63)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:165)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.wildfly.common.context.Contextual.runExConsumer(Contextual.java:203)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequestInitial(EJBClientInvocationContext.java:327)
     [java]         at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:173)
     [java]         at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
     [java]         at com.sun.proxy.$Proxy4.hello(Unknown Source)
     [java]         at com.jboss.examples.client.Client.testEJB2(Client.java:46)
     [java]         at com.jboss.examples.client.Client.main(Client.java:26)

Or

     [java] javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for "/helloWorld-ejb/Example", view is interface com.jboss.examples.ejb2.ExampleRemote, affinity is URI<remote+http://10.0.128.172:9090>
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:592)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:114)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
     [java]     at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:938)
     [java]     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:177)
     [java]     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
     [java]     at com.sun.proxy.$Proxy4.hello(Unknown Source)
     [java]     at com.jboss.examples.client.Client.testEJB2(Client.java:48)
     [java]     at com.jboss.examples.client.Client.main(Client.java:28)
     [java]     Suppressed: org.jboss.ejb.client.RequestSendFailedException
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:101)
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:74)
     [java]         at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:215)
     [java]         at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)
     [java]         at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:949)
     [java]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     [java]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     [java]         at java.lang.Thread.run(Thread.java:748)
     [java]     Caused by: org.wildfly.security.auth.AuthenticationException: JBREM000308: Authentication failed (no mechanisms left), tried: 
     [java]    JBOSS-LOCAL-USER: org.wildfly.security.auth.AuthenticationException: JBREM000300: Authentication failed due to I/O error
     [java]         at org.jboss.remoting3.ConnectionPeerIdentityContext.doAuthenticate(ConnectionPeerIdentityContext.java:368)
     [java]         at org.jboss.remoting3.ConnectionPeerIdentityContext.authenticate(ConnectionPeerIdentityContext.java:174)
     [java]         at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:506)
     [java]         at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:495)
     [java]         at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:208)
     [java]         at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)
     [java]         at org.xnio.IoUtils$2.execute(IoUtils.java:71)
     [java]         at org.xnio.AbstractIoFuture.runNotifier(AbstractIoFuture.java:693)
     [java]         at org.xnio.AbstractIoFuture$CompleteState.withNotifier(AbstractIoFuture.java:132)
     [java]         at org.xnio.AbstractIoFuture.addNotifier(AbstractIoFuture.java:570)
     [java]         at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:495)
     [java]         at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:434)
     [java]         at org.jboss.remoting3.UncloseableEndpoint.getConnectedIdentity(UncloseableEndpoint.java:52)
     [java]         at org.jboss.remoting3.Endpoint.getConnectedIdentity(Endpoint.java:123)
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.lambda$getConnection$2(RemoteEJBReceiver.java:185)
     [java]         at java.security.AccessController.doPrivileged(Native Method)
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.getConnection(RemoteEJBReceiver.java:185)
     [java]         at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.processInvocation(RemoteEJBReceiver.java:128)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:479)
     [java]         at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocation(RemotingEJBClientInterceptor.java:51)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocation(TransactionPostDiscoveryInterceptor.java:79)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocation(DiscoveryEJBClientInterceptor.java:100)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocation(NamingEJBClientInterceptor.java:63)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:165)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
     [java]         at org.wildfly.common.context.Contextual.runExConsumer(Contextual.java:203)
     [java]         at org.jboss.ejb.client.EJBClientInvocationContext.sendRequestInitial(EJBClientInvocationContext.java:327)
     [java]         at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:173)
     [java]         at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
     [java]         at com.sun.proxy.$Proxy4.hello(Unknown Source)
     [java]         at com.jboss.examples.client.Client.testEJB2(Client.java:48)
     [java]         at com.jboss.examples.client.Client.main(Client.java:28)

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content