Occasional HTTP 500 errors with LegacyUI

I haven’t looked at legacyui in a few days but I just did a clean update + build of both core and legacyui and I get this when visiting /openmrs:

HTTP ERROR 500

Problem accessing /openmrs/index.htm. Reason:

Server Error

Caused by:

org.apache.jasper.JasperException: /WEB-INF/view/module/legacyui/index.jsp (line: 1, column: 1) null at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:275) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:91) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:325) at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:358) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:461) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1430) at org.apache.jasper.compiler.Parser.parse(Parser.java:139) at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)

Looks like I get this problem on any page with any include:

Problem accessing /openmrs/admin/modules/module.list. Reason:

Server Error

Caused by:

org.apache.jasper.JasperException: /WEB-INF/view/module/legacyui/admin/modules/moduleList.jsp (line: 1, column: 1) null at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:275) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:91) at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:325)

Nevermind.

Right after I started debugging it with an actual debugger, it started working.

Typical Heisenbug :slight_smile:

Kris,

You raise an important issue. It also happens to me once in a while. But all the sudden, it starts working again. So i think we need to look into the cause. :slight_smile:

1 Like

It might have something to do with Eclipse installed.

I experienced this problem before. In my linux I didn’t install eclipse, and it worked.

In my mac, I installed eclipse, and it only worked through eclipse run…after which it worked through terminal.

I am experiencing the same issue currently. Any Ideas on how to solve this on should I just wait and see if it resolves it’s self :cry::cry::cry::cry:

Solved this by just restarting the server again :cowboy_hat_face::cowboy_hat_face:

1 Like

I simply restarted the server as well… All of a sudden, it worked …