My Oracle Support Banner

When Attempting To View Details Using HR Views Function Shows Error: "java.lang.NullPointerException" (Doc ID 3013471.1)

Last updated on MARCH 28, 2024

Applies to:

Oracle Self-Service Human Resources - Version 12.2 HRMS RUP17 and later
Information in this document applies to any platform.

Symptoms

Problem Statement:

When attempting view HR View record details for person type Ex-Employee.CWK Or Ex-Employee.Ex-CWK using 'View Selected' button, the following error occurs:

## Detail 0 ##
java.lang.NullPointerException
at oracle.apps.per.selfservice.hrviews.server.EmpPerInfoAMImpl.getSelectedPersonId(EmpPerInfoAMImpl.java:249)
at oracle.apps.per.selfservice.hrviews.server.EmpPerInfoAMImpl.getLegislationCode(EmpPerInfoAMImpl.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

 

Steps to Reproduce:
The issue can be reproduced at will with the following steps:

  1. Login to the Application
  2. Navigate to 'XX Super HRMS Manager' responsibility -> People -> Enter and Maintain
  3. Hire an employee (Example: Say on 01-Jan-2024)
  4. Go to People form -> Others -> End Employment
    Terminate the person with following details:
            Actual Termination Date: 01-Feb-2024
            Final Process Date(FPD): 29-FEB-24  (Make sure the FPD is after Actual)
    Click on Terminate button.

  5. Hire the same person as contingent worker(CWK) on 02-Feb-2024 (If you use any date after actual+1 and before FPD,
    it will not show the record in HR Views Function, so important to use only 02-Feb-2024 day after actual termination date)
  6. Now Navigate to 'HR Professional V4' -> HR Views
  7. Under Simple Search:
    Enter Employee Number: 99999999 (Or Enter any other combination, to query the above Ex-Employee.CWK Or Ex-Employee.Ex-CWK record)
  8. Click on Go Button
  9. Select a record and click on 'View Selected' button - Shows Error.
  10. The same error also occurs if you terminate the CWK and try to view.

NOTE: The above dates are for examples only, you may have different data conditions.

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.