java.lang.IllegalArgumentException: Content-Type application/octet-stream is not valid when using multiparts, it must start with "multipart/".

Google Groups | Raghavendra Shidling | 8 months ago
  1. 0

    Need help in equivalent code for given cURL command

    Google Groups | 8 months ago | Raghavendra Shidling
    java.lang.IllegalArgumentException: Content-Type application/octet-stream is not valid when using multiparts, it must start with "multipart/".
  2. 0

    Getting RestAssured test to work with Spring Security CSRF for AngularJS

    Stack Overflow | 7 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

    GitHub comment 563#179549864

    GitHub | 10 months ago | jatinsi
    com.jayway.restassured.internal.http.ResponseParseException: OK
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 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

  1. musketyr 6 times, last 4 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

    Content-Type application/octet-stream is not valid when using multiparts, it must start with "multipart/".

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  3. Groovy
    AbstractCallSite.callConstructor
    1. org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:80)
    2. org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:74)
    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. REST Assured
    RequestSpecificationImpl.registerRestAssuredEncoders
    1. com.jayway.restassured.internal.RequestSpecificationImpl.registerRestAssuredEncoders(RequestSpecificationImpl.groovy:1363)
    1 frame
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  6. Groovy
    MetaClassImpl.invokeMethod
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
    5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
    5 frames
  7. REST Assured
    RequestSpecificationImpl.invokeMethod
    1. com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
    1 frame
  8. Groovy
    AbstractCallSite.callCurrent
    1. org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
    2. org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:58)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
    3 frames
  9. REST Assured
    RequestSpecificationImpl.sendRequest
    1. com.jayway.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1120)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  11. Groovy
    MetaClassImpl.invokeMethod
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
    5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
    5 frames
  12. REST Assured
    RequestSpecificationImpl.invokeMethod
    1. com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
    1 frame
  13. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
    2 frames
  14. REST Assured
    Filter$filter$0.call
    1. com.jayway.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30)
    2. com.jayway.restassured.filter.Filter$filter$0.call(Unknown Source)
    2 frames
  15. Groovy
    CallSiteArray.defaultCall
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    1 frame
  16. REST Assured
    FilterContextImpl.next
    1. com.jayway.restassured.filter.Filter$filter.call(Unknown Source)
    2. com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73)
    2 frames
  17. com.jayway.restassured
    TimingFilter.filter
    1. com.jayway.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56)
    1 frame
  18. REST Assured
    Filter$filter.call
    1. com.jayway.restassured.filter.Filter$filter.call(Unknown Source)
    1 frame
  19. Groovy
    CallSiteArray.defaultCall
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    1 frame
  20. REST Assured
    Filter$filter.call
    1. com.jayway.restassured.filter.Filter$filter.call(Unknown Source)
    2. com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73)
    3. com.jayway.restassured.filter.log.RequestLoggingFilter.filter(RequestLoggingFilter.java:101)
    4. com.jayway.restassured.filter.Filter$filter.call(Unknown Source)
    4 frames
  21. Groovy
    CallSiteArray.defaultCall
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    1 frame
  22. REST Assured
    RequestSpecificationImpl.applyPathParamsAndSendRequest
    1. com.jayway.restassured.filter.Filter$filter$0.call(Unknown Source)
    2. com.jayway.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:73)
    3. com.jayway.restassured.filter.FilterContext$next.call(Unknown Source)
    4. com.jayway.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1596)
    4 frames
  23. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  24. Groovy
    MetaClassImpl.invokeMethod
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
    5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
    5 frames
  25. REST Assured
    RequestSpecificationImpl.invokeMethod
    1. com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
    1 frame
  26. Groovy
    AbstractCallSite.callCurrent
    1. org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
    2. org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:58)
    3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
    4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
    5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
    5 frames
  27. REST Assured
    RequestSpecificationImpl.post
    1. com.jayway.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy:164)
    2. com.jayway.restassured.internal.RequestSpecificationImpl.post(RequestSpecificationImpl.groovy)
    2 frames
  28. gov.hhs.cms
    RestAssuredSample.main
    1. gov.hhs.cms.utils.RestAssuredSample.main(RestAssuredSample.java:30)
    1 frame