java.util.concurrent.RejectedExecutionException with ManagedExecutorService (JSR-236) Wildfly-8.1.0.Final
dg_ Sep 16, 2014 12:24 PMHello, I have a very simple test case here that fails on Wildfly-8.1.0.Final with an unchanged default configuration (standalone). I'm at a loss how to continue from here so help will be welcomed.
The test case shown here is for a Singleton at startup, however I also tested against a normal EJB Stateless bean - same exception.
Processor: AMD FX(tm)-6100 Six-Core
SimpleBatch.java - Singleton EJB that initiates the threads on startup:
package concurrency.managed;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.enterprise.concurrent.ManagedExecutorService;
@Singleton
@Startup
public class SimpleBatch
{
@Resource
private ManagedExecutorService pool;
@PostConstruct
private void startBatch()
{
List<Future> futures = new ArrayList<Future>();
for (int i=0; i<1000; i++)
{
futures.add(pool.submit(new SimpleTask(i)));
}
int counter = 0;
for (Future f : futures)
{
try
{
f.get();
counter++;
}
catch (InterruptedException | ExecutionException ex)
{
Logger.getLogger(SimpleBatch.class.getName()).log(Level.SEVERE, null, ex);
}
}
String result = "counter: " + counter;
Logger.getLogger(SimpleBatch.class.getName()).log(Level.INFO, result);
}
}
SimpleTask.java
package concurrency.managed;
import java.util.logging.Level;
import java.util.logging.Logger;
public class SimpleTask implements Runnable
{
private final int id;
public SimpleTask(int id)
{
this.id = id;
}
@Override
public void run()
{
Logger.getLogger(SimpleTask.class.getName()).log(Level.INFO, String.valueOf(id));
}
}
Full server log
2014-09-16 16:47:42,552 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
2014-09-16 16:47:42,872 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
2014-09-16 16:47:42,962 INFO [org.jboss.as] (MSC service thread 1-5) JBAS015899: WildFly 8.1.0.Final "Kenny" starting
2014-09-16 16:47:42,962 DEBUG [org.jboss.as.config] (MSC service thread 1-5) Configured system properties:
awt.toolkit = sun.awt.windows.WToolkit
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = C:\wildfly-concurrency\wildfly-8.1.0.Final\jboss-modules.jar
java.class.version = 51.0
java.endorsed.dirs = C:\Program Files\Java\jdk1.7.0_45\jre\lib\endorsed
java.ext.dirs = C:\Program Files\Java\jdk1.7.0_45\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home = C:\Program Files\Java\jdk1.7.0_45\jre
java.io.tmpdir = C:\Users\First\AppData\Local\Temp\
java.library.path = C:\Program Files\Java\jdk1.7.0_45\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\wildfly-8.1.0.Final\bin;C:\Program Files\Java\jdk1.7.0_45\bin;C:\md5;C:\Program Files (x86)\GnuWin32\bin;C:\subversion\bin;C:\Program Files (x86)\apache-ant-1.8.3\bin;C:\Program Files\Apache Software Foundation\apache-maven-3.0.4\bin;C:\Users\First\AppData\Local\Android\android-sdk\tools;C:\Users\First\AppData\Local\Android\android-sdk\platform-tools;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;.
java.net.preferIPv4Stack = true
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.7.0_45-b18
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.7
java.util.logging.manager = org.jboss.logmanager.LogManager
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.7.0_45
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.7
java.vm.vendor = Oracle Corporation
java.vm.version = 24.45-b08
javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
jboss.home.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final
jboss.host.name = metal
jboss.modules.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final\modules
jboss.modules.system.pkgs = org.jboss.byteman
jboss.node.name = metal
jboss.qualified.host.name = metal
jboss.server.base.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone
jboss.server.config.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\configuration
jboss.server.data.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\data
jboss.server.deploy.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\data\content
jboss.server.log.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\log
jboss.server.name = metal
jboss.server.persist.config = true
jboss.server.temp.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\tmp
line.separator =
logging.configuration = file:C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\configuration/logging.properties
module.path = C:\wildfly-concurrency\wildfly-8.1.0.Final\modules
org.jboss.boot.log.file = C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\log\server.log
org.jboss.resolver.warning = true
org.xml.sax.driver = __redirected.__XMLReaderFactory
os.arch = amd64
os.name = Windows 7
os.version = 6.1
path.separator = ;
program.name = standalone.bat
sun.arch.data.model = 64
sun.boot.class.path = C:\Program Files\Java\jdk1.7.0_45\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_45\jre\classes
sun.boot.library.path = C:\Program Files\Java\jdk1.7.0_45\jre\bin
sun.cpu.endian = little
sun.cpu.isalist = amd64
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = C:\wildfly-concurrency\wildfly-8.1.0.Final\jboss-modules.jar -mp C:\wildfly-concurrency\wildfly-8.1.0.Final\modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=C:\wildfly-concurrency\wildfly-8.1.0.Final
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = Cp1252
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.os.patch.level = Service Pack 1
user.country = GB
user.dir = C:\wildfly-concurrency\wildfly-8.1.0.Final\bin
user.home = C:\Users\First
user.language = en
user.name = First
user.script =
user.timezone = Europe/London
user.variant =
2014-09-16 16:47:42,972 DEBUG [org.jboss.as.config] (MSC service thread 1-5) VM Arguments: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\log\server.log -Dlogging.configuration=file:C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\configuration/logging.properties
2014-09-16 16:47:44,042 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment issue-ear-1.0.ear
2014-09-16 16:47:44,072 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
2014-09-16 16:47:44,092 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.2.2.Final
2014-09-16 16:47:44,102 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.2.2.Final
2014-09-16 16:47:44,132 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem
2014-09-16 16:47:44,132 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.
2014-09-16 16:47:44,152 INFO [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem
2014-09-16 16:47:44,162 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
2014-09-16 16:47:44,162 INFO [org.jboss.as.connector.logging] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.5.Final)
2014-09-16 16:47:44,172 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
2014-09-16 16:47:44,182 INFO [org.jboss.as.security] (MSC service thread 1-5) JBAS013170: Current PicketBox version=4.0.21.Beta1
2014-09-16 16:47:44,202 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
2014-09-16 16:47:44,212 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010417: Started Driver service with driver-name = h2
2014-09-16 16:47:44,212 INFO [org.jboss.as.naming] (MSC service thread 1-12) JBAS011802: Starting Naming Service
2014-09-16 16:47:44,222 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 12 core threads with 96 task threads based on your 6 available processors
2014-09-16 16:47:44,232 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]
2014-09-16 16:47:44,232 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) JBAS017502: Undertow 1.0.15.Final starting
2014-09-16 16:47:44,232 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.0.15.Final starting
2014-09-16 16:47:44,242 INFO [org.jboss.as.mail.extension] (MSC service thread 1-9) JBAS015400: Bound mail session [java:jboss/mail/Default]
2014-09-16 16:47:44,272 INFO [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 4.0.3.Final
2014-09-16 16:47:44,392 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path C:\wildfly-concurrency\wildfly-8.1.0.Final/welcome-content
2014-09-16 16:47:44,412 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017525: Started server default-server.
2014-09-16 16:47:44,422 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) JBAS017531: Host default-host starting
2014-09-16 16:47:44,492 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080
2014-09-16 16:47:44,652 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
2014-09-16 16:47:44,682 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory C:\wildfly-concurrency\wildfly-8.1.0.Final\standalone\deployments
2014-09-16 16:47:44,682 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "issue-ear-1.0.ear" (runtime-name: "issue-ear-1.0.ear")
2014-09-16 16:47:44,752 INFO [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015973: Starting subdeployment (runtime-name: "issue-ejb-1.0.jar")
2014-09-16 16:47:44,892 INFO [org.jboss.weld.deployer] (MSC service thread 1-11) JBAS016002: Processing weld deployment issue-ear-1.0.ear
2014-09-16 16:47:44,922 INFO [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
2014-09-16 16:47:44,962 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-11) HV000001: Hibernate Validator 5.1.0.Final
2014-09-16 16:47:45,332 INFO [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016002: Processing weld deployment issue-ejb-1.0.jar
2014-09-16 16:47:45,342 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-8) JNDI bindings for session bean named OnDemandBatch in deployment unit subdeployment "issue-ejb-1.0.jar" of deployment "issue-ear-1.0.ear" are as follows:
java:global/issue-ear-1.0/issue-ejb-1.0/OnDemandBatch!concurrency.managed.RemoteBatch
java:app/issue-ejb-1.0/OnDemandBatch!concurrency.managed.RemoteBatch
java:module/OnDemandBatch!concurrency.managed.RemoteBatch
java:jboss/exported/issue-ear-1.0/issue-ejb-1.0/OnDemandBatch!concurrency.managed.RemoteBatch
java:global/issue-ear-1.0/issue-ejb-1.0/OnDemandBatch
java:app/issue-ejb-1.0/OnDemandBatch
java:module/OnDemandBatch
2014-09-16 16:47:45,342 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-8) JNDI bindings for session bean named SimpleBatch in deployment unit subdeployment "issue-ejb-1.0.jar" of deployment "issue-ear-1.0.ear" are as follows:
java:global/issue-ear-1.0/issue-ejb-1.0/SimpleBatch!concurrency.managed.SimpleBatch
java:app/issue-ejb-1.0/SimpleBatch!concurrency.managed.SimpleBatch
java:module/SimpleBatch!concurrency.managed.SimpleBatch
java:global/issue-ear-1.0/issue-ejb-1.0/SimpleBatch
java:app/issue-ejb-1.0/SimpleBatch
java:module/SimpleBatch
2014-09-16 16:47:45,362 INFO [org.jboss.weld.deployer] (MSC service thread 1-11) JBAS016005: Starting Services for CDI deployment: issue-ear-1.0.ear
2014-09-16 16:47:45,402 INFO [org.jboss.weld.Version] (MSC service thread 1-11) WELD-000900: 2.1.2 (Final)
2014-09-16 16:47:45,412 INFO [org.jboss.weld.deployer] (MSC service thread 1-9) JBAS016008: Starting weld service for deployment issue-ear-1.0.ear
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-3) 2
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-4) 3
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-7) 6
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-9) 8
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-10) 9
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-7) 15
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-10) 19
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-5) 4
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-10) 25
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-16) 20
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-6) 5
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-21) 27
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-24) 32
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-19) 24
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-18) 23
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-2) 1
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-1) 0
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-17) 22
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-22) 29
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-25) 33
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-20) 26
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-10) 30
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-5) 28
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-11) 11
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-15) 18
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-14) 16
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-7) 21
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-13) 14
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-9) 17
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-12) 12
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-4) 13
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-3) 10
2014-09-16 16:47:46,192 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-8) 7
2014-09-16 16:47:46,202 INFO [concurrency.managed.SimpleTask] (EE-ManagedExecutorService-default-Thread-23) 31
2014-09-16 16:47:46,212 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 51) MSC000001: Failed to start service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".component.SimpleBatch.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".component.SimpleBatch.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_45]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:162) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:133) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:89) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:122)
at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:137)
at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
... 6 more
Caused by: javax.ejb.EJBException: java.util.concurrent.RejectedExecutionException: Task org.glassfish.enterprise.concurrent.internal.ManagedFutureTask@3e2e9369 rejected from org.glassfish.enterprise.concurrent.internal.ManagedThreadPoolExecutor@63cff263[Running, pool size = 25, active threads = 25, queued tasks = 0, completed tasks = 9]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:190)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:369)
at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:160) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
... 11 more
Caused by: java.util.concurrent.RejectedExecutionException: Task org.glassfish.enterprise.concurrent.internal.ManagedFutureTask@3e2e9369 rejected from org.glassfish.enterprise.concurrent.internal.ManagedThreadPoolExecutor@63cff263[Running, pool size = 25, active threads = 25, queued tasks = 0, completed tasks = 9]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372) [rt.jar:1.7.0_45]
at org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.executeManagedFutureTask(AbstractManagedExecutorService.java:402) [javax.enterprise.concurrent-1.0.jar:]
at org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.submit(AbstractManagedExecutorService.java:358) [javax.enterprise.concurrent-1.0.jar:]
at org.glassfish.enterprise.concurrent.ManagedExecutorServiceAdapter.submit(ManagedExecutorServiceAdapter.java:72) [javax.enterprise.concurrent-1.0.jar:]
at concurrency.managed.SimpleBatch.startBatch(SimpleBatch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doLifecycleInterception(Jsr299BindingsInterceptor.java:114)
at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:103)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:109) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:56)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:93)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309) [jboss-invocation-1.2.1.Final.jar:1.2.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)
... 27 more
2014-09-16 16:47:46,282 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "issue-ear-1.0.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"issue-ear-1.0.ear\".\"issue-ejb-1.0.jar\".component.SimpleBatch.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"issue-ear-1.0.ear\".\"issue-ejb-1.0.jar\".component.SimpleBatch.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
Caused by: javax.ejb.EJBException: java.util.concurrent.RejectedExecutionException: Task org.glassfish.enterprise.concurrent.internal.ManagedFutureTask@3e2e9369 rejected from org.glassfish.enterprise.concurrent.internal.ManagedThreadPoolExecutor@63cff263[Running, pool size = 25, active threads = 25, queued tasks = 0, completed tasks = 9]
Caused by: java.util.concurrent.RejectedExecutionException: Task org.glassfish.enterprise.concurrent.internal.ManagedFutureTask@3e2e9369 rejected from org.glassfish.enterprise.concurrent.internal.ManagedThreadPoolExecutor@63cff263[Running, pool size = 25, active threads = 25, queued tasks = 0, completed tasks = 9]"}}
2014-09-16 16:47:46,362 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "issue-ear-1.0.ear" (runtime-name : "issue-ear-1.0.ear")
2014-09-16 16:47:46,362 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".component.SimpleBatch.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".component.SimpleBatch.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
2014-09-16 16:47:46,382 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
2014-09-16 16:47:46,382 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
2014-09-16 16:47:46,382 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.1.0.Final "Kenny" started (with errors) in 4130ms - Started 316 of 379 services (4 services failed or missing dependencies, 97 services are lazy, passive or on-demand)
2014-09-16 16:47:46,642 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016009: Stopping weld service for deployment issue-ear-1.0.ear
2014-09-16 16:47:46,662 INFO [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015974: Stopped subdeployment (runtime-name: issue-ejb-1.0.jar) in 42ms
2014-09-16 16:47:46,672 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment issue-ear-1.0.ear (runtime-name: issue-ear-1.0.ear) in 47ms
2014-09-16 16:47:46,712 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "issue-ear-1.0.ear" (runtime-name: "issue-ear-1.0.ear")
2014-09-16 16:47:46,712 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".component.OnDemandBatch.START (missing) dependents: [service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".deploymentCompleteService, service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".moduleDeploymentRuntimeInformationStart]
service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".component.SimpleBatch.START (missing) dependents: [service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".deploymentCompleteService, service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".moduleDeploymentRuntimeInformationStart]
service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."issue-ear-1.0.ear".deploymentCompleteService]
service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".moduleDeploymentRuntimeInformation (missing) dependents: [service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".moduleDeploymentRuntimeInformationStart]
JBAS014777: Services which failed to start: service jboss.deployment.subunit."issue-ear-1.0.ear"."issue-ejb-1.0.jar".component.SimpleBatch.START