# NoSuchMethodError HttpRequestActionBuilder.bodyParts(java.util.List)

**URL:** <https://community.gatling.io/t/nosuchmethoderror-httprequestactionbuilder-bodyparts-java-util-list/9108>\
**Category:** Gatling (Open-Source)\
**Tags:** release\
**Created:** [June 25, 2024, 8:13am UTC](https://community.gatling.io/t/nosuchmethoderror-httprequestactionbuilder-bodyparts-java-util-list/9108 "2024-06-25T08:13:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas.v](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nicolas.v](https://community.gatling.io/u/nicolas.v)\
**Post date:** [June 25, 2024, 8:13am UTC](https://community.gatling.io/t/nosuchmethoderror-httprequestactionbuilder-bodyparts-java-util-list/9108/1 "2024-06-25T08:13:03Z")

</div>

**Gatling version** : 3.11.4 (must be up to date)  
**Gatling flavor** : java kotlin scala javascript typescript  
**Gatling build tool** : maven gradle sbt bundle npm

I read the guidelines and how to ask a question topics.  
 I provided a SSCCE (or at least, all information to help the community understand my topic)  
 I copied output I observe, and explain what I think should be.

Hello,

I’m trying to upgrade gatling from 3.10.5.1 to 3.11.4 on my Java project, built with gradle.  
I’ve done a few modifications due to breaking changes : use --simulation parameter ; replace sse.connect() by sse.get().  
But when I try to run my simulation, I get exceptions NoSuchMethodError HttpRequestActionBuilder.bodyParts(java.util.List). My IDE still shows me the method in the decompiled class, so I’m at loss what is going on. Any idea ?

```auto
java.lang.NoSuchMethodError: 'io.gatling.javaapi.http.HttpRequestActionBuilder io.gatling.javaapi.http.HttpRequestActionBuilder.bodyParts(java.util.List)'
        at xx.Endpoints.createBundleWithOauth2(Endpoints.java:87)
        at xx.ApiClient.createBundle(SignApiClient.java:77)
        at xx.Steps.signatures(EsigSteps.java:32)
        at xx.CommonSimulation.innerScenario(CommonSimulation.java:49)
        at xx.Simulation.<init>(BeeSimulation.java:23)
        at xx.Simulation.forMeta(BeeSimulation.java:19)
        at xx.MetaSimulation.<init>(MetaSimulation.java:21)
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67)
        ... 9 common frames omitted
Wrapped by: java.lang.reflect.InvocationTargetException: null
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:79)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:484)
        at io.gatling.app.SimulationClass$Java.params(SimulationClass.scala:47)
        at io.gatling.app.Runner.load(Runner.scala:74)
        at io.gatling.app.Runner.run(Runner.scala:59)
        at io.gatling.app.Gatling$.start(Gatling.scala:86)
        at io.gatling.app.Gatling$.fromArgs(Gatling.scala:48)
        at io.gatling.app.Gatling$.main(Gatling.scala:42)
        at io.gatling.app.Gatling.main(Gatling.scala)
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:79)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:484)
        at io.gatling.app.SimulationClass$Java.params(SimulationClass.scala:47)
        at io.gatling.app.Runner.load(Runner.scala:74)
        at io.gatling.app.Runner.run(Runner.scala:59)
        at io.gatling.app.Gatling$.start(Gatling.scala:86)
        at io.gatling.app.Gatling$.fromArgs(Gatling.scala:48)
        at io.gatling.app.Gatling$.main(Gatling.scala:42)
        at io.gatling.app.Gatling.main(Gatling.scala)
Caused by: java.lang.NoSuchMethodError: 'io.gatling.javaapi.http.HttpRequestActionBuilder io.gatling.javaapi.http.HttpRequestActionBuilder.bodyParts(java.util.List)'

```

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [June 25, 2024, 8:17am UTC](https://community.gatling.io/t/nosuchmethoderror-httprequestactionbuilder-bodyparts-java-util-list/9108/2 "2024-06-25T08:17:23Z")

</div>

You have some bytecode that is still compiled against Gatling 3.10.  
The `bodyParts` method was moved in Gatling 3.10 into a parent class.

---

<div class="post-metadata">

**Author:** ![nicolas.v](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nicolas.v](https://community.gatling.io/u/nicolas.v)\
**Post date:** [June 25, 2024, 8:26am UTC](https://community.gatling.io/t/nosuchmethoderror-httprequestactionbuilder-bodyparts-java-util-list/9108/3 "2024-06-25T08:26:40Z")

</div>

Thanks for the reply !  
I found that I had a dependency to gatling-charts-highcharts that was still referring to 3.10 =\> upgrading it solved the issue.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [June 25, 2024, 8:30am UTC](https://community.gatling.io/t/nosuchmethoderror-httprequestactionbuilder-bodyparts-java-util-list/9108/4 "2024-06-25T08:30:39Z")

</div>


