MySQL – Error Establishing a Database Connection

So, this week, for some reason, the site reported ‘Error Establishing a Database Connection’ Searching the web I found out that wordpress, from version 2.3.1, has a debug feature. In wp-config.php simply add define(‘WP_DEBUG’, true);. Once I had done this I got a nice little error telling me exactly what was wrong. I like things […]

Read More »

Code coverage results reporting 100%

I turned off the debug option on the ant task javac and my code coverage went upto 100%. This is because the debug option is to do with the javac –g option which compiles the code with debugging information such as line numbers etc. My code coverage couldn’t identify any debug information in my class […]

Read More »

javac target option and runtime exceptions

When compiling code to another version other than the used javac sdk, you need to also set the -bootclasspath, otherwise you will still end up binging your .class files to the sdk version API classes of your javac. You wont get any issues at compile time, but you could at runtime. To set this up […]

Read More »

Self signed certificate not working

Because self signed certificates are not signed by what is known as a Trusted Certificate Authority like Verisign, Java will reject any connection to it .The Java SE comes with a set of Trusted Certificate Authorities which is in $JAVA_HOMEjrelibsecuritycacerts file and you have to add yourself to this if you want it to work […]

Read More »

Cannot set header. Response already committed

I found this to be happening in alot of the log files. Further investigation I found out that it happens because, part of the response is already sent to the client, including the header information, and then we were trying to manipulate that header information in some some jsp include files. Basically you cannot set/change […]

Read More »