← Back to team overview

dhis2-devs team mailing list archive

Re: Unable to get schemas from the DHIS2 API.

 

Thank you very much for your prompt reply. But interestingly, the account
was not in-active even for one minute. While I log into dhis2 and then try
to got any other app (system settings, maintenance etc.) or even I reload
the dashboard page, 5 out of 10 times it provides this error.
Also in the chrome browser console I received following error.

[image: image.png]

Thanks & Regards,
Rakib

On Thu, Oct 25, 2018 at 11:11 AM Walusiku Muyunda <jomuwalu@xxxxxxxxx>
wrote:

> From the few months experience, this is usually caused by an expired
> session token. If you login to your dhis2 and remain in-active for some few
> minutes (30 in my case), your session expires while you remain logged in
> and if you try to do anything else, you get blocked and this error. Login
> out and back in has been our way round this. There should be a place where
> you configure maximum allowed inactivity time but I cant remember where
> just now, am sure the more experienced users will advise.
>
> Hope this helps even a bit.
>
>
>
> *Walusiku J. Muyunda*
>
>
> *Cell: +260967006614Cell: +260971000614*
>
> *"We have heaven to win and hell to shun, our lives testify better!"
> <http://wildvoices.blogspot.com/>*
>
>
> On Thu, Oct 25, 2018 at 6:01 AM Nibras Rakib <nibrasarrakib@xxxxxxxxx>
> wrote:
>
>> Dear developers,
>>
>> While using DHIS2 (version-2.29), sometimes, we are facing following
>> error on the browser.
>>
>> Unable to get schemas from the DHIS2 API.
>>
>> While tailing the dhis.log file, we found following message:-
>>
>> WARN  2018-10-25 09:02:02,525 Failed to invoke @ExceptionHandler method:
>> public void
>> org.hisp.dhis.webapi.controller.CrudControllerAdvice.defaultExceptionHandler(java.lang.Exception,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
>> throws java.lang.Exception (ExceptionHandlerExceptionResolver.java
>> [http-nio-8080-exec-74])
>>
>> java.lang.NullPointerException
>>
>>         at
>> org.hisp.dhis.webapi.service.WebMessageService.send(WebMessageService.java:96)
>>
>>         at
>> org.hisp.dhis.webapi.controller.CrudControllerAdvice.defaultExceptionHandler(CrudControllerAdvice.java:259)
>>
>>         at
>> org.hisp.dhis.webapi.controller.CrudControllerAdvice$$FastClassBySpringCGLIB$$e80bbad6.invoke(<generated>)
>>
>>         at
>> org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
>>
>>         at
>> org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:669)
>>
>>         at
>> org.hisp.dhis.webapi.controller.metadata.sync.MetadataSyncController$$EnhancerBySpringCGLIB$$1c221b30.defaultExceptionHandler(<generated>)
>>         at sun.reflect.GeneratedMethodAccessor1405.invoke(Unknown Source)
>>
>> Any idea why this is happening frequently?
>>
>> Thanks & Regards,
>> Rakib
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>

PNG image


References