How To Debug Smack API (Java XMPP Library)August 17th, 2008 Smack is an excellent Java XMPP Library. While creating a pubsub broker in XMPP I faced a strange issue where few messages were missing.
How To: Java Stack Trace in LinuxFebruary 24th, 2008 A simple tip for newbies - how to get Java stack trace, the invaluable tool to debug java programs, in Linux:
- Type the Ctrl key followed by \, in short Ctrl \. I just used it to debug a persistent problem where a server process which automatically fetches data from a third-party site was inexplicably hanging.
How to Compile Java Source within Java ProgramMarch 26th, 2009 This small trick will tell you how you can compile a java source file from another java file on the go. You do not need to run it on a different page and compile it there and then get back to this program.
How To Change Java Compiler in Ant on Fedora Core / LinuxJune 22nd, 2007 Fedora Core team, in its infinite wisdom, decided to ship a so-called "free" (but essentially useless and crappy; pardon my French) JVM (read gcj) with its installation. Not only that this "free" JVM is integrated with java softwares from Fedora repositories making them pretty hard to use too.
Debugging Java Software using NetBeans and Sun Java Studio Enterprise 7August 2nd, 2005 Debugging guidelines for NetBeans and Sun Java Studio Enterprise.
Debugging Tips for Applications Built With Sun Java Studio Enterprise 7
Debugging Java Software using NetBeans 3.6
How To Solve Apache Ant java Task Execution ErrorsJuly 26th, 2006 I have seen myriad errors when executing java task. For example I have seen: javax.xml.parsers.FactoryConfigurationError?: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl? not found when executing the java task in jdk1.5.0
The problems with debugging the errors is that the commandline used by java task is not visible, even in verbose mode.
Java: How To Get Stacktrace of Any Local / Remote Java ProcessSeptember 23rd, 2008 You may run Java processes in the foreground or in many cases they may be run using cron jobs or during system startup, as background processes. How can you find out stacktraces of any running Java process? But first how can you even know their name & process id's?
How to find process id (pid) of all running Java processes?
The following command displays list of all running Java processes in your machine -
$JAVA_HOME/bin/jps
Note the process id of the process you want to get stacktrace as you will need it in the next step.
Some thoughts on Richard Grimes article on .NETMarch 8th, 2005 I personally find the article by Richard Grimes on the state of .NET technologies very informative. It is comical to note some of the rants against him in the post and in the comments at http://weblogs.asp.net/danielfe/archive/2005/02/22/378343.aspx
Some of it are plain hilarious like:
And really, let's face it, every programming language has a problem.
9 Important Tips for Selenium Remote Control (Java client) - Test ToolApril 16th, 2008 Selenium Remote Control (RC) is a test tool that allows you to write automated web application UI tests in many programming languages against any HTTP website using any mainstream JavaScript-enabled browser. Selenium RC is a powerful and simple framework for running (scheduled or manually) automated UI centric regression tests for web applications / services.
Google Web Toolkit: A Brief ReviewMay 17th, 2006 Google has released GWT - a java window toolkit which converts your java applications (using the toolkit API) to javascript (incl. AJAX) and HTML.
Core Java: How To Get Java Source Code Line Number & File Name in CodeSeptember 8th, 2008 While debugging code Java programmers often use System.out.println(). It is important to write separate message in each System.out.println() so you can understand from the output where the problem lies.
Understanding $_SERVER['PHP_SELF'], $PHP_SELF, $_SERVER['REQUEST_URI'] and $_SERVER['SCRIPT_NAME'] in PHP and when to use whatJune 3rd, 2005 This article unravels the mysterious and sparsely documented functionality of the above mentioned PHP global variables.
Google App Engine Support Java And How To Get An Early Invite FreeApril 8th, 2009 The breaking news today is Google App Engine has finally announced support for Java. The Java environment provides a Java 6 JVM, a Java Servlets interface, and support for standard interfaces to the App Engine scalable datastore and services, such as JDO, JPA, JavaMail, and JCache.
J2SE 5: New wine in new bottle with old corkMarch 15th, 2005 J2SE stands for Java 2 Standard Edition. The 2 stands for version 2 of the platform.
How To Simulate Telnet Session in JavaFebruary 16th, 2006 Often we come across procedures which need to be performed by issuing commands in a telnet session. It is relatively easy to do it manually but is definitely not suitable for automation.