I am trying to Post the output.xml generated after run the scripts to xray and i got error An exception occurred while handling a v2 REST API request: java.lang.NullPointerException. Here my curl
curl -v -H “Content-Type: multipart/form-data” -u :* -F “file=@output.xml” “https://.*.vn/rest/raven/1.0/import/execution/robot?testExecKey=DRBP-36913”
- Host tdcjira.abbank.vn:443 was resolved.
- IPv6: (none)
- IPv4: ...*
- Trying ...*:443…
- Connected to ***.vn (...) port 443
- ALPN: curl offers h2,http/1.1
- (304) (OUT), TLS handshake, Client hello (1):
- CAfile: /etc/ssl/cert.pem
- CApath: none
- (304) (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS handshake, Certificate (11):
- TLSv1.2 (IN), TLS handshake, Server key exchange (12):
- TLSv1.2 (IN), TLS handshake, Server finished (14):
- TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
- TLSv1.2 (OUT), TLS handshake, Finished (20):
- TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
- TLSv1.2 (IN), TLS handshake, Finished (20):
- SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 / [blank] / UNDEF
- ALPN: server did not agree on a protocol. Uses default.
- Server certificate:
- subject: C=VN; ST=Ho Chi Minh; L=Ho Chi Minh; O=; CN=....**
- start date: Jun 3 04:22:02 2024 GMT
- expire date: Jul 2 08:16:03 2025 GMT
- subjectAltName: host “t**...n" matched cert’s "...**”
- issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign RSA OV SSL CA 2018
- SSL certificate verify ok.
- using HTTP/1.x
- Server auth using Basic with user ‘*********’
POST /rest/raven/1.0/import/execution/robot?testExecKey=DRBP-36913 HTTP/1.1
Host: tdcjira.abbank.vn
Authorization: Basic cGFydG5lcnRodXlodnQ6QW5oa2hvYUAyMDIy
User-Agent: curl/8.7.1
Accept: /
Content-Length: 272092
Content-Type: multipart/form-data; boundary=------------------------whUEznHFGLUky4XHuOh2e0
- upload completely sent off: 272092 bytes
< HTTP/1.1 500
< X-AREQUESTID: 989x264154x5
< Referrer-Policy: strict-origin-when-cross-origin
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< Content-Security-Policy: sandbox
< Strict-Transport-Security: max-age=31536000
< Set-Cookie: JSESSIONID=281F0DB671979C358D187B8772BB8A44; Path=/; HttpOnly
< X-Seraph-LoginReason: OK
< Set-Cookie: atlassian.xsrf.token=B4M1-1TEP-HO3Q-2CZK_ca77838401df51b5086f1deed6cfb7f8a5a7428e_lin; Path=/
< X-ASESSIONID: o7dlx4
< X-AUSERNAME: *********
< Cache-Control: no-cache, no-transform
< Vary: Accept
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Mon, 14 Apr 2025 09:29:05 GMT
< Connection: close
< - Closing connection
{“error”:“An exception occurred while handling a v2 REST API request: java.lang.NullPointerException”}%
============
i use Robot ver 7.0.1
Jira XRay Server Jira v8.22.1