Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2280

Problems with the project ejb-remote which is in jboss-as-quickstarts-7.0.2.CR3

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major Major
    • EJB 3.1
    • None
    • ejb3
    • Documentation (Ref Guide, User Guide, etc.)

      Hi people,
      i got a error when i was running the RemoteEJBClient.java
      this is the content of my jboss-ejb-client.properties file

      --------------------------------------------------------------
      endpoint.name=client-endpoint
      remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
      remote.connections=default
      remote.connection.default.host=10.20.11.35
      remote.connection.default.port = 4447
      remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
      remote.connection.default.username=admin
      remote.connection.default.password=123
      ------------------------------------------------------------------------------------------
      I got following error ,who can help me? Thanks!

      2012-4-20 9:08:16 org.jboss.ejb.client.EJBClient <clinit>
      INFO: JBoss EJB Client version 1.0.0.Beta9
      Obtained a remote stateless calculator for invocation
      Adding 204 and 340 via the remote stateless calculator deployed on the server
      2012-4-20 9:08:16 org.xnio.Xnio <clinit>
      INFO: XNIO Version 3.0.0.CR5
      2012-4-20 9:08:16 org.xnio.nio.NioXnio <clinit>
      INFO: XNIO NIO Implementation Version 3.0.0.CR5
      2012-4-20 9:08:16 org.jboss.remoting3.EndpointImpl <clinit>
      INFO: JBoss Remoting version 3.2.0.CR6
      2012-4-20 9:08:17 org.jboss.remoting3.remote.RemoteConnection handleException
      ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
      2012-4-20 9:08:17 org.jboss.ejb.client.ConfigBasedEJBClientContextSelector createConnections
      ERROR: Could not create connection for connection named default
      java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
      at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:91)
      at org.jboss.ejb.client.ConfigBasedEJBClientContextSelector.createConnection(ConfigBasedEJBClientContextSelector.java:276)
      at org.jboss.ejb.client.ConfigBasedEJBClientContextSelector.createConnections(ConfigBasedEJBClientContextSelector.java:197)
      at org.jboss.ejb.client.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:126)
      at org.jboss.ejb.client.ConfigBasedEJBClientContextSelector.<init>(ConfigBasedEJBClientContextSelector.java:108)
      at org.jboss.ejb.client.ConfigBasedEJBClientContextSelector.<clinit>(ConfigBasedEJBClientContextSelector.java:98)
      at org.jboss.ejb.client.EJBClientContext.<clinit>(EJBClientContext.java:57)
      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:91)
      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:83)
      at $Proxy0.add(Unknown Source)
      at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.invokeStatelessBean(RemoteEJBClient.java:75)
      at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.main(RemoteEJBClient.java:56)
      Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:356)
      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:205)
      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
      at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:179)
      at org.xnio.channels.TranslatingSuspendableChannel$2.handleEvent(TranslatingSuspendableChannel.java:100)
      at org.xnio.channels.TranslatingSuspendableChannel$2.handleEvent(TranslatingSuspendableChannel.java:98)
      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
      at org.xnio.nio.NioHandle.run(NioHandle.java:90)
      at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)
      at ...asynchronous invocation...(Unknown Source)
      at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:263)
      at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:246)
      at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:353)
      at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:337)
      at org.jboss.ejb.client.ConfigBasedEJBClientContextSelector.createConnection(ConfigBasedEJBClientContextSelector.java:274)
      ... 10 more
      2012-4-20 9:08:17 org.jboss.ejb.client.ConfigBasedEJBClientContextSelector createConnections
      INFO: Connection default will not be available in EJB client context org.jboss.ejb.client.EJBClientContext@1df38fd
      Exception in thread "main" java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:jboss-as-ejb-remote-app,distinctname:] combination
      at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:344)
      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:92)
      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:83)
      at $Proxy0.add(Unknown Source)
      at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.invokeStatelessBean(RemoteEJBClient.java:75)
      at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.main(RemoteEJBClient.java:56)

              Unassigned Unassigned
              wangwenyan737 Jack Wong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified