java.net.MalformedURLException

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.

  • Following upgrade to 1.5, github pull request builder couldn't connect to github because the default setting for the github api url (which is also specified by the config validator) is api.github.com. This causes the following error: {quote} Feb 21, 2013 5:59:40 PM org.jenkinsci.plugins.ghprb.GhprbRepo connect SEVERE: Can't connect to api.github.com using oauth java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX at java.net.URL.<init>(URL.java:585) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at org.kohsuke.github.GitHub.getApiURL(GitHub.java:175) at org.kohsuke.github.Requester._to(Requester.java:159) at org.kohsuke.github.Requester.to(Requester.java:139) at org.kohsuke.github.GitHub.getMyself(GitHub.java:200) at org.kohsuke.github.GitHub.<init>(GitHub.java:102) at org.kohsuke.github.GitHub.connectUsingOAuth(GitHub.java:149) at org.jenkinsci.plugins.ghprb.GhprbRepo.connect(GhprbRepo.java:61) at org.jenkinsci.plugins.ghprb.GhprbRepo.checkState(GhprbRepo.java:73) at org.jenkinsci.plugins.ghprb.GhprbRepo.check(GhprbRepo.java:91) at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:132) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) {quote} Changing the config value to https://api.github.com worked.
    via by Andrew Coulton,
  • Following upgrade to 1.5, github pull request builder couldn't connect to github because the default setting for the github api url (which is also specified by the config validator) is api.github.com. This causes the following error: {quote} Feb 21, 2013 5:59:40 PM org.jenkinsci.plugins.ghprb.GhprbRepo connect SEVERE: Can't connect to api.github.com using oauth java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX at java.net.URL.<init>(URL.java:585) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at org.kohsuke.github.GitHub.getApiURL(GitHub.java:175) at org.kohsuke.github.Requester._to(Requester.java:159) at org.kohsuke.github.Requester.to(Requester.java:139) at org.kohsuke.github.GitHub.getMyself(GitHub.java:200) at org.kohsuke.github.GitHub.<init>(GitHub.java:102) at org.kohsuke.github.GitHub.connectUsingOAuth(GitHub.java:149) at org.jenkinsci.plugins.ghprb.GhprbRepo.connect(GhprbRepo.java:61) at org.jenkinsci.plugins.ghprb.GhprbRepo.checkState(GhprbRepo.java:73) at org.jenkinsci.plugins.ghprb.GhprbRepo.check(GhprbRepo.java:91) at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:132) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) {quote} Changing the config value to https://api.github.com worked.
    via by Andrew Coulton,
  • Using JTextField and JButton to open an url
    via Stack Overflow by Sarah
    ,
  • Jenkins Failed to advertise SSH port
    via by Unknown author,
  • GitHub comment 71#28537381
    via GitHub by jendib
    ,
    • java.net.MalformedURLException: no protocol: api.github.com/user?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXX at java.net.URL.<init>(URL.java:585) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at org.kohsuke.github.GitHub.getApiURL(GitHub.java:175) at org.kohsuke.github.Requester._to(Requester.java:159) at org.kohsuke.github.Requester.to(Requester.java:139) at org.kohsuke.github.GitHub.getMyself(GitHub.java:200) at org.kohsuke.github.GitHub.<init>(GitHub.java:102) at org.kohsuke.github.GitHub.connectUsingOAuth(GitHub.java:149) at org.jenkinsci.plugins.ghprb.GhprbRepo.connect(GhprbRepo.java:61) at org.jenkinsci.plugins.ghprb.GhprbRepo.checkState(GhprbRepo.java:73) at org.jenkinsci.plugins.ghprb.GhprbRepo.check(GhprbRepo.java:91) at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:132) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Hiren AmaliyarHiren Amaliyar
    1 times, last one,
    AravindAravind
    1 times, last one,
    mist69mist69
    2 times, last one,
    93 more bugmates