Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter

Categories

In this Discussion

El fin de este foro es dar soporte gratuito y comercial a los distintos productos y servicios de CaboLabs.com. El soporte gratuito se brinda en los foros de acceso público y no tiene garantía de tiempo mínimo de respuesta. El soporte comercial se brinda en foros privados donde se garantiza una respuesta dentro de las 24 horas.

Internal Server error

Hello Dear,
I am having problems with dev ambience of EHRServer. Grails starts ok, but when I acess the url, it returns error 500. I am using the browser lynx - because my server do not has graphic interface. In search about the error, in the internet, are many talks about "controllers", but I do not understand who controllers and where are this controllers. See below the error return:

 Error 2017-11-16 19:37:44,468 [http-bio-8090-exec-3] ERROR errors.GrailsExceptionResolver  - NullPointerException occurred when processing request: [GET] /ehr/login/auth
Cannot invoke method toBoolean() on null object. Stacktrace follows:
Message: Error processing GroovyPageView: Cannot invoke method toBoolean() on null object
    Line | Method
->>   91 | doFilter  in /grails-app/views/login/auth.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Caused by NullPointerException: Cannot invoke method toBoolean() on null object
->>   99 | doCall    in home_ubuntu_ehrserver_grails_app_views_login_auth_gsp$_run_closure2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|    113 | run       in home_ubuntu_ehrserver_grails_app_views_login_auth_gsp
|    198 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter
|     53 | doFilter  in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter
|     62 | doFilter  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
|   1149 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    624 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    748 | run . . . in java.lang.Thread
2017-11-16 19:37:45,690 [http-bio-8090-exec-3] INFO  servlet.ErrorHandlingServlet  - FrameworkServlet 'grails-errorhandler': initialization started
2017-11-16 19:37:45,695 [http-bio-8090-exec-3] INFO  servlet.ErrorHandlingServlet  - Using MultipartResolver [org.codehaus.groovy.grails.web.multipart.ContentLengthAwareCommonsMultipartResolver@61109093]
2017-11-16 19:37:45,695 [http-bio-8090-exec-3] INFO  servlet.ErrorHandlingServlet  - FrameworkServlet 'grails-errorhandler': initialization completed in 5 ms

Thanks for all the help!

Comments

  • Update about problem: When I rename the file auth.gsp in ~/ehrserver/grails-app/views/login$, the logon page takes acessible but whitout the field for insert the organization. Where is the code generating this page? And how can I update this to generate the right page?
  • Please set the env var EHRSERVER_ALLOW_WEB_USER_REGISTER used in the config.groovy
  • Please don't rename any files, that doesn't solve your issue.
  • Ok, I do it and all is funcional. Thank you!
  • Hi Jorge, try to update to the newest dev version from the master branch, this issue shouldn't happen since I set false as default if the env is not declared.
Sign In or Register to comment.