Skip to content

Error after upgrade to DOORS NG 7.0.2 oslcquery with a 400 response code and ClassCastException #49

@kpribadi

Description

@kpribadi

Hello:
After implementing the DOORS NG 7.02 upgrade I encountered this error: [ClassCastException: com.ibm.rdm.service.views.model.impl.View incompatible with com.ibm.rdm.service.artifacts.model.IArtifact] at 292th page as shown at the bottom of this log file. Prior to upgrade the query works fine with DOORS NG 6.x.x

First line from the log file:

2023-10-10 17:04:54,930 [TRACE|elmclient.utils] COMMANDLINE: oslcquery -p RM_PROJECT -F "s" -r Requirement -s "s" -O output\RM_PROJECT_artifacts.csv --pagesize 200 -R -N -L INFO -U REDACTED -P REDACTED

--- 488000+ lines ---

Last lines from the log file:

INTENT: Retrieve 292th page of OSLC query results

GET https://rm01.redacted.com:9443/rm/views?oslc.pageSize=200&oslc.paging=true&oslc.prefix=dcterms%3D%3Chttp%3A%2F%2Fpurl.org---REDACTED---&page=292
Accept: application/rdf+xml
Accept-Encoding: gzip, deflate
Cache-Control: no-store, max-age=0
Connection: keep-alive
Cookie: jfs-oauth-access-token0=REDACTEDTOKEN; jfs-oauth-access_token-secret0=REDACTEDTOKEN; JAZZ_AUTH_TOKEN=REDACTEDTOKEN; JSESSIONID=REDACTEDTOKEN; LtpaToken2=REDACTEDTOKEN
OSLC-Core-Version: 2.0
Referer: https://rm01.redacted.com:9443/rm/web
User-Agent: python-requests/2.31.0
X-Requested-With: XMLHttpRequest

2023-10-10 17:16:43,817 [TRACE|elmclient.httpops]
WIRE: response ----- 400

Response: 400
Connection: close
Content-Encoding: gzip
Content-Language: en-US
Content-Type: application/rdf+xml; charset=UTF-8
Date: Wed, 11 Oct 2023 00:16:41 GMT
Set-Cookie: JAZZ_AUTH_TOKEN=REDACTEDTOKEN; Path=/rm; Secure; HttpOnly; SameSite=None
Strict-Transport-Security: max-age=31536000
Transfer-Encoding: chunked
Vary: Accept-Encoding
Warning: 110 - "Automatically cached! Response is Stale."
X-Powered-By: Servlet/3.0
X-com-ibm-team-Trace-Identifier: 136C1829
cache-control: public
expires: Wed, 18 Oct 2023 00:16:41 -0000

::::::::::@
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:err="http://jazz.net/xmlns/prod/jazz/foundation/1.0/">
rdf:Description
<err:detailedMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Propagated exception; original message [ClassCastException: com.ibm.rdm.service.views.model.impl.View incompatible with com.ibm.rdm.service.artifacts.model.IArtifact]</err:detailedMessage>
<err:errorMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Bad Request</err:errorMessage>
<err:errorStatus rdf:datatype="http://www.w3.org/2001/XMLSchema#long"
>400</err:errorStatus>
</rdf:Description>
</rdf:RDF>

----------@

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<!

2023-10-10 17:16:43,817 [TRACE|elmclient.httpops] HTTPError 400 Client Error: Bad Request for url: https://rm01.redacted.com:9443/rm/views?oslc.pageSize=200&oslc.paging=true&oslc.prefix=dcterms%3D%3Chttp%3A%2F%2Fpurl.org---REDACTED---&page=292
2023-10-10 17:16:43,817 [TRACE|elmclient.httpops] WIRE: handle content-style auth redirect
2023-10-10 17:16:43,817 [ERROR|elmclient.httpops] Exception on executing request. URL: https://rm01.redacted.com:9443/rm/views?oslc.pageSize=200&oslc.paging=true&oslc.prefix=dcterms%3D%3Chttp%3A%2F%2Fpurl.org---REDACTED---&page=292, 400, <rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:err="http://jazz.net/xmlns/prod/jazz/foundation/1.0/">
rdf:Description
<err:detailedMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Propagated exception; original message [ClassCastException: com.ibm.rdm.service.views.model.impl.View incompatible with com.ibm.rdm.service.artifacts.model.IArtifact]</err:detailedMessage>
<err:errorMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Bad Request</err:errorMessage>
<err:errorStatus rdf:datatype="http://www.w3.org/2001/XMLSchema#long"
>400</err:errorStatus>
</rdf:Description>
</rdf:RDF>

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions