Dear DHIS2 Development Team,
I’m currently working with the DHIS2 core Java code for Amakomaya and encountering compatibility across versions, which have been discussed in past threads.
Issue Summary:
I encountered an error while setting up the DHIS2 core application with the Nepali calendar configuration.
Development setup
Code: GitHub - dhis2/dhis2-core: DHIS 2 Core. Written in Java. Contains the service layer and Web API.
Branch: Master(2.42-SNAPSHOT) or patch/2.41.1
Step to Reproduce Error:
1.Fetch code
2. Build using → ./dhis-2/build-dev.sh
3. docker compose up
Open browser → http://127.0.0.1:8080/
4. Change settings to nepali Calendar
5. Resource table run or analytics run
Observed Issue:
- Cannot load from int array because the return value of “java.util.Map.get(Object)” is null
- skipped stage. 0 successful and 1 failed items
Screenshot :
Log File:
nepalicalender-log.doc (26.7 KB)
Following @rcpoudel recommendation, I encountered a null pointer exception while generating PeriodType.java, DatePeriodResourceTable.java. The main challenges include generating resource tables and storing Nepali dates in the enrollment, incident, and report date fields within the database. Amakomaya has emphasized that the solution should be permanent and directly integrated into the core code. Any guidance on implementing this effectively and resolving the null pointer exception would be greatly appreciated!