1 Reply Latest reply on Sep 17, 2015 9:55 PM by the_alchemist

    Remoting cli-client: RejectedExecutionException?

    lafr

      I'm using WF 9, build from current sources, on Solaris SPARC 10 using latest Oracle JDK 1.7.0.

       

      When running this cli file:

      if (outcome != success) of /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:read-resourc/socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-smtp:add(host="smtp.1und1.de",port="25")

      end-if

      if (outcome != success) of /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-imap:read-resourc/socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=mail-imap:add(host="imap.1und1.de",port="143")

      end-if

      if (outcome != success) of /subsystem=mail/mail-session="java:/Mail":read-resource

              /subsystem=mail/mail-session="java:/Mail":add(jndi-name=java:/Mail,from="...",debug=false)

              /subsystem=mail/mail-session="java:/Mail"/server=smtp:add(outbound-socket-binding-ref=mail-smtp,ssl=false,username="...",password="...")

              /subsystem=mail/mail-session="java:/Mail"/server=imap:add(outbound-socket-binding-ref=mail-imap,ssl=false,username="...",password="...")

      end-if

       

      using jboss-cli.sh I got this on the client side:

      Exception in thread "Remoting "cli-client" task-11" java.util.concurrent.RejectedExecutionException: Task org.jboss.remoting3.remote.RemoteConnectionChannel$3@12efcaa rejected from org.xnio.XnioWorker$TaskPool@1ce33df[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 12]

              at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)

              at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)

              at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)

              at org.xnio.XnioWorker.execute(XnioWorker.java:741)

              at org.jboss.remoting3.remote.RemoteConnectionChannel.receiveMessage(RemoteConnectionChannel.java:363)

              at org.jboss.as.protocol.mgmt.ManagementChannelReceiver.handleMessage(ManagementChannelReceiver.java:107)

              at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:451)

              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:745)

       

      In server.log I can see the success message the mail-session was created and a cancel message which seems to be related to the exception above:

      24.01. 10:44:12,616 INFO  [org.jboss.as.mail.extension#transition] WFLYMAIL0001: Bound mail session [java:/Mail]

      24.01. 10:44:12,854 INFO  [org.jboss.as.protocol#cancel] WFLYPRT0057:  cancelled task by interrupting thread Thread[management-handler-thread - 4,5,management-handler-thread]

       

      This error only happens occasionally.

      Any ideas or explanations?