[
https://issues.jboss.org/browse/AS7-3175?page=com.atlassian.jira.plugin.s...
]
Stuart Douglas resolved AS7-3175.
---------------------------------
Resolution: Done
merged upstream
NPE when using xa datasource with recovery
------------------------------------------
Key: AS7-3175
URL:
https://issues.jboss.org/browse/AS7-3175
Project: Application Server 7
Issue Type: Bug
Components: JCA
Affects Versions: 7.1.0.CR1b
Reporter: Stuart Douglas
Assignee: Jesper Pedersen
Fix For: 7.1.0.Final
IF you add the <recovery> tag to an XA datasource server startup will fail with an
NPE:
{code}
07:34:29,840 ERROR
[org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer]
(MSC service thread 1-10) Error during the deployment of java:jboss/datasources/H2XADS:
java.lang.NullPointerException
at
org.jboss.jca.deployers.common.AbstractDsDeployer.deployXADataSource(AbstractDsDeployer.java:739)
at
org.jboss.jca.deployers.common.AbstractDsDeployer.createObjectsAndInjectValue(AbstractDsDeployer.java:339)
at
org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer.deploy(AbstractDataSourceService.java:271)
at
org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.start(AbstractDataSourceService.java:111)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_29]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]
{code}
The line in question has:
{code}
if (recoveryMD == null || !recoveryMD.getNoRecovery())
{code}
The issue is recoveryMD.getNoRecovery() is returning null.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira