Laurent Hinoul

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - John F. Woods

Category: Web

How to enable CORS in Solr

If you are using Solr with Angular or something like that. The browser can be anoying about cross site scripting. To enable CORS in Solr you just have to add the code below in solr-x.x.x/server/solr-webapp/webapp/WEB-INF/web.xml (x.x.x stands for the solr version). Just after the <web-app> tag.

How to fix jasperserver tree load error

I was using Jasperserver in different browser tabs and did many changes. Suddenly, I got an error like ‘Tree load error‘. To fix this, you need to clean your computer with a program like CCleaner. This was the only solution that worked for me. Even restarting the server didn’t help. To download CCleaner, go to I hope this works…

How to use json with java

Is it possible to use json in combination with java? The answer is yes! You can easily parse json objects to java objects and and vice-versa. To do so, you can use Google’s framework ‘gson’: Maven dependency