java.lang.IllegalArgumentException: Header value cannot be null

Hot problem!
This exception has a lot of traffic. You can help 14 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Anil Shekhar, 1 year ago
via GitHub by hiradha
, 1 year ago
Execution failed (Exit value: -559038737. Caused by Cannot run program "packer" (in directory "."): error=2, No such file or directory)
via GitHub by stefomak
, 3 months ago
Cannot create database: storage mode 'graph' is not supported.
via Google Groups by Salvatore Piccione, 2 years ago
Cannot create database: storage mode 'graph' is not supported.
via YouTrack by Unknown author, 2 years ago
Argument 0 for @NotNull parameter of {Request}.<init> must not be null at {Request}.<init>({Request}.java)
java.lang.IllegalArgumentException: Header value cannot be null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(
at io.restassured.internal.assertion.AssertParameter.notNull(AssertParameter.groovy:26)
at io.restassured.internal.assertion.AssertParameter$notNull.callStatic(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(
at io.restassured.internal.RequestSpecificationImpl.header(RequestSpecificationImpl.groovy:866)
at io.restassured.builder.RequestSpecBuilder.addHeader(

Users with the same issue

15 times, 2 days ago
Once, 4 days ago
17 times, 4 weeks ago
2 times, 2 months ago
4 times, 8 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.