java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi all, I do face a problem with JNLP based windows slaves in combination with restricted permissions of Anonymous. If user Anonymous doesn't has READ permission granted, the JNLP slave (converted to a windows service) fails to connect to the master. The jenkins-slave.xml contains ------------------------------------------------------------------------------------ <arguments>-Xrs -jar "%BASE%\slave.jar" -jnlpUrl https://xxx:8443/hudson/computer/xxx/slave-agent.jnlp -jnlpCredentials abcd:efgh -auth abcd:efgh</arguments> ------------------------------------------------------------------------------------ The tomcat-users.xml contains ------------------------------------------------------------------------------------ <tomcat-users> <role rolename="admin"/> <role rolename="manager"/> <user username="abcd" password="efgh" roles="admin,manager"/> </tomcat-users> ------------------------------------------------------------------------------------ The jenkins-slave.err.log contains ------------------------------------------------------------------------------------ Failing to obtain https://xxx:8443/hudson/computer/xxx/slave-agent.jnlp java.io.IOException: Failed to load https://xxx:8443/hudson/computer/xxx/slave-agent.jnlp: 500 Internal Server Error at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:228) at hudson.remoting.Launcher.run(Launcher.java:190) at hudson.remoting.Launcher.main(Launcher.java:166) Waiting 10 seconds before retry ------------------------------------------------------------------------------------ The tomcat's localhost.2011-xx-xx.log contains ------------------------------------------------------------------------------------ SEVERE: Servlet.service() for servlet Stapler threw exception hudson.security.AccessDeniedException2: anonymous is missing the Read permission at hudson.security.ACL.checkPermission(ACL.java:53) at hudson.model.Node.checkPermission(Node.java:363) at hudson.model.Hudson.getTarget(Hudson.java:3538) ... ------------------------------------------------------------------------------------ The setup is as follows: ------------------------------------------------------------------------------------ OS: Windows 7 Tomcat: 6.0.33 Jenkins: 1.4.10 (also not working with 1.4.31) JDK: 1.6.27 Security Realm: Matrix based Security is enabled Authorization: Delegate to servlet container permissions of user abcd: Overall Read, Overall Administer permissions of user Anonymous: none ------------------------------------------------------------------------------------
    via by Matthias Vach,
  • Hi all, I do face a problem with JNLP based windows slaves in combination with restricted permissions of Anonymous. If user Anonymous doesn't has READ permission granted, the JNLP slave (converted to a windows service) fails to connect to the master. The jenkins-slave.xml contains ------------------------------------------------------------------------------------ <arguments>-Xrs -jar "%BASE%\slave.jar" -jnlpUrl https://xxx:8443/hudson/computer/xxx/slave-agent.jnlp -jnlpCredentials abcd:efgh -auth abcd:efgh</arguments> ------------------------------------------------------------------------------------ The tomcat-users.xml contains ------------------------------------------------------------------------------------ <tomcat-users> <role rolename="admin"/> <role rolename="manager"/> <user username="abcd" password="efgh" roles="admin,manager"/> </tomcat-users> ------------------------------------------------------------------------------------ The jenkins-slave.err.log contains ------------------------------------------------------------------------------------ Failing to obtain https://xxx:8443/hudson/computer/xxx/slave-agent.jnlp java.io.IOException: Failed to load https://xxx:8443/hudson/computer/xxx/slave-agent.jnlp: 500 Internal Server Error at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:228) at hudson.remoting.Launcher.run(Launcher.java:190) at hudson.remoting.Launcher.main(Launcher.java:166) Waiting 10 seconds before retry ------------------------------------------------------------------------------------ The tomcat's localhost.2011-xx-xx.log contains ------------------------------------------------------------------------------------ SEVERE: Servlet.service() for servlet Stapler threw exception hudson.security.AccessDeniedException2: anonymous is missing the Read permission at hudson.security.ACL.checkPermission(ACL.java:53) at hudson.model.Node.checkPermission(Node.java:363) at hudson.model.Hudson.getTarget(Hudson.java:3538) ... ------------------------------------------------------------------------------------ The setup is as follows: ------------------------------------------------------------------------------------ OS: Windows 7 Tomcat: 6.0.33 Jenkins: 1.4.10 (also not working with 1.4.31) JDK: 1.6.27 Security Realm: Matrix based Security is enabled Authorization: Delegate to servlet container permissions of user abcd: Overall Read, Overall Administer permissions of user Anonymous: none ------------------------------------------------------------------------------------
    via by Matthias Vach,
  • After the upgrade all our Windows slaves could not be reached: C:\jenkins>java -jar slave.jar -jnlpUrl http://bambpmsauto.eur.ad.sag:8080/compu ter/vmbam04.eur.ad.sag/slave-agent.jnlp Failing to obtain http://bambpmsauto.eur.ad.sag:8080/computer/vmbam04.eur.ad.sag /slave-agent.jnlp java.io.IOException: Failed to load http://bambpmsauto.eur.ad.sag:8080/computer/ vmbam04.eur.ad.sag/slave-agent.jnlp: 403 Forbidden at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:228) at hudson.remoting.Launcher.run(Launcher.java:190) at hudson.remoting.Launcher.main(Launcher.java:166) Waiting 10 seconds before retry Failing to obtain http://bambpmsauto.eur.ad.sag:8080/computer/vmbam04.eur.ad.sag /slave-agent.jnlp I also tried headless slave: CouldNotLoadArgumentException[ Could not load file/URL specified: http://bambpmsauto.eur.ad.sag:8080/computer/vmbam04.eur.ad.sag/slave-agent.jnlp] at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source) java.io.IOException: Server returned HTTP response code: 403 for URL: http://bambpmsauto.eur.ad.sag:8080/computer/vmbam04.eur.ad.sag/slave-agent.jnlp at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source) at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source) at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source) at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source) This must be a regression of some kind because all the slaves were fine before the upgrade of the version (we were on 1.497 as 1.498 had similar problems)
    via by Vassilena Treneva,
    • java.io.IOException: Failed to load https://xxx:8443/hudson/computer/xxx/slave-agent.jnlp: 500 Internal Server Error at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:228) at hudson.remoting.Launcher.run(Launcher.java:190) at hudson.remoting.Launcher.main(Launcher.java:166)
    No Bugmate found.