java.lang.IllegalArgumentException: Header value cannot be null

Google Groups | Anil Shekhar | 6 months ago
  1. 0

    new RequestSpecBuilder().addHeader - Can we use variable to specify the value?

    Google Groups | 6 months ago | Anil Shekhar
    java.lang.IllegalArgumentException: Header value cannot be null
  2. 0

    Getting RestAssured test to work with Spring Security CSRF for AngularJS

    Stack Overflow | 6 months ago | Sander Verhagen
    java.lang.IllegalArgumentException: Couldn't find the CSRF input field with name X-XSRF-TOKEN in response. Response was: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Error 401 Unauthorized</title> </head> <body> <h2>HTTP ERROR 401</h2> <p>Problem accessing /application_name/rest/something. Reason: </p> <pre> Unauthorized</pre> <hr/> <i> <small>Powered by Jetty://</small> </i> <hr/> </body> </html>
  3. 0

    Not able to use JSON Path for json attributes having space

    GitHub | 1 year ago | johanhaleby
    java.lang.IllegalArgumentException: The parameter "Categories" was used but not defined. Define parameters using the JsonPath.params(...) function
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hyphens on list items cause issues with XmlPath

    GitHub | 1 year ago | johanhaleby
    java.lang.IllegalArgumentException: The parameter "item" was used but not defined. Define parameters using the XmlPath.params(...) function
  6. 0

    Period in path is causing failure

    GitHub | 1 year ago | johanhaleby
    java.lang.IllegalArgumentException: Illegal number of path parameters. Expected 0, was 1.

  1. musketyr 6 times, last 3 weeks ago
  2. stigkj 3 times, last 1 month ago
  3. tvrmsmith 21 times, last 5 months ago
  4. Nikolay Rybak 2 times, last 7 months ago
16 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

    Header value cannot be null

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  3. Groovy
    AbstractCallSite.callConstructor
    1. org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
    2. org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
    3. org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
    4. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
    5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
    6. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
    6 frames
  4. io.restassured.internal
    AssertParameter$notNull.callStatic
    1. io.restassured.internal.assertion.AssertParameter.notNull(AssertParameter.groovy:26)
    2. io.restassured.internal.assertion.AssertParameter$notNull.callStatic(Unknown Source)
    2 frames
  5. Groovy
    AbstractCallSite.callStatic
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:56)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:194)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:214)
    3 frames
  6. io.restassured.internal
    RequestSpecificationImpl.header
    1. io.restassured.internal.RequestSpecificationImpl.header(RequestSpecificationImpl.groovy:866)
    1 frame
  7. io.restassured.builder
    RequestSpecBuilder.addHeader
    1. io.restassured.builder.RequestSpecBuilder.addHeader(RequestSpecBuilder.java:1012)
    1 frame