Welcome back to the community!
It’s an ‘internal server error’ so we can try the following first:
- Test using a super user with ALL authority to see if this is an authority issue
- Using the Data Administration app → Maintenance → Clear application cache, reload apps
- After step two, login using your browser’s Guest mode to see if it worked ( Browse Chrome as a guest - Computer - Google Chrome Help)
- If the above doesn’t work, try to restart the instance
Finally, if none of the above works, please share the complete Catalina.out log (without sensitive/authentication errors) so we could see what these server errors are? The ones mentioned in the network log/console in this case are general and only direct us to these logs.
Thanks!
Hi Gassim Sharaf,
I have done a test for this 2 step but it doesn’t work yet and this is my catalina.out
<6>Command line argument: -Djava.io.tmpdir=/var/www/mydomain.com/tomcat-dhis/temp
<6>Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.6.5].
<6>APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
<6>APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
<6>OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020]
<6>Initializing ProtocolHandler [“http-nio-8181”]
<6>Server initialization in [2,073] milliseconds
<6>Starting service [Catalina]
<6>Starting Servlet engine: [Apache Tomcat/9.0.31 (Ubuntu)]
<6>Deploying web application archive [/var/www/mydomain.com/tomcat-dhis/webapps/ROOT.war]
<6>At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
- INFO 2024-10-07T10:13:04,391 Context variable dhis2-home not set (LogOnceLogger.java [main])
- INFO 2024-10-07T10:13:04,419 System property dhis2.home not set (LogOnceLogger.java [main])
- INFO 2024-10-07T10:13:04,429 Environment variable DHIS2_HOME points to /var/www/mydomain.com/config (LogOnceLogger.java [main])
- INFO 2024-10-07T10:13:04,538 File /var/www/mydomain.com/config/dhis-google-auth.json does not exist (LogOnceLogger.java [main])
- INFO 2024-10-07T10:13:04,540 Could not find dhis-google-auth.json (LogOnceLogger.java [main])
- INFO 2024-10-07T10:13:11,079 Monitoring metric for key monitoring.dbpool.enabled is disabled (MetricsEnabler.java [main])
- INFO 2024-10-07T10:13:11,095 Monitoring metric for key monitoring.uptime.enabled is disabled (MetricsEnabler.java [main])
- INFO 2024-10-07T10:13:11,101 Monitoring metric for key monitoring.jvm.enabled is disabled (MetricsEnabler.java [main])
- INFO 2024-10-07T10:13:11,133 Monitoring metric for key monitoring.cpu.enabled is disabled (MetricsEnabler.java [main])
- INFO 2024-10-07T10:13:11,145 Monitoring metric for key monitoring.hibernate.enabled is disabled (MetricsEnabler.java [main])
- INFO 2024-10-07T10:13:12,929 Monitoring metric for key monitoring.api.enabled is disabled (MetricsEnabler.java [main])
- INFO 2024-10-07T10:13:32,198 Hibernate configuration loaded: dialect: ‘org.hisp.dhis.hibernate.dialect.DhisPostgresDialect’, region factory: ‘org.hibernate.cache.ehcache.EhCacheRegionFactory’, connection pool max size: null (DefaultHibernateConfigurationProvider.java [main])
- INFO 2024-10-07T10:13:36,035 Database pool type value is [C3P0] (DatabasePoolUtils.java [main])
- INFO 2024-10-07T10:13:46,435 Simple Local Cache instance created for region:‘periodCache’ (SimpleCacheBuilder.java [main])
- INFO 2024-10-07T10:14:07,795 Read only configuration initialized, read replicas found: 0 (ReadOnlyDataSourceManager.java [main])
- INFO 2024-10-07T10:14:12,226 DHIS 2 Version: 2.40.4.1, Revision: a1aa81b, Build date: Thu Jul 04 09:08:32 EAT 2024, Database name: dhis2, Java version: 11.0.24 (DefaultSystemService.java [main])
- INFO 2024-10-07T10:14:13,006 Initialized NoOp leader manager with node UUID: ‘91561f47-0d0a-41a2-8ab5-a7c5234f495b’ and node ID: ‘’ (NoOpLeaderManager.java [main])
- INFO 2024-10-07T10:14:13,058 Initializing Log4j, max file size: ‘100MB’, max file archives: 1 (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:13,118 Added logger: org.hisp.dhis.resourcetable using file: /var/www/mydomain.com/config/logs/dhis-analytics-table.log (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:13,119 Added logger: org.hisp.dhis.analytics.table using file: /var/www/mydomain.com/config/logs/dhis-analytics-table.log (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:13,121 Added logger: org.hisp.dhis.dxf2 using file: /var/www/mydomain.com/config/logs/dhis-data-exchange.log (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:13,123 Added logger: org.hisp.dhis.dxf2.sync using file: /var/www/mydomain.com/config/logs/dhis-data-sync.log (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:13,125 Added logger: org.hisp.dhis.dxf2.metadata using file: /var/www/mydomain.com/config/logs/dhis-metadata-sync.log (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:13,126 Added logger: org.hisp.dhis.pushanalysis using file: /var/www/mydomain.com/config/logs/dhis-push-analysis.log (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:13,170 Added logger: org.hisp.dhis.audit using file: /var/www/mydomain.com/config/logs/dhis-audit.log (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:13,172 Added root logger using file: /var/www/mydomain.com/config/logs/dhis.log (Log4JLogConfigInitializer.java [main])
- INFO 2024-10-07T10:14:19,575 File store configured with provider: ‘filesystem’, container: ‘files’ and location: ‘’. (JCloudsFileResourceContentStore.java [main])
- INFO 2024-10-07T10:14:21,437 File store configured with provider: ‘filesystem’, container: ‘files’ and location: ‘’. (JCloudsAppStorageService.java [main])
- INFO 2024-10-07T10:14:21,460 Old apps folder does not exist, stopping discovery (LocalAppStorageService.java [main])
- INFO 2024-10-07T10:14:21,462 Starting JClouds discovery (JCloudsAppStorageService.java [main])
- INFO 2024-10-07T10:14:21,506 No apps found during JClouds discovery. (JCloudsAppStorageService.java [main])
- INFO 2024-10-07T10:14:34,953 Starting embedded Artemis ActiveMQ server. (ArtemisManager.java [main])
- INFO 2024-10-07T10:14:36,621 Scheduled monitoring service (DefaultMonitoringService.java [main])
- INFO 2024-10-07T10:14:40,942 Following listeners are registered: [org.hisp.dhis.sms.listener.TrackerEventSMSListener@7e88689f, org.hisp.dhis.sms.listener.EnrollmentSMSListener@7ffe6d24, org.hisp.dhis.sms.listener.ProgramStageDataEntrySMSListener@1c31be82, org.hisp.dhis.sms.listener.AggregateDataSetSMSListener@46700e42, org.hisp.dhis.sms.listener.TrackedEntityRegistrationSMSListener@76aaf371, org.hisp.dhis.sms.listener.DeleteEventSMSListener@6d5eaf7e, org.hisp.dhis.sms.listener.RelationshipSMSListener@6fa7a81c, org.hisp.dhis.sms.listener.DhisMessageAlertListener@beb5a55, org.hisp.dhis.sms.listener.SingleEventListener@323930fc, org.hisp.dhis.sms.listener.DataValueSMSListener@b14d5b0, org.hisp.dhis.sms.listener.UnregisteredSMSListener@20b74e26, org.hisp.dhis.sms.listener.J2MEDataValueSMSListener@6c7d8874, org.hisp.dhis.sms.listener.SimpleEventSMSListener@6f15bcb5] (SmsConsumerThread.java [main])
- INFO 2024-10-07T10:14:41,060 SMS consumer started (DefaultSmsConsumerService.java [main])
- WARN 2024-10-07T10:14:42,942 You are asking Spring Security to ignore Ant [pattern=‘/api/ping’]. This is not recommended – please use permitAll via HttpSecurity#authorizeHttpRequests instead. (WebSecurity.java [main])
- INFO 2024-10-07T10:14:48,047 No Gateway configuration found (DefaultGatewayAdministrationService.java [main])
- INFO 2024-10-07T10:14:48,072 Executing startup routine [1 of 8, runlevel 2]: defaultAdminUserPopulator (DefaultStartupRoutineExecutor.java [main])
- INFO 2024-10-07T10:14:48,160 Executing startup routine [2 of 8, runlevel 3]: PeriodTypePopulator (DefaultStartupRoutineExecutor.java [main])
- INFO 2024-10-07T10:14:48,283 Executing startup routine [3 of 8, runlevel 4]: DataElementDefaultDimensionPopulator (DefaultStartupRoutineExecutor.java [main])
- INFO 2024-10-07T10:14:49,630 Executing startup routine [4 of 8, runlevel 7]: ModelUpgrader (DefaultStartupRoutineExecutor.java [main])
- INFO 2024-10-07T10:14:49,692 Executing startup routine [5 of 8, runlevel 12]: ConfigurationPopulator (DefaultStartupRoutineExecutor.java [main])
- WARN 2024-10-07T10:14:49,695 Encryption not configured: encryption.password in dhis.conf too short, minimum 24 characters required (ConfigurationPopulator.java [main])
- INFO 2024-10-07T10:14:49,700 Executing startup routine [6 of 8, runlevel 13]: I18nLocalePopulator (DefaultStartupRoutineExecutor.java [main])
- INFO 2024-10-07T10:14:49,733 Executing startup routine [7 of 8, runlevel 14]: SettingUpgrader (DefaultStartupRoutineExecutor.java [main])
- INFO 2024-10-07T10:14:49,737 Executing startup routine [8 of 8, runlevel 15]: SchedulerStart (DefaultStartupRoutineExecutor.java [main])
- INFO 2024-10-07T10:14:49,755 Setting up default jobs. (SchedulerStart.java [main])
- INFO 2024-10-07T10:14:49,813 Scheduling job: JobConfiguration{uid=‘fUWM1At1TUx’, name=‘User account expiry alert’, jobType=ACCOUNT_EXPIRY_ALERT, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:49,903 Job fUWM1At1TUx of type ACCOUNT_EXPIRY_ALERT has been added to the schedule (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:49,904 Scheduled job: JobConfiguration{uid=‘fUWM1At1TUx’, name=‘User account expiry alert’, jobType=ACCOUNT_EXPIRY_ALERT, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:49,944 Scheduling job: JobConfiguration{uid=‘YvAwAmrqAtN’, name=‘Dataset notification’, jobType=DATA_SET_NOTIFICATION, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:49,947 Job YvAwAmrqAtN of type DATA_SET_NOTIFICATION has been added to the schedule (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:49,948 Scheduled job: JobConfiguration{uid=‘YvAwAmrqAtN’, name=‘Dataset notification’, jobType=DATA_SET_NOTIFICATION, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:49,996 Scheduling job: JobConfiguration{uid=‘uwWCT2BMmlq’, name=‘Remove expired or used reserved values’, jobType=REMOVE_USED_OR_EXPIRED_RESERVED_VALUES, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:49,999 Job uwWCT2BMmlq of type REMOVE_USED_OR_EXPIRED_RESERVED_VALUES has been added to the schedule (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:49,999 Scheduled job: JobConfiguration{uid=‘uwWCT2BMmlq’, name=‘Remove expired or used reserved values’, jobType=REMOVE_USED_OR_EXPIRED_RESERVED_VALUES, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,034 Scheduling job: JobConfiguration{uid=‘vt21671bgno’, name=‘System version update check notification’, jobType=SYSTEM_VERSION_UPDATE_CHECK, cronExpression=‘6 21 4 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,036 Job vt21671bgno of type SYSTEM_VERSION_UPDATE_CHECK has been added to the schedule (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,036 Scheduled job: JobConfiguration{uid=‘vt21671bgno’, name=‘System version update check notification’, jobType=SYSTEM_VERSION_UPDATE_CHECK, cronExpression=‘6 21 4 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,072 Scheduling job: JobConfiguration{uid=‘pd6O228pqr0’, name=‘File resource clean up’, jobType=FILE_RESOURCE_CLEANUP, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,075 Job pd6O228pqr0 of type FILE_RESOURCE_CLEANUP has been added to the schedule (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,075 Scheduled job: JobConfiguration{uid=‘pd6O228pqr0’, name=‘File resource clean up’, jobType=FILE_RESOURCE_CLEANUP, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,106 Scheduling job: JobConfiguration{uid=‘BFa3jDsbtdO’, name=‘Data statistics’, jobType=DATA_STATISTICS, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,109 Job BFa3jDsbtdO of type DATA_STATISTICS has been added to the schedule (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,109 Scheduled job: JobConfiguration{uid=‘BFa3jDsbtdO’, name=‘Data statistics’, jobType=DATA_STATISTICS, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,155 Scheduling job: JobConfiguration{uid=‘Js3vHn2AVuG’, name=‘Validation result notification’, jobType=VALIDATION_RESULTS_NOTIFICATION, cronExpression=‘0 0 7 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,174 Job Js3vHn2AVuG of type VALIDATION_RESULTS_NOTIFICATION has been added to the schedule (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,175 Scheduled job: JobConfiguration{uid=‘Js3vHn2AVuG’, name=‘Validation result notification’, jobType=VALIDATION_RESULTS_NOTIFICATION, cronExpression=‘0 0 7 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,208 Scheduling job: JobConfiguration{uid=‘sHMedQF7VYa’, name=‘Credentials expiry alert’, jobType=CREDENTIALS_EXPIRY_ALERT, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,215 Job sHMedQF7VYa of type CREDENTIALS_EXPIRY_ALERT has been added to the schedule (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,216 Scheduled job: JobConfiguration{uid=‘sHMedQF7VYa’, name=‘Credentials expiry alert’, jobType=CREDENTIALS_EXPIRY_ALERT, cronExpression=‘0 0 2 ? * *’, delay=‘null’, jobParameters=null, enabled=true, inMemoryJob=false, lastRuntimeExecution=‘null’, userUid=‘null’, leaderOnlyJob=false, jobStatus=SCHEDULED, nextExecutionTime=null, lastExecutedStatus=NOT_STARTED, lastExecuted=null} (DefaultSchedulingManager.java [main])
- INFO 2024-10-07T10:14:50,216 All startup routines done (DefaultStartupRoutineExecutor.java [main])
<6>Deployment of web application archive [/var/www/mydomain.com/tomcat-dhis/webapps/ROOT.war] has finished in [160,113] ms
<6>Starting ProtocolHandler [“http-nio-8181”]
<6>Server startup in [160,705] milliseconds - INFO 2024-10-07T10:15:09,887 Authentication event: AuthenticationSuccessEvent; username: admin; ip: 127.0.0.1; sessionId: 2385e782a005c7933655e24bf99cb7b94507f97118928467bc3c43f1c1a6cec5 (AuthenticationLoggerListener.java [http-nio-8181-exec-8])
- INFO 2024-10-07T10:24:05,082 (admin) Export:Start (DefaultMetadataExportService.java [http-nio-8181-exec-5]) IDwwY7x5YrsjWFXwrPENPq9ulbKFZwI2r3riNQXR2k/vU=
- INFO 2024-10-07T10:24:05,270 (admin) Exported 147 objects of type TrackedEntityAttribute (DefaultMetadataExportService.java [http-nio-8181-exec-5]) IDwwY7x5YrsjWFXwrPENPq9ulbKFZwI2r3riNQXR2k/vU=
- INFO 2024-10-07T10:24:05,291 (admin) Exported 1 objects of type Program (DefaultMetadataExportService.java [http-nio-8181-exec-5]) IDwwY7x5YrsjWFXwrPENPq9ulbKFZwI2r3riNQXR2k/vU=
- INFO 2024-10-07T10:24:05,435 (admin) Exported 232 objects of type DataElement (DefaultMetadataExportService.java [http-nio-8181-exec-5]) IDwwY7x5YrsjWFXwrPENPq9ulbKFZwI2r3riNQXR2k/vU=
- INFO 2024-10-07T10:24:05,440 (admin) Export:Done took 0.365001 sec. (DefaultMetadataExportService.java [http-nio-8181-exec-5]) IDwwY7x5YrsjWFXwrPENPq9ulbKFZwI2r3riNQXR2k/vU=
- ERROR 2024-10-07T10:24:05,682 java.lang.Exception (CrudControllerAdvice.java [http-nio-8181-exec-5]) IDwwY7x5YrsjWFXwrPENPq9ulbKFZwI2r3riNQXR2k/vU=
java.lang.NullPointerException: null
at org.hisp.dhis.user.DefaultUserGroupService.lambda$getDisplayName$2(DefaultUserGroupService.java:227) ~[dhis-service-core-2.40.4.1.jar:?]
at org.hisp.dhis.cache.LocalCache.get(LocalCache.java:101) ~[dhis-api-2.40.4.1.jar:?]
at org.hisp.dhis.user.DefaultUserGroupService.getDisplayName(DefaultUserGroupService.java:227) ~[dhis-service-core-2.40.4.1.jar:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:241) ~[spring-aop-5.3.37.jar:5.3.37]
at com.sun.proxy.$Proxy157.getDisplayName(Unknown Source) ~[?:?]
at org.hisp.dhis.fieldfiltering.FieldFilterService.lambda$applySharingDisplayNames$7(FieldFilterService.java:460) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at java.base/java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:608) ~[?:?]
at org.hisp.dhis.fieldfiltering.FieldFilterService.lambda$applySharingDisplayNames$11(FieldFilterService.java:460) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.fieldfiltering.FieldPathHelper.visitFieldPath(FieldPathHelper.java:251) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.fieldfiltering.FieldPathHelper.visitFieldPath(FieldPathHelper.java:269) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.fieldfiltering.FieldPathHelper.lambda$visitFieldPaths$11(FieldPathHelper.java:242) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
at org.hisp.dhis.fieldfiltering.FieldPathHelper.visitFieldPaths(FieldPathHelper.java:242) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.fieldfiltering.FieldFilterService.lambda$applyFieldPathVisitor$2(FieldFilterService.java:326) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
at org.hisp.dhis.fieldfiltering.FieldFilterService.applyFieldPathVisitor(FieldFilterService.java:323) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.fieldfiltering.FieldFilterService.applySharingDisplayNames(FieldFilterService.java:440) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.fieldfiltering.FieldFilterService.toObjectNodes(FieldFilterService.java:236) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.fieldfiltering.FieldFilterService.toObjectNodesStream(FieldFilterService.java:264) ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.fieldfiltering.FieldFilterService$$FastClassBySpringCGLIB$$aa67c9e7.invoke() ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:792) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:707) ~[spring-aop-5.3.37.jar:5.3.37]
at org.hisp.dhis.fieldfiltering.FieldFilterService$$EnhancerBySpringCGLIB$$a10187ea.toObjectNodesStream() ~[dhis-service-field-filtering-2.40.4.1.jar:?]
at org.hisp.dhis.dxf2.metadata.DefaultMetadataExportService.getMetadataAsObjectNodeStream(DefaultMetadataExportService.java:294) ~[dhis-service-dxf2-2.40.4.1.jar:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) ~[spring-tx-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.37.jar:5.3.37]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:241) ~[spring-aop-5.3.37.jar:5.3.37]
at com.sun.proxy.$Proxy175.getMetadataAsObjectNodeStream(Unknown Source) ~[?:?]
at org.hisp.dhis.webapi.mvc.messageconverter.MetadataExportParamsMessageConverter.writeInternal(MetadataExportParamsMessageConverter.java:139) ~[dhis-web-api-2.40.4.1.jar:?]
at org.hisp.dhis.webapi.mvc.messageconverter.MetadataExportParamsMessageConverter.writeInternal(MetadataExportParamsMessageConverter.java:56) ~[dhis-web-api-2.40.4.1.jar:?]
at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:227) ~[spring-web-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:293) ~[spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:219) ~[spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:78) ~[spring-web-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:135) ~[spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:903) ~[spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:809) ~[spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072) [spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965) [spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [spring-webmvc-5.3.37.jar:5.3.37]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) [spring-webmvc-5.3.37.jar:5.3.37]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) [tomcat9-servlet-api.jar:?]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [spring-webmvc-5.3.37.jar:5.3.37]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) [tomcat9-servlet-api.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.hisp.dhis.webapi.security.switchuser.DhisSwitchUserFilter.doFilter(DhisSwitchUserFilter.java:56) [dhis-web-api-2.40.4.1.jar:?]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354) [spring-web-5.3.37.jar:5.3.37]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267) [spring-web-5.3.37.jar:5.3.37]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.hisp.dhis.webapi.filter.AppOverrideFilter.doFilterInternal(AppOverrideFilter.java:99) [dhis-web-api-2.40.4.1.jar:?]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.37.jar:5.3.37]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354) [spring-web-5.3.37.jar:5.3.37]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267) [spring-web-5.3.37.jar:5.3.37]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.hisp.dhis.webapi.filter.RequestIdentifierFilter.doFilterInternal(RequestIdentifierFilter.java:82) [dhis-web-api-2.40.4.1.jar:?]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.37.jar:5.3.37]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354) [spring-web-5.3.37.jar:5.3.37]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267) [spring-web-5.3.37.jar:5.3.37]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat9-websocket-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:106) [spring-web-5.3.37.jar:5.3.37]
at org.hisp.dhis.webapi.filter.ExcludableShallowEtagHeaderFilter.doFilterInternal(ExcludableShallowEtagHeaderFilter.java:120) [dhis-web-api-2.40.4.1.jar:?]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.37.jar:5.3.37]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.hisp.dhis.servlet.filter.HttpUrlPatternFilter.doFilter(HttpUrlPatternFilter.java:100) [dhis-web-commons-2.40.4.1.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat9-catalina-9.0.31.jar:9.0.31]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:352) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:117) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:131) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:85) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:164) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:182) [spring-security-oauth2-2.5.2.RELEASE.jar:?]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:168) [spring-security-web-5.8.13.jar:5.8.13]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.37.jar:5.3.37]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361) [spring-security-web-5.8.13.jar:5.8.13]
at org.hisp.dhis.webapi.security.apikey.Dhis2ApiTokenFilter.doFilterInternal(Dhis2ApiTokenFilter.java:112) [dhis-web-api-2.40.4.1.jar:?]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) [spring-web-5.3.37.jar:5.3.37]
Hi again @ANDRIAMIHAJA_Solonia
Sorry none of the suggestions above worked, would you by any chance be able to update to the latest version
I see that you’re using 2.40.4.1 and the latest is 2.40.5; additionally, I suggest having a look at the solution for a similar issue below:
Maybe the solution provided by @Sweety_Sharma will work for you. If it does we’ll move this topic there. Thank you!