Error getting SSL context object

305 views
Skip to first unread message

Pedro Lopez

unread,
Feb 23, 2012, 6:30:25 AM2/23/12
to Jenkins Users
Hello,

I am working on AIX with the jenkins version 1.444 and the java
version 1.6.0

I have the following error on stdout after launching jenkins
application.

[Winstone 2012/02/23 12:05:45] - Winstone shutdown successfully
[Winstone 2012/02/23 12:05:45] - Container startup failed
java.io.IOException: Failed to start a listener:
winstone.ssl.HttpsListener
at winstone.Launcher.spawnListener(Launcher.java:250)
at winstone.Launcher.<init>(Launcher.java:206)
at winstone.Launcher.main(Launcher.java:398)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
48)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:600)
at Main._main(Main.java:268)
at Main.main(Main.java:96)
Caused by: winstone.WinstoneException: Error getting the SSL context
object
at winstone.ssl.HttpsListener.getSSLContext(HttpsListener.java:
290)
at
winstone.ssl.HttpsListener.getServerSocket(HttpsListener.java:196)
at winstone.HttpListener.start(HttpListener.java:70)
at winstone.Launcher.spawnListener(Launcher.java:241)
... 8 more

Feb 23, 2012 12:05:46 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Feb 23, 2012 12:05:46 PM hudson.WebAppMain$2 run
SEVERE: Failed to initialize Jenkins
Throwable occurred: java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:167)
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:244)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:815)
at jenkins.model.Jenkins.<init>(Jenkins.java:736)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.model.Hudson.<init>(Hudson.java:77)
at hudson.WebAppMain$2.run(WebAppMain.java:217)
Exception in thread "pool-2-thread-1" java.lang.NullPointerException
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:191)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:898)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:920)
at java.lang.Thread.run(Thread.java:736)

To arrive at this error I make the following:

I create a private key with a self-signed certificate with the
command:
>keytool -genkey -alias self-signed -keyalg RSA -keystore security/keystore.jks -dName "CN=Jenkins" -storepass [password] -keypass [password]
(the passwords are the same.)
I launch the jenkins to work with https with the command:
>java -Dhudson.Util.symlinkEscapeHatch=true -jar jenkins.war --httpPort=-1 --httpsPort=9443 --httpsKeyStore=security/keystore.jks --httpsKeyStorePassword=[password] --ajp13Port=-1
(The password is the same as above).

And I get the error in the log: Caused by: winstone.WinstoneException:
Error getting the SSL context object...
I am not a specialist in security, maybe I do something wrong but did
you have any idea about the origin of my problem.

Thank's

Pedro
Reply all
Reply to author
Forward
0 new messages