Registry Services fails to create or update a Registration Record when it tries to resolve existing relationships

Technote (troubleshooting)


Problem(Abstract)


When Registry Services receives an HTTP request to create or update a Registration Record, it fails to complete the request because of a NullPointerException that occurs when it tries to resolve existing relationships.

Symptom

When you send an HTTP request to Registry Services to register or update a Registration Record, Registry Services looks for existing relationships pointing to the Registration Record because it needs to resolve those relationships.

If the existing relationship is part of a Registration Record for which there is no associated Resource Shape, Registry Services throws a NullPointerException and returns an HTTP status code 500 (Internal Server Error) with the following error message in the response:

CTJFK0013E The incoming request from the IP <requester_ip_address> did not end successfully. The Registry Services application found an internal error while processing the request to update|create a Registration Record request for the given parameters: <registration_product_uri>|<registry_collection_uri>. The specific reason for this error is: java.lang.NullPointerException.


Cause

This problem is caused by an internal server error. The server assumes that there is always a Resource Shape associated with the Registration Records that references the record being updated.

With this incorrect assumption, the server code fails to process the situation where this Resource Shape is not defined.

Environment

All supported Jazz for Service Management middleware and operating system platforms.

Diagnosing the problem

Verify your application server log file and look for one of the following traces:

- For Registration Record creation (HTTP POST):

CTJFK0011E The incoming request from the <requester_ip_address> did not end successfully. The Registry Services application found an internal error while processing the request to create a registration record for the given parameters: "http://oslc-registry/oslc/rr/registration/collection". The specific reason for this error is: java.lang.NullPointerException.

                                 java.lang.NullPointerException
    at com.ibm.frs.persistence.RegistrationManager.resolveExistingRelationships(RegistrationManager.java:865)
    at com.ibm.frs.persistence.RegistrationManager.doRegister(RegistrationManager.java:346)
    at com.ibm.frs.persistence.RegistrationManager.register(RegistrationManager.java:101)
    at com.ibm.frs.oslc.web.OslcRrService.createRegistrationRecord_aroundBody2(OslcRrService.java:318)
    at com.ibm.frs.oslc.web.OslcRrService.createRegistrationRecord_aroundBody3$advice(OslcRrService.java:62)
    at com.ibm.frs.oslc.web.OslcRrService.createRegistrationRecord(OslcRrService.java:1)
    at com.ibm.frs.oslc.web.OslcRrService.createRegistrationRecord_aroundBody0(OslcRrService.java:216)
    at com.ibm.frs.oslc.web.OslcRrService.createRegistrationRecord_aroundBody1$advice(OslcRrService.java:86)
    at com.ibm.frs.oslc.web.OslcRrService.createRegistrationRecord(OslcRrService.java:196)



- For Registration Record update (HTTP PUT):

CTJFK0013E The incoming request from the IP <requester_ip_address> did not end successfully. The Registry Services application found an internal error while processing the request to update a registration record request for the given parameters: <registration_product_uri>. The specific reason for this error is: java.lang.NullPointerException.

                                 java.lang.NullPointerException
    at com.ibm.frs.persistence.RegistrationManager.resolveExistingRelationships(RegistrationManager.java:865)
    at com.ibm.frs.persistence.ReconciliationManager.doReconciliationForUpdate(ReconciliationManager.java:577)
    at com.ibm.frs.persistence.RegistrationManager.updateRegistrationRecord(RegistrationManager.java:548)
    at com.ibm.frs.persistence.RegistrationManager.updateRegistrationRecord(RegistrationManager.java:487)
    at com.ibm.frs.persistence.RegistrationManager.update(RegistrationManager.java:461)
    at com.ibm.frs.oslc.web.OslcRegistrationService.updateRegistrationRecord_aroundBody4(OslcRegistrationService.java:476)
    at com.ibm.frs.oslc.web.OslcRegistrationService.updateRegistrationRecord_aroundBody5$advice(OslcRegistrationService.java:86)
    at com.ibm.frs.oslc.web.OslcRegistrationService.updateRegistrationRecord_aroundBody6(OslcRegistrationService.java:349)
    at com.ibm.frs.oslc.web.OslcRegistrationService.updateRegistrationRecord_aroundBody7$advice(OslcRegistrationService.java:156)
    at com.ibm.frs.oslc.web.OslcRegistrationService.updateRegistrationRecord(OslcRegistrationService.java:1)

Resolving the problem

The solution for this defect is available in the 1.1.0-TIV-JazzSM-Registry-multi-FP001 package.


Ensure that you have this Registry Services Fix Pack 1.1.0.1 version or later installed in your environment.

For more information, see the APAR IV47054.

Related information

Creating Registration Records
Updating Registration Records

Rate this page:

(0 users)Average rating

Document information


More support for:

Tivoli Components
Jazz for Service Management

Software version:

1.1

Operating system(s):

AIX, Linux, Windows

Reference #:

1647180

Modified date:

2014-07-14

Translate my page

Machine Translation

Content navigation