java.lang.IllegalArgumentException: URI is not absolute

Jenkins JIRA | Oliver Gondža | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I am unable to get config roundtrip test to work from plugins test harness as it, unlike plain old {{java -jar}} or ATH, turns on JVM assertions. The plugin itself verifies the {{login.conf}} path is a file in {{PluginImpl#changeLoginLocation}} but spnego have an explicit *assertion* verifying that {{new File(new URI(...))}} exists though it fails to even instantiate the File as it effectively requires {{'file:'}} prefix (it requires scheme to be considered absolute). {noformat} java.lang.IllegalArgumentException: URI is not absolute at java.io.File.<init>(File.java:416) at net.sourceforge.spnego.SpnegoFilterConfig.loginConfExists(SpnegoFilterConfig.java:364) at net.sourceforge.spnego.SpnegoFilterConfig.<init>(SpnegoFilterConfig.java:117) at net.sourceforge.spnego.SpnegoFilterConfig.getInstance(SpnegoFilterConfig.java:314) at net.sourceforge.spnego.SpnegoAuthenticator.<init>(SpnegoAuthenticator.java:206) at com.sonymobile.jenkins.plugins.kerberossso.ioc.SpnegoKerberosAuthenticationFactory$SpnegoKerberosAuthenticator.<init>(SpnegoKerberosAuthenticationFactory.java:87) at com.sonymobile.jenkins.plugins.kerberossso.ioc.SpnegoKerberosAuthenticationFactory$SpnegoKerberosAuthenticator.<init>(SpnegoKerberosAuthenticationFactory.java:70) at com.sonymobile.jenkins.plugins.kerberossso.ioc.SpnegoKerberosAuthenticationFactory.getInstance(SpnegoKerberosAuthenticationFactory.java:60) at com.sonymobile.jenkins.plugins.kerberossso.KerberosSSOFilter.init(KerberosSSOFilter.java:98) at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:75) {noformat} It seems to be enforced by this assertion only as the code works with assertions off. As the SPNEGO looks quite dead, I will try to address this providing the prefixed form *after* the plugin validates the path.

    Jenkins JIRA | 6 months ago | Oliver Gondža
    java.lang.IllegalArgumentException: URI is not absolute
  2. 0

    GitHub comment 1#200803063

    GitHub | 1 year ago | senderle
    java.lang.IllegalArgumentException: URI is not absolute
  3. 0

    URI is not absolute?

    Stack Overflow | 4 weeks ago | Peter Rader
    java.lang.IllegalArgumentException: URI is not absolute
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Nutch-user] Exception in thread "main" java.lang.IllegalArgumentException: URI is not absolute - Grokbase

    grokbase.com | 2 years ago
    java.lang.IllegalArgumentException: URI is not absolute
  6. 0

    saxon-help - java.lang.IllegalArgumentException: URI is not absolute

    nabble.com | 7 months ago
    java.lang.IllegalArgumentException: URI is not absolute

  1. jstrayer 1 times, last 1 week ago
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    URI is not absolute

    at java.io.File.<init>()
  2. Java RT
    File.<init>
    1. java.io.File.<init>(File.java:416)
    1 frame
  3. net.sourceforge.spnego
    SpnegoAuthenticator.<init>
    1. net.sourceforge.spnego.SpnegoFilterConfig.loginConfExists(SpnegoFilterConfig.java:364)
    2. net.sourceforge.spnego.SpnegoFilterConfig.<init>(SpnegoFilterConfig.java:117)
    3. net.sourceforge.spnego.SpnegoFilterConfig.getInstance(SpnegoFilterConfig.java:314)
    4. net.sourceforge.spnego.SpnegoAuthenticator.<init>(SpnegoAuthenticator.java:206)
    4 frames
  4. com.sonymobile.jenkins
    KerberosSSOFilter.init
    1. com.sonymobile.jenkins.plugins.kerberossso.ioc.SpnegoKerberosAuthenticationFactory$SpnegoKerberosAuthenticator.<init>(SpnegoKerberosAuthenticationFactory.java:87)
    2. com.sonymobile.jenkins.plugins.kerberossso.ioc.SpnegoKerberosAuthenticationFactory$SpnegoKerberosAuthenticator.<init>(SpnegoKerberosAuthenticationFactory.java:70)
    3. com.sonymobile.jenkins.plugins.kerberossso.ioc.SpnegoKerberosAuthenticationFactory.getInstance(SpnegoKerberosAuthenticationFactory.java:60)
    4. com.sonymobile.jenkins.plugins.kerberossso.KerberosSSOFilter.init(KerberosSSOFilter.java:98)
    4 frames
  5. Hudson
    PluginServletFilter.addFilter
    1. hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:75)
    1 frame