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 java.io.IOException: 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(CachedConstructor.java:83)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
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(CallSiteArray.java:56)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:194)
at io.restassured.internal.RequestSpecificationImpl.header(RequestSpecificationImpl.groovy:866)
at io.restassured.builder.RequestSpecBuilder.addHeader(RequestSpecBuilder.java:1012)

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.