debug

Add Server address on page – Troubleshooting Load Balanced cluster

It is actually about a trick that can be used in a particular type of environment. When you are running your application in multi-server environment with load balancers enabled to distribute the load, you may require to know which server is serving the request in certain error situations. One very probable scenario is that during [...]


java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String

It happened with me while i was trying to extract a HTTPRequest parameter from an ActionInvocation object. I was writing an interceptor in Struts2 and was trying to check a request parameter. This is how you do it when you are in an interceptor: And it gave me following error: According to the Java Doc [...]


Adding values to Apache Logging – httpd

Apache HTTP server logs are source of very valuable information. Many trends, usage analysis can be extracted from these logs. Some times you may not get the information you require in the logs as it is not logged by the server like time taken by the request or port of the server serving the request. [...]


Database page corruption on disk or a failed file read …. Again – Mysql

Again encountered the stopped server in the morning because of page file corruption. Reason was the bad power situation in office during night shifts and which costs us the whole day to repair the testing server. As from the last time learnings of page file corruption (previous post) we knew how to start the server [...]


Unable to transcode font file — Flex Builder compilation

I faced this problem recently while working on Flex builder where I wanted to use the free font file with my Flex application. I was using this by adding it in style like below: <mx:Style> @font-face { src: url(‘assets/fonts/FreeSans.ttf’); font-family: FreeSans; } </mx:Style> While compiling this msxml file i found the error below: Unable to [...]