[jboss-jira] [JBoss JIRA] Created: (AS7-1636) Regression: NPE in JBossSecuritySubjectFactory.createSubject()
Juergen Zimmermann (JIRA)
jira-events at lists.jboss.org
Wed Aug 24 04:31:18 EDT 2011
Regression: NPE in JBossSecuritySubjectFactory.createSubject()
--------------------------------------------------------------
Key: AS7-1636
URL: https://issues.jboss.org/browse/AS7-1636
Project: Application Server 7
Issue Type: Bug
Components: JCA
Affects Versions: 7.0.1.Final
Environment: Jenkins build 1540
Reporter: Juergen Zimmermann
Assignee: Jesper Pedersen
The following configuration in standalone.xml was working in 7.0.1, but doesn't work anymore when using the latest Jenkins build 1540. I get a stacktrace with a NPE in JBossSecuritySubjectFactory.createSubject(). See the stacktrace below. See also AS7-1072.
<datasource jndi-name="java:jboss/datasources/SweDS" ...>
<security>
<security-domain>verschluesseltesDbPassword</security-domain>
...
<security-domain name="verschluesseltesDbPassword" cache-type="default">
<authentication>
<login-module code="SecureIdentity" flag="required">
<module-option name="username" value="..."/>
<module-option name="password" value="..."/>
<module-option name="managedConnectionFactoryName" value="jboss.jca:name=jboss/datasources/SweDS,service=LocalTxCM"/>
</login-module>
</authentication>
</security-domain>
Stacktrace:
10:16:19,751 ERROR [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-15) Exception during createSubject()null: java.lang.NullPointerException
at org.jboss.security.plugins.JBossSecuritySubjectFactory.createSubject(JBossSecuritySubjectFactory.java:87)
at org.jboss.jca.deployers.common.AbstractDsDeployer$1.run(AbstractDsDeployer.java:1006)
at org.jboss.jca.deployers.common.AbstractDsDeployer$1.run(AbstractDsDeployer.java:1001)
at java.security.AccessController.doPrivileged(Native Method) [:1.7.0]
at org.jboss.jca.deployers.common.AbstractDsDeployer.createSubject(AbstractDsDeployer.java:1000)
at org.jboss.jca.deployers.common.AbstractDsDeployer.deployDataSource(AbstractDsDeployer.java:549)
at org.jboss.jca.deployers.common.AbstractDsDeployer.createObjectsAndInjectValue(AbstractDsDeployer.java:277)
at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer.deploy(AbstractDataSourceService.java:243)
at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.start(AbstractDataSourceService.java:105)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0]
at java.lang.Thread.run(Thread.java:722) [:1.7.0]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list