SOAPUI - NullPointerException occasionally occurs when running test suite.
Dump from Test Results Directory
Bad Test:
Status: FAILED
Time Taken: 0
Size: 0
Timestamp: Wed Feb 19 09:51:42 EST 2025
TestStep: getId----------------- Messages ------------------------------
java.lang.NullPointerException: Cannot invoke "java.net.URI.getHost()" because the return value of "com.eviware.soapui.impl.wsdl.submit.transports.http.ExtendedHttpMethod.getURI()" is null
- missing response / garbage collected -
Good Test:
Status: OK
Time Taken: 426
Size: 2448
Timestamp: Wed Feb 19 09:55:31 EST 2025
TestStep: getId----------------- Messages ------------------------------
----------------- Properties ------------------------------
HTTP Version: HTTP/1.1
Endpoint: http://localhost:8000/v1
Username: username
Method: GET
StatusCode: 200
URL: http://localhost:8000/v1/getId/5
Password: password---------------- Request ---------------------------
Authorization: [Basic {AUTH_TOKEN_HERE}]
Connection: [Keep-Alive]
User-Agent: [Apache-HttpClient/4.5.5 (Java/17.0.12)]
Host: [localhost:8000]
Accept-Encoding: [gzip,deflate]GET http://localhost:8000/v1/getId/5 HTTP/1.1
Accept-Encoding: gzip,deflate
Authorization: Basic {AUTH_TOKEN_HERE}
Host: localhost:8000
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/17.0.12)
---------------- Response --------------------------
Transfer-Encoding: [chunked]
Server: [Apache/2.10.16]
Connection: [Keep-Alive]
#status#: [HTTP/1.1 200 OK]
Date: [Wed, 19 Feb 2025 14:55:32 GMT]
Content-Type: [application/json]{ "id": 5,
"data":{
"name": "John Doe",
"state:" "AZ"
}
}
Some of this data has been obfuscated for security purposes, but this is the general format of request. Test have not been changed in between nor have the parameters. I believe it is a bug, but was hoping someone else saw something like this.