Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1636

Regression: NPE in JBossSecuritySubjectFactory.createSubject()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.2.Final
    • 7.0.1.Final
    • JCA
    • None

      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]

              mmoyses Marcus Moyses (Inactive)
              juergen.zimmermann Juergen Zimmermann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: