debug
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: public String intercept(ActionInvocation invocation) throws Exception { Map<String,Object> params = invocation.getInvocationContext().getParameters(); [...]
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 [...]
JConsole – Monitor Remote Machine Process (tomcat)
The JConsole graphical user interface is a monitoring tool that complies to the Java Management Extensions (JMX) specification. JConsole uses the extensive instrumentation of the Java Virtual Machine (Java VM) to provide information about the performance and resource consumption of applications running on the Java platform. Jconsole is very useful in monitoring performance of JVM [...]
