Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » httpPort=-1 does not work
httpPort=-1 does not work [message #1765419] Fri, 09 June 2017 10:22
Benjamin Gathmann is currently offline Benjamin GathmannFriend
Messages: 1
Registered: June 2017
Junior Member
The documentation says that to disable http and only use ssl, I have to set httpPort to -1, see:

https://wiki.eclipse.org/Using_Hudson/Starting_and_Accessing_Hudson#Command_Line_Parameters

This does not work in Hudson 3.3 on Ubuntu 14.04.
I get an exception in the /var/log/hudson/hudson.log:

2017-06-09 10:32:47.116:WARN:oejuc.AbstractLifeCycle:main: FAILED ServerConnector@7d1c5a5a{HTTP/1.1}{0.0.0.0:-1}: java.lang.IllegalArgumentException: port out of range:-1
java.lang.IllegalArgumentException: port out of range:-1
        at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:319)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:366)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.hudson.jetty.JettyLauncher.start(JettyLauncher.java:195)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.eclipse.hudson.war.Executable.launchJetty(Executable.java:140)
        at org.eclipse.hudson.war.Executable.main(Executable.java:76)


And the Hudson app won't reply on the httpsPort I defined.
Previous Topic:Setup Hudson to use SSL/HTTPS
Next Topic:Reference SVN tagged job in second job
Goto Forum:
  


Current Time: Thu Oct 03 20:36:20 GMT 2024

Powered by FUDForum. Page generated in 0.04161 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top