How to use SSL/TLS encryption and database authorization/authentication to call EJB in WildFly 8 CR1?
damian.petrecki Feb 3, 2014 6:35 AMHello,
I'm trying to rewrite my old, JavaSE application using WildFly Server.
I used to using my own, created from scratch server and standalone client with TCP connection secured by SSL/RSA bi-directional verification and encryption and then check user credentials and principals in database.
Now, I want to do that using WildFly and I'm fighting really long time to achieve this.
So.. I started with creating the keys:
keytool -genkeypair -alias myserverkey -keyalg RSA -keysize 2048 -validity 73000 -keystore server.keystore -storepass password@123 -keypass password@123 keytool -export -alias myserverkey -keystore server.keystore -file server.crt keytool -import -file server.crt -alias myserverkey -keystore client.truststore
Then, I've configured standalone.xml:
<!-- typical ManagementRealm configuration --> <security-realm name="ApplicationRealm"> <server-identities> <ssl> <keystore aliast="myserverkey" path="server.keystore" relative-to="jboss.server.config.dir" keystore-password="password@123"/> </ssl> </server-identities> <authentication> <jaas name="other"/ </authentication> </security-realm> <!-- valid datasource configuration --> <subsystem xmlns="urn:jboss:domain:security:1.2"> <security-domain name="other" cache-type="default"> <authentication> <login-module code="Database" flag="required"> <module-option name="dsJndiName" value="java:jboss/datasources/myDB"/> <module-option name="principalsQuery" value="SELECT pass FROM user WHERE login=?"/> <module-option name="rolesQuery" value="SELECT r.role, 'Roles' FROM role r INNER JOIN user u ON u.id = r.id_user WHERE u.login=?"/> <module-option name="password-stacking" value="useFirstPass"/> <module-option name="hashAlgorithm" value="SHA-256"/> <module-option name="hashEncoding" value="base64"/> </login-module> </authentication> </security-domain> <!-- standard jboss-web-policy and jboss-ejb-policy --> <!-- open listening on proper interface -->
Of course, I have database with tables:
user (id int, login varchar(45), pass varchar(64))
role (id int, id_user int, role varchar(45))
I have standard HelloBean with HelloRemote interface and I was able to run everything without security (with standard standalone.xml)
My client code is:
Logger.getRootLogger().setLevel(Level.ALL);
Logger.getRootLogger().addAppender(new ConsoleAppender(new SimpleLayout()));
System.setProperty("javax.net.ssl.trustStore", "resources/client.truststore") ;
System.setProperty("javax.net.ssl.trustStorePassword", "password@123") ;
final Properties clientConfigProps = new Properties();
clientConfigProps.put("endpoint.name", "my-client");
clientConfigProps.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "true");
clientConfigProps.put("remote.connections", "default");
clientConfigProps.put("remote.connection.default.host", "192.168.115.10");
clientConfigProps.put("remote.connection.default.port", "8080");
clientConfigProps.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "true");
clientConfigProps.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
clientConfigProps.put("remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS", "JBOSS-LOCAL-USER");
clientConfigProps.put("remote.connection.default.connect.options.org.xnio.Options.SSL_STARTTLS", "true");
clientConfigProps.put("remote.connection.default.username", "admin");
clientConfigProps.put("remote.connection.default.password", "password");
final EJBClientConfiguration ejbClientConfiguration = new PropertiesBasedEJBClientConfiguration(clientConfigProps);
final ContextSelector<EJBClientContext> ejbClientContextSelector = new ConfigBasedEJBClientContextSelector(ejbClientConfiguration);
EJBClientContext.setSelector(ejbClientContextSelector);
final Properties jndiProperties = new Properties();
jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
Context ctx = new InitialContext(jndiProperties);
HelloRemote bean = (HelloRemote) ctx.lookup("ejb:AppName/module-0.0.1-SNAPSHOT/HelloBean/path.to.HelloRemote");
System.out.println(bean.seyHello()); //crash
I've added user, password (created with http://www.xorbin.com/tools/sha256-hash-calculator) and some roles to database.
And that doesn't work...
So, I want to:
1. Verify server on client using RSA
2. Encrypt connection using RSA
3. Authenticate user and authorize him using database.
4. It would be nice to verify client application (non user, but just client app) on server using another pair of RSA keys.
Now, I have an exception in last line of my client:
DEBUG - Logging Provider: org.jboss.logging.Log4jLoggerProvider
DEBUG - endpoint.create.options. has the following options {}
TRACE - Options {} have been merged with defaults {org.xnio.Options.THREAD_DAEMON=>true} to form {org.xnio.Options.THREAD_DAEMON=>true}
DEBUG - remote.connectionprovider.create.options. has the following options {org.xnio.Options.SSL_ENABLED=>true}
TRACE - Options {org.xnio.Options.SSL_ENABLED=>true} have been merged with defaults {} to form {org.xnio.Options.SSL_ENABLED=>true}
DEBUG - remote.connection.default.connect.options. has the following options {org.xnio.Options.SASL_POLICY_NOANONYMOUS=>true,org.xnio.Options.SASL_POLICY_NOPLAINTEXT=>false,org.xnio.Options.SSL_STARTTLS=>true,org.xnio.Options.SASL_DISALLOWED_MECHANISMS=>[JBOSS-LOCAL-USER]}
TRACE - Options {org.xnio.Options.SASL_POLICY_NOANONYMOUS=>true,org.xnio.Options.SASL_POLICY_NOPLAINTEXT=>false,org.xnio.Options.SSL_STARTTLS=>true,org.xnio.Options.SASL_DISALLOWED_MECHANISMS=>[JBOSS-LOCAL-USER]} have been merged with defaults {} to form {org.xnio.Options.SASL_POLICY_NOANONYMOUS=>true,org.xnio.Options.SASL_POLICY_NOPLAINTEXT=>false,org.xnio.Options.SSL_STARTTLS=>true,org.xnio.Options.SASL_DISALLOWED_MECHANISMS=>[JBOSS-LOCAL-USER]}
DEBUG - remote.connection.default.channel.options. has the following options {}
DEBUG - Connection org.jboss.ejb.client.PropertiesBasedEJBClientConfiguration$RemotingConnectionConfigurationImpl@10dd151f successfully created for connection named default
DEBUG - No clusters configured in properties
DEBUG - Looking for jboss-ejb-client.properties using classloader sun.misc.Launcher$AppClassLoader@77a6686
DEBUG - Found jboss-ejb-client.properties using classloader sun.misc.Launcher$AppClassLoader@77a6686
DEBUG - endpoint.create.options. has the following options {}
TRACE - Options {} have been merged with defaults {org.xnio.Options.THREAD_DAEMON=>true} to form {org.xnio.Options.THREAD_DAEMON=>true}
DEBUG - remote.connectionprovider.create.options. has the following options {}
TRACE - Options {} have been merged with defaults {} to form {}
DEBUG - No remoting connections configured in properties
DEBUG - No clusters configured in properties
I'm trying to use my bean here!
INFO - JBoss EJB Client version 2.0.0.Beta5
INFO - XNIO version 3.2.0.Beta4
INFO - XNIO NIO Implementation Version 3.2.0.Beta4
TRACE - Starting up with selector provider class sun.nio.ch.EPollSelectorProvider
TRACE - Closing resource sun.nio.ch.PollSelectorImpl@5e536b73
TRACE - Using Default system selector creator for provider class sun.nio.ch.EPollSelectorProvider for main selectors and Selector creator class sun.nio.ch.PollSelectorImpl for provider class sun.nio.ch.EPollSelectorProvider for temp selectors
TRACE - CAS org.xnio.nio.NioXnioWorker@7fdd37fe 00000001 -> 00000002
TRACE - Starting worker thread Thread[Remoting "my-client" I/O-1,5,main]
DEBUG - Started channel thread 'Remoting "my-client" I/O-1', selector sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
INFO - JBoss Remoting version (unknown)
TRACE - Completed open of endpoint "my-client" <51a84ed6>
TRACE - Allocated tick to 1 of endpoint "my-client" <51a84ed6> (opened Connection provider for remote)
TRACE - Adding connection provider registration named 'remote': Remoting remote connection provider 32b4376e for endpoint "my-client" <51a84ed6>
TRACE - Allocated tick to 2 of endpoint "my-client" <51a84ed6> (opened Connection provider for http-remoting)
TRACE - Adding connection provider registration named 'http-remoting': Remoting remote connection provider 2a7704dd for endpoint "my-client" <51a84ed6>
TRACE - Allocated tick to 3 of endpoint "my-client" <51a84ed6> (opened Connection provider for https-remoting)
TRACE - Adding connection provider registration named 'https-remoting': Remoting remote connection provider 54031f94 for endpoint "my-client" <51a84ed6>
TRACE - Allocated tick to 4 of endpoint "my-client" <51a84ed6> (opened Connection to /192.168.115.10:8080)
TRACE - Attempting to connect to "/192.168.115.10:8080" with options {org.xnio.Options.SASL_POLICY_NOANONYMOUS=>true,org.xnio.Options.SASL_POLICY_NOPLAINTEXT=>false,org.xnio.Options.SSL_STARTTLS=>true,org.xnio.Options.SASL_DISALLOWED_MECHANISMS=>[JBOSS-LOCAL-USER]}
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Running task org.xnio.nio.WorkerThread$SynchTask@5ec4c412
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@55336cdf for java.nio.channels.SocketChannel[connection-pending local=/0:0:0:0:0:0:0:0:36725 remote=/192.168.115.10:8080]
TRACE - Invoking listener org.xnio.http.HttpUpgrade$HttpUpgradeState$ConnectionOpenListener@662077b6 on channel org.xnio.nio.NioSocketStreamConnection@5d93821b
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@55336cdf for java.nio.channels.SocketChannel[connected local=/192.168.115.1:36725 remote=/192.168.115.10:8080]
TRACE - Invoking listener org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener@256a4d0a on channel org.xnio.conduits.ConduitStreamSourceChannel@65e7deb6
TRACE - Invoking listener org.jboss.remoting3.remote.HttpUpgradeConnectionProvider$2@6f4d33 on channel org.xnio.nio.NioSocketStreamConnection@5d93821b
TRACE - Invoking listener org.jboss.remoting3.remote.RemoteConnectionProvider$3@665c5a83 on channel org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Created new framed message channel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5, receive buffer Pooled wrapper around java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196], transmit buffer Pooled wrapper around java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
TRACE - Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting@4ccd37f3
TRACE - Running task org.xnio.nio.NioHandle$1@1da2f8ca
TRACE - Invoking listener Delegating channel listener -> Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.conduits.ConduitStreamSourceChannel@65e7deb6
TRACE - Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting@4ccd37f3 on channel org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Copying message from java.nio.HeapByteBuffer[pos=4 lim=21 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
TRACE - Received java.nio.HeapByteBuffer[pos=17 lim=8192 cap=8192]
TRACE - Client received greeting
TRACE - Client received server name: 192.168.115.10
TRACE - Client sending capabilities request
TRACE - Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@5c186f07
TRACE - Accepting java.nio.HeapByteBuffer[pos=0 lim=44 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
TRACE - Accepted a message into java.nio.HeapByteBuffer[pos=48 lim=8196 cap=8196]
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Sent message java.nio.HeapByteBuffer[pos=44 lim=44 cap=8192] (direct)
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Flushed channel (direct)
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9 (with timeout)
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@55336cdf for java.nio.channels.SocketChannel[connected local=/192.168.115.1:36725 remote=/192.168.115.10:8080]
TRACE - Invoking listener Delegating channel listener -> Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.conduits.ConduitStreamSourceChannel@65e7deb6
TRACE - Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@5c186f07 on channel org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Copying message from java.nio.HeapByteBuffer[pos=4 lim=51 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
TRACE - Client received capabilities response
TRACE - Client received capability: version 1
TRACE - Client received capability: remote endpoint name "appserver"
TRACE - Client received capability: SASL mechanism PLAIN
TRACE - SASL mechanism PLAIN added to allowed set
TRACE - Client received capability: message close protocol supported
TRACE - Client received capability: remote version is "(unknown)"
TRACE - Client received capability: remote channels in is "40"
TRACE - Client received capability: remote channels out is "40"
TRACE - Client initiating authentication using mechanism PLAIN
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9 (with timeout)
TRACE - Accepting java.nio.HeapByteBuffer[pos=0 lim=22 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
TRACE - Accepted a message into java.nio.HeapByteBuffer[pos=26 lim=8196 cap=8196]
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Sent message java.nio.HeapByteBuffer[pos=22 lim=22 cap=8192] (direct)
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Flushed channel (direct)
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9 (with timeout)
TRACE - Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication@7abb96c5
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@55336cdf for java.nio.channels.SocketChannel[connected local=/192.168.115.1:36725 remote=/192.168.115.10:8080]
TRACE - Invoking listener Delegating channel listener -> Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.conduits.ConduitStreamSourceChannel@65e7deb6
TRACE - Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication@7abb96c5 on channel org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Copying message from java.nio.HeapByteBuffer[pos=4 lim=5 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
DEBUG - Client received authentication rejected for mechanism PLAIN
TRACE - Client sending capabilities request
TRACE - Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@31a79e76
TRACE - Accepting java.nio.HeapByteBuffer[pos=0 lim=44 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
TRACE - Accepted a message into java.nio.HeapByteBuffer[pos=48 lim=8196 cap=8196]
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Sent message java.nio.HeapByteBuffer[pos=44 lim=44 cap=8192] (direct)
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Flushed channel (direct)
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9 (with timeout)
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@55336cdf for java.nio.channels.SocketChannel[connected local=/192.168.115.1:36725 remote=/192.168.115.10:8080]
TRACE - Invoking listener Delegating channel listener -> Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.conduits.ConduitStreamSourceChannel@65e7deb6
TRACE - Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@31a79e76 on channel org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Copying message from java.nio.HeapByteBuffer[pos=4 lim=51 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
TRACE - Client received capabilities response
TRACE - Client received capability: version 1
TRACE - Client received capability: remote endpoint name "appserver"
TRACE - Client received capability: SASL mechanism PLAIN
TRACE - Client received capability: message close protocol supported
TRACE - Client received capability: remote version is "(unknown)"
TRACE - Client received capability: remote channels in is "40"
TRACE - Client received capability: remote channels out is "40"
TRACE - Connection error detail
javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:367)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:229)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:196)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:110)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)
ERROR - JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
TRACE - Closing resource org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Cancelling key sun.nio.ch.SelectionKeyImpl@55336cdf of java.nio.channels.SocketChannel[connected local=/192.168.115.1:36725 remote=/192.168.115.10:8080] (same thread)
TRACE - Invoking listener Delegating channel listener -> Close listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.nio.NioSocketStreamConnection@5d93821b
TRACE - Invoking listener Close listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5 on channel org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Closing resource org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Closing resource org.xnio.channels.AssembledConnectedStreamChannel@393a82f5
TRACE - Registered exception result
javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:367)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:229)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:196)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:110)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)
TRACE - Resource closed count 00000003 of endpoint "my-client" <51a84ed6> (closed a failed connection (2))
WARN - Could not register a EJB receiver for connection to 192.168.115.10:8080
java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:92)
at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:77)
at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:155)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:115)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:47)
at org.jboss.ejb.client.EJBClientContext.getCurrent(EJBClientContext.java:271)
at org.jboss.ejb.client.EJBClientContext.requireCurrent(EJBClientContext.java:281)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:176)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)
at com.sun.proxy.$Proxy0.getCpuName(Unknown Source)
at path.to.app.my.client.connector.test.EJBClientTest.contextTest(EJBClientTest.java:48)
at path.to.app.my.client.connector.test.EJBClientTest.main(EJBClientTest.java:31)
Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:367)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:229)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:196)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:110)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)
at ...asynchronous invocation...(Unknown Source)
at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:388)
at org.jboss.ejb.client.remoting.EndpointPool$PooledEndpoint.connect(EndpointPool.java:187)
at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:153)
at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:133)
at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:75)
... 11 more
DEBUG - Registered a reconnect handler in EJB client context org.jboss.ejb.client.EJBClientContext@5a2712df for remote://192.168.115.10:8080
DEBUG - Registered 0 remoting EJB receivers for EJB client context org.jboss.ejb.client.EJBClientContext@5a2712df
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Allocated tick to 4 of endpoint "my-client" <51a84ed6> (opened Connection to /192.168.115.10:8080)
TRACE - Attempting to connect to "/192.168.115.10:8080" with options {org.xnio.Options.SASL_POLICY_NOANONYMOUS=>true,org.xnio.Options.SASL_POLICY_NOPLAINTEXT=>false,org.xnio.Options.SSL_STARTTLS=>true,org.xnio.Options.SASL_DISALLOWED_MECHANISMS=>[JBOSS-LOCAL-USER]}
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Running task org.xnio.nio.WorkerThread$SynchTask@3f987899
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@8e89bed for java.nio.channels.SocketChannel[connection-pending local=/0:0:0:0:0:0:0:0:56501 remote=/192.168.115.10:8080]
TRACE - Invoking listener org.xnio.http.HttpUpgrade$HttpUpgradeState$ConnectionOpenListener@235343c2 on channel org.xnio.nio.NioSocketStreamConnection@2f8587ac
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@8e89bed for java.nio.channels.SocketChannel[connected local=/192.168.115.1:56501 remote=/192.168.115.10:8080]
TRACE - Invoking listener org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener@678e4593 on channel org.xnio.conduits.ConduitStreamSourceChannel@2d79eb02
TRACE - Invoking listener org.jboss.remoting3.remote.HttpUpgradeConnectionProvider$2@8ac0b08 on channel org.xnio.nio.NioSocketStreamConnection@2f8587ac
TRACE - Invoking listener org.jboss.remoting3.remote.RemoteConnectionProvider$3@5e4a3789 on channel org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Created new framed message channel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb, receive buffer Pooled wrapper around java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196], transmit buffer Pooled wrapper around java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
TRACE - Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting@24671637
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@8e89bed for java.nio.channels.SocketChannel[connected local=/192.168.115.1:56501 remote=/192.168.115.10:8080]
TRACE - Invoking listener Delegating channel listener -> Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.conduits.ConduitStreamSourceChannel@2d79eb02
TRACE - Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting@24671637 on channel org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Copying message from java.nio.HeapByteBuffer[pos=4 lim=21 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
TRACE - Received java.nio.HeapByteBuffer[pos=17 lim=8192 cap=8192]
TRACE - Client received greeting
TRACE - Client received server name: 192.168.115.10
TRACE - Client sending capabilities request
TRACE - Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@6be3878c
TRACE - Accepting java.nio.HeapByteBuffer[pos=0 lim=44 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
TRACE - Accepted a message into java.nio.HeapByteBuffer[pos=48 lim=8196 cap=8196]
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Sent message java.nio.HeapByteBuffer[pos=44 lim=44 cap=8192] (direct)
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Flushed channel (direct)
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9 (with timeout)
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@8e89bed for java.nio.channels.SocketChannel[connected local=/192.168.115.1:56501 remote=/192.168.115.10:8080]
TRACE - Invoking listener Delegating channel listener -> Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.conduits.ConduitStreamSourceChannel@2d79eb02
TRACE - Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@6be3878c on channel org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Copying message from java.nio.HeapByteBuffer[pos=4 lim=51 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
TRACE - Client received capabilities response
TRACE - Client received capability: version 1
TRACE - Client received capability: remote endpoint name "appserver"
TRACE - Client received capability: SASL mechanism PLAIN
TRACE - SASL mechanism PLAIN added to allowed set
TRACE - Client received capability: message close protocol supported
TRACE - Client received capability: remote version is "(unknown)"
TRACE - Client received capability: remote channels in is "40"
TRACE - Client received capability: remote channels out is "40"
TRACE - Client initiating authentication using mechanism PLAIN
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9 (with timeout)
TRACE - Accepting java.nio.HeapByteBuffer[pos=0 lim=22 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
TRACE - Accepted a message into java.nio.HeapByteBuffer[pos=26 lim=8196 cap=8196]
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Sent message java.nio.HeapByteBuffer[pos=22 lim=22 cap=8192] (direct)
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Flushed channel (direct)
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9 (with timeout)
TRACE - Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication@b04cb4
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@8e89bed for java.nio.channels.SocketChannel[connected local=/192.168.115.1:56501 remote=/192.168.115.10:8080]
TRACE - Invoking listener Delegating channel listener -> Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.conduits.ConduitStreamSourceChannel@2d79eb02
TRACE - Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication@b04cb4 on channel org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Copying message from java.nio.HeapByteBuffer[pos=4 lim=5 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
DEBUG - Client received authentication rejected for mechanism PLAIN
TRACE - Client sending capabilities request
TRACE - Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@367bbdc6
TRACE - Accepting java.nio.HeapByteBuffer[pos=0 lim=44 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
TRACE - Accepted a message into java.nio.HeapByteBuffer[pos=48 lim=8196 cap=8196]
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Sent message java.nio.HeapByteBuffer[pos=44 lim=44 cap=8192] (direct)
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Flushed channel (direct)
TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9 (with timeout)
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Selected key sun.nio.ch.SelectionKeyImpl@8e89bed for java.nio.channels.SocketChannel[connected local=/192.168.115.1:56501 remote=/192.168.115.10:8080]
TRACE - Invoking listener Delegating channel listener -> Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.conduits.ConduitStreamSourceChannel@2d79eb02
TRACE - Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@367bbdc6 on channel org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Copying message from java.nio.HeapByteBuffer[pos=4 lim=51 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
TRACE - Client received capabilities response
TRACE - Client received capability: version 1
TRACE - Client received capability: remote endpoint name "appserver"
TRACE - Client received capability: SASL mechanism PLAIN
TRACE - Client received capability: message close protocol supported
TRACE - Client received capability: remote version is "(unknown)"
TRACE - Client received capability: remote channels in is "40"
TRACE - Client received capability: remote channels out is "40"
TRACE - Connection error detail
javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:367)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:229)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:196)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:110)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)
ERROR - JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
TRACE - Closing resource org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Fully flushed org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Cancelling key sun.nio.ch.SelectionKeyImpl@8e89bed of java.nio.channels.SocketChannel[connected local=/192.168.115.1:56501 remote=/192.168.115.10:8080] (same thread)
TRACE - Invoking listener Delegating channel listener -> Close listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.nio.NioSocketStreamConnection@2f8587ac
TRACE - Invoking listener Close listener for org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb on channel org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Closing resource org.xnio.channels.FramedMessageChannel around org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Closing resource org.xnio.channels.AssembledConnectedStreamChannel@5a8433bb
TRACE - Registered exception result
javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:367)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:229)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:196)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:110)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)
TRACE - Resource closed count 00000003 of endpoint "my-client" <51a84ed6> (closed a failed connection (2))
DEBUG - Re-connect attempt# 1 failed for 192.168.115.10:8080
java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:92)
at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:77)
at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51)
at org.jboss.ejb.client.remoting.MaxAttemptsReconnectHandler.tryConnect(MaxAttemptsReconnectHandler.java:65)
at org.jboss.ejb.client.remoting.EJBClientContextConnectionReconnectHandler.reconnect(EJBClientContextConnectionReconnectHandler.java:56)
at org.jboss.ejb.client.EJBClientContext$ReconnectAttempt.run(EJBClientContext.java:1304)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:367)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:229)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:196)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:110)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)
at ...asynchronous invocation...(Unknown Source)
at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:388)
at org.jboss.ejb.client.remoting.EndpointPool$PooledEndpoint.connect(EndpointPool.java:187)
at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:153)
at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:133)
at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:75)
... 9 more
Exception in thread "main" TRACE - Beginning select on sun.nio.ch.EPollSelectorImpl@c7b7af9
java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:my, moduleName:maintenance-0.0.1-SNAPSHOT, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@5f2d8ca1
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:749)
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116)
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)
at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)
at com.sun.proxy.$Proxy0.getCpuName(Unknown Source)
at path.to.app.my.client.connector.test.EJBClientTest.contextTest(EJBClientTest.java:48)
at path.to.app.my.client.connector.test.EJBClientTest.main(EJBClientTest.java:31)
TRACE - Closing endpoint "my-client" <51a84ed6> synchronously
TRACE - Closing Remoting remote connection provider 54031f94 for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Completed close of Remoting remote connection provider 54031f94 for endpoint "my-client" <51a84ed6>
TRACE - Closing Registration of 'https-remoting': Remoting remote connection provider 54031f94 for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Closing Remoting remote connection provider 54031f94 for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Completed close of Registration of 'https-remoting': Remoting remote connection provider 54031f94 for endpoint "my-client" <51a84ed6>
TRACE - Phase 1 shutdown count 00000002 of endpoint "my-client" <51a84ed6> (closed Remoting remote connection provider 54031f94 for endpoint "my-client" <51a84ed6>)
TRACE - Closing Remoting remote connection provider 32b4376e for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Completed close of Remoting remote connection provider 32b4376e for endpoint "my-client" <51a84ed6>
TRACE - Closing Registration of 'remote': Remoting remote connection provider 32b4376e for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Closing Remoting remote connection provider 32b4376e for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Completed close of Registration of 'remote': Remoting remote connection provider 32b4376e for endpoint "my-client" <51a84ed6>
TRACE - Phase 1 shutdown count 00000001 of endpoint "my-client" <51a84ed6> (closed Remoting remote connection provider 32b4376e for endpoint "my-client" <51a84ed6>)
TRACE - Closing Remoting remote connection provider 2a7704dd for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Completed close of Remoting remote connection provider 2a7704dd for endpoint "my-client" <51a84ed6>
TRACE - Closing Registration of 'http-remoting': Remoting remote connection provider 2a7704dd for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Closing Remoting remote connection provider 2a7704dd for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Completed close of Registration of 'http-remoting': Remoting remote connection provider 2a7704dd for endpoint "my-client" <51a84ed6>
TRACE - Finished phase 1 shutdown of endpoint "my-client" <51a84ed6>
TRACE - Initiating shutdown of org.xnio.nio.NioXnioWorker@7fdd37fe
TRACE - Selected on sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - Shutting down channel thread "Thread[Remoting "my-client" I/O-1,5,main]"
TRACE - Closing resource sun.nio.ch.EPollSelectorImpl@c7b7af9
TRACE - CAS org.xnio.nio.NioXnioWorker@7fdd37fe 80000002 -> 80000001
TRACE - Closing resource false
TRACE - CAS org.xnio.nio.NioXnioWorker@7fdd37fe 80000001 -> 80000000
TRACE - CAS org.xnio.nio.NioXnioWorker@7fdd37fe 80000000 -> c0000000 (close complete)
TRACE - Completed close of endpoint "my-client" <51a84ed6>
TRACE - Closing Remoting local connection provider 2f62236f for endpoint "my-client" <51a84ed6> asynchronously
TRACE - Completed close of Remoting local connection provider 2f62236f for endpoint "my-client" <51a84ed6>
I have no idea, what is wrong, so any help will be gratefull.