]
James Perkins closed WFLY-4510.
-------------------------------
Labels: (was: jdbc job-repository wildfly)
Fix Version/s: 9.0.0.Beta1
Resolution: Done
This Seems to be fixed in WildFly 9.0.0.Beta1.
"IJ000451: The connection manager is shutdown" after
disabling/enabling a datasource
------------------------------------------------------------------------------------
Key: WFLY-4510
URL:
https://issues.jboss.org/browse/WFLY-4510
Project: WildFly
Issue Type: Bug
Components: Batch
Environment: Windows 8.1 x64, JDK 1.8.0_20, Wildfly 8.2.0.Final
Reporter: Renann Prado
Assignee: James Perkins
Fix For: 9.0.0.Beta1
The below exception is thrown after the DataSource is disabled/enabled.
I read that in Wildfly 9 onwards disabling/enabling a DataSource is deprecated, so
*maybe* this problem won`t happen in next Wildfly version.
{noformat}
2015-04-12 16:48:07,691 ERROR [io.undertow.request] (default task-8) UT005023: Exception
handling request to /XXXXXe-web/NewServlet: javax.batch.operations.BatchRuntimeException:
JBERET000622: Failed to obtain connection from
org.jboss.jca.adapters.jdbc.WrapperDataSource@da89438, java:jboss/dasources/MySQL
at org.jberet.repository.JdbcRepository.getConnection(JdbcRepository.java:802)
[jberet-core-1.0.2.Final.jar:1.0.2.Final]
at org.jberet.repository.JdbcRepository.insertJobInstance(JdbcRepository.java:264)
[jberet-core-1.0.2.Final.jar:1.0.2.Final]
at
org.jberet.repository.AbstractRepository.createJobInstance(AbstractRepository.java:91)
[jberet-core-1.0.2.Final.jar:1.0.2.Final]
at org.jberet.operations.JobOperatorImpl$1.invoke(JobOperatorImpl.java:82)
[jberet-core-1.0.2.Final.jar:1.0.2.Final]
at org.jberet.operations.JobOperatorImpl$1.invoke(JobOperatorImpl.java:79)
[jberet-core-1.0.2.Final.jar:1.0.2.Final]
at org.jberet.operations.JobOperatorImpl.invokeTransaction(JobOperatorImpl.java:295)
[jberet-core-1.0.2.Final.jar:1.0.2.Final]
at org.jberet.operations.JobOperatorImpl.start(JobOperatorImpl.java:79)
[jberet-core-1.0.2.Final.jar:1.0.2.Final]
at com.test.NewServlet.processRequest(NewServlet.java:64) [classes:]
at com.test.NewServlet.doGet(NewServlet.java:95) [classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)
[undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)
[undertow-core-1.1.0.Final.jar:1.1.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_11]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000451: The
connection manager is shutdown: java:jboss/dasources/MySQL
at
org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:154)
at org.jberet.repository.JdbcRepository.getConnection(JdbcRepository.java:800)
[jberet-core-1.0.2.Final.jar:1.0.2.Final]
... 36 more
Caused by: javax.resource.ResourceException: IJ000451: The connection manager is
shutdown: java:jboss/dasources/MySQL
at
org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:371)
at
org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:421)
at
org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:515)
at
org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:146)
... 37 more
{noformat}