]
Michal Babacek edited comment on AS7-3869 at 3/7/12 8:39 AM:
-------------------------------------------------------------
I was unable to verify it against the current *master*: [AS7-4077]
was (Author: mbabacek):
I was unable to verify it against the current *master*: [AS7-3869]
NullPointerException with SSL and modcluster
--------------------------------------------
Key: AS7-3869
URL:
https://issues.jboss.org/browse/AS7-3869
Project: Application Server 7
Issue Type: Bug
Components: Clustering
Affects Versions: 7.1.0.Final
Reporter: Yves Peter
Assignee: Paul Ferraro
Priority: Critical
Labels: mod_cluster, security
Fix For: 7.1.1.Final
If I try to use SSL with mod_cluster I get a NullPointerException at JBoss startup and
modcluster subsystem doesn't start. Configuration:
{code:xml}
<subsystem xmlns="urn:jboss:domain:modcluster:1.0">
<mod-cluster-config advertise="false"
proxy-list="sd06009.uyellow.yellowcorp.test:6199" balancer="test">
<ssl password="123456"
certificate-key-file="configuration/keys/jspStore.jks"
ca-certificate-file="configuration/keys/yellowJspDynWesTrust.jks"/>
</mod-cluster-config>
</subsystem>
{code}
Log:
{noformat}
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /app/jboss/current
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx1512m -XX:MaxPermSize=256m
-Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
WARNING: -logmodule is deprecated. Please use the system property
'java.util.logging.manager' or the 'java.util.logging.LogManager' service
loader.
14:20:23,022 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
14:20:23,440 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
14:20:23,531 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder"
starting
14:20:25,113 INFO [org.xnio] XNIO Version 3.0.3.GA
14:20:25,117 INFO [org.jboss.as.server] JBAS015889: Creating http management service
using secure-socket-binding (management-http)
14:20:25,129 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
14:20:25,146 INFO [org.jboss.remoting] JBoss Remoting version 3.2.2.GA
14:20:25,172 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
14:20:25,312 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 24)
JBAS010280: Activating Infinispan subsystem.
14:20:25,312 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread
Pool -- 21) JBAS010403: Deploying JDBC-compliant driver class com.ibm.db2.jcc.DB2Driver
(version 4.13)
14:20:25,393 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting
JCA Subsystem (JBoss IronJacamar 1.0.7.Final)
14:20:25,405 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 38)
JBAS015537: Activating WebServices Extension
14:20:25,436 INFO [org.jboss.as.security] (ServerService Thread Pool -- 34) JBAS013101:
Activating Security Subsystem
14:20:25,440 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 30) JBAS011800:
Activating Naming Subsystem
14:20:25,485 INFO [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting
Naming Service
14:20:25,491 INFO [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400:
Bound mail session [java:jboss/mail/Default]
14:20:25,680 INFO [org.apache.coyote.ajp.AjpProtocol] (MSC service thread 1-3) Starting
Coyote AJP/1.3 on ajp--0.0.0.0-8009
14:20:25,697 INFO [org.jboss.as.modcluster] (MSC service thread 1-4) JBAS011704:
Mod_cluster uses default load balancer provider
14:20:25,761 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1)
Starting Coyote HTTP/1.1 on http--0.0.0.0-8080
14:20:25,792 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service
thread 1-3) JBoss Web Services - Stack CXF Server 4.0.1.GA
14:20:25,810 INFO [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current
PicketBox version=4.0.6.final
14:20:25,939 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread
Pool -- 21) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver
(version 11.2)
14:20:26,042 INFO [org.jboss.modcluster.ModClusterService] (MSC service thread 1-4)
Initializing mod_cluster 1.2.0.Final
14:20:26,251 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed
to start service jboss.mod-cluster: org.jboss.msc.service.StartException in service
jboss.mod-cluster: Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_02]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_02]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_02]
Caused by: java.lang.NullPointerException
at
org.jboss.modcluster.mcmp.impl.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:284)
at
org.jboss.modcluster.mcmp.impl.JSSESocketFactory.<init>(JSSESocketFactory.java:98)
at
org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler$Proxy.<init>(DefaultMCMPHandler.java:747)
at
org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.add(DefaultMCMPHandler.java:183)
at
org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.init(DefaultMCMPHandler.java:139)
at org.jboss.modcluster.ModClusterService.init(ModClusterService.java:146)
at
org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.init(CatalinaEventHandlerAdapter.java:258)
at
org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.start(CatalinaEventHandlerAdapter.java:99)
at org.jboss.as.modcluster.ModClusterService.start(ModClusterService.java:229)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
14:20:27,282 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2)
Starting Coyote HTTP/1.1 on http--0.0.0.0-8443
14:20:28,126 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-2) JBAS010400: Bound data source [java:/jdbc/app_name/DataSourceDB2]
14:20:28,128 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-2) JBAS010400: Bound data source [java:/PrestOracleDS]
14:20:28,183 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening
on /0.0.0.0:4447
14:20:28,190 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening
on /0.0.0.0:9999
14:20:28,251 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service
status report
JBAS014777: Services which failed to start: service jboss.mod-cluster:
org.jboss.msc.service.StartException in service jboss.mod-cluster: Failed to start
service
14:20:28,260 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS
7.1.0.Final "Thunder" started (with errors) in 5892ms - Started 148 of 202
services (1 services failed or missing dependencies, 43 services are passive or
on-demand)
{noformat}
The paths and names of the certificates are correct.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: