]
Marcus Moyses resolved AS7-1573.
--------------------------------
Resolution: Done
Fixed
NPE in JBossJSSESecurityDomain with invalid configuration
---------------------------------------------------------
Key: AS7-1573
URL:
https://issues.jboss.org/browse/AS7-1573
Project: Application Server 7
Issue Type: Bug
Components: Security
Affects Versions: 7.0.1.Final
Reporter: Pavel Slavicek
Assignee: Marcus Moyses
Hi,
I have hit NPE with the invalid security domain configuration. It seems as same problem
as JBCTS-1126. Server has been started with invalid configuration. Configuration uses
invalid keystore folder (folder does not exist). Client should not get NPE during the
server startup even with invalid configuration. Client should get more descriptive
exception.
Server configuration (standalone.xml), keystores folder does not exist.
{code}
<security-domain name="IIOP+SSL">
<jsse
truststore-url="../standalone/configuration/keystores/tomcat.keystore"
truststore-password="rmi+ssl"
keystore-url="../standalone/configuration/keystores/clientcert.jks"
keystore-password="changeit"/>
</security-domain>
{code}
Exception:
{code}
11:26:42,806 INFO [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation
Version 3.0.0.Beta3
11:26:42,803 ERROR [org.jboss.as.controller] (Controller Boot Thread) Operation
("add") failed - address: ([
("subsystem" => "security"),
("security-domain" => "IIOP+SSL")
]): java.lang.NullPointerException
at
org.jboss.security.JBossJSSESecurityDomain.validateStoreURL(JBossJSSESecurityDomain.java:413)
at
org.jboss.security.JBossJSSESecurityDomain.setKeyStoreURL(JBossJSSESecurityDomain.java:138)
at
org.jboss.as.security.SecurityDomainAdd.createJSSESecurityDomain(SecurityDomainAdd.java:418)
at
org.jboss.as.security.SecurityDomainAdd.performRuntime(SecurityDomainAdd.java:150)
at
org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:47)
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: