java – Cannot create objects in Runnable’s run method

I have created a class that implements runnable and in its run method I want to multithread rest-assured requests. I created a model class for the post body of these requests that implements the lombok builder. Here is the code in the run class:

    public void run() {
        try {
            System.out.println("In run");
            RequestSpecification requestSpecification = new RequestSpecBuilder()
                    .setRelaxedHTTPSValidation()
                    .addFilters(Arrays.asList(new RequestLoggingFilter()))
                    .setBaseUri(BASE_URL)
                    .build();
            System.out.println("Request spec Created");
            DataModel dataModel = DataModel.builder().build();
            System.out.println("Data Model Created");
            given()
                    .spec(requestSpecification)
                    .basePath(BASE_PATH)
                    .when()
                    .body(dataModel)
                    .post();

        } catch (Exception e) {
            System.out.println("Exception");
            e.printStackTrace();
        }
    }

I found that the requests were not getting sent and upon further investigation I found that the run ceased on the request body object creation (see above).

Here is the output:

About to enter run
About to enter run
In run
About to enter run
In run
About to enter run
In run
About to enter run
In run
About to enter run
In run
About to enter run
In run
About to enter run
In run
Request spec Created
Request spec Created
In run
Request spec Created
Request spec Created
Request spec Created
Request spec Created
Request spec Created
Request spec Created

Is there some reason why I can’t build an object here?

A